InterstitialAd InterstitialAd InterstitialAd InterstitialAd InterstitialAd Class

Definition

Represents a control that displays interstitial video or interstitial banner ads in an app. For walkthroughs and code examples that demonstrate how to use this control, see Interstitial ads and Advertising samples on GitHub.

public : sealed class InterstitialAd
struct winrt::Microsoft::Advertising::WinRT::UI::InterstitialAd
public sealed class InterstitialAd
Public NotInheritable Class InterstitialAd
var interstitialAd = new interstitialAd();
Attributes

Requirements

SDK
Minimum supported OS
Windows 10 (10.0.10240.0 or later)

Constructors

InterstitialAd() InterstitialAd() InterstitialAd() InterstitialAd() InterstitialAd()

Initializes a new instance of the InterstitialAd class.

Properties

CountryOrRegion CountryOrRegion CountryOrRegion CountryOrRegion CountryOrRegion

Gets or sets the two-letter country or region code where the user is located.

Keywords Keywords Keywords Keywords Keywords

Gets or sets the keywords that target the audience for advertisements.

PostalCode PostalCode PostalCode PostalCode PostalCode

Gets or sets the postal code target for ads.

RequestTimeout RequestTimeout RequestTimeout RequestTimeout RequestTimeout

Gets or sets the number of milliseconds to wait for an ad request to complete before timing out.

State State State State State

Gets the current state of the interstitial ad.

Methods

AddAdTag(String, String) AddAdTag(String, String) AddAdTag(String, String) AddAdTag(String, String) AddAdTag(String, String)

Adds an ad tag to the InterstitialAd control.

Close() Close() Close() Close() Close()

Closes the interstitial ad that is showing.

RemoveAdTag(String) RemoveAdTag(String) RemoveAdTag(String) RemoveAdTag(String) RemoveAdTag(String)

Removes an ad tag from the InterstitialAd control.

RequestAd(AdType, String, String) RequestAd(AdType, String, String) RequestAd(AdType, String, String) RequestAd(AdType, String, String) RequestAd(AdType, String, String)

Requests an interstitial ad from the server.

Show() Show() Show() Show() Show()

Shows an interstitial ad.

Events

AdReady AdReady AdReady AdReady AdReady

Raised when the interstitial ad is ready to be shown.

Cancelled Cancelled Cancelled Cancelled Cancelled

Raised when the user cancels the ad before it is considered complete.

Completed Completed Completed Completed Completed

Raised when the ad is closed and the ad experience is considered complete.

ErrorOccurred ErrorOccurred ErrorOccurred ErrorOccurred ErrorOccurred

Raised when the InterstitialAd encounters an operational error.

See Also