HasAd property

AdControl.HasAd property

Gets a value that indicates whether or not the AdControl is currently serving a banner ad.

Syntax

public bool HasAd { get; }

Property value

Type: System.Boolean.

Returns true if the AdControl is currently serving a banner ad; otherwise, false.

Remarks

Use the AdRefreshed and ErrorOccurred events to receive notifications about when the AdControl is refreshed or the ad cannot be shown due to an error.

Requirements

Minimum supported phoneWindows Phone 8 Silverlight
Namespace Microsoft.Advertising.Mobile.UI
AssemblyMicrosoft.Advertising.Mobile.UI.dll

 

 

 

Show:
© 2017 Microsoft