I just finished a mobile game with ads & IAP recently with C2, it was compiled with Cocoon.io Canvas+ for iOS and Android, it was pretty straight forward, no more work than putting an ad sdk in past Unity or GM:S games I have made. I used the Verstala Heyzap plugin found here , I am currently using Admob, UnityAds, Vungle and Heyzap video and reward ads in the game. The plugin is extremely easy to use, comes with good documentation for set up also.
I ran into a few hiccups getting compiler errors but literally 99% of the time it was because I messed up with the config.xml in Cocoon. A few tips for things I did that made everything work.
1. When exporting from C2 make sure Minify script if unchecked and PNG recompression is set to "None"
2. When zipping your C2 project for upload to Cocoon do not include the config.xml file or the intelxdk.config.additions.xml file in the zip, I manually add the plugins myself in Cocoon.
3. Set Multidex enabled to "Yes" for Android builds.
4. Make sure every plugin you are using in C2 is also included in the Cocoon.xml file.
5. Make sure any plugins you are getting from Github have the ".git" appended to the end of the URL in the Cocoon config.xml file(See example configs below).
6. Check in Cocoon under Installed plugins and make sure Cocoon didn't add any of the "Whitelist" plugins to your project, I got a black screen everytime one of these plugins where included.
Example iOS config.xml with Verstala Hepzap plugin, Cranberry Game Center leaderboards, EddyVerbruggen Social Sharing Plugin and Cocoon IAP plugin.
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:cocoon="http://cocoon.io/ns/1.0" xmlns:cdv="http://cordova.apache.org/ns/1.0" id="YOUR_BUNDLE_ID" version="0.75">
<name>YOUR_GAME_NAME</name>
<description>YOUR_GAME_DESCRIPTION</description>
<author email="YOUR_EMAIL" href="http://www.YOURWEBSITE.com">YOUR_COMPANY</author>
<content src="index.html"/>
<access origin="*"/>
<allow-intent href="http://*/*"/>
<allow-intent href="https://*/*"/>
<allow-intent href="tel:*"/>
<allow-intent href="sms:*"/>
<allow-intent href="mailto:*"/>
<allow-intent href="geo:*"/>
<preference name="Orientation" value="portrait"/>
<preference name="Fullscreen" value="true"/>
<preference name="target-device" value="universal"/>
<platform name="android">
<allow-intent href="market:*"/>
<preference name="enabled" value="false"/>
</platform>
<platform name="ios">
<allow-intent href="itms:*"/>
<allow-intent href="itms-apps:*"/>
<preference name="enabled" value="true"/>
</platform>
<plugin name="com.ludei.canvasplus.ios" spec="*"/>
<plugin name="https://github.com/Verstala2016/heyzap1.1.8.git" spec="https://github.com/Verstala2016/heyzap1.1.8.git"/>
<plugin name="cocoon-plugin-ads-ios-admob" spec="*"/>
<plugin name="https://github.com/Verstala2016/heyzap-cordova-applovin.git" spec="https://github.com/Verstala2016/heyzap-cordova-applovin.git"/>
<plugin name="https://github.com/cranberrygame/cordova-plugin-ad-chartboost.git" spec="https://github.com/cranberrygame/cordova-plugin-ad-chartboost.git"/>
<plugin name="https://github.com/Verstala2016/heyzap-cordova-unityads.git" spec="https://github.com/Verstala2016/heyzap-cordova-unityads.git"/>
<plugin name="https://github.com/Verstala2016/heyzap-cordova-vungle.git" spec="https://github.com/Verstala2016/heyzap-cordova-vungle.git"/>
<plugin name="https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin.git" spec="https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin.git">
<variable name="CALENDAR_USAGE_DESCRIPTION" value="This app uses your calendar"/>
</plugin>
<plugin name="https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git" source="npm" spec="https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git"/>
<plugin name="https://github.com/cranberrygame/cordova-plugin-game.git" source="npm" spec="https://github.com/cranberrygame/cordova-plugin-game.git"/>
<plugin name="cordova-plugin-inappbrowser" source="npm"/>
<plugin name="com.ludei.canvasplus.android" spec="*"/>
<plugin name="cocoon-plugin-inapps-ios-appstore" spec="*"/>
</widget>
[/code:2n8kg8d3]
Example Android config.xml with Verstala Hepzap plugin, Cocoon Googleplay Services, and EddyVerbruggen Social Sharing Plugin and Install Location plugin.
[code:2n8kg8d3]<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:cocoon="http://cocoon.io/ns/1.0" xmlns:cdv="http://cordova.apache.org/ns/1.0" id="YOUR_BUNDLE_ID" version="0.86">
<name>YOUR_GAME_NAME</name>
<description>YOUR_GAME_DESCRIPTION</description>
<author email="nYOUR_EMAIL" href="http://YOURWEBSITE.com">YOUR_COMPANY</author>
<content src="index.html"/>
<access origin="*"/>
<allow-intent href="http://*/*"/>
<allow-intent href="https://*/*"/>
<allow-intent href="tel:*"/>
<allow-intent href="sms:*"/>
<allow-intent href="mailto:*"/>
<allow-intent href="geo:*"/>
<preference name="Orientation" value="portrait"/>
<preference name="Fullscreen" value="true"/>
<preference name="target-device" value="universal"/>
<platform name="android">
<allow-intent href="market:*"/>
<preference name="enabled" value="true"/>
</platform>
<platform name="ios">
<allow-intent href="itms:*"/>
<allow-intent href="itms-apps:*"/>
<preference name="enabled" value="false"/>
</platform>
<plugin name="com.ludei.canvasplus.ios" spec="*"/>
<plugin name="https://github.com/Verstala2016/heyzap1.1.8.git" spec="https://github.com/Verstala2016/heyzap1.1.8.git"/>
<plugin name="https://github.com/Verstala2016/heyzap-cordova-applovin.git" spec="https://github.com/Verstala2016/heyzap-cordova-applovin.git"/>
<plugin name="https://github.com/cranberrygame/cordova-plugin-ad-chartboost.git" spec="https://github.com/cranberrygame/cordova-plugin-ad-chartboost.git"/>
<plugin name="https://github.com/Verstala2016/heyzap-cordova-unityads.git" spec="https://github.com/Verstala2016/heyzap-cordova-unityads.git"/>
<plugin name="https://github.com/Verstala2016/heyzap-cordova-vungle.git" spec="https://github.com/Verstala2016/heyzap-cordova-vungle.git"/>
<plugin name="https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin.git" spec="https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin.git">
<variable name="CALENDAR_USAGE_DESCRIPTION" value="This app uses your calendar"/>
</plugin>
<plugin name="https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git" source="npm" spec="https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git"/>
<plugin name="cordova-plugin-inappbrowser" source="npm"/>
<plugin name="com.ludei.canvasplus.android" spec="*"/>
<plugin name="cocoon-plugin-application-android" spec="*"/>
<plugin name="com.ludei.installlocation.android"/>
<preference name="android-installLocation" value="auto"/>
<plugin name="cocoon-plugin-social-android-googleplaygames" spec="*">
<variable name="APP_ID" value="YOUR_GOOGLEPLAY_SERVICES_ID"/>
</plugin>
</widget>
[/code:2n8kg8d3]
If you have did all of those things you should not be getting compiler errors, if you do it's because your plugins and config.xml aren't set up correctly. If you are getting it to compile and getting a blackscreen, I suggest compiling a developer app with Cocoon, installing it on your test device and checking the Log in the developer app to see where you are getting an error. I ran into a problem where everything worked fine on iOS but was getting a blackscreen on Android, after compiling a developer app and looking at the Log I found the problem was the Cranberry Game plugin used for leaderboards wasn't working on Android but was working on iOS, so I switched to the Cocoon Googleplay plugin and everything worked fine.
Cheers.