Skip to content

sud.createInterstitialAd ​

Creates an interstitial ad component. Each call to this method returns a brand-new interstitial ad instance.

The ad is not loaded automatically after creation; call load() to start loading. A banner ad loads automatically once created, while all other ad types require an explicit load() call.

typescript
createInterstitialAd(params: {
    adUnitId: string;
}): InterstitialAd;

load() is rate-limited (currently triggered by repeated requests within 10 seconds). When the limit is hit, onError returns the error code (errCode) and message (errMsg).

Parameters ​

Object object ​

PropertyTypeDefaultRequiredDescription
adUnitIdstringYesAd unit ID configured in the SUD OpenPaaS console

Return Value ​

InterstitialAd

Interstitial ad component.

Example Code ​

javascript
const interstitialAd = sud.createInterstitialAd({
    adUnitId: 'adunit-xxxxxxxx',
});