Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many Ads Requests! #525

Open
omrip2 opened this issue Jun 24, 2020 · 7 comments
Open

Too many Ads Requests! #525

omrip2 opened this issue Jun 24, 2020 · 7 comments

Comments

@omrip2
Copy link

omrip2 commented Jun 24, 2020

Recently I updated my webview app on the appstore and playstore with a new react-native app, after releasing the application to small percentages of users I have seen that too many requests are being sent to admob. Does anyone know what may be the issues or is there a way to debug admob's requests.

@bethea28
Copy link

Any thoughts on this issue? My team and I are facing similar issue!

@rahul-budhia
Copy link

Facing same problem. This can potentially lead to your traffic being qualified as invalid by Admob. The problem is worse on Android.

@bethea28
Copy link

What I discovered was that when the validAdSize property is being used, multiple ad request were being made and it was evident in the adViewDidReceiveAd function as the number of times logs happened in this function matched with the number of ad request present in Charles proxy. So overall I had to bypass using the validAdSize property.

@mikejsdev
Copy link

I am having this exact same issue! I am using expo (which uses this package) and the following code. Logging out onAdViewDidReceiveAd shows three ad requests go out each time the screen is rendered. I too have received a warning from Google.

                <AdMobBanner
                    bannerSize="fullBanner"
                    adUnitID='valid test id' // Test ID, Replace with your-admob-unit-id
                    servePersonalizedAds // true or false
                    onDidFailToReceiveAdWithError={this.bannerError}
                    onAdViewDidReceiveAd={this.adRecieved} />

@bethea28 can you let us know how you fixed this? What do you mean by bypass validAdSize? Do you mean you left this property off entirely? Thanks for any help you can give.

@youngminz
Copy link

youngminz commented Apr 13, 2021

@mikejsdev Have you solved the issue? If so, how did you do it? When I tested it on my iOS and Android devices, I found that using PublisherBanner instead of AdMobBanner mitigates the problem. I'm analyzing the source code to see why changing components alleviates the problem, and there are no other side effects. Interesting...

-                <AdMobBanner
+                <PublisherBanner
                    bannerSize="fullBanner"
                    adUnitID='valid test id' // Test ID, Replace with your-admob-unit-id
                    servePersonalizedAds // true or false
                    onDidFailToReceiveAdWithError={this.bannerError}
                    onAdViewDidReceiveAd={this.adRecieved} />

@bethea28
Copy link

bethea28 commented Apr 13, 2021 via email

@youngminz
Copy link

youngminz commented Apr 13, 2021

I'm building an app using the Expo platform, where native dependency versions cannot be changed, so I'm not thinking about forking and modifying this library right now. Unfortunately, all I can (and can tell) is to keep the current version of the dependency and mitigate that issue as much as possible.
Anyway, thanks for the clue that it could be fixed by updating the version of the Google Ads Library. I'll look a little more at the source code level, but I'm not sure if it's possible to find the exact cause. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants