load banner ads using AdLoader

506 views
Skip to first unread message

Janusz

unread,
Apr 20, 2017, 5:44:15 AM4/20/17
to Google Mobile Ads SDK Developers
Hi,

currently we're working on adding support for native custom template ads (using AdLoader) with a fallback to standard banner ads (using PublisherAdView). Current implementation relays on our custom waterfall implementation. Is it possible to handle it on the DFP side leveraging all the DFP goodies? we would like to retrieve the ad in one request using either PublisherAdView or AdLoader.


final PublisherAdRequest request = new PublisherAdRequest.Builder().build();

new AdLoader.Builder(getContext(), "placement_id")
    .forCustomTemplateAd("custom_tpl_id", new OnCustomTemplateAdLoadedListener() {
        // ...
    }, new OnCustomClickListener() {
        // ...
    })
   .withAdListener(new AdListener() {
        @Override
        public void onAdFailedToLoad(int i) {
            publisherAdView.loadAd(request);
        }
    })
    .build()
    .loadAd(request);



Message has been deleted

Deepika Uragayala- MobileAds SDK team

unread,
Apr 20, 2017, 2:28:34 PM4/20/17
to Google Mobile Ads SDK Developers
Hi Janusz,

Currently, this would not be possible, since AdLoader is used for Native ad requests. But maybe Native Styles might be of interest to you and I would suggest that you check it out and let us know.

Regards,
Deepika Uragayala
Mobile Ads SDK Team

JM Chilgren

unread,
Apr 20, 2017, 3:07:22 PM4/20/17
to Google Mobile Ads SDK Developers
Hi Deepika,

Is there support planned for the ability to request a Custom Render and Standard banner ad size via a single request in the future? We'd heard yes from our Google rep but just wondering if you had anymore insight there. We'd really like to just let DFP manage the ad from a single request so we can avoid these manual waterfalls client-side to speed up performance.

For reference, the Custom Render unit is purely custom and not "native" in the standard sense - we're using it to power a custom unit on our app's home screen, but need to back-fill with standard inventory when it is unsold.

Thanks!
JM

Ram Parameswaran (Mobile SDK Team)

unread,
Apr 20, 2017, 4:18:55 PM4/20/17
to google-adm...@googlegroups.com
Hi Janusz,

This functionality is something that will be addressed by the Google Mobile Ads SDK in the near future. Keep an eye out for updates.

- Ram

JM Chilgren

unread,
May 25, 2017, 3:11:41 PM5/25/17
to Google Mobile Ads SDK Developers
Any update on timing here by chance? Thanks!


On Thursday, 20 April 2017 16:18:55 UTC-4, Ram Parameswaran (Mobile SDK Team) wrote:
Hi Janusz,

This functionality is something that will be addressed by the Google Mobile Ads SDK in the near future. Keep for an eye out for updates.

Ram Parameswaran (Mobile SDK Team)

unread,
May 25, 2017, 5:16:20 PM5/25/17
to Google Mobile Ads SDK Developers
This feature is still slated to be releasing soon but I don't have any additional information to share on exact time frame. 

- Ram

JM Chilgren

unread,
Aug 8, 2017, 10:34:39 AM8/8/17
to Google Mobile Ads SDK Developers
Any word if this is now ready? I believe we're in the beta but don't see any docs on how to implement this yet. Thanks!

Ram Parameswaran (Mobile SDK Team)

unread,
Aug 9, 2017, 8:08:01 PM8/9/17
to Google Mobile Ads SDK Developers
The feature is still not available to the general public. If you're participating in a closed beta, you should reach out to your account manager for integration instructions.

- Ram

Boy Lenssen

unread,
Nov 3, 2017, 11:32:29 AM11/3/17
to Google Mobile Ads SDK Developers
Hi Ram,

Just wondering, is there some feature request on this which I can follow / get notification on whenever this feature comes into production?

Boy Lenssen

unread,
Nov 3, 2017, 11:54:46 AM11/3/17
to Google Mobile Ads SDK Developers
Ok, I've found a way and I don't know since how long this is in here, but you can use `forPublisherAdView` : https://developers.google.com/android/reference/com/google/android/gms/ads/AdLoader.Builder.html#forPublisherAdView(com.google.android.gms.ads.formats.OnPublisherAdViewLoadedListener, com.google.android.gms.ads.AdSize...)

working perfectly!
Reply all
Reply to author
Forward
Message has been deleted
0 new messages