invertase/react-native-google-mobile-ads

[Feature Request] Add registerWebView() support for WebView API for Ads

Open

#855 geöffnet am 23. Mai 2026

Auf GitHub ansehen
 (2 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)TypeScript (213 Forks)github user discovery
help wantedstale

Repository-Metriken

Stars
 (1.010 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Documentation Feedback

Feature Request

Problem

Google officially requires registerWebView() to be called on each WebView instance to classify traffic as in-app (instead of web browser traffic), which affects:

  • CPM (advertisers pay more for in-app traffic)
  • Ad targeting via Ad Manager
  • Policy compliance for WebView monetization

See official Google docs:

Current Situation

No maintained React Native package implements this today:

  • react-native-google-ads-webview (Wix) → abandoned since 2022
  • Manual native bridge → crashes on New Architecture (UIManagerModule is null in Bridgeless mode)

Expected Solution

Add a method like:

mobileAds().registerWebView(viewTag)

that handles the native bridge correctly for both Old and New Architecture, similar to how the Flutter plugin implements it: MobileAds.instance.registerWebView(controller)

See Flutter reference: https://developers.google.com/ad-manager/mobile-ads-sdk/flutter/webview

Why this belongs here

This package already wraps the Google Mobile Ads SDK on both Android and iOS. registerWebView() is a method on MobileAds (Android) and GADMobileAds.sharedInstance (iOS) — both already initialized by this package.

Platform

  • Android
  • iOS
  • Both

Contributor Guide