Questions tagged [admob]

AdMob is a mobile advertising company owned by Google. This tag should be used for questions relating to the use of the AdMob SDK and incorporation of AdMob services into your code. Stack Overflow is not a site for discussion of features or usage of the AdMob service.

AdMob is a mobile advertising company owned by Google which lets developers monetize their applications by "renting" screen real-estate to display ads.

Available on Android (as part of Google Play services or stand-alone SDK) and iOS.

Further reading:

10017 questions
40
votes
2 answers

AdMob Earnings - How are they calculated

How are AdMob Earnings calculated? Is it dependent on the number of clicks alone? Or is it dependent on the ads that are shown? Or a combination of both? One day I have 11 clicks that earned me $0.12 and the next day I have 14 clicks that earned me…
Vamsi Challa
  • 11,038
  • 31
  • 99
  • 149
38
votes
10 answers

Google play services 5.0.77

From the 25th of june two unrelated apps that are using ads started to have this NPE java.lang.NullPointerException at zo.a(SourceFile:172) at aeh.a(SourceFile:120) at afw.run(SourceFile:14) at afy.run(SourceFile:30) at…
Luigi Agosti
  • 925
  • 10
  • 19
37
votes
9 answers

Cordova does not create AndroidManifest.xml

I am working in Cordova and AndroidStudio to create Android/iOS apps. Everything was working fine until I updated my Cordova to 8 yesterday. I also updated Node to the latest. When I create a Cordova project and add the Android platform. It yields a…
Kamran
  • 591
  • 1
  • 5
  • 9
37
votes
20 answers

Admob bannerView Request Error: No ad to show

I'm having this issue on one of my ads for an ios game Here is my code, the odd thing is that if I add the device on the request.testDevices list it displays the demo banner, if I remove from testDevices, it does not show a real banner, but if I…
Gil Beyruth
  • 598
  • 1
  • 6
  • 11
37
votes
20 answers

Module 'GoogleMobileAds' not found in iOS

I updated Google AdMob SDK to 7.1.0 using Pods. So in my appDelegate.m, I am trying to add this line @import GoogleMobileAds; But I get error saying Module 'GoogleMobileAds' not found. This issue is also present in Interstial Ad example by google…
Ranjit
  • 4,576
  • 11
  • 62
  • 121
36
votes
18 answers

Admob No fill from ad server - failed to load ad: 3

My issue is that ads are not being displayed at all in my app, test mode or not. I am going to keep this question specific to test mode, and once I get that working I will worry about live ads. Development Information I am using Eclipse for…
Vhycko Mayaut
  • 361
  • 1
  • 3
  • 5
36
votes
1 answer

Difference between AdMob and DFP networks?

I am trying to display banner as well as Interstitial ads on my iOS application. But now I am confused on ad networks. How the AdMob is different from DFP and which one is better to serve ads. Can anybody give some help ? Thanks in advance.
christijk
  • 1,753
  • 18
  • 26
35
votes
11 answers

ClassNotFoundException: Didn't find class on path: DexPathList

I have a problem since I updated my App on playstore. Since this update, the exception is thrown, but I haven´t changed anything related to this exception. Stacktrace: java.lang.RuntimeException: Unable to instantiate activity…
Opiatefuchs
  • 9,800
  • 2
  • 36
  • 49
33
votes
4 answers

After updating Google Ads SDK addTestDevice is deprecated, How to resolve?

After updating Google Ads SDK to 19.0.0 gives a deprecated warning message for addTestDevice(), while I searched this link for resolving the issue but not succeed. how can I resolve it? Here my code mAdView.loadAd(new RequestConfiguration.Builder …
Attaullah
  • 3,856
  • 3
  • 48
  • 63
31
votes
2 answers

Why are permissions being automatically added to my AndroidManifest when including Google Play Services library

I noticed that the following permissions were automatically added when i use the following in my build.gradle file compile 'com.google.android.gms:play-services:7.5.0' This did not occur with the earlier versions of the play-services. does anyone…
30
votes
8 answers

Is there any AdMob dummy id?

Is there any AdMob dummy ids for testing purpose? Do I need to register app & get MY_AD_UNIT_ID?
Rushikesh Talokar
  • 1,515
  • 4
  • 16
  • 32
29
votes
3 answers

Admob Memory Leak - avoiding by using empty activity

Our app is getting hit pretty hard by a memory leak. I've found that the root cause is the AdMob AdView keeping references to old activities. The problem is pretty well documented in question Android AdMob causes memory leak? and the sublinks in…
ravishi
  • 3,349
  • 5
  • 31
  • 40
29
votes
2 answers

MobileAds.initialize(Context, String) is deprecated

Before it looked like this (passing R.string.admob_application_id): MobileAds.initialize(this, getString(R.string.admob_application_id)); MobileAds method .initialize(Context context, String applicationCode) now reads: This method is deprecated.…
Martin Zeitler
  • 1
  • 19
  • 155
  • 216
29
votes
4 answers

iOS app from AdMob error = com.google.DummyAdapter?

Cannot find an ad network adapter with the name(s): ( "com.google.DummyAdapter" ). Remember to link all required ad network adapters and SDKs, and set -ObjC in the 'Other Linker Flags' setting of your build target. In my AdMob.com…
joey gusto
  • 417
  • 6
  • 9
28
votes
2 answers

AdMob can't display ads because of configChanges

Possible Duplicate: Admob Error in Eclipse for android:configChanges I want to display AdMob's ads in my android application. I do all the necessary like in the doc. But I can't run my app because there is an error on my AndroidManifest.xml on…
guillaume
  • 1,638
  • 5
  • 24
  • 43