How can I display ads within an Android app's WebView (HTML code) using AdSense code?

379 views
Skip to first unread message

Majed

unread,
May 6, 2023, 5:01:50 AM5/6/23
to Google Mobile Ads SDK Developers
Hello,

Is it possible to use AdSense code within the WebView's (HTML code) instead of a URL, and is there any API available for this? I have encountered difficulties in applying the AdSense guide for websites to a WebView because there is no site URL to register. Can you provide me with some guidance, examples, or documentation on how to achieve this?

Mobile Ads SDK Forum Advisor

unread,
May 8, 2023, 1:28:40 AM5/8/23
to in...@lhd.io, google-adm...@googlegroups.com
Hello Majed,

Thank you for reaching out to us.

To help you get started in implementing WebViews, we can recommend to you our documents for Android and iOS. Feel free to reach back to us if you need further clarifications or if you have other concerns.

Links:
Android - https://developers.google.com/ad-manager/mobile-ads-sdk/android/webview
iOS - https://developers.google.com/ad-manager/mobile-ads-sdk/ios/webview

Regards,
Google Logo Mobile Ads SDK Team


ref:_00D1U1174p._5004Q2lB27u:ref
Reply all
Reply to author
Forward
0 new messages