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

Can I use AdMob in android apps published on Amazon Appstore?

Can I use AdMob ads in my apps on Amazon Appstore? If not, what ad networks can I use?
dop2000
  • 577
  • 1
  • 7
  • 17
27
votes
6 answers

com.admob.android.ads.AdView unbound prefix?

I tried to include admob to an Android app in Eclipse. But I get an error in the layout.xml. Eclipse tells me that com.admot.android.ads.AdView is an unbound prefix. I have the admob library included in the build path, following the pdf instruction.…
Rene
  • 3,746
  • 9
  • 29
  • 33
26
votes
3 answers

Exception during screen rotation: Parcel: Class not found when unmarshalling: androidx.fragment.app.FragmentManagerState

This exception appears when screen rotate, during the call to: onCreate() and its super method: super.onCreate(savedInstanceState); It seems to be related or the same as this thread : Why is there ClassNotFoundException when i change screen…
Cyrille
  • 329
  • 3
  • 11
26
votes
1 answer

AdMob revenue and alternatives : Impression vs Clicks

I actually use AdMob for my Android apps. For the moment I have zero revenue even if I'm approaching 1000 impressions. So I conclude that AdMob is based on CPC (cost per Click) system (because I have indeed no click). Is it always the case ? Or…
Jecimi
  • 4,113
  • 7
  • 31
  • 40
25
votes
5 answers

How to know if AdMob ad has been loaded

My Andorid app works offline and online. It displays ads when it is in online mode. In a scenario where it is working in offline mode and user switches the internet connectivity on, I want to know if the ad is already loaded. If not, then I would…
Balkrishna Rawool
  • 1,865
  • 3
  • 21
  • 35
25
votes
7 answers

Android Admob advert in PreferenceActivity

Is there a way to add an admob advert to a PreferenceActivity? How to?
lacas
  • 13,928
  • 30
  • 109
  • 183
25
votes
7 answers

Admob interstitial ad won't display

I used to display AdMob banner on my future apps, and I'd like to give a try to the interstitial ads. I checked the AdMob SDK for implementation, and I copied their example source because it was exactly what I want (i.e. the interstitial shown when…
user2661663
  • 277
  • 1
  • 3
  • 6
25
votes
5 answers

Namespace 'ads' not bound

I am trying to add admob to my android app in android studio. I almost there but am getting the error of: Namespace 'ads' not bound Here is also my xml with the ad:
Mike
  • 6,751
  • 23
  • 75
  • 132
24
votes
4 answers

The Google Mobile Ads SDK was initialized without AppMeasurement

I'm not very experienced in the IOS development. This is my first try to implement Google AdMob to my application, and I get this error when I try to run the simulator: Terminating app due to uncaught exception 'GADInvalidInitializationException',…
Rut
  • 245
  • 2
  • 7
24
votes
1 answer

Obtaining Consent with the User Messaging Platform Android

I'm trying to implement UE consent that lets the user select if he wants personalized ads in Android, using Admob. I'm doing this with "Funding choices", with the user messaging platform. I followed this quick start…
takluiper
  • 679
  • 2
  • 8
  • 24
24
votes
4 answers

ADMOB Memory Leaking?

I'm using Swift language for ADMOB whenever new advertisement comes up, my Memory is increasing. I think there is a Leaking. Without ADMOB everything else is fine. var inter: GADInterstitial override func viewWillAppear(animated: Bool) { inter…
24
votes
3 answers

Admob interstitial with audio

I hope someone can give information about this. I display interstitial ads with Admob. Some of them have music or sounds and my users get terrible annoyed because of this. So, does anyone know if there is a way to block ads with music or sound? Is…
Ton
  • 9,235
  • 15
  • 59
  • 103
23
votes
5 answers

How to implement UMP SDK correctly for eu consent?

I have lots of confusion regarding the implementation of the UMP SDK. I have not found much information or a complete tutorial other than google. I am following this and this but unable to understand bellow issues: Is it required to call…
23
votes
9 answers

Android AdMob causes memory leak?

I've integrated AdMob v4.1.0 into my application and it seems to have caused a huge memory leak (pretty sure that it already happened on 4.0.4). In order to isolate the problem I created a new project with a blank linear layout and added the AdView…
Muzikant
  • 8,070
  • 5
  • 54
  • 88
23
votes
12 answers

Ads SDK was initialized without an application ID

Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized without an application ID. Google AdMob publishers, follow instructions here:…
Ali Raza
  • 1,183
  • 1
  • 10
  • 15