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 const & applicationId, winrt::hstring const & adUnitId);
[Windows.Foundation.Metadata.Overload("RequestAd1")]
public void RequestAd(AdType adType, string applicationId, string adUnitId);
function requestAd(adType, applicationId, adUnitId)
Public Sub RequestAd (adType As AdType, applicationId As String, adUnitId As String)

Parameters

adType
AdType AdType AdType AdType AdType

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

applicationId
System.String System.String System.String System.String System.String

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

adUnitId
System.String System.String System.String System.String System.String

The ad unit ID value from Partner 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.

Applies to

See also