Flutter - Documentação do SDK de Monetização de Aplicativos

⌘K
  1. Flutter - Monetize App SD...
  2. Guia do Usuário
  3. Formatos de Anúncio
  4. Outstream

Outstream

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

Mostrar o anúncio

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

Eventos do Ciclo de Vida

To receive the lifecycle events, provide BannerEventListener para R89Banner via callbacksLifecycle parâmetro. Detalhes sobre BannerEventListener pode ser encontrado no Referência.

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

Como podemos ajudar?