Android Question AdMob's not showing on phone

Feten7

Member
Licensed User
Hi to all,

I've spent several days reading the existing posts about AdMob, other webs (http://ofimatica-programacion.blogspot.com.es/2014/05/basic4android-11-monetizar-aplicacion.html) and praying Manitu and all the gods of any antique civilization but i can't get AdMob working.

Thanks to all that information i've got to the point where, on emulator, i can see:
Nice job! You're displaying a 320 test ad from AdMob
But, when i install it on my phone in order to see its behaviour on a real one, nothing is displayed.

Only banners show this way, interstitial is missing in both devices.

Logs in emulator

** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **receivedreceived
failed: 2failed: 2
received
received
failed: 2
failed: 2

Although i don't give it much importance because of the received ones.

I don't know what can be the problem, maybe it's internet access, if the phone doesn't allow the app to get to internet, no ad can be shown, but this is weird because i've given it access in Manifest file.

AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="14"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)

Can anyone help me? Thanks in advance.
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Feten7

Member
Licensed User
Thanks! I've removed the two lines i had added and put these two instead, so my Manifest is now:

AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
AddPermission(android.permission.INTERNET) ' Allows applications to open network sockets.
AddPermission(android.permission.ACCESS_NETWORK_STATE) ' Allows applications to access information about networks.
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")

'AdMob
AddApplicationText(
<meta-data android:name="com.google.android.gms.version"
android:value="@Integer/google_play_services_version"/>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>

)
'End of AdMob
'End of default text.

but there's no difference. Ads are not shown. Maybe it wasn't the internet access. Any other thing i can check?
 
Last edited:
Upvote 0

sorex

Expert
Licensed User
Longtime User
sometimes it doesn't display anything because it can't find one that suits you based on your location, whatever.

after a while or a few restarts it should display something tho.

if you have no internet access it will tell that in the logs and not just an error number.
 
Upvote 0
Top