Ad. Request Ad(AdType, String, String) Method
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);
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)
A value that specifies the type of interstitial ad to request (video or banner).
The application ID of the app. This value is available in Partner Center.
The ad unit ID value from Partner Center.
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.