¿Cómo funciona?
We configure your webview to create a channel between our web header script and the Native SDK, this enables better privacy compliance and targeting.
With this in place you can use loadUrlWithConsentDataOrWait to load the URL with consent data.
¿Qué se necesita?
- Comience creando una cuenta con nosotros. Contact us para iniciar el proceso y proporcionar toda la información necesaria que se detalla a continuación.
- Add the Initialization code.
- Follow This Guide
- Your web-app is now prepared for monetization with us.
Información que necesitamos sobre tu aplicación
- Enlace de la tienda (métricas de Google o Manzana uno).
- Dominio de la aplicación. Por ejemplo: www.refinery89.com.
Ejemplo en la demostración
You will use Android’s WebView View in your app, but instead of loading the url withWebView.loadUrl()you need to configure the webview with R89SDK.configureWebView() and then use R89SDK.loadUrlWithConsentDataOrWait().
Function R89SDK.configureWebView takes 3 parameters, which are:
- webView – your webView
- userAgent – userAgent string, which can be acquired with ->
R89SDK.getUserAgent(webView = webview!!, siteName =”WebViewDemo”) - webViewClient – R89WebViewClient object, child of WebViewClient, in which you can override callback functions like:
- r89OnPageFinished – is called when page finished loading
- r89OnPageStarted – is called when page started loading
Example:
R89SDK.configureWebView(webview!!, userAgent, object : R89WebViewClient()
{
// Here you can override WebViewClient methods in case you need them
})
If you want to add any Banner/Outstream or other formats outside of the WebView you can do so the same way it is done in Manual initialization.
if you wanted you could create your own custom JavaScriptInterface from the web part of the app to display the ads in the native part interacting and controlling them from the webpart.