InterstitialAd.RequestAd(AdType, String, String) InterstitialAd.RequestAd(AdType, String, String) InterstitialAd.RequestAd(AdType, String, String) InterstitialAd.RequestAd(AdType, String, String) InterstitialAd.RequestAd(AdType, String, String) Method

Definition

Requests an interstitial ad from the server.

public : void RequestAd(AdType adType, Platform::String applicationId, Platform::String adUnitId)
void RequestAd(AdType adType, winrt::hstring applicationId, winrt::hstring adUnitId) const;
public void RequestAd(AdType adType, String applicationId, String adUnitId)
Public Sub RequestAd(adType As AdType, applicationId As String, adUnitId As String)
interstitialAd.requestAd(adType, applicationId, adUnitId);
Parameters
adType
AdType AdType AdType

A value that specifies the type of interstitial ad to request (video or banner).

applicationId
String String String

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

adUnitId
String String String

The ad unit ID value from Windows Dev Center.

Remarks

The AdReady event is 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.

See Also