InterstitialAd.RequestAd(AdType, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Requests an interstitial ad from the server.
public:
void RequestAd(AdType adType, Platform::String ^ applicationId, Platform::String ^ adUnitId);
/// [Windows.Foundation.Metadata.Overload("RequestAd1")]
void RequestAd(AdType const& 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
A value that specifies the type of interstitial ad to request (video or banner).
- applicationId
-
String
Platform::String
winrt::hstring
The application ID of the app. This value is available in Partner Center.
- adUnitId
-
String
Platform::String
winrt::hstring
The ad unit ID value from Partner Center.
- Attributes
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.