Overview
Display backfill ads in your WKWebView by registering it with the Adrop SDK. This allows web content within your app to show ads through the Adrop platform.Info.plist Configuration
Add the following key to yourInfo.plist to enable backfill ads in WebView:
Info.plist
Register WebView
registerWebView() must be called on the main thread.
Call this method as early as possible (e.g., in viewDidLoad), before loading any web content.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