Ads not working on real device

Ads not working on real device
0.0 0

#1

Hi, i have a problem. My ads are showing fine in android virtual device but when i run on real device the ads are not being shown. I get this logcat output when the app is trying to show ads.

04-06 22:04:17.525  1414  1414 D DynamitePackage: Instantiating 
com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
04-06 22:04:17.528  1414  1414 I Ads     : Starting ad request.
04-06 22:04:17.529  1414  1414 I Ads     : Use 
AdRequest.Builder.addTestDevice("7B38BE3EA3F9CC538872CC303D7432D6") to get test ads on this 
device.
04-06 22:04:17.561  1414  1454 D AdMob   : ad gameover is available ?false
04-06 22:04:17.568  1414  1414 D DynamitePackage: Instantiating 
com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
04-06 22:04:17.570  1414  1414 I Ads     : Starting ad request.
04-06 22:04:17.570  1414  1414 I Ads     : Use 
AdRequest.Builder.addTestDevice("7B38BE3EA3F9CC538872CC303D7432D6") to get test ads on this 
device.
04-06 22:04:17.595  1414  1414 D AdMob   : ad home is available ?false

#2

This means you have to turn on testing ADs for your app. Make sure to add test:true to your config file, and don’t forgot to remove it before release your game.


#3

Thank you for answering, but it still doesn’t work. Now the logcat ouput looks like this:

`04-07 21:14:51.844 7821 16057 E Ads : Failed to connect to https://googleads.g.doubleclick.net/pagead/drt/m. No DSID retrieved.
04-07 21:14:54.879 14828 14893 W Ads : There was a problem getting an ad response. ErrorCode: 0
04-07 21:14:54.885 14828 14828 W Ads : Failed to load ad: 0
04-07 21:14:54.885 14828 14828 D AdMob : Interstitial onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR
04-07 21:14:54.922 7821 7821 W cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 7821
04-07 21:14:55.789 310 388 I ThermalEngine: Sensor:batt_therm:30400 mC
04-07 21:14:55.833 310 389 I ThermalEngine: Sensor:chg_therm:31000 mC
04-07 21:14:59.344 14828 14828 W Ads : Timed out waiting for ad response.
04-07 21:14:59.344 14828 14828 I Ads : Scheduling ad refresh 60000 milliseconds from now.
04-07 21:14:59.345 14828 14828 W Ads : Failed to load ad: 2
04-07 21:14:59.878 14828 14840 W Ads : There was a problem getting an ad response. ErrorCode: 0
04-07 21:14:59.885 14828 14828 W Ads : Failed to load ad: 0
04-07 21:14:59.887 14828 14828 D AdMob : onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR

my emulator is x86 and my phone is arm,rooted, running on lineage os, but i have never installed any adblocking software.


#4

It says failed to connect to admob server maybe double check the ad unit id, also make sure you can connect to the above address


#5

Thank you, it still doesn’t work on my rooted, lineage os phone, but when i tried it on my friend phone it work’s fine. I think the issue is with root, or lineage os.


#6

you can try and try again. maybe it’s network issue.