Reputation: 1102
No code listing. I tried both cordova-plugin-admobpro and cordova-plugin-admob-simple. Both can show test ads, but after removing isTesting=true attribute I get "Error 0 - Internal Error" in response.
I also tried using the working code that I used half year ago - same result!
I checked different app on my AdMob account - it shows ads, so account is not blocked. BUT my app was blocked once and then un-blocked by Google.
I use the latest Cordova version at this moment (5.1.1).
Does anyone have any thoughts?
Upvotes: 0
Views: 1068
Reputation: 1102
In the end of April 2016 I noticed impressions in my AdMob stats. It took about 40 days for AdMob to start showing ads. Looks like it is not related to code/configuration, but related to AdMob behavior.
Upvotes: 0
Reputation: 5371
If you've just create new ads, you might need to wait a few minutes/hours for it to show some ads... You can also show alert messages when you get certain events.
function onAdmobEvent (message) {
//do some on admob event
alert('onAdmobEvent ' + message );
}
document.addEventListener(admob.Event.onBannerDismiss, onAdmobEvent, false);
document.addEventListener(admob.Event.onBannerFailedReceive, onAdmobEvent, false);
document.addEventListener(admob.Event.onBannerLeaveApplication, onAdmobEvent, false);
document.addEventListener(admob.Event.onBannerPresent, onAdmobEvent, false);
document.addEventListener(admob.Event.onBannerReceive, onAdmobEvent, false);
document.addEventListener(admob.Event.onInterstitialDismiss, onAdmobEvent, false);
document.addEventListener(admob.Event.onInterstitialFailedReceive, onAdmobEvent, false);
document.addEventListener(admob.Event.onInterstitialLeaveApplication, onAdmobEvent, false);
document.addEventListener(admob.Event.onInterstitialPresent, onAdmobEvent, false);
document.addEventListener(admob.Event.onInterstitialReceive, onAdmobEvent, false);
Upvotes: 1