1. Flutter – Monetize ...
  2. User Guide
  3. Formati Pubblicitari
  4. Outstream

Outstream

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) {},)
            ),
      ...
    ],),
  );

Come possiamo aiutarti?