question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Banner on Android gave AdMob Policy Issue : Modified ad code: Resizing Ad Frames

See original GitHub issue

Similar to this previous issue : https://github.com/FirebaseExtended/flutterfire/issues/2198

Admob is limiting my ads because of policy violation. My app doesn’t have any popup or UI blocking the ad.

Message from AdMob :

Modified ad code: Resizing Ad Frames
This is a policy violation. You must fix this issue.

MODIFIED ADS: Publishers are not permitted to alter the behavior of Google ads in any way. This includes resizing ad frames to cut off parts of ads or hiding the Ads by Google moniker.

I am using the example code with AdSize.fullBanner. I even tried to remove any padding in the Container.

return Container(
  padding: const EdgeInsets.all(0),
  ...

Using google_mobile_ads: ^0.11.0+3

Any ideas on how to solve this ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

1reaction
yosuscommented, Sep 6, 2021

I am still using google_mobile_ads: ^0.11.0+3

I have just updated an app last week. So far, no policy violations. Still using smartBanner for Android.

...Size: (defaultTargetPlatform == TargetPlatform.android) ? AdSize.smartBanner : AdSize.smartBannerPortrait,

0reactions
morio77commented, Sep 6, 2021

me too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] Google AdMob: Restricted ad serving - B4X
Although it clearly states that the issue is "Modified ad code: Resizing Ad Frames" this is not the case.
Read more >
Modified ad code: resizing ad frames when layout is changed.
1. recreate AdView when layout is changed for the new orientation. 2. Use AdSize.FLUID to fit banner to the container.
Read more >
Modified ad code: Resizing Ad Frames | by Vairavan Srinivasan
So got a dreaded email “Google AdMob ad serving has been restricted to your app”. The email from AdMob has a link to...
Read more >
Modified ad code: Resizing Ad Frames, which ad does this ...
MODIFIED ADS: Publishers are not permitted to alter the behavior of Google ads in any way. This includes resizing ad frames to cut...
Read more >
Admob policy violations under Modified ad code Resizing Ad ...
You should check that you can (policy) show ads in a webview. I don't believe that is allowed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found