This topic has not yet been rated - Rate this topic

AdControl Members

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.

Methods

 

Name Description

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.

Properties

 

Name Description

AdUnitId

Gets or sets the ad unit identifier for this AdControl instance.

ApplicationId

Gets or sets the application identifier containing the AdControl.

CountryOrRegion

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

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.

IsEngaged

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

Keywords

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

LocationLatitude

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

LocationLongitude

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

PostalCode

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

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.

See Also


Send feedback about this documentation to adsfdbk@microsoft.com.
Publication date: 2012-10-30
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.