Displays AdColony Ads within a Cordova App, controlled by JavaScript on both iOS and Android platforms. Requires the AdColony SDK.
iOS SDK version is 4.1.0
Android SDK version is 4.1.0
Please make sure that you read the AdColony Project setup guides for both Android and iOS if you're building on both platforms.
All the documentation is available from here:
The update now includes the podspec in the plugin which adds the AdColony pod to the Podfile for iOS apps.
First create a Cordova App
$ cordova create AdColonyDemoApp com.example.acdemo AdColonyDemoApp
$ cd AdColonyDemoApp
Next add the Cordova iOS and Android platforms
$ cordova platform add android
$ cordova platform add ios
Finally add the AdColony Plugin
$ cordova plugin add https://github.com/ferdil/AdColonyCordovaDemo.git
Replace the generated www folder with the one from this
$ cp -R <src folder>/www/ AdColony
You're then ready to build and run the App
$ cordova build android
For iOS, the AdColony cocoapod is configured by the plugin
Build or run the app using the Xcode Workspace generated by Cocoapods
$ cordova build ios --emulator
The demo uses the following AdColony demo APP_ID and ZONE_ID:
Android APP_ID=app185a7e71e1714831a49ec7
Android ZONE_ID=vz1fd5a8b2bf6841a0a4b826
iOS APP_ID=appbdee68ae27024084bb334a
iOS ZONE_ID=vzf8e4e97704c4445c87504e
See the cordova-plugin-adcolony repository on GitHub
Updated September 2019 to the AdColony 4.1 SDK
If you have saved some time using my work,
do consider donating me something :-)