Export (0) Print
Expand All

DrawableAd Members

Updated: August 2, 2013

Published: April 2, 2014

The DrawableAd class inherits from the System.Object class. The following members are unique to the DrawableAd class or extend the functionality of the System.Object class.

Public Members

Constructor

DrawableAd objects are created using the AdGameComponent.CreateAd method.

Methods

Name

Description

Refresh

When automatic ad refresh is disabled, call this method to display the next ad when it becomes available.

Properties

Name

Description

AdUnitId

Gets the ad unit identifier for this DrawableAd instance.

AutoRefreshEnabled

When this property is set to true, the DrawableAd object will download and display a new advertisement automatically, if one is available.

BorderColor

Gets or sets the color of the border to be overlaid on the ad.

DisplayRectangle

Gets or sets the rectangle where the ad will be rendered.

BorderEnabled

Gets or sets a value that indicates whether a border should be overlaid on the ad.

DropShadowEnabled

Gets or sets a value that indicates whether a drop shadow should be drawn under the ad.

Engaged

Gets a value that indicates whether the ad is currently engaged by the user.

Keywords

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

LocationLatitude

Gets or sets the latitude to use for ad targeting.

LocationLongitude

Gets or sets the longitude to use for ad targeting.

Visible

Gets or sets a value that indicates whether the ad is visible.

Events

Name

Description

AdRefreshed

Raised when a new ad is shown by the DrawableAd object.

EngagedChanged

Raised when the Engaged property changes.

ErrorOccurred

Raised when a DrawableAd object encounters an exception or an error.

VisibleChanged

Raised when the Visible property changes.

Fields/Constants

Name

Description

MinimumHeight

Specifies the minimum allowable height for an ad.

MinimumWidth

Specifies the minimum allowable width for an ad.

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