Software Archive
Read-only legacy content

admob plugins - need help

rahul_p_
Beginner
656 Views

HI Team,

 

I exported html5 from construct 2 and then added cranberry/admob plugin and exported to android. No ads are displayed on the application. Please help me where I should edit the admob ad unit it in the plugin. I have a help folder under plugin and there is test/index.html. Please help where i neet to set the ads id and how to edit the configuration file. I saw index.html in test folder. Please assist with the actual path for inserting ad unit id's.

 

Regards,

Rahul

0 Kudos
4 Replies
rahul_p_
Beginner
656 Views

Hi Dale,

 

Thank you for the links. Adding to my first post , I imported the code and the cranberry plugin, but not sure where exactly i need to enter the ad unit id . Is it in www/index.html or test/index.html. Please assist.

Regards,

Rahul

0 Kudos
Elroy_A_Intel
Employee
656 Views

Here is an example using this Cordova plugin and declaring the ad unit id: https://github.com/cranberrygame/phonegap-plugin-ad-admob/blob/master/example/basic/index.html#L9

0 Kudos
Dale_S_Intel
Employee
656 Views

I haven't tried it myself yet, but here's an example:

https://github.com/cranberrygame/phonegap-plugin-ad-admob/blob/master/example/basic/index.html#L9

It looks like it's included in the call to admod.setUp:

window.admob.setUp(bannerAdUnit, fullScreenAdUnit, isOverlap, isTest);

0 Kudos
Reply