Flutter - Monetize App SDK Documentation

⌘K
  1. Flutter - Monetize App SD...
  2. User Guide
  3. Reklam Formatları
  4. Akış dışı

Akış dışı

Rectangular video ads that stay on the screen as users interact with the app, refreshing automatically after a certain period.

Show the Ad

In the example we are using a Test Id.

If you are not testing the app, change it for the proper ID that you got from us.

@override
  Widget build(BuildContext context) => Scaffold(
    appBar: ...,
    body: Column(children: [
      ...
      R89OutStream(
          configurationId: ConfigBuilder.videoOutStreamTestR89ConfigId),
      ...
    ],),
  );

Lifecycle Events

To receive the lifecycle events, provide BannerEventListener to R89Banner via lifecycleCallbacks parameter. Details about BannerEventListener can be found in the Reference.

@override
  Widget build(BuildContext context) => Scaffold(
    appBar: ...,
    body: Column(children: [
      ...
      R89Banner(
              configurationId: ConfigBuilder.bannerTestR89ConfigId,
              lifecycleCallbacks: BannerEventListener.callbacks(
                  onLoadedCallback: () {},
                  onImpressionCallback: () {},
                  onLayoutChangeCallback: (width, heigth) {},
                  onClickCallback: () {},
                  onOpenCallback: () {},
                  onCloseCallback: () {},
                  onFailedToLoadCallback: (error) {},)
            ),
      ...
    ],),
  );

Nasıl yardım edebiliriz?