Export (0) Print
Expand All

AdControl Properties

Updated: March 10, 2014

Published: April 2, 2014

The following properties of the AdControl class are unique to the class. For information about properties inherited by the AdControl class, see the Controls.UserControl class.

Properties

Name

Description

AdUnitId

Gets or sets the ad unit identifier for this AdControl instance. This value is provided to the publisher as part of the publisher’s ad configuration process. For more information, see Getting Started.

ApplicationId

Gets or sets the application identifier assigned to you during the publisher registration process. For more information, see Getting Started.

AutoRefreshIntervalInSeconds

Gets or sets the value of the auto-refresh interval.

CountryOrRegion

Gets or sets the two-letter country or region code to use for targeting advertisements.

ExpandedAdMargin

Reserved.

HasAd

Gets the current ad state.

IsAutoCollapseEnabled

Gets or sets the value that indicates whether the AdControl will automatically hide itself if no ad is available or an error occurs.

IsAutoRefreshEnabled

Enables or disables automatic refresh of advertisements.

IsBackgroundTransparentProperty

Gets or sets the background transparency of the AdControl.

IsEngaged

Gets a value that indicates whether the user is interacting with an advertisement.

IsSuspended

Gets a value that indicates whether the AdControl is in a suspended state.

Keywords

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

Latitude

Gets or sets the current latitude to use for targeting advertisements.

Longitude

Gets or sets the current longitude to use for targeting advertisements.

PostalCode

Gets or sets the postal code to use for targeting advertisements.

Inherited Properties

The following inherited properties are not useable by the AdControl. Do not set their values.

  • BorderThickness

  • BorderBrush

  • Clip

  • OpacityMask

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