Export (0) Print
Expand All

Keywords Property (XNA)

Updated: August 2, 2013

Published: April 2, 2014

Gets or sets the keywords that target the audience for advertisements.

Namespace: Microsoft.Advertising.Mobile.Xna

Assembly: Microsoft.Advertising.Mobile.Xna (in Microsoft.Advertising.Mobile.Xna.dll)

public string Keywords { get; set; }

Keyword Delimiter

Multiple keywords can be added to the SelectionKeywords value by putting a comma character (‘,’) between each keyword. The following code provides an example.


            // Set a single ad selection keyword.
            inGameAd.Keywords = null;
            inGameAd.Keywords = "AdKeyword0";

            // Set multiple ad selection keywords.
            inGameAd.Keywords = null;
            inGameAd.Keywords = "AdKeyword0,AdKeyword1";

System_CLiX_importantImportant

The purpose of each code sample provided in this documentation is to illustrate a concept and related syntax. Samples do not include all the code that is found in a full production system. For example, data validation and error handling code is not included. Technical support is not available for these samples or for any included source code.

Return Value

Returns IEnumerable containing a String.

Exceptions

Exception

Condition

System.ArgumentException

The maximum total length of all keywords combined is 256 characters.

Platforms

Windows Phone 7.x only

Support and Feedback

Get product support or report a bug in the product by visiting the Windows Phone Dev Center support page (scroll down to the section "Microsoft Advertising support").

Send feedback about this documentation to adsfdbk@microsoft.com. There is no product support through this alias. Documentation feedback only.

Community Additions

ADD
Show:
© 2014 Microsoft