FAQ Database Discussion Community


AdMob ads not showing, getting Ad is not visible. Not refreshing ad

android,admob,google-play-services
I am trying to initialize AdMob ad programatically, without xml code, but I am not getting shown anything, and I am receiving these warnings in LogCat And here is how I am initializing the ad in OnCreate: AdRequest adRequest = new AdRequest.Builder().addTestDevice(AdRequest.DEVICE_ID_EMULATOR).build(); AdView adView = new AdView(this); adView.setAdSize(AdSize.BANNER); adView.setAdUnitId("some id...

Google AdMob error in iOS 7

ios,objective-c,ios7,admob
I've integrated AdMob in my iOS project but it gives me the following error. module 'GoogleMobileAds' not found I have already imported the AdMob SDK into my project and added the following import. @import GoogleMobileAds; ...

didFailToReceiveAdWithError not working for iOS 8 simulators

xcode,ios8,admob,ios-simulator,iad
My iAd/AdMob mediation works fine with all iOS 7 simulators and devices. However, iOS 8 didFailToReceiveAdWithError method doesn't work for any simulators but it works for iOS 8 devices. Problem is I don't have an iPhone 6/6+ device to test. So i'm counting on iOS 8 simulator. -(void)bannerViewDidLoadAd:(ADBannerView *)banner{ [UIView...

Unity3D 5 packages conflict

unity3d,google-play,package,admob
I have Unity 5.0.2f1. Firstly, I've successfully added GooglePlayGamesPlugin-0.9.20.unitypackage to my project. Then, I've tried to import GoogleMobileAds.unitypackage, but I got these errors: Error importing folder (The pathName assets/plugins is already mapped to fce8a713f1e5a4cc4b9973d1ef630f31. But the meta data wants it to be mapped to cbde64d36fd994c458fffca9e931b232) Error importing folder (The pathName...

android application restarts after InterstitialAd

android,admob,lifecycle
I have created a game in android and i have noticed to a friend's mobile that when you click an InterstitialAd that transfers you to the google play store and then you return to the application with the back button , the application is restarted where it should continue from...

AdMob interstitial not being shown when switching activity (Android)

android,android-intent,admob,interstitial
I am currently including AdMob into some of my apps but am facing an issue. I try to display an interstitial when changing the activity as this would be the place where it wouldn't annoy users. My initial understanding was, that displaying the Ad would put the activity into pause...

Is Pay-Per-Install (like Appbrain) pay only after user install from Play Store?

android,admob,leadbolt
I was developing some apps. Now i'm thinking to upload on Google Play for free. My app is designed for offline use. I'm not clear about that they pay per install after user install my app from anywhere or play store. Is Pay Per Install is best options for my...

Rotate iPad and AdMob to not load again, like iAds

ios,objective-c,ipad,admob,iad
I am implementing iAd and AdMob banners into my app. On the iPad I'm getting some weird issues when the device rotates, specifically with AdMob. With iAds, the banner remains on the bottom of the screen when the device rotates and doesn't reload the ad. With AdMob however, it reloads...

AdMob making my app crash in release version

android,admob
i just added AdMob to my app. Everything seem to work well when i debug or install release version of app (HTC m7). The problem occurs on CHUWI VX2 device (esky82_tb_cn_kk, Android 4.4). It is very strange because on this device my App works in debug mode but doesn't works...

Eclipse Error when inserting Admob Ad Unit ID

android,eclipse,admob
Why does eclispe think that my Ad Unit ID is an error? I haven't added a full source code, because I think that it's not needed.. If someone wants it, tell me! Here's a screenshot:

Google Admob Integration Error in iOS

ios,objective-c,xcode,admob
Google Admob Integration Error in iOS I am using GoogleMobileAdsSdkiOS-6.12.2 latest version downloaded from https://developers.google.com/mobile-ads-sdk/download. If I run on iOS 7.x, I am getting the following errors. 1) CFNetwork SSLHandshake failed (-108) 2) NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -108) If I run on iOS 8.x, I am getting Crash due...

Xcode AdMob's GAD_SIMULATOR_ID undeclared identifier error

ios,xcode,admob
I downloaded AdMob SDK iOS 7.0.0 yesterday and i followed Google AdMob's iOS guide. GADRequest *request = [GADRequest request]; request.testDevices= @[ GAD_SIMULATOR_ID, @"2077ef9a63d2b398840261c8221a0c9b"]; When I put in the above line I get an Xcode error stating 'Use of undeclared identifier 'GAD_SIMULATOR_ID' However, on iOS guide in Google's AdMob it states...

Android - admob banner crashes when setting back to visible

android,crash,admob
I'm displaying a SMART BANNER at the top of my game but only want it displayed in the frontend. Upon entering the game I call: GameMainActivity.mAdView.setVisibility (View.INVISIBLE); This works find and the game continues until the player dies. Then I call: GameMainActivity.mAdView.setVisibility (View.VISIBLE); Then it crashes. Is there more to...

Admob Banner on Top of layout

java,android,eclipse,admob,banner
I want to display banner on top of the screen, but there is a problem. In my code (this is not my code, because I`m in learning process) I have two options. To show banner under or over the screen on bottom of screen. public void showBanner(final boolean inLayout) {...

AdMob ad banner won't show if there was no connection during first load

android,admob
public class AndroidLauncher extends AndroidApplication { protected View gameView; protected AdView adView; protected RelativeLayout layout; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration(); cfg.useImmersiveMode = true; layout = new RelativeLayout(this); RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT);...

getting an ad response. ErrorCode: 0

java,android,admob
this is my first time setting up and writing an android app, and also my first time setting up an ad, I've been googling and testing for almost 2 days but I still can't seem to make the ad appear and it still gives me the error "There was a...

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

android,admob,android-manifest,google-play-services,android-permissions
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 have a solution to remove these unwanted permissions? I am only using the ads function (INTERNET and...

Admob banner change frame for different screen dimensions

objective-c,admob
I'm trying to get my Admob ad to adjust between all the different iPhone screen sizes that Apple offers, but I can't figure out how to get it to adjust automatically or by using different code. In my viewdidload bannerView_ = [[GADBannerView alloc] initWithFrame:CGRectMake(0, 430, 320, 50)]; bannerView_.adUnitID = @"";...

Android AdMob Mediation - not receiving mediated networks ads

android,admob,flurry
I am trying to set up my Android app to show ads from the mediated networks (which by the way, has no good explanation anywhere), and here is what I have done so far: 1) I have copied the publisher ID to the xml view which will show the ads,...

In CoCos2dx how to use admob and google play sevices together

admob,cocos2d-x,google-play-services
I was trying to integrate both Google pay services and Admob together in my Android game developing in Cocos2dx.But I'm getting this error Unable to execute dex: Multiple dex files define Lcom/google/ads/AdRequest$ErrorCode; Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/google/ads/AdRequest$ErrorCode; Please help me to...

Integrating iAd with AdMob displays only black screen

objective-c,admob,cocos2d-x,iad,cocos2d-x-3.0
I am facing issues while combining iAd and Admob in Cocos2d 3.0. The whole screen goes black. I have created a view controller which handles loading of iAd and Admob. Here is my code on pastie.org, I believe required steps to integrate iAd and Admob are known to users reading...

AdMob - Testing Vs. Publishing

ios,admob,ios-simulator
So I have Google's AdMob in my application, and I'm wondering about a couple of the lines of code used to display a test add when testing on the simulator or device. This is the code I use (as shown on Google Dev docs/tutorials): //log version of Google Ads used....

How to draw AdMob Banner on Canvas?

android,canvas,admob
Is it possible to somehow draw AdMob AdView Banner over the custom view on canvas? Clearly shown in this figure http://rghost.ru/8Tpt5bpFR/image.png http://rghost.ru/88lvrGVfB/image.png Draw in this place @Override protected void onDraw(Canvas holst) { super.onDraw(holst); holst.drawRect(0,0,w,h, whitekraska);//прямоугольник на весь экран holst.drawBitmap(bottom,0,h-140, kraska1); //цветной растянутый прямоугольник **DrawAdMobBanner(),x,y;** invalidate(); } ...

AdMob Network Report Guidance

admob
I've just started to use AdMob in my apps, and I am a little unsure on the different terms (such as "Requests", "Impressions", etc.) and what they mean in the Network Report. For example: Although I have found some information regarding what some of these terms mean, a complete guide...

Admob for Android TV app

admob,android-tv
Developing an application for Android TV, I have a question on the use of ads. The Android TV layout guide states that: Advertising on Android TV must always be full-screen. Ads must not appear alongside or over content. The user must be able to dismiss an advertisement with the D-pad...

Displaying AdMob and/or iAd when switching tabs using shared banners on iOS

ios,objective-c,admob,iad
I have an app with a UITabBarController containing 5 tabs, where each tab is a UIViewController with a UITableView embedded in. I am bringing iAds and AdMobs to my app which will be removed using IAP's. This is a universal iPhone and iPad app. At first, I implemented just the...

Android native extension - Could not find class 'com.google.android.gms.ads.AdView'

admob,google-play-services
Trying to make an android native extension (ane) with an AdMob banner for my AIR project. Problem is, when i run the final apk on my phone, Eclipse DDMS gives me an error: Could not find class 'com.google.android.gms.ads.AdView' referenced from method blah blah And the AdMob banner does not appear....

BannerSample from Admob doesn't work

android,eclipse,admob,banner
I try to run BannerSample from AdMob. So I imported it, add google-play-services-lib and android-support-v7-appcompat. I run it, but banner doesn't appear. What's wrong? Logcat is: 02-02 15:29:55.211: W/GooglePlayServicesUtil(1439): Google Play services is missing. 02-02 15:29:55.481: W/GooglePlayServicesUtil(1439): Google Play services is missing. 02-02 15:29:55.511: V/WebViewChromium(1439): Binding Chromium to the main...

Do ad impressions count when you are on your test device for android?

android,admob
So I am looking into my adMob account, and I see the number of impressions for ads. I have a test device that is listed as a test device in the apk. My question is does my test device ads count as impressions in adMob?

How to avoid inconvenience for users when loading an ad banner?

android,admob
I don't want to display an ad banner in first time, just load the ad on 3rd, 6th,9th times. How can i do ? If i want the ad banner automatically close after 1 minutes, how can i do ? And is there any way if the user want to...

Admob: can i use ADId created for an application in another application?

android,admob
suppose if i created one ad in one application in admob, can i use it in any other of my apps ? if its possible, lets say i have created multiple applications in admob and got respective AdIds and used all of them in one application, is there any effect...

No code needed at all for iad/AdMob mediation

ios,admob,iad
I signed up with iAd network. I signed up with AdMob account. I set iAd CPM higher than AdMob. I added AdMob SDK and an adapter comes with SDK. I also added iAd adapter. According to AdMob mediation publisher quick start page, after I add the SDK's, adapters and -ObjC...

How to add AdMob to the endscreen?

java,android,admob,surfaceview
How can I ad Admob to the GameOver Screen? I searched a lot but I didn`t found very much! My MainActivity: public class MainActivity extends Activity { private GameView gView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); gView = new GameView(this); setContentView(gView); } } and my GameView: public class GameView...

Android error on interstitial loadAd

android,admob,interstitial
I am trying to implement support for Interstitial Ads in my android app, which I'm hoping to publish soon. I am encountering two problems for which I'm hoping someone might have some insight. I have followed the most current instructions I could find from Google. Firstly, I was wondering if...

How to load interstitial after click, but before new intent?

android,android-intent,admob,interstitial
My main page has about 10 buttons and each button loads a new intent. @Override public void onClick(View v) { // TODO Auto-generated method stub if (mInterstitialAd.isLoaded()) { mInterstitialAd.show(); } switch(v.getId()) { case R.id.troop_button: gotoTroopScreen(); break; } } public void gotoTroopScreen() { Intent intent = new Intent(this, troop.class); startActivity(intent); }...

How google ads are shown on Android?

android,admob,advertising
I did some testing with ads on my device and then pushed app to the play with with production unit ID. After a while when the version was available on play I deleted the debug build from my device and installed from playstore . The code is same as what...

Libgdx. when i exit my game admob is still working

java,android,libgdx,admob
i have problem with admob. Admob is working good but when i exit my game admob is still working. What i done wrong ? Please help me. Even if i exit the game, in the logcat i see that admob is still working. AndroidLuncher.java public class AndroidLauncher extends AndroidApplication {...

Element gets pushed to the right. Why?

android,xml,admob
When my LinearLayout is coded like this: <LinearLayout ... <!-- SOME CODE HERE --> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="17"> <EditText android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/inputText" android:inputType="textCapCharacters|textMultiLine" android:hint="@string/input_text_hint" android:gravity="top|left"/> </LinearLayout> <!-- MORE CODE HERE --> </LinearLayout> My...

How to correctly Remove Ads In-App Purchase

android,in-app-purchase,admob,in-app-billing,interstitial
I successfully managed to implement the Google Billing Library in my project. I've added an in-app purchase to remove ads in the application, I tested it and the ads are removed after purchase, but when the interstitial ad should appear (it should not appear if I purchased the item), I...

Phaser JS + Phonegap and Ads - AdMob or iAd

cordova,html5-canvas,admob,phonegap-plugins,phaser-framework
I have spend the last 2 days trying to get Ad's working on my HTML5 Phaser JS game. Im using this plugin: https://github.com/floatinghotpot/cordova-admob-pro The plugin is installed as far as I can tell config.xml has the below: <feature name="AdMob"> <param name="ios-package" value="CDVAdMobPlugin" /> <param name="onload" value="true" /> </feature> When I...

Event for “onAdLeftApplicationDone”?

android,admob
New to AdMob, just implemented my first InterstitialAd and it's working fine. So if you'd look at this official documentation for "AdListener", you would see this description for "onAdLeftApplication()"-Event: public void onAdLeftApplication () Called when an ad leaves the application (e.g., to go to the browser). Now i'm wondering how...

Android AdMob get Earnings in Code?

android,admob
Is there a way to Get the Estimated Earnings from Admob in Code for Specific ad Units? Is there a way to access it anywhere from either java code or PHP, SQL? Thank you for your Time.

Admob interstitial ad delegate

ios,swift,admob,interstitial
I am trying to assign a delegate to admob interstitial ad so i can handle ad events. The GADInterstitialDelegate implementing class: class AdDelegate: NSObject, GADInterstitialDelegate { //Interstitial delegate func interstitial(ad: GADInterstitial!, didFailToReceiveAdWithError error: GADRequestError!) { println("interstitialDidFailToReceiveAdWithError:\(error.localizedDescription)") } func interstitialDidReceiveAd(ad: GADInterstitial!) { println("interstitialDidReceiveAd") } func interstitialWillDismissScreen(ad: GADInterstitial!) {...

android admob size on dimensions error: A 'type' attribute is required for

android,styles,size,admob,dimensions
I have a layout and the attribute: ads:adSize="LARGE_BANNER" I want to put it with ads:adSize="@dim... dim name" but it gives me error for example: FULL_BANNER it says something like full banner doesn't exist and it doesn't compile. I tried it now on styles but it doesn't work too: <item name="ads:adSize">LEADERBOARD</item>...

Resize/show/hide adview from another view

android,layout,resize,admob
Iam developing a simple game that it has some gamestates (paused, playing, playerlost, etc...). And iam trying show a adview(admob) like that: paused -> Show ad as banner. playerlost -> show as fullscreen. playing -> hide the ad. MainActivity: public class MainActivity extends Activity{ private tGame game; //(...) layout.addView(game); layout.addView(admob,...

Android Admob not showing in emulator it is blank

java,android,admob
I have been following the android quick start tutorial https://developers.google.com/mobile-ads-sdk/docs/admob/android/quick-start to put Admob on the emulator and it is not working what could be missing.I have essentially copied the tutorial word for word and it does not work.Also I have checked my Logcat and got this error Could not find...

Can't get iad/adMob to mediate on device

ios,admob,iad,mediator
I'm using GoogleMobileAdsSDKiOS 7.0.0. I followed Google's AdMob instructions for setting up AdMob then I followed mediation instructions. Mediation with iAd/AdMob works well on simulator but never works on device. iAd almost never fails and when it does AdMob test banner never loads. - (void)viewDidLoad { [super viewDidLoad]; self.adView =...

AdMob load ad failure

android,admob
Ok the problem is solved without doing anything. I used the following guide: https://developers.google.com/admob/android/quick-start. and it didn't work so instead,, I used .addTestDevice in onCreate(). However, ads (requesting banner) still fail to load AdView mAdView = (AdView) findViewById(R.id.adView); AdRequest adRequest = new AdRequest.Builder() .addTestDevice("The Correct Code extracted from logcat") .build();...

How to show Admob interstitial in extends Activity

java,android,eclipse,admob
I˙m learning android development, so I buy source code and I`m trying to change UI and other elements. With UI I was not having any problems but in final stage when I want to ad Admob interstitial ads I have a problem. I want to show interstitial when user click...

Admob - Not enough space to show ad wants

android,admob
I have integrated Admob which is serving DFP ads. Here is the XML code <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" xmlns:ads="http://schemas.android.com/apk/res-auto" android:id="@+id/headerAdLayout" android:paddingLeft="0dp" android:paddingRight="0dp"> <com.google.android.gms.ads.doubleclick.PublisherAdView android:id="@+id/adView"...

Android AdView leaking, probably due to some internal background thread

android,android-fragments,memory-leaks,admob
I display an AdMob ad banner within a window created by a fragment. This works, but I'm getting strange leaking problems I don't understand yet. When I open and close the app a lot of times, the ad fragment is properly destroyed every time, but the MainActivity which controls this...

AdMob error when loading interstitial in emulator

java,android,admob
When I try to load an interstitial, I get the following error: 02-25 10:24:58.198 2310-2310/template.maintemplate E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: template.maintemplate, PID: 2310 java.lang.RuntimeException: Unable to start activity ComponentInfo{template.maintemplate/template.maintemplate.sover}: java.lang.IllegalStateException: The ad unit ID must be set on InterstitialAd before loadAd is called. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298) at...

AdMob Interstitial and error isLoaded must be called on the main UI thread

java,android,admob,interstitial
After user William suggest me to change my code for showing interstitial ad to this @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); //setDebugMode(true); initialiseAccelerometer(); interstitial = new InterstitialAd(this); interstitial.setAdUnitId(getResources().getString(R.string.InterstitialAd_unit_id)); interstitial.setAdListener(new AdListener() { public void onAdClosed() { // Create another ad request. final...

ANR keyDispatchingTimedOut in AdActivity

android,admob,android-anr-dialog
I received an ANR error report in my Developer console and I could not replicate this issue. ANR keyDispatchingTimedOut in com.google.android.gms.ads.AdActivity Here is a few from the log I got in my Developer Console: DALVIK THREADS: (mutexes: tll=0 tsl=0 tscl=0 ghl=0) "main" prio=5 tid=1 NATIVE | group="main" sCount=1 dsCount=0 obj=0x419289a0...

Adding ads to an Android camera app

android,admob
I'm new to Android, and I've just finish a very simple camera Android app. I'm looking for a solution for an ad (advertising baner or something like this) in my camera app. I want the ad to be displayed when I open my app and for the user to be...

AdView shows only test banner on emulator

android,admob
I've just created an account on AdMobs, created banner for test. The code is from BannerExample, without addTestDevice(...) public class MyActivity extends ActionBarActivity { private AdView mAdView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_my); // Gets the ad view defined in layout/ad_fragment.xml with ad unit ID set in //...

Admob Interstitial Cocos2d Objective C

ios,objective-c,xcode,cocos2d-iphone,admob
i'm searching on google but i only find the way to integrate the AdMob Banner View on my app in Cocos2d. Now I need to put the full screen AdMob interstitial and i don't find the way to do it :. Please Help me, how i can do it?? I'm...

FrameLayout to Bottom (Android)

admob,framelayout
I am trying to set admob to bottom of my layout. I have FrameLayouts in a LinearLayout. But I can't move admob to bottom, it's always on top. I tried to set layout_gravity value to bottom on admob FrameLayout but it wasn't work. How can I handle this ? Thanks...

Windows Phone 8.1 XAML Ad Mediator

c#,xaml,windows-phone-8.1,admob
I'm trying to integrate AdMediator into an Windows Phone 8.1 XAML project. I installed the AdMediator extension and when i access the Ad Networks it only shows Microsoft Advertising, AdDulex,Smaato. Does this mean Admob does not work inside AdMediator, or it needs to be installed manually.

How do I setup AdMob to only display app and game advertisements

admob
How do I setup AdMob to only display app and game ads in my game? I only want app and game advertisements in my game. I think someone playing my game would rather tap or view advertisements of other games and apps because the user is obviously interested in games...

What changes are required in admob AdRequest code before publishing android app?

c#,android,unity3d,admob
I am about to publish my app I made on unity. I have integrated admob code with my app, have tested ads on my phone, and it is working fine. But I am confused if the ads will work fine for users in other countries. My question is: What changes...

Is it possible to mediate Interstitial ads using AdMob?

android,admob,interstitial
I have set up an AdMob mediation in my android app, it's working fine, but I also want AdMob to mediate interstitial ads from the other providers. I was unable to find any help or documentation on that, so I am asking here. This is the code I have for...

AdMob with no internet connection

android,admob,ads
How can I use AdMob in android without connecting to internet? Is there any way of simulating a google service on own my laptop so I can test my application even if I can not connect to internet?

Is it possible to implement Admob in my app using Adobe Flash?

android,actionscript-3,admob,flash-cs5
I've made a working app to export for Android but I'm clueless about how to monetize it. Is it possible to implement Admob in my app? If so, could anyone tell me how or point me to the right direction if there is any tutorial out there about this topic....

How to reduce AdMob Air Native Extension file size (.ane)?

android,air,admob
I have managed to include an AdMob banner to my Android AIR mobile application through an android native extension (.ane) which i coded myself. Problem is, my .ane file size is 5.19 MB. Which is too big, considering my app is ~700 kb and i also have to embed an...

Admob pushes all content down (including window)!

android,admob,leadbolt
I belive I have the most unique and weirdest problem of all. So to keep it simple I have made the most simple layout in the world: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:background="#4d9345" android:layout_height="match_parent" > <com.google.android.gms.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content"...

AdMob mediating MoPub - errors and not loading ads

android,admob,mopub
I am trying to show MoPub ads through mediation with AdMob. I have integrated the needed Manifest entries, and added the MoPub SDK and adapter jars. I am seting up the mediation like this: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); MillennialAdapterExtras millenialExtras = new MillennialAdapterExtras(); InMobiAdapterExtras inmobiExtras =...

Troubles with AdMob Android - ErrorCode: 0

android,admob
I'm having issues with AdMob on an Android app. I do all steps in Android developer guide, but when I click on the activity no ad is shown. That's the code I implemented: In AndroidManifest.xml <!-- Include required permissions for Google Mobile Ads to run--> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> .......

How to request new banner ad in AdMob Pro?

angularjs,cordova,admob,ionic,cordova-plugins
I have an Angular Ionic mobile app. I recently switched from the old AdMob cordova plugin (https://github.com/floatinghotpot/cordova-plugin-admob) to the AdMob Pro plugin (https://github.com/floatinghotpot/cordova-admob-pro). I have most everything working, but I can't figure out how to request a new ad. The old plugin had a function requestAd that would get a...

There was a getting an ad response Admob Error

java,android,admob
I want to update one source code from old GoogleAds SDK to new Google Play Service Library, but there is a problem. Everytime I got this error: There was a problem getting an ad response. ErrorCode: 0 Failed to load ad:0 This is code from playactivty: public String BANNER_AD_UNIT_ID; AdRequest...

Cordova compiling fails with admob - missing com.google.android.gms:play-services-ads:+

android,cordova,admob
After a problem integrating admob into my cordova application, I've decided to follow the example layed out here: https://github.com/floatinghotpot/cordova-admob-pro As I work with a windows 7, I've made the required changes, but it looks something like this: C:\> cordova create test1 com.rjfun.test1 Test1 Creating a new cordova project. C:\>cd test1...

how to add android application to Addmob

android,admob
Firstly i have read all these links: google developper, tutorial-1,google developper-2,tutorial-2 I did following:GpsMapActivity(banner admob should be here)(I dont show whole code here) public class GpsMapActivity extends android.support.v4.app.FragmentActivity implements OnMarkerClickListener, LocationListener,OnMapClickListener { protected void onCreate(Bundle savedInstanceState) { Tracker t = ((GoogleAnalyticsApp) getApplication()).getTracker(TrackerName.APP_TRACKER); t.setScreenName("Home"); t.send(new...

How to call admob interstitial ad using swift, spritekit and xcode?

ios,xcode,swift,admob,interstitial
I've been looking all over for an answer to this and I've found lots of examples in objective C (google developer docs, etc.) and some answers in swift, but not using spritekit, and being a novice, I just haven't been able to bridge the gaps in these tutorials to put...

GADInterstitial presentFromRootViewController causes current View Controller to close

ios,uiviewcontroller,admob,interstitial
I'm attempting to show a GADInterstitial ad when a user of my app clicks a certain button to go to a certain ViewController. In the new ViewController's viewDidLoad method I check to see if the GADInterstitial ad is ready, and if it is I attempt to present it. The problem...

Test AdMob ads in Android

android,admob
So I'm new to using AdMob and had a question on how to correctly use/implement it. Google tells me to use test ads while developing (if I use real ads it is a violation of their policy), how do I have test ads in development and then real ads in...

When to call Interstitial Ad?

android,admob,interstitial
I am very confused on what event i should trigger the Interstitial Ad, or what is the best event to launch Interstitial Ad. I tried the following: onStart() onDestroy() onStop() onResume() Please help...

Display ads without leaving app

ios,design,admob,ads
I'm looking at some ad SDKs and it's difficult for me to find a way to present them without leaving the app. I've tried a handful of them but lets say AdMob for purpose of answering this question. Is there a way to present AdMob ads in an in-app browser...

What do I need to add to handle AdMob/iAd mediation properly

ios,admob,iad
I did the following: 1) Added iAd.framework into iOS project. i imported iAd/iAd.h and .m into project. 2) I opened AdMob account. In mediation i made iAd cpm higher than AdMob cpm. 3) Downloaded the AdMob SDK iOS 7.0 SDK into project and it comes with AdMob adapter. Imported GoogleMobileAds...

How does AdMob detect developer click?

android,ios,admob,ads
In the policies of AdMob, it is stated that - Publishers may not click their own ads or use any means to inflate impressions and/or clicks artificially, including manual methods. Testing your own ads by clicking on them is not allowed. But how does AdMob detects if developer clicks his...

xcode swift admob not showing live ads on simulator

ios,swift,admob,ios-simulator,ads
I have implemented AdMob before on Android apps and unless I specified a test ad the Android Simulator would show up live ads. @IBOutlet weak var bannerView: GADBannerView! //Display Ads self.bannerView.adUnitID = "mypubid" self.bannerView.rootViewController = self var request: GADRequest = GADRequest() self.bannerView.loadRequest(request) I dont use any .test devices GAD_SIMULATOR, so...

Add Delay Time Admob Interstitial on Gameover

c#,unity3d,admob,timedelay
I am new in C#, anyone can help me solving this. I am creating game in Unity and have integrated admob (interstitial) in Gameover state. Now it works well, however it looks much annoying for showing insterstitial ads everytime user reach the gameover screen. So here I think it's good...

how to implement ads on 2 view controllers

singleton,admob,viewcontroller,banner,didfailwitherror
I want the iAd/AdMob mediation banner to NOT be affected by what ViewController I'm in. Currently. When I change View Controllers didFailToReceiveAdWithError is called and the AdMob banner in that method appears when I change ViewControllers. I use 2 ViewControllers for my entire app, so is there a way to...

Admob slows down my game - LIBGDX

android,libgdx,admob
I have my game perfectly optimized. Doesn't go bellow 61-60 FPS. When I finish the level or the user dies the pause/restart dialog appears (Scene2D). The problem is that I still have moving sprites in the background and it would make the game look not so good if I would...

Picking Ad Mob Mediation Networks 2015

optimization,admob
Looking to setup network mediation on AdMob. There are a lot of networks on the list - so I'm looking for some sort of comparison of the networks or recommendations on setting up mediation such as: how many networks to use etc... I plan to utilize simple 320x50 ad banner...

Can two different developers use the same Admob Ad ID?

android,admob
I am building an android app for a friend and in return he told me I can have my ads displayed to earn a little bit a money. My question is...can I use my google admob ad ID in another developer account (friend for instance)? Or does my google admob...

How set not Ad walls Interstitial ads?

android,admob,adsense,interstitial
I want make app for children in Designed for Families category of Google Play. According to this: https://support.google.com/googleplay/android-developer/answer/6184502 there are two rules: Ad walls must not be used Interstitial ads must not display immediately upon app launch Would you please explain how make Interstitial ads not full full screen (not...

Is AdView in Android contain a WebView inside it ?

android,webview,admob,adview
I have been working on implementing my own AdView custom view that does similar functionality to Google's AdView. I looked at the inheritance tree of AdView it seems that it inherits from ViewGroup and then from View. Does anyone know if AdView contains a Webview that displays HTML based ads...

How I fix a “GADInsterstitial.h” file not found… but it is in my list?

ios,xcode,admob
I am having trouble installing a Interstitial ad into my Xcode project. I have download Google Ad Mob 7.0.0 and have continued with the instructions to implement an interstitial ad. link When I go to #import "GADInterstitial.h" I am getting an error that the file not found. However, as seen...

How to put Admob banner for iOS on bottom centre?

ios,objective-c,admob
I am using this code to put the banner ads on bottom left. CGPoint origin = CGPointMake(0.0, self.view.frame.size.height - CGSizeFromGADAdSize(kGADAdSizeBanner).height); bannerView_ = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner origin:origin]; How to position the banner at bottom center?...

How to load admob ads into a unity 5 project?

c#,ios,unity3d,admob
Basically I'm trying to load a banner ad into my Unity 5 project and export to iOS. Here is the code i'm calling inside of unity which is attached to a game object: using UnityEngine; using System.Collections; using GoogleMobileAds.Api; using System; public class AdController : MonoBehaviour { InterstitialAd interstitial; BannerView...

AdMob in my amazon app

android,admob,amazon
I want to implement admob in my amazon app but when I go to create a banner on AdMob it only gives me the options to create a banner for android, ios & windows 8 so I was wondering which one should I pick since it will be going on...

AdMob Ads not correctly showing in Android SDL app

android,opengl-es,jni,admob,sdl
I encountered a problem when implementing AdMob advertising in my app. I'm using SDL and native code. Ad is created in onCreate method like this: @Override protected void onCreate(Bundle savedInstanceState) { Log.v("SDL", "onCreate():" + mSingleton); super.onCreate(savedInstanceState); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); SDLActivity.initialize(); mSingleton = this; mSurface = new SDLSurface(getApplication()); mLayout = new RelativeLayout(this); adView...

Admob - no test ad fill from ad server after stress testing with monkey

android,admob,stress-testing,monkey
I was testing my android app using monkey and there might have been thousands of successive ad-requests while the test was on. The test went fine. Now, I no more get any fill for test ads. Logcat reads: No fill from ad sever. Failed to load ad: 3 Neither my...

Pause Admob Interstitial on certain iOS activity

ios,admob,interstitial
I am displaying a full screen interstitial ad, after a delay of 3 secs, on the home screen of my iOS app. However sometimes I take the user to screen B from the home screen. The interstitial which was loaded on the home screen is displayed on this screen B....

Why does not executing the following code cause it to crash?

ios,objective-c,admob
I have an app that uses Admob. But since I am supporting versions of iOS 5 and above, I make sure that I don't call Admob code in versions below iOS 6 by doing the following: if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_5_1) { int j = 2; j++; //This is just some...

admob not running in game loop

java,android,admob,surfaceview
ok im making a small game sort of like flappy bird in the sence that the start page, main game and game over screen are all in my main gameloop i switch the images being drawn on the canvas by changing a veriable called gameState ie: gameState == 0 (start...

GADBannerView does not set height

ios,objective-c,admob
Does anybody know how to show 50pt-height GADBannerView programmatically? In my viewDidLoad, int heightOfBanner = 50; GADBannerView *banner = [[GADBannerView alloc] initWithAdSize:GADAdSizeFullWidthPortraitWithHeight(heightOfBanner) origin:CGPointMake(0, CGSizeFromGADAdSize(kGADAdSizeBanner).height)]; banner.adUnitID = @"ca-app-pub-xxxxxxxxxxxxxxxxxxxxxxxxxxx"; banner.rootViewController = self; [self.view addSubview:banner]; [banner loadRequest:[GADRequest request]]; Above code does't show anything. But when heightOfBanner set to be higher...

Admob Interstitial ad not linking to app store when clicked

javascript,ios,cordova,admob,interstitial
I have an app developed for iOS using Phonegap cordova and Admob (via javascript) integrated into it. Both the banner and interstitial ads display well, banner ads links to the app store when clicked but all Interstitial ad displayed does not link to the app store. Sometimes it just hangs...

AdRequest Builder cannot be resolved to a type

android,admob
I finished developing a game for Android using a slightly modified version of the framework at http://www.kilobolt.com/unit-4-android-game-development.html. Then I followed this tutorial:https://developers.google.com/mobile-ads-sdk/docs/admob/android/quick-start and successfully added an ad but not on my main activity as this framework does not have a .xml file for the main activity (surface view in pure...

How to change the frequency of interstitial ads

android,admob,ads,interstitial
Currently, my home page has 10 buttons and each button has an interstitial attached. if (mInterstitialAd.isLoaded()) { mInterstitialAd.show(); } else { Intent intent = new Intent(this, magic.class); startActivity(intent); } Loading an interstitial for each new intent is a little bit overboard though. How can I manipulate the interstitials to load...