Export (0) Print
Expand All

Keywords Property

Published: April 2, 2014

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

Namespace: Microsoft.Advertising.Mobile.UI

Assembly: Microsoft.Advertising.Mobile.UI (in Microsoft.Advertising.Mobile.UI)

public string Keywords { get; set; }

Property Value

Property

Type

Return Type

Keywords

String

IEnumerable containing String.

Keyword Delimiter

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


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

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

System_CLiX_importantImportant

The purpose of each code example 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 examples or for any included source code.

Exceptions

Error

Result

The maximum allowed length of each keyword in the Keywords property is 255 characters.

The value is set to null.

Platforms

Windows Phone 7.x, Windows Phone 8.x

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:
© 2015 Microsoft