I am using Cordova 6.3.1, when I use cordova-plugin-admobpro, I am getting error, AdMob not defined. I have tried many codes and suggestions but it's still not working. Please help me on these.
I am building app in only android and build is always successful, just only it's just banners are not displayed.
few things you need to check before you add the banner id etc.
Make AutoShow: true
Make AdId to PublisherId
Check the testing mode and banner id is entered correct
Make sure that your android sdk has installed google play services
Make sure that your android sdk is up to date
These are commond problems in such kind of situtations. you can check and test it. It would be working then.
Related
I've created a new App in Delphi 10.3.3 Community Edition, placed a TBannerAd, aligned it to bottom and I have a Button which loads the Ad (BannerAd1.AdUnitID:='ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXXX'; BannerAd1.LoadAd;). I tried The TBannerAd with the sizes "auto" and "small" but when I click the button on the running App no Ad is shown. Everything I do in my App works, but there are no ads shown. I used a Huawei ALE21 with stock rom (Anndroid 6) and a Samsung SM-A605FN/DS (A6 plus) also with stock rom to test the App. I tried test mode and normal mode, but in both cases there is no ad shown. I don't even get an error and I don't have any email from admob which tells me that it doesn't work... On my old computer (Same Delphi version and same mobile phones) I got ads to work. Now on a fresh installed Windows 10 with nothing more than Delphi and a few normal Apps I can't make an app with ads on it. And I don't use any ad blocking app on my phones. They're both stock rom.
Can anyone give me a hint why I can't display any ads without getting an error?
UPDATE: Google sent me an email a few days later saying my app code should change and the ads are not shown until my app fulfills requirements and some stuff like that.. so I guess the issue was I was trying just to show an ad to test ads are working and there was no real content in my app. After trying it a few weeks later in a real app I was trying to get ads shown in it it worked.. So sorry for asking this question. I just didnt know Google dooesnt show ads on blank apps..
Try setting the BannerAd's alignment to bottom and ensure that it has sufficient height. Start with the small size of Ad. Use the OnDidFail and OnDidLoad to debug. In my case I fixed the issue by the alignment and choosing small or medium size of Ad. Couldn't get the large or auto size to work so I am sticking with medium. Also, my BannerAd.TestMode is set to true as I am using the test ID provided by Google (I suppose you have done the same).
did you already set True on Project > Option > Application > Entitlement List > AdMob Service
I guess the simple answer is that there just are no ads to be shown available.. I get an error 3 code, which means the google ad server has nothing for me to show.. I think I should try other phones/accounts as well to get some ads running
I'm having trouble with adMob (like I specified in the title) on my iOS game made with Unity.
I'm using Unity 5.5.5p1 with the adMob plugin.
Everything was fine when I use the testing adUnits, testing ads are showing perfectly, until I use the custom ones pasted from my adMob profile.
I'm building in release mode and my game isn't on the AppStore yet.
Thanks for the attention payed, any suggestion?
First of all, check if there's any whitespaces at the end of your copied ad unit id. It's the most common cause of not showing ads.
If that's fine, then most probably, you are getting no fill matching your custom AdUnit request, which is quite common in admob. If it doesn't get the matching size, it fails to show the ad.
You can see the debug log in the console for your connected device with actual ad id. If it shows, No Fill, then you may get sure that there's no ad currently available in the admob network, matching your given size.
I always prefer using the default sizes of admob, as they are more popular, there's always available ads in the network.
I'm attempting to get my app to serve interstitial ads (video and static) using a cross-promotional chartboost campaign. I feel as though I've set up everything correctly, because my dashboard on the website indicates that the SDK has been integrated for that app, and when I put the app in test mode, it receives test ads. However, when I turn off test mode, I receive no ads. My app was built in Corona SDK, and I'm using the chartboost plugin made by swipeware, shown here. I'm using the demo project on their github page. I think the problem MUST be with the way my campaigns on chartboost are set up, but I don't know why. Can anyone give me a hint? I've made images out of what shows on my dashboard on Chartboost -- seems to me that campaigns like FE_Stories_4_11_Test, whose details are also shown, should be showing ads nonstop. Is there any reason this wouldn't happen?
https://github.com/swipeware/CoronaChartboostPlugin
How am I going to get a returned value that allows me to know whether my app was installed in IOS. In android, we can use "android.app.icon://my.package.name" by placing it in a display.newImage if it is not a nil value then I know one of my app was installed. We can't use that in an IOS device. I searched a link about using a url scheme
http://coronalabs.com/blog/2011/12/22/using-app-url-schemes-in-ios/
But the information was not that clear enough for me to understand and was not detailed at all. Is there another way to do it? I want to know the code. Thanks
The system.openURL() will return false if it can't open your app using a URL Scheme.
I have a lite version of one of my app live in apple store. I have integrated admob in that.
I was successfully able to see ads while testing, both test ads & real ads sometimes. Now as the app is live, I can notice only test ad is showing up.
"this is a test ad"
Link to app, cheque Track
Please check the following points before publish your app.
You should use iPhone app id of AdMob to display ads on iPhone and iPad app id of AdMob to display ads on iPad. Because there is no universal type app in AdMob.
In case of BannerView use size provided by the AdMob SDK. Please don't use your custom defined size and use origin with appropriate value.
Click on the your project -> goto build settings -> add value to "Other Linker flag" to "-ObjC".
To know errors or loading successful or not define delegate methods provided for specific add and don't forget to assign "self" to ad's delegate property.
Always use latest SDK.
Test mode off in app setting of AdMob app.
After performing these steps and modifying code, it is time to test your app by creating ipa of the app in real device. In iOS 7 if you run iPhone app in iPad [UIDevice currentDevice].model returns "iPad" . So check iPad ipa in iPad and iPhone ipa in iPhone.
two use links to create ipa and install it in your device.
create ipa link
install ipa on your device
Please inform if any issue comes. Thanks
read this somewhere.. thought it might help
log in to your AdMob account, go into "Sites And Apps", hover your mouse pointer over the App in question and click on "Manage Setting". Then, click on the "App Setting" tab and you will see a "Test Mode" option. In that, select the "Disable test mode for all requests" option and hit "Save Settings" at the bottom.
-(void)adViewDidReceiveAd:(GADBannerView *)bannerView;
-(void)adView:(GADBannerView *)bannerView didFailToReceiveAdWithError:(GADRequestError *)error;
There can be number of reasons for not showing the Live ads.
Check your google admob account for the payment info. If not filled, fill it.
Check if your device is registered as test device, else you may get suspension from the google for 30 days or so.
Use correct platform and ad unit ID from the admob account for live ads and wait for a while, it takes time to show ads.
You can check the delegate methods and print the logs:
In my case, I was getting error asĀ { 'error': 'Request Error: No ad to show.', 'adType':'banner' }.
But it showed at the client side, after I delivered to the client. So, I think that this issue was due to the reason that google had no advertisements in my region.