RequestAd | requestAd method

InterstitialAd.RequestAd | requestAd method

Requests an interstitial ad from the server.

Syntax


public:
void RequestAd(
  AdType adType, 
  String^ applicationId, 
  String^ adUnitId
)

Parameters

adType

Type: AdType

The type of interstitial ad to request (video or banner).

applicationId

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The application ID of the app. This value is available in Windows Dev Center.

adUnitId

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The ad unit ID value from Windows Dev Center.

Remarks

The AdReady event will be raised when the request completes successfully. The interstitial ad will not be shown until the Show method is called. The ErrorOccurred event will be raised if there was a problem showing the ad.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1

Namespace

Microsoft.Advertising.WinRT.UI
Microsoft::Advertising::WinRT::UI [C++]

Metadata

Microsoft.Advertising.winmd

See also

InterstitialAd

 

 

Show:
© 2017 Microsoft