Banner ad and interstitial ads in a single application using mediation

589 views
Skip to first unread message

Jeff Trespalacios

unread,
Apr 23, 2012, 11:21:35 AM4/23/12
to Google AdMob Ads Developers
I am working on an application which uses AdMob mediation and have
successfully implemented banner ads. Although now when I attempt to
load an interstitial ad I get the following error:

Failed to fetch interstital ad: Unable to request an interstitial when
server configuration was for kGADAdSizeBanner.
More Info: {
NSLocalizedDescription = "Unable to request an interstitial when
server configuration was for kGADAdSizeBanner.";
NSLocalizedFailureReason = "Unable to request an interstitial when
server configuration was for kGADAdSizeBanner.";
}


Is it possible to have both types of ads in a single application. I
only saw the one setting for ad size under the application and was not
sure if it would be possible to have an alternate.

Prior to mediation I had implemented the AdMob sdk and was able to
serve both types of ads, in test mode, successfully.

Your help is appreciated.

Jeff

Eric Leichtenschlag

unread,
Apr 23, 2012, 12:44:18 PM4/23/12
to google-adm...@googlegroups.com
Hey Jeff,

Mediation placements require a specific ad type; so since your placement type was banner (specifically 320x50), you can not request an interstitial with the same placement ID.  You'll want to create a second mediation placement with the type interstitial to request interstitial ads.  If you were developing for tablet and wanted a 728x90, you'd need a 3rd placement with the "Leaderboard" size to request those ads.

The AdMob ID itself has no association with ad types, so you can configure all types of mediation placements with the same AdMob ID.

Cheers,
Eric

Eric Leichtenschlag

unread,
Jun 10, 2013, 3:53:13 PM6/10/13
to google-adm...@googlegroups.com
Hi Jeff,

Yeah, you'll want to configure a separate mediation placement for interstitials and use that placement in your app. Some reasons for doing this are that you may have different identifiers for other networks if you're serving a banner or an interstitial. In addition, not all networks that support banners support interstitials. So by creating a placement for the interstitial size specifically, it'll make sure that the networks available under the interstitial placement all support interstitials.

Thanks,
Eric

On Tuesday, June 4, 2013 11:29:40 AM UTC-7, Thomas Iguchi wrote:
Hi Eric,

I am in a very similar situation right now with a free Android game I'm currently developing. I have a permanent banner on top of the screen and in certain intervals I'd like to show interstitial ads.
I am using AdMob as a mediator for both the AdMob network and also InMobi.

Requests are correctly routed through to InMobi, I can see that "full screen" sized requests are coming in. However, the interstitials won't show up. I get the following warning in my log:

06-04 13:05:48.921: W/Ads(4478): InterstitialAd received a mediation response corresponding to a non-interstitial ad. Make sure you specify 'interstitial' as the ad-type in the mediation UI.

The following is the full request URL sent to your server. It (correctly) contains the parameter: format=interstitial_mb.

http://googleads.g.doubleclick.net:80/mads/mediate?preqs=3&session_id=[REMOVED]&u_sd=1.3312501&seq_num=7&slotname=62b0067a22a14c96&u_w=600&msid=[REMOVED]&js=afma-sdk-a-v6.4.1&ms=ZVxRemcicsapzB0eaZ6NF1OVAbUkf5bWjrRUAA9zzVCAhaz_C4QcG2C0kpkfvO64EZ7eknNI7tYK-kISjF5LiEs70V9IFgdxg6GA3WLxKj98Ekpv2AFDRy4Pcf5RK360J8d1q2CezHrYGK_jpTXkstv23kWwrs9hdxRBvgcUtoY90Glp3wPfNHQxaZFn9I7_vNCxkaiE5rTZByN1r4U_lj88_odfE1wm1JnL7sJmi_VqW0ekzL9hqK_Dwh8GNmoaD-li9MSXtSbvK5qZ-JEeMJRrHxl0qG4rJMHFis6BoAo6bCphgJZMYQevd4cq1HHAGpTor3IsjqzX3PPq1Gj7vw&mv=80210006.com.android.vending&isu=[REMOVED]&bas_off=0&format=interstitial_mb&oar=0&imbf=9&net=wi&app_name=[REMOVED]&hl=en&gnt=0&u_h=905&bas_on=0&ptime=1116055&u_audio=3&u_so=p&cap=t&output=html&region=mobile_app&u_tz=-300&client_sdk=1&ex=1&caps=inlineVideo_interactiveVideo_mraid1_th_mediation_sdkAdmobApiForAds_di&jsv=48


However, the JSON response looks like as follows:

{"ad_networks":[{"adapters":["com.google.ads.mediation.inmobi.InMobiAdapter"],"allocation_id":"[REMOVED]","data":{"gwhirl_share_location":"1","pubid":"[REMOVED]"},"id":"[REMOVED]"},{"adapters":["com.google.ads.mediation.admob.AdMobAdapter"],"allocation_id":"12774806258176901899","data":{"gwhirl_share_location":"1","mad_hac":"1","pubid":"[REMOVED]"},"id":"[REMOVED]"}],"ad_type":"fullbanner","qdata":"AJ5UM1k1G_RTunCbhnwMcZoqqgJ9wcvixeepCXBczIcL7CpmrBkE9Rqta0_tR1vhUPKHVQ","settings":{"ad_network_timeout_millis":5000,"click_urls":["http://e.admob.com/clk?ad_loc=@gw_adlocid@&qdata=@gw_qdata@&js=@gw_sdkver@&session_id=@gw_sessid@&seq_num=@gw_seqnum@&adt=@gw_adt@&aec=@gw_aec@&ad_network_id=@gw_adnetid@&allocation_id=@gw_allocid@&nr=@gw_adnetrefresh@"],"imp_urls":["http://e.admob.com/imp?ad_loc=@gw_adlocid@&qdata=@gw_qdata@&js=@gw_sdkver@&session_id=@gw_sessid@&seq_num=@gw_seqnum@&adt=@gw_adt@&aec=@gw_aec@&ad_network_id=@gw_adnetid@&allocation_id=@gw_allocid@
&nr=@gw_adnetrefresh@"],"nofill_urls":["http://e.admob.com/nofill?ad_loc=@gw_adlocid@&qdata=@gw_qdata@&js=@gw_sdkver@&session_id=@gw_sessid@&seq_num=@gw_seqnum@&adt=@gw_adt@&aec=@gw_aec@"],"refresh":60}}


The resulting ad type is for some odd reason "fullbanner". It would be great if you could give me some advice here on how to fix that problem. By the way: I did not configure separate AdMob sites, yet for the app. Would that fix the problem?

Regards,

Thomas
Reply all
Reply to author
Forward
0 new messages