I’ve been diving into the tricky world of Admob. So far so good, but I have three questions:
I am not getting a “clicked” event.phase in testMode. Is this normal? Is this automatically ‘fixed’ when you are using real ads, and no longer testMode?
Is there a way to programmatically detect is an app is running in development (on device) or as a final distribution build? That would make switching testMode on and off a lot easier than needing to edit the code manually for final build.
Does an Admob ad automatically disappear when you click it? It doesn’t for me at the moment. Maybe this is related to testMode.
Clicking the upper half of the ad pauses and resumes it. Clicking the lower half does nothing unless I click on the ‘Get’ button. Then it results in a nearly fully white screen. Looks like it’s trying to connect to Google Play from my iPad.
Mobile ads have been the bane of my life since 2013. Always troublesome.
I just tried to check the console to see if the click event is detected.
Alas, I cannot. I get ‘there is a problem linking the app’ and it’s related to AdMob. This happens sometimes for me with the Xcode simulator when using AdMob.
As I said, mobile ads have been the bane of my life since 2013. Always troublesome. Sigh.
I did not find the “clicked” implemented in the plugin source code. I checked both Android and iOS versions. Is there documentation that states it should be available.
For what it’s worth: I got adMob up and running smoothly in a distribution build on the App Store!
My findings:
There is no “clicked” event.phase in this plugin. I’ve tested this in a final, built and distributed app (iOs in the App Store). You get a “displayed” event, and a “closed” event when you manually close the ad.
Yes, you do need to close the ad yourself, even after clicking it.
You actually need your app up and running before adMob let’s you really download Ads. This is a bit confusing because you don’t want to upload a final build before knowing if this will work, but the steps are:
set up your app and ad unit in admob
use testMode while developing
in the end, turn off testMode but make sure you DON’T click on ads from a development build as this will get you banned.
code a failSafe in case no ad is available
build and deliver to the app store
once the app is built and available on the App Store complete the setup in adMob
I wouldn’t worry about that since it’s just a test ad. Surely adMob is smart enough to detect your device in real ads and if applicable show an Apple App Store ad.