Test mediation video reward

143 views
Skip to first unread message

Domenico Bulgarelli

unread,
May 26, 2017, 4:42:08 AM5/26/17
to Google Mobile Ads SDK Developers
Hi, I'm trying to test "rewarded video ad" with AdMob mediation

I configure AdColony, I test it with direct call, it works.

Then I have tried with AdMob mediation, following the adapter guide:

https://bintray.com/google/mobile-ads-adapters-android/com.google.ads.mediation.adcolony#read

this not works.

I have tried both AdColony zone in test mode and live
I have used Test Device for the request to AdMob and not (maybe risking our account being suspended)
and combinations of this settings

I use manual CPM to put AdColony as first origin, but I continue to receive only AdMob Ads
(I change CPM value 12 hours ago)

Can you help me to show AdColony ad with mediation?

Thank you
regards


Joshua Lagonera (Mobile Ads SDK Team)

unread,
May 26, 2017, 5:31:19 AM5/26/17
to Google Mobile Ads SDK Developers
Hi Domenico,

Make sure you properly integrated AdColony's SDK and Adapter on your project. You can find the appropriate steps to mediate with AdColony on our official documentation site.

That said, can we request the following information from you in order for us to assist you further?
  • Affected Ad Unit IDs
  • All warning/error logs displayed
  • A sample project/code snippet showing how you are requesting and showing ads.
Additionally, I have modified our sample apps to setup mediation with AdColony. Can you try your Ad Unit IDs on these modified sample apps and verify if you can still replicate the issue?

Regards,
Joshua Lagonera
Mobile Ads SDK Team
Message has been deleted
Message has been deleted

Domenico Bulgarelli

unread,
May 26, 2017, 7:19:05 AM5/26/17
to Google Mobile Ads SDK Developers
Thank you for your reply. (double post with unit ID hidden to archive)

I think sdk is integrated, because I can show AdColony ad with direct call.
I use Eclipse, so, for the adapter, I copied the classes.jar in libs folder (extracted from the adapter .aar)
Also, I have difficulties to test your sample (because Eclipse)

I try also another Unit ID (only interstitial) and the behaviour is the same

- Rewarded Unit ID is ca-app-pub-xxxxxx

- I don't see warnings, AdColony configuration is launched correctly

- sample code



private RewardedVideoAd _mAd = null;

onCreate
() {

     
AdColony.configure(this, APP_ID, ZONE_ID);

     _mAd
= MobileAds.getRewardedVideoAdInstance(this);
     _mAd
.setRewardedVideoAdListener(this);

AdColonyBundleBuilder.setZoneId(ZONE_ID);

     
AdRequest adRequest = new AdRequest.Builder()
     
.addTestDevice(ID_NEXUS7)
     
.addNetworkExtrasBundle(AdColonyAdapter.class,AdColonyBundleBuilder.build())
     
.build();
     
     _mAd
.loadAd(ConfigUtils.AD_UNIT_ID_REWARD_VIDEO, adRequest);

}

public void showAdRewardVideo() {

if (_mAd != null)
       _mAd.show();
 
}

Domenico Bulgarelli

unread,
May 26, 2017, 7:48:17 AM5/26/17
to Google Mobile Ads SDK Developers
Some news, I was able to show Interstitial Unit ID with AdColony mediation (maybe I had to wait some minutes to enable source order by CPM)

But with the similar code above, for Rewarded Video Ad, I cannot succes to show AdColony ads

Domenico Bulgarelli

unread,
May 26, 2017, 8:17:24 AM5/26/17
to Google Mobile Ads SDK Developers
other info, some logs:

05-26 14:08:12.298: W/Ads(25066): Server parameters: {"gwhirl_share_location":"1","app_id":"xxxID_APPxxx","zone_ids":"xxxZONE_IDxxxx"}
05-26 14:08:12.299: W/AdColony [WARNING](25066): Ignoring call to AdColony.configure, as the same zone ids were used during the previous configuration.
05-26 14:08:12.307: W/Ads(25066): Server parameters: {"gwhirl_share_location":"1","pubid":"xxxxUNIT_IDxxxxx\/cak=no_cache&cadc=ws&caqid=rhooWaCwDuLRxgK9i4DIBw"}
05-26 14:08:12.316: W/DynamiteModule(25066): Local module descriptor class for com.google.android.gms.ads.dynamite not found.
05-26 14:08:12.317: D/DynamitePackage(25066): Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl

AdColony parameters are loaded correctly (seems only in live mode, NO test device)

But I see only AdMob Video Ad

I see also a warning about Dynamite Module


Domenico Bulgarelli

unread,
May 26, 2017, 8:20:49 AM5/26/17
to Google Mobile Ads SDK Developers
another question, I have Play Service library version 8298000

How can I obtain Google Mobile Ads SDK version, to verify is uqual or greater then 9.8.0?


Domenico Bulgarelli

unread,
May 26, 2017, 10:39:25 AM5/26/17
to Google Mobile Ads SDK Developers
OK, I succesfully loaded AdColony Interstitial and Rewarded Video (tried without test device enabled)

Also if, manual CPM list is set with AdMob at 10$, the two sources are alternated


I deleted the app, and re-install it, but I exclude it is the cause, because I did a test on another device and it works even without deleting the app

I have done also other changes, together to delete the app,
exactly I had removed:

// onCreate
AdColony.configure(this, APP_ID, ZONE_ID);

AdColonyBundleBuilder.setZoneId(ZONE_ID);

// In the request
.addNetworkExtrasBundle(AdColonyAdapter.class,AdColonyBundleBuilder.build())

So, I removed all the code about mediation, and mediation has gone great.
Very good.

For information,
I have also restored these lines of code and mediation continues to work.
So I suppose one of this cause resolve the problem:

- wait additional times
- AdMob Team changes

Joshua Lagonera (Mobile Ads SDK Team)

unread,
May 28, 2017, 11:24:38 PM5/28/17
to Google Mobile Ads SDK Developers
Hi Domenico,

Glad you were able to make it work!

As for this question:
 
How can I obtain Google Mobile Ads SDK version, to verify is uqual or greater then 9.8.0?

The Mobile Ads SDK version is usually the same version as your version of Google Play Services, since the Mobile Ads SDK is bundled within it.  

Regards,
Joshua Lagonera
Mobile Ads SDK Team

Reply all
Reply to author
Forward
0 new messages