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 RefineryAdFactory. 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 Formats publicitaires to see how to do it with each format.
What is needed?
-
Commencez par créer un compte chez nous. Contactez-nous pour initier le processus et fournir toutes les informations nécessaires énumérées ci-dessous.
-
Add the wrapper/trigger (transitions ou button clicks) into your app.
-
Add the Initialization code.
-
Follow our ad format guides for their implementation.
-
Get those wrappers or triggers from Activities or Fragments.
-
Utiliser
RefineryAdFactoryto display the ads.
-
-
Votre application est maintenant prête pour la monétisation avec nous.
Information we require about your
app
-
Quels formats comptez-vous utiliser ? Si vous n'êtes pas sûr des formats, veuillez vous référer à leur pages dédiées ou contactez-nous pour de l'aide nous contacter.
-
Lien du magasin (Google ou Pomme une).
-
Domain of the app. E.g.: www.refinery89.com.
-
(Optional) Desired App Keywords.
Exemples
À la fin de l'exemple, vous trouverez une modèle de production ici.
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
Le ligneUnique drapeau est réglé à false. Use the RefineryAdFactory to create and place the ADs in a ViewGroup.
R89SDK.initialize(
appContext = this,
publisherId = "TestRefinery89ID",
appId = "TestConfigDemoApp",
singleLine = false
)
Modèle
R89SDK.initialize(
appContext = this,
publisherId = "<YOUR PUBLISHER ID>",
appId = "<YOUR APP ID>",
singleLine = false
)