Export (0) Print
Expand All

AdControl Members

Updated: March 31, 2014

Published: April 2, 2014

The AdControl class inherits from the Controls.UserControl class. The following members are unique to the AdControl class or extend the functionality of the Controls.UserControl class.

Constructors

Name

Description

AdControl()

Instantiates a new AdControl.

AdControl(string, string, bool)

Overload of the AdControl constructor.

Methods

Name

Description

AddAdTag()

Reserved.

Refresh()

When automatic ad refresh is disabled, a call to this method directs the AdControl to show the next ad when a new one becomes available.

RemoveAdTag()

Reserved.

Resume()

This method is used to resume the normal display of an ad after a call to Suspend.

SendMessageToAd()

Reserved.

Suspend()

Suspends the current ad. Replaces the current view of the ad with a static snapshot of what was being rendered.

Suspend(bool)

Suspends the current ad. Replaces the current view of the ad with a static snapshot of what was being rendered. This overloaded method allows the ad to be placed in a suspended state while canceling any expanded experience or without closing a full screen ad.

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.

Events

Name

Description

ErrorOccurred

Raised when the AdControl encounters an error in operations.

IsEngagedChanged

Raised when the user begins or stops interacting with an ad.

AdRefreshed

Raised when the AdControl receives a new ad.

PublisherMessageEvent

Reserved.

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