Rectangular advertisements that remain visible on the screen during user interaction with the application, and have the ability to refresh automatically after a specified duration.
Mostrar el anuncio
En el ejemplo estamos utilizando un Test Id.
Si no estás probando la aplicación, cámbiala por el ID apropiado que te dimos.
@override
Widget build(BuildContext context) => Scaffold(
appBar: ...,
body: Column(children: [
...
R89Banner(
configurationId: ConfigBuilder.bannerTestR89ConfigId),
...
],),
);
Eventos del ciclo de vida
To receive the lifecycle events, provide BannerEventListener to R89Banner via lifecycleCallbacks parameter. Details about BannerEventListener can be found in the Referencia.
@override
Widget build(BuildContext context) => Scaffold(
appBar: ...,
body: Column(children: [
...
R89Banner(
configurationId: ConfigBuilder.bannerTestR89ConfigId,
lifecycleCallbacks: BannerEventListener.callbacks(
onLoadedCallback: () {},
onImpressionCallback: () {},
onLayoutChangeCallback: (width, height) {},
onClickCallback: () {},
onOpenCallback: () {},
onCloseCallback: () {},
onFailedToLoadCallback: (error) {},)
),
...
],),
);