admob mediation with Adcolony in unity

1,288 views
Skip to first unread message

ian lau

unread,
May 4, 2016, 10:04:06 AM5/4/16
to Google Mobile Ads SDK Developers
hi!
i got a problem to integration the admob mediation. please help me!

The steps what i did:

1. add the adcolony.jar to the "Plugins/GoogleMobileAdsPlugin/libs" folder.
2. add permissions and activities to "Plugins/GoogleMobileAdsPlugin/AndroidManifest.xml" like the doc says.
3. copy the "GoogleMobileAdsDemoScript.cs" from official github to project. change the Ad Unit IDs.
4. build and run.

when i request rewarded video i got many this error:

05-04 21:40:39.128: E/AdColony(32129): AdColony methods used before initialization, Activity reference is null. Disabling AdColony until next launch.

then app is crashed.

what is wrong?

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
May 4, 2016, 3:07:46 PM5/4/16
to Google Mobile Ads SDK Developers
Hi Ian,

You might be missing something in the integration. Would you mind testing using this sample app? That project only consists AdColony SDK mediation for Reward Interstitials. Do build on your device and let us know if you are receiving ads from AdColony.

Thanks,
Veer Busani
Mobile Ads SDK Team

ian lau

unread,
May 4, 2016, 8:20:43 PM5/4/16
to Google Mobile Ads SDK Developers
hi, i have tested your sample and got same error. i am not changed your project, just build and run.

the test phone version is 4.3.
unity version is 5.3.3f1
whether related with them?

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
May 5, 2016, 11:14:15 AM5/5/16
to Google Mobile Ads SDK Developers
Hi Ian,

Would you mind testing the sample app again? I had to fix the Ad Unit ID and this time you must be able to receive ads from AdColony.

Thanks,
Veer Busani
Mobile Ads SDK Team

Truck Hero 3D

unread,
May 5, 2016, 4:14:55 PM5/5/16
to Google Mobile Ads SDK Developers
I've just lost whole day because of poor and uncomplete documentation. What is 2min job it turned to be 8 hours of pain. Is it so hard to simply make instructions where should files be copied? Because for some ad network is in x and for another in y place.

For anyone having problems implementing AdColony into AdMob mediation:

1. Import AdColony Unity package (save your main androidmanifest file before or it will be deletet with new adcolony androidmanifest file)
2. Download AdColony adapter: https://adcolony-www-common.s3.amazonaws.com/pub-adapter/android/adcolony.jar
3. Go to Assets/Plugins/Android, there you will find adcolony.jar, replace it with adcolony.jar from downloaded adapter in step 2.
4. Make required changes in androidmanifest file

Also, have in mind that changes in admob console can take some time.
Message has been deleted

ian lau

unread,
May 5, 2016, 10:01:44 PM5/5/16
to Google Mobile Ads SDK Developers
Thanks, it is works now , the error is gone.
But, Is receive ads failed will trigger that error? if true. it will have a chance to get crashed. this is a bit unsafe.

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
May 6, 2016, 10:22:16 AM5/6/16
to Google Mobile Ads SDK Developers
Hi Ian,

Even I was able to reproduce this issue where if there is an error when requesting the ads from AdColony, the adaptor is crashing the Activity. I will be sharing this with my team and will update you as soon as I have any more information.

Thanks,
Veer Busani
Mobile Ads SDK Team

vn.yel...@gmail.com

unread,
Sep 27, 2016, 5:59:49 AM9/27/16
to Google Mobile Ads SDK Developers
Hi Veer Arjun Busani,

does this issue fixed, i have same problem ?

Thanks,
Viet Le

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Sep 27, 2016, 11:46:10 AM9/27/16
to Google Mobile Ads SDK Developers
Hi there,

Can you confirm me that this is still an issue with a sample app linked at the bottom of this guideline in the RewardedVide section from AdColony? I was again unable to reproduce this issue. Are you sure that you have select V4VC ads from AdColony's dashboard and not normal Video Interstitials?

Thanks,
Arjun Busani
Mobile Ads SDK Team

Daniel Gerlich

unread,
Apr 20, 2017, 2:24:13 PM4/20/17
to Google Mobile Ads SDK Developers
Hello Truck Hero,

I faced the same problem and could solve it with your jar File. Could u please be more specific about what you did, to make it finally work? 
Reply all
Reply to author
Forward
0 new messages