ti.admob icon indicating copy to clipboard operation
ti.admob copied to clipboard

AdMob Interstitials

Open ghost opened this issue 10 years ago • 7 comments

Hi- I would like to thank all of the contributors to this module, it has been important to us and your hard work is truly appreciated.

I wanted to find out, as I have tried to do my diligence in research, does this module support AdMob Interstitial and if show can you point me to some documentation on how to execute for iOS?

Thanks!

ghost avatar Jan 10 '15 23:01 ghost

I needed it too, so I hired a freelancer to make it since I'm not good at the module stuff. I made a pull request to the main module 20 days ago. You can find my version with interstitial support here: https://github.com/bitfabrikken/ti.admob

bitfabrikken avatar Jan 11 '15 03:01 bitfabrikken

Wow. Thank you so much for sharing. I really appreciate it!

ghost avatar Jan 11 '15 04:01 ghost

@bitfabrikken Thank you, great work! Interstitial works very well ! Have you implement last admob sdk 6.12.2 too? When I compile there are many warnings about iOS8 not officially supported by 6.12.0, but it seems works fine. I don't know!

ottopic avatar Jan 14 '15 12:01 ottopic

@ottopic I haven't - haven't tried either - not sure how to do it :)

bitfabrikken avatar Jan 14 '15 12:01 bitfabrikken

Ok, thanks. I hope someone will update it.

Best regards

ottopic avatar Jan 14 '15 12:01 ottopic

When I run on device there is a strange warning:

<Google> Cannot find an ad network adapter with the name(s): ( GADMAdapterIAd ). Remember to link all required ad network adapters and SDKs, and set -ObjC in the 'Other Linker Flags' setting of your build target.

Does it depends by my code ?

ottopic avatar Jan 16 '15 21:01 ottopic

Thanks, Interstitials works fine with your pull request.

I had to put the "view" outside the window and set a minimum width and height:

var adInterstitial = Admob.createView({
    bottom: -1,
    width: 1,
    height: 1,
    adUnitId: 'ca-app-pub-xxx',
    adBackgroundColor: '#fff',
    isInterstitial: true
});

win.add(adInterstitial);

Otherwise there seems to be a invisible layer over the screen that prevents all UI elements to be clickable.

So now we have Interstitial support for iOS but Android is still missing? The module "Admob Pro" from the marketplace seems to be outdated and unsupported.

danny005 avatar Jun 04 '15 13:06 danny005