Android Admob error: Failed to load ad: 0 HTTP response code: 403

I have admob integrated banner ads in accordance with the following admob documentation steps.

I get test ads with an emulator. As well as receiving announcements using the instructions below.

AdRequest.Builder.addTestDevice("F3F05FA129EF5A4FEEF9DCC4F3A96936") 

If I run the application using the release build configuration, I get an error below the error logs.

 07-14 17:50:01.461 16693-16693/xx.xxxxx I/Ads: Starting ad request. 07-14 17:50:02.164 16693-16693/xx.xxxxx I/Ads: Use AdRequest.Builder.addTestDevice("F3F05FA129EF5A4FEEF9DCC4F3A96936") to get test ads on this device. 07-14 17:50:02.913 16693-16847/xx.xxxxx W/Ads: There was a problem getting an ad response. ErrorCode: 0 07-14 17:50:03.478 16693-16693/xx.xxxxx W/Ads: Failed to load ad: 0 

And if apk export with release configuration gets below error.

 07-14 18:00:19.125 23074-23074/xx.xxxxx I/Ads: Starting ad request. 07-14 18:00:19.126 23074-23074/xx.xxxxx I/Ads: Use AdRequest.Builder.addTestDevice("F3F05FA129EF5A4FEEF9DCC4F3A96936") to get test ads on this device. 07-14 18:00:19.656 29969-23211//xx.xxxxx W/Ads: Received error HTTP response code: 403 07-14 18:00:20.040 23074-23074/xx.xxxxx W/Ads: Failed to load ad: 0 

Is there a problem with admob bita account? ( https://apps.admob.com/v2/home?pli=1 )

+6
source share
3 answers

Finally, I got my answer from the Google forum.

https://groups.google.com/d/msg/google-admob-ads-sdk/dQjjRAdaPrE/Sb-fXslHBwAJ

In my case, this is because Google AdMob blocked my package name, and after changing the package name, it worked fine with me.

+2
source

For me, I did not enter payment information in AdMob accounts.

0
source

I followed the tutorial and it worked fine for me. for example, this is my application: https://play.google.com/store/apps/details?id=com.StarFalls.Break

0
source

Source: https://habr.com/ru/post/1269834/


All Articles