How to use Appodeal with Cranberry's Google Play Games Plugin (XDK)

Favourite 11 favourites
Tutorial written by el3um4sOriginally published on 11th, February 2016 - 2 revisions

Use Appodeal with Cranberry's Google Play Games Plugin can be problematic. Why? Together use Google Play Service. But Appodeal Google Play Service is conflict with Cordova Google Play Service.

The error message looks like this:
or this

    "Error: Plugin Cordova Game plugin failed to install."

or this

    "cordova-plugin-game" (1.0.114) failed to install"

One possible solution is to use Appodeal without Google Play Service.

But before, there are two tutorials that recommend reading:

1) How to install Cranberry's Google Play Games plugin (Cordova)
2) Simplest Appodeal Ads Tutorial

So, the steps to do.

Configure the Plugins

Cranberry's google play games plugin

First, select on the Projects Bar (default to right) the PhoneGap Game Plugin. Then, on the Properties Bar (default to left), you will find the text-box named Android Google Play App Id. Here you need to enter the app id found in your Developer Console. Like in the picture below:

Appodeal Plugin

Then select the Appodeal Plugin. In the text-box named appKey you need to past the Application Key (the key under the app name in this page).

Export via Cordova

Now you can export the game. But, it's important!, before unchek minify script.

Configure Intel XDK

Add Plugin: Cranberry's google play games plugin

Now you can add the plugin into Intel XDK. First the Cranberry's Google Play Game. Open Intel XDK -> Open project (assuming you have one already) -> Plugin Management -> Add new plugin -> Third-party plugins and in the Plugin-ID field, you want to type in



When Intel XDK prompts you to add the APP ID, just paste your Google Play Game Services app ID in there

Add Plugin: Appodeal

Now the Appodeal Plugin. In Intel click on the button to add a 3rd party plugin and then in Git Repo write:


Edit intelxdk.config.additions.xml

The last step: edit the intelxdk.config.additions.xml.
You do this by clicking the DEVELOP tab and opening the intelxdk.config.additions.xml file. Find this code:

    <intelxdk:plugin intelxdk:name=" --variable APP_ID='YOUR_GOOGLE_PLAY_GAME_APP_ID'" intelxdk:value=" --variable APP_ID='YOUR_GOOGLE_PLAY_GAME_APP_ID'" />

and remove it.

Then find this other code:

    <intelxdk:plugin intelxdk:name="" intelxdk:value="" />

and remove it.

Save (CTRL + S or file>save) and move to the Build tab, build for android and ... the game is ready for Google Play Game and Appodeal Ads.


You will need to remove the code every time you export it from Construct 2, since the file gets replaced with each exportation.

Unlock your full gamedev potential

Upgrade to the Personal Edition of Construct 2, it has way more features and won't holding back from making money and using your full creativity like the free edition does. It's a one off payment and all Construct 2 editor updates are free for life!

View deals

Plus, it's got a lot of additional features that will help you save time and make more impressive games!

Congratulations on finishing this tutorial!

Did you learn a lot from it? Share it now with your friends!

Share and Copy this Tutorial

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


djlawzon 530 rep

Nice, great solution and works well. Thanks

Wednesday, April 06, 2016 at 10:33:53 PM
luckyrawatlucky 36.3k rep

it also works for me
but i afraid that does it affect any google service becoz we have delete those codes which containing our google app ID

Friday, May 06, 2016 at 12:36:10 PM

Leave a comment

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