Flutter - Monetize App SDK Documentation

⌘K
  1. Flutter – Monetize ...
  2. Tipos de inicialização
  3. Manual Initialization

Manual Initialization

Check a full implementation in the Demo Apps section.

How it works?

We fetch all unit configurations from our Database and you simply need to use one of the built-in ad widgets. The usage looks as follows:

@override
Widget build(BuildContext context) => Scaffold(
  appBar: ...,
  body: Column(children: [
    ...
    R89Banner(
      configurationId: <provided-banner-config-id>),
      ...
  ],),
);

Check Formatos de anúncio to see how to do it with each format.

What is needed?

  1. Comece criando uma conta conosco. Fale conosco para iniciar o processo e fornecer todas as informações necessárias listadas abaixo.

  2. Adicione o código de Inicialização.

  3. Follow our ad format guides for their implementation.

  4. Your app is now prepared for monetization with us.

Informações que precisamos sobre seu aplicativo

  • Which formats do you intend to utilize? If you’re unsure about the formats, please refer to their dedicated pages or reach out for assistance by contacting us.

  • Link da Loja (Google ou Maçã Um).

  • Domain of the app. E.g.:www.refinery89.com

  • (Optional) Desired App Keywords.

Exemplos

At the end of the example you can find a modelo para produção aqui.

If you are in Debug mode, please add these lines before any of the R89SDK.initialize. Marking the SDK as Debug will make the SDK use ConfigBuilder IDs and data.

R89SDK.setLogLevel(LogLevel.debug);
R89SDK.setDebug();

Example in the Demo

Usar R89SDK.initialize method for the auto initialization by providing publisherId e a appId.

@override
void initState() {
  super.initState();
  // Add for debug
  R89SDK.setLogLevel(LogLevel.debug);
  R89SDK.setDebug();
  // Auto initialization
  R89SDK.initialize(
    publisherId: "TestRefinery89ID",
    appId: "TestAutoConfigDemoApp");
}

Modelo

R89SDK.initialize(
  publisherId: <YOUR PLUBLISHER ID>,
  appId: <YOUR APP ID>);

Como podemos ajudar?