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
23
votes
2 answers

What is causing Google AdMob to leak ServiceConnection?

I am using AdMob in a fragment. Sometimes I see the following stack 10-23 14:27:38.916: E/ActivityThread(21250): Activity com.applegrew.app.skywifiremote.MainActivity has leaked ServiceConnection com.google.android.gms.common.b@420e82e8 that was…
AppleGrew
  • 9,302
  • 24
  • 80
  • 124
23
votes
7 answers

Undefined symbols for architecture when add adMob

I'm adding admob to my project, but I get this error: Undefined symbols for architecture i386: "_OBJC_CLASS_$_EKEvent", referenced from: objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) "_OBJC_CLASS_$_EKEventEditViewController",…
user3745888
  • 6,143
  • 15
  • 48
  • 97
23
votes
18 answers

Required XML attribute "adSize" was missing

I get a "Required XML attribute "adSize" was missing" when I launch my app. This is written on the screen of my smartphone instead of my banner. I tried the different solutions founded on stack (like…
Glork
  • 337
  • 1
  • 2
  • 8
23
votes
2 answers

How to create an admob banner programmatically?

How can i create an admob smart banner with code? my layout is completely build with code.
Sujith S Manjavana
  • 1,417
  • 6
  • 33
  • 60
22
votes
2 answers

Google GPDR Consent. AdMob Error: IAB TCF v2.0 errors detected We've detected an issue on your IAB TC string on one or more of your sites or apps

After implementing google UMP SDK to get consent for EU users I faced following error on AdMob (iOS and Android apps): IAB TCF v2.0 errors detected We've detected an issue on your IAB TC string on one or more of your sites or apps. These errors may…
Sergey Pekar
  • 8,555
  • 7
  • 47
  • 54
22
votes
5 answers

Google Ads MediaView not correctly resizing height to wrap_content when displaying image

I got an email from AdMob today saying: Change to native ads policy: Native ads will require MediaView to render the video or main image asset. In an effort to help you deliver a better ad experience more easily, beginning October 29th, native…
Sarah
  • 221
  • 2
  • 9
22
votes
3 answers

Who do I pick as my Admob ad technology providers

In compliance of the GDPR, Google says that I must 'Select ad technology providers' and get users' consent. But the Google-rendered consent form is not supported if any of the publisher IDs use the commonly used set of ad technology providers. This…
Usman
  • 2,331
  • 2
  • 21
  • 29
22
votes
1 answer

Windows Phone Silverlight 8.1 app - NoFill answer from admob

I have a huge problem with loading ads from AdMob on my Lumia 730. Currently, I have 4 different ads in my app (which is SILVERLIGHT 8.1, NOT 8.0, and not 8.1 WP) and unfortunately, I always get the same error from each page on which particular ad…
CPS86
  • 320
  • 1
  • 7
22
votes
2 answers

Android AdMob memory usage

I'm confused about how much memory AdMob SDK seem to be using, and where this memory is actually located. Let me explain. I've got two flavors of my app: Free and Paid. Free version has AdMob ads, otherwise the code is almost the same (common…
gpo
  • 3,388
  • 3
  • 31
  • 53
21
votes
2 answers

Strict Secure Cookie policy error in AdMob after updating to Android 11

After updating my app to compile with API level 30 (Android R, 11), I can't see AdMob test ads, and I'm receiving this error in the log: Strict Secure Cookie policy does not allow setting a secure cookie for http://googleads.g.doubleclick.net/ for…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
21
votes
1 answer

Showing Native Ads inside WebView content in Android?

I want to know how to show Native ad inside webview Content at random position everytime. Suppose i am loading static html page in webview. Is it possible to show native inside webview html page at random position when user reading the content of…
Jagjit Singh
  • 1,909
  • 1
  • 14
  • 19
21
votes
13 answers

Admob ad will not load. Error 2. It worked before but suddenly stopped

Here is the entire class that I am trying to load a banner ad into (createAd() method does the work) public class HomeActivity extends Activity { private HomeView homeView; private ImageView playButton; @Override protected void…
Chuck Onwuzuruike
  • 344
  • 1
  • 4
  • 12
21
votes
2 answers

Use of undeclared identifier: ASIdentifierManager

I am using the following code to show the unique identifier to be used for admob test apps. This is with my applicationDidFinishLaunching... // Print IDFA (from AdSupport Framework) for iOS 6 and UDID for iOS < 6. if…
StuartM
  • 6,743
  • 18
  • 84
  • 160
21
votes
7 answers

Error inflating class com.google.ads.AdView

Hello I am new to android dev and admob. I am trying to make a simple test app with a button, a couple pages and admob at the bottom. Everything works fine until I try implementing admob. Here is my code: HelloAndroid.java: package…
classyhobo
  • 245
  • 1
  • 2
  • 5
19
votes
3 answers

android get device ID for adMob

Possible Duplicate: How can I get device ID for Admob I am testing adMob on my android device and following with documentation, I am trying to get device ID executing adRequest. However, I am not able to find device ID in the logCat! What I am…
Jaume
  • 3,672
  • 19
  • 60
  • 119