Flutter - Monetisera App SDK Dokumentation

⌘K
  1. Flutter - Tjäna pengar på din app SD...
  2. Användarguide
  3. Annonsformat
  4. Interstitiell

Interstitiell

Full-screen ads that cover the interface of an app until closed by the user. They’re best used at natural pauses in the flow of an app’s execution, such as in between levels of a game or just after completing a task.

Visa annonsen

Call createInterstitial method from RaffinaderiAnnonsfabrik to display interstitial ads by providing the configurationId.

R89SDK.adFactory.createInterstitial(
    configurationId: ConfigBuilder.interstitialTestR89ConfigId);

Händelser under livscykeln

To receive lifecycle events, provide InterstitialEventListener to R89SDK.adFactory.createInterstitial via lifecycleCallbacks parameter. Details about InterstitialEventListener can be found in the Referens.

R89SDK.adFactory.createInterstitial(
    configurationId: ConfigBuilder.interstitialTestR89ConfigId,
    lifecycleCallbacks: InterstitialEventListener.callbacks(
        onLoadedCallback: () {},
        onOpenCallback: () {},
        onImpressionCallback: () {},
        onClickCallback: () {},
        onFailedToLoadCallback: (error) {},
        onAdFailedToShowFullScreenCallback: (error) {}));

To receive an interstitial close event, provide the afterInterstitial callback to R89SDK.adFactory.createInterstitial metod.

R89SDK.adFactory.createInterstitial(
  configurationId: ConfigBuilder.interstitialTestR89ConfigId,
  lifecycleCallbacks: InterstitialEventListener.callbacks(
      onLoadedCallback: () {},
      ...
      onAdFailedToShowFullScreenCallback: (error) {}),
  afterInterstitial: () {
      // Close event
  },
);

Den afterInterstitial callback is not passed as a separate object like the other Events because it is mandatory to handle what happens after an Interstitial is closed.
The following is invoked in the SDK when:

  • The user just closed the full-screen ad.
  • The ad failed to show.

Hur kan vi hjälpa till?