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
55
votes
4 answers

Should I use different AdMob Ad Units ID in different Activities?

Should I use the same Ad Unit ID for all the ads in my app or should I get one ID per Activity?
user1903
  • 790
  • 1
  • 6
  • 10
54
votes
17 answers

Admob ads not loading - Failed to load ad: 0

I am trying to load Admob Native ads. Previously (before app was updated) ads used to show but now they are not showing. I have posted the code, xml and the Logcat below. Code NativeExpressAdView adView = (NativeExpressAdView)…
akkk
  • 1,457
  • 4
  • 23
  • 41
52
votes
5 answers

java.util.ConcurrentModificationException in activity onCreate

In a recent release where I added MoPub via Admob ad mediation I am seeing a bunch of ConcurrentModificationException in crash logs. It all seems to be native code and I am on the latest version of all ad related and google/android related…
mburst
  • 531
  • 4
  • 7
52
votes
9 answers

Ad Size and Ad unit id must be set before loadAd is called

I have this in my main xml file:
zbz.lvlv
  • 3,597
  • 6
  • 34
  • 38
51
votes
4 answers

AdMob crashes with [GADObjectPrivate changeState:]: unrecognized selector

I have installed the AdMob SDK 6.2.0 (Xcode 4.5 (4G182) and I am testing on an iPhone 4S and the simulator). I followed the tutorial and just want to get AdMob showing a banner once. But it crashes on the last line: self.bannerView = [[GADBannerView…
david
  • 3,553
  • 4
  • 28
  • 39
49
votes
3 answers

Firebase causes issue "Missing Push Notification Entitlement" after delivery to itunes connect

As you may be aware, Google starts to use Firebase as analytics so I want to use it in my current project. I succesfully finished the implementation and upload project to iTunes Connect. But I got mail below. I do not want to use push notificaiton…
batgun
  • 1,001
  • 1
  • 9
  • 16
49
votes
6 answers

Embedding ads within Recyclerview

I am trying to upgrade my app from listview to recyclerview. When I was using listview I had embedded ads within the listview using this tutorial. I am not able to add it within recyclerview similarly. Any views on how this is to be done in a…
Psypher
  • 10,717
  • 12
  • 59
  • 83
48
votes
12 answers

"No Ad Config." on onAdFailedToLoad() Method While trying to Load Ads

I am trying to load interstitial advertisements for my app. Whenever I try to load these ads I get a Error saying "No Ads Config" from Domain "com.google.android.gms.ads". Here is the code: My AndroidManifest.xml
Ayush
  • 1,226
  • 1
  • 8
  • 18
48
votes
7 answers

The ad size and ad unit ID must be set before loadAd when set programmatically

I have no idea what is going on here but I am trying to set my ad unit ID dynamically through code like below and removing it from the XML but still get the error: The ad size and ad unit ID must be set before loadAd is called.
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
46
votes
4 answers

Create a Custom AdMob Plugin for Phonegap Build (for iOS and Android)

Everything in my Phonegap Build app is working, including the Analytics and FacebookConnect plugins. However, now I would like to add AdMob ads. Phonegap Build does not provide a built-in plugin for AdMob, but according to the Phonegap Build Plugins…
Mark Rummel
  • 2,920
  • 10
  • 37
  • 52
43
votes
9 answers

Correctly disable AdMob ads

I am integrating AdMob into my app and I wonder how to disable Ads correctly. I want to give the user the ability to disable them. I don't want to get any problems with AdMob because of wrong impressions. Is this way correct or should I consider…
Mark
  • 7,507
  • 12
  • 52
  • 88
43
votes
3 answers

Difference between Admob Ads and Firebase Ads

I'm trying to migrate from Google analytics to the new Firebase analytics but I noticed there are libraries for ads too. Are firebase ads going to replace admob ads as well? Should I keep using admob via google play services? Or make a switch to the…
ThanosFisherman
  • 5,626
  • 12
  • 38
  • 63
41
votes
2 answers

How to request non-personalized AdMob ads with the new Unified Messaging Platform SDK for Android

I am currently using Google's (deprecated) consent-library to request consent for personalized ads from European users. The documentation specifies that if a user's consent status is already set to PERSONALIZED or NON_PERSONALIZED, you can forward…
Bastiaan van den Berg
  • 1,585
  • 1
  • 14
  • 20
41
votes
8 answers

How to remove or delete Android app from Admob?

I am new to advertising in Android. I have linked my admob app to a random app on play store. Now i want to remove that app so i was wondering. Is there a way to remove it from my Ad Mob account. Cause its not actually my app so i don't want to see…
Sheraz Ahmad Khilji
  • 8,300
  • 9
  • 52
  • 84
41
votes
3 answers

Keep getting error messages when compiling newest version of admob on IOS6 SDK

I've downloaded the newest version of googles admob sdk. But now I keep getting the following error when compiling in xcode 4.5 with the latest sdk. Undefined symbols for architecture i386: "_OBJC_CLASS_$_ASIdentifierManager", referenced from: …
Øystein
  • 1,163
  • 1
  • 12
  • 23