How to use AdMob and IAP official plugins on Android-Crosswalk/XDK

Favourite 48 favourites
Tutorial written by KyatricOriginally published on 12th, October 2015 - 7 revisions

AdMob is a service linked to a Google account as well as the AdSense and AdWords services.
This will allow you to get banners displayed in your Android application (game) exported with Intel XDK CrossWalk.

This requires to fiddle with several websites and tools.
Moreover, it won't simply work with your game on preview from Construct 2, you need to publish on Google Play store itself at least in Alpha stage (closed Alpha allows you to simply "publish" a test application and only allow a limited number of google accounts/linked devices to have access to it, perfect for our current need).

The first time you have to set up adverts for your game, the whole process might be a bit tedious, especially since you will be required to read through licensing terms for services before registering to them, and you definitely should do so.
Moreover, there is a cost involved, as you need to own a Google Android Developer account to get access to the Google play Developer Console.

This tutorial will require you to own at least a valid personal license.
Construct 2 free edition is lacking the export features and the licensing terms of the free edition do not allow you to make any money from works made with it anyway.
Adding advertisements to your game made with the Free edition simply goes against the licensing terms of the free edition and shouldn't be attempted.

Share and Copy this Tutorial

You are free to copy, distribute, transmit and adapt this work with correct attribution. Click for more info.

Comments

3
SureetSK 317 rep

I use the 3088 build of intel XDK, I dont find the admob ad services in the list of plugins.
Please help.

Thursday, March 31, 2016 at 8:27:52 PM
0
AlphaCharlie 482 rep

Same here. I am rebuilding with the latest XDK (due to Play Store Cordova security email). No Admob plugin.

Saturday, April 02, 2016 at 6:49:03 AM
2
AlphaCharlie 482 rep

Actually... Found it. You need to select third party plugins, ensure you are sourcing from the Cordova plugin registry, and enter cordova-plugin-admobpro in the Plugin ID field.

Saturday, April 02, 2016 at 7:06:49 AM
0
tonyuk123 179 rep

how do you know what 'plugin'(s) you have on intelXDK 3240?
it appears to load them but surely better to have a list of them after !
else no way to know what has loaded or not
i have rebuilt my app 3 times now, only to find i have missed something each time
still going.......

Monday, May 16, 2016 at 4:53:07 PM
0
adamcreator 541 rep

@tonyuk123 In the Projects tab, under Plugin Management

Saturday, May 21, 2016 at 9:43:40 AM
0
adamcreator 541 rep

Download the ZIP from github.com looking for cranberrygame/cordova-plugin-ad-admob and unzip its contents and in XDK load a local plugin and choose the main folder zipped from that, for a working AdMob plugin.

Saturday, May 21, 2016 at 12:00:25 PM
0
EdwardJT92 732 rep

Mine doesn't seem to work at all.. anyone can help with that?

Sunday, May 29, 2016 at 6:34:24 PM
1
paulsoler 705 rep

Hello, in new versions of intel going to add tirdh party plugins plugin >> >> >> repro get git add: github.com/cranberrygame/cordova-plugin-ad-admob.manually add the plugin work! regards

Tuesday, September 06, 2016 at 9:19:59 PM
0
STARTECHSTUDIOS 10.6k rep

This tutorial is grossly verbose.

Sunday, February 12, 2017 at 3:40:54 AM
0
DevDan 1,549 rep

How to handle "consumables" via code in construct 2?

Wednesday, March 08, 2017 at 3:34:03 PM
0
TheWiseLJ 4,507 rep

Thank you for this tutorial! I probably would have been stuck for a long time trying to figure this out otherwise.

Tuesday, April 04, 2017 at 8:42:02 PM

Leave a comment

Everyone is welcome to leave their thoughts! Register a new account or login.