Fullscreen (Interstitial)

Integrate fullscreen ads

Usage

To create fullscreen placement, call createPlacement function passing placement name and the size as PlacementSize.Fullscreen. Please note that the placement name has to be constant after once defined and cannot change with every app restart. Next you can reload placement using reloadPlacement function. Also it's possible to let fullscreen ad be auto-reloaded by calling startPlacementAutoReload. When fullscreen ad is loaded, you can show it calling showPlacement function. Plugin provides callbacks which might be useful, for example to get notified when fullscreen ad is loaded. See the example of using fullscreen ads below.

createFullscreen: function() {
    AATKitCordova.createPlacement("YourPlacementName", "Fullscreen");
},

initialize: function() {
    document.addEventListener('aatkitHaveAd', function(data){ 
        console.log("aatkitHaveAd: " + data.placementName);
        if(data.placementName == "YourPlacementName") {
            AATKitCordova.showPlacement("fullscreenAd", (interstitialShown) => {
                console.log("interstitialShown " + interstitialShown);
            });
        }    
    });
},

Last updated