Android - Documentação do SDK de Monetização de Apps

⌘K
  1. Android – 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 units configurations from our Database and you simply need to place the units using the IDs we provide to you with the RefinariaAdFactory. Incorporate them into the desired views. The factory methods works as follows:

          // Inside the onCreate of an Activity or Fragment
          val myWrapper = findViewById<ViewGroup>(R.id.myWrapper)
          RefineryAdFactory.createBanner("<provided-id>", myWrapper)

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. Add the wrapper/trigger (transitions ou button clicks) into your app.

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

  4. Follow our ad format guides for their implementation.

    1. Get those wrappers or triggers from Activities or Fragments.

    2. Usar RefinariaAdFactory to display the ads.

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

Information we require about your
app

  • 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).

  • Domínio do aplicativo. Ex: 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 examples. Marking the SDK as Debug will make the SDK use ConfigBuilder ids and data.

            R89SDK.setLogLevel(LogLevels.DEBUG)
            R89SDK.setDebug()

Example in the Demo

O linhaÚnica bandeira é definida para false. Use the RefinariaAdFactory para criar e colocar os anúncios em um ViewGroup.

 

      R89SDK.initialize(
          appContext = this,
          publisherId = "TestRefinery89ID",
          appId = "TestConfigDemoApp",
          singleLine = false
      )

Modelo

          R89SDK.initialize(
              appContext = this,
              publisherId = "<YOUR PUBLISHER ID>",
              appId = "<YOUR APP ID>",
              singleLine = false
          )

Como podemos ajudar?