Skip to content

Add official support for AdMob banner and rewarded ads in Trusted Web Activities (TWA) #535

@elVengador

Description

@elVengador

Read this First
If you have a Trusted Web Activity related question, the best place to ask it is on StackOverflow, on the
trusted-web-activity tag, which is also monitored by the team.

Is your feature request related to a problem? Please describe.
Yes. I would like to monetize my Android app that uses Trusted Web Activity (TWA) to wrap a PWA, but there is no official or supported way to show AdMob banner or rewarded ads within a TWA.

Since TWA occupies the full screen and Chrome controls the rendering, it's currently impossible to overlay native Android components like AdView.
Injecting AdSense or similar ads into the PWA is not a valid solution either, as it may violate AdMob/AdSense policies regarding ads in WebViews or native wrappers.
As a result, developers are left without any safe or supported way to monetize TWA-based apps.

Describe the solution you'd like
I propose an official API to support native AdMob ads in TWA-based apps, such as:

  • An option to reserve a fixed-height area (e.g. 60dp) at the top or bottom of the screen when launching a TWA.
  • This area would remain native and be used exclusively to display an AdMob banner, using a registered AdMob unit ID provided by the developer.
  • The rest of the screen would be used by the TWA/Chrome Custom Tab as usual.
  • For fullscreen or rewarded ads, the web app could trigger the ad via postMessage, and the native app would display the ad in a secure, controlled way.
  • Limiting the native area to AdMob only would reduce implementation errors and potential security issues.

Describe alternatives you've considered

  • Using WebView: this sacrifices performance, security, and Chrome features like install prompts, push notifications, and storage isolation.
  • Injecting ads into the PWA via JavaScript: not recommended and may violate AdMob/AdSense policies.
  • Trying to integrate native elements to display ads alongside the Trusted Web Activity didn’t work, since the TWA renders in fullscreen and cannot be combined with native UI components.
  • Drawing native views on top of a TWA is not reliable or officially supported.

None of these alternatives offer a clean, secure, and officially supported solution.

Additional context
This feature would allow developers to fully embrace TWAs for their security and simplicity, while still benefiting from native AdMob monetization.
It also benefits Google by increasing legitimate AdMob usage and developer adoption of TWAs.

Suggested name: TWAWithAdMobSupport.

Thank you for considering this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions