How to use multiple mediation Extras ?

654 views
Skip to first unread message

ala slipknot

unread,
Mar 12, 2018, 10:16:32 AM3/12/18
to Google Mobile Ads SDK Developers
Hi, 

Both Vungle and Nend require the addition of Mediationextras, 

Vungle Request:

 //Create a new empty VRVME Object, required to add additional parameters, rewarded only
       
VungleRewardedVideoMediationExtras VungleExtras = new VungleRewardedVideoMediationExtras();
       
//Same as above, all placements must be passed at all times, as Admob doesn't initlize Vungle until admob calls it
       
VungleExtras.SetAllPlacements(new string[] { vungleReward, vungleDefault });

Nend Request : 

// Create a NendNormalMediationExtras instance.
       
var nendExtras = new NendNormalMediationExtras();
        nendExtras
.InterstitialType = NendNormalMediationExtras.interstitialTypeVideo;  // Required  


And the the AdRequest should get an Extra variable in its parameter [this is the problem] 
 
// Create an empty ad request with extra parameters required to load Vungle
       
AdRequest request = new AdRequest.Builder().AddMediationExtras(VungleExtras).Build();


       
//Loads an ad with the above parameters
        rewardBasedVideo
.LoadAd(request, adUnitId);

How can i use both VungleExtras and NendExtras when creating a new AdRequest ?

Thank you

mobileadssdk-a...@google.com

unread,
Mar 12, 2018, 3:37:08 PM3/12/18
to ala slipknot, Google Mobile Ads SDK Developers
Hi there,

Thanks for contacting us. When using mediation, the extra request parameters for mediation networks will be passed via AdRequest's addNetworkExtrasBundle API using Bundle.  For Vungle: You can view an example here and for Nend, you can view an example here

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/4113a938-6f68-4540-bdae-97f648e16d5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

ala slipknot

unread,
Mar 12, 2018, 3:52:43 PM3/12/18
to Google Mobile Ads SDK Developers
Hi, thanks for the reply, 

what you're showing is how to use individual networks, my game have both Vungle and Nend, 
so if i do the :  AdRequest request =  new AdRequest....etc...  
then one Network is gonna end up overwriting the other, 

Can you please post a code sample that shows how to properly request a Reward Ad when the mediation group you're using contain both Vungle and Nend ? 

PS : 
the documentation you linked are for native Android, am using Unity.

Thanks!

mobileadssdk-a...@google.com

unread,
Mar 12, 2018, 5:36:08 PM3/12/18
to ala slipknot, Google Mobile Ads SDK Developers
Hi there,

You can make a call like this - 

Bundle vungleExtras = new VungleExtrasBuilder(placements)
.setSoundEnabled(false)
.setUserId("test_user")
.build();

Bundle nandBundle = new NendAdapter.NendExtrasBundleBuilder().setUserId(
"userId").setInterstitialType(InterstitialType.TYPE_NORMAL).build();

AdRequest request = new AdRequest.Builder()
.addNetworkExtrasBundle(VungleAdapter.class, vungleExtras)
.addNetworkExtrasBundle(NendAdapter.class, nandBundle)
.build();

This will include the extras for the both of the mediation ad networks when making an AdRequest.

Let me know if you need anything else.


Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

ala slipknot

unread,
Mar 12, 2018, 5:48:26 PM3/12/18
to Google Mobile Ads SDK Developers
Thank you! 

Yes 2 questions please : 

  • that nend extra sais its "InterstitialTypeVideo" is that what they call "Reward Ads" ?

  • A bit outside the "SDK realm" but, i was wondering on how to specifically test one network, and since there is no way to do that in code, someone suggested that i can block a certain networks in the mediation group from serving ads in a bunch of countries (including the one am in) and only keep the network i need to test, and he referred to this link from the official google Admob support page, the problem is that i don't have that "country" column : 
Any idea why ?

thank you

ala slipknot

unread,
Mar 13, 2018, 2:44:21 AM3/13/18
to Google Mobile Ads SDK Developers
Update : 
I found an answer for the second question, using different mediation group, pausing the 1st one and creating another group with just the network i want did the trick.

Now i just want to be sure that "InterstitialTypeVideo" is the correct type to use for reward videos. thanks

mobileadssdk-a...@google.com

unread,
Mar 13, 2018, 3:08:44 PM3/13/18
to ala slipknot, Google Mobile Ads SDK Developers
Hi there,

Nend does not have an ability to send extras for Reward Video Ad Requests currently via their Adapter and this is something our team is aware of and working on to update this shortly. The one you linked is for Interstitial with video creatives only and not for Reward Videos. I currently would not be able to provide a timeline on when this will be updated but you can monitor our release notes for the Nend Adapter to stay updated.

Regards,
Deepika Uragyala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

ala slipknot

unread,
Mar 13, 2018, 3:25:01 PM3/13/18
to Google Mobile Ads SDK Developers
So currently we can't use Nend to display Reward Ads ? or is the extras are not necessary to do so ? as far as i know i followed their documentation step by step and i still never seen a Nend Ad, even in a mediation group that only contain Nend (and default AdMob), the publisher we're working with requested Nend and has been waiting for its implementation for over 2 weeks now, i would really appreciate it if you confirm or deny their RewardAds usability at the moment.

Thank you!

ala slipknot

unread,
Mar 13, 2018, 3:31:26 PM3/13/18
to Google Mobile Ads SDK Developers
Update: forgot to say that its for Unity and iOS is our main priority.

mobileadssdk-a...@google.com

unread,
Mar 13, 2018, 4:29:11 PM3/13/18
to ala slipknot, Google Mobile Ads SDK Developers
Hi there,

You can be able to fetch Reward Video from Nend Ad Network but won't be able to make targeted ad requests for Reward Video mediation. Extras being sent via AdRequest are only meant for targets to be sent for the mediation.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 03/13/18 15:25:01 alasl...@gmail.com wrote:
So currently we can't use Nend to display Reward Ads ? or is the extras are not necessary to do so ? as far as i know i followed their documentation step by step and i still never seen a Nend Ad, even in a mediation group that only contain Nend (and default AdMob), the publisher we're working with requested Nend and has been waiting for its implementation for over 2 weeks now, i would really appreciate it if you confirm or deny their RewardAds usability at the moment.

Thank you!

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

ala slipknot

unread,
Mar 13, 2018, 4:53:07 PM3/13/18
to Google Mobile Ads SDK Developers
Hi, so this AdRequest code should work be able to show reward Ads from Nend as long as it is part of the mediation group ?


 
private void RequestRewardedVideo()
   
{
#if UNITY_ANDROID
       
string adUnitId = Android_RewardedAdID;
#elif UNITY_IPHONE
           
string adUnitId = iOS_RewardedAdID;
#else
           
string adUnitId = "unexpected_platform";
#endif


       
//Create a new empty VRVME Object, required to add additional parameters, rewarded only

       
VungleRewardedVideoMediationExtras extras = new VungleRewardedVideoMediationExtras();

       
//Same as above, all placements must be passed at all times, as Admob doesn't initlize Vungle until admob calls it

        extras
.SetAllPlacements(new string[] { VungleRewardPlacement, VungleDefaultPlacement });

       
// Create an empty ad request with extra parameters required to load Vungle

       
AdRequest request = new AdRequest.Builder().AddMediationExtras(extras).Build();



       
//Loads an ad with the above parameters
        rewardBasedVideo
.LoadAd(request, adUnitId);




   
}



I also wanted to test, with a mediation group that only contains Nend, in that case, should i remove the Vungle extras part from the Ad request or it wont effect it ?

Thanks!

mobileadssdk-a...@google.com

unread,
Mar 14, 2018, 11:50:50 AM3/14/18
to ala slipknot, Google Mobile Ads SDK Developers
Hi

Yes this is correct. Extras are only for additional targets to be sent via the AdRequest for the mediation ad networks. You can remove the Extras for Vungle if you do not require it. If network is added in the mediation stack, they will be served based on the eCPM and AdRequest but Extras are optional. 

Should i remove the Vungle extras part from the Ad request or it wont effect it ?

This will only be passed to Vungle if this ad network wins the auction among all of the the ad networks in the mediation stack to be served and it will not impact if Nend Ad Network wins the auction.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

ala slipknot

unread,
Mar 14, 2018, 1:27:29 PM3/14/18
to Google Mobile Ads SDK Developers
Hi, 

Got it, thanks for the clarification. 

regarding Nend, the current official documentation is not done yet, i was wondering if the Adapters linked here and the way to use them is correct cause correctly i still can't get it to work.

Thanks!

mobileadssdk-a...@google.com

unread,
Mar 14, 2018, 3:58:04 PM3/14/18
to ala slipknot, Google Mobile Ads SDK Developers
Hi there,

You might be missing a step or two. Can you make sure that you are following the steps mentioned here? If you are still unable to load, then check what error is being thrown by the AdListener to narrow down the issue. You can also send us your Ad Unit ID or a sample app of your integration for us to debug this issue.

You can use "Reply Privately to Author" option to share the details.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

ala slipknot

unread,
Mar 14, 2018, 6:05:07 PM3/14/18
to Google Mobile Ads SDK Developers
Hi, 

Cool i'll try what you suggested, but if you got time it would be great if you can test our AD unit too (i'll see if i can make a sample app tomorrow),

App IDca-app-pub-6135544081993539~3928185734  
Ad unit : ca-app-pub-6135544081993539/1110450704 

It contains 1 mediation group with Nened (eCPM $14) and AdMob (eCPM $0.01)

Thanks!

ala slipknot

unread,
Mar 15, 2018, 6:33:30 AM3/15/18
to Google Mobile Ads SDK Developers
UPDATE : we were just talking with Nend and they said that the Ad Request must be coming from a Japanese IP, and, the phone language must also be Japanese...

Is google aware of that ?

mobileadssdk-a...@google.com

unread,
Mar 15, 2018, 3:44:41 PM3/15/18
to ala slipknot, Google Mobile Ads SDK Developers
Hi there,

UPDATE : we were just talking with Nend and they said that the Ad Request must be coming from a Japanese IP, and, the phone language must also be Japanese...

Is google aware of that ?

As far as I can confirm, this is not the case but you would have to confirm this with Nend only.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 03/15/18 06:33:30 alasl...@gmail.com wrote:
UPDATE : we were just talking with Nend and they said that the Ad Request must be coming from a Japanese IP, and, the phone language must also be Japanese...

Is google aware of that ?

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages