Keywords Property (XNA)
Updated: August 2, 2013
Published: April 2, 2014
Gets or sets the keywords that target the audience for advertisements.
Assembly: Microsoft.Advertising.Mobile.Xna (in Microsoft.Advertising.Mobile.Xna.dll)
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";
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.
The maximum total length of all keywords combined is 256 characters.
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 firstname.lastname@example.org. There is no product support through this alias. Documentation feedback only.