Overview
Display backfill ads in your WebView by registering it with the Adrop SDK. This allows web content within your app to show ads through the Adrop platform.AndroidManifest.xml Configuration
Add the following to yourAndroidManifest.xml to enable backfill ads in WebView:
AndroidManifest.xml
Register WebView
registerWebView() automatically configures optimal WebView settings:- JavaScript enabled
- DOM storage enabled
- Media playback without user gesture
- Third-party cookies enabled
onCreate).Handling External URLs
If your app opens non-own-domain URLs in an external browser, you must ensure that ad resource requests (e.g.,googleads.g.doubleclick.net) are not blocked.
Ad resources such as iframes and scripts are loaded automatically by the ad SDK — they are not user-initiated navigations. Only redirect user-initiated main frame navigations to an external browser.
Related Documentation
Banner Ads
Learn how to integrate banner ads
Reference
API reference
Examples
Example repository