AATKit Flutter Integration
Release Notes
  • Start
    • Setup
    • Initialization
    • App Tracking Transparency
    • Google Mobile Ads SDK
    • Consent
      • Managed Consent
      • Vendor Consent
      • Simple Consent
  • Formats
    • Banner
    • Banner Cache
    • Fullscreen (Interstitial)
    • Rewarded Video
    • App Open Ad
  • Reference
Powered by GitBook
On this page
  • Create placement
  • Reload placement
  • Show placement
  • Listen to events
  1. Formats

Fullscreen (Interstitial)

Integrate fullscreen ads

Create placement

Call FullscreenPlacement.create method to create fullscreen placement:

_fullscreenPlacement =
    await FullscreenPlacement.create(name: "FullscreenPlacement");

Reload placement

Start auto-reloading placement by calling:

_fullscreenPlacement.startAutoReload()

Stop auto-reloading placement by calling:

_fullscreenPlacement.stopAutoReload()

Show placement

When fullscreen ad is loaded, you can show it:

_fullscreenPlacement.show()

Listen to events

Set listener to receive placement-specific events:

_fullscreenPlacement.listener = FullscreenPlacementListener(
  onHaveAd: (placement) => print("[${placement.name}] onHaveAd"),
  onNoAd: (placement) => print("[${placement.name}] onNoAd"),
  onPauseForAd: (placement) => print("[${placement.name}] onPauseForAd"),
  onResumeAfterAd: (placement) =>
      print("[${placement.name}] onResumeAfterAd"),
);
PreviousBanner CacheNextRewarded Video

Last updated 11 months ago