How can I serve cached interstitial (pre-roll) video ads with DFP in a native Android app?

219 views
Skip to first unread message

dfp_sdk_w

unread,
Aug 12, 2015, 12:49:36 PM8/12/15
to Google Mobile Ads SDK Developers
I've never used DFP before, so my apologies for my naivety. 

I have an Android application that I'll be serving a mix of direct brand video advertising (cached) and programmatic videos from an exchange (streaming on the fly). The reason for this is that we are trying to limit unnecessary data usage and also minimize the buffering that needs to happen (no one likes slow loading videos). 

For both types we'd like to use DFP to track and optimize what to show (ie, we might make a call to DFP to decide which ad to show and it may tell us to play a cached video ad or, if those are completely filled, use an exchange to programmatically fill). 

The direct sales video ads we will be given directly by brands in some compatible format (like H.264 .mp4 files). 

How can this be done?

Reading the documentation here, it would seem as though I just create an "Ad Unit" on the DFP online interface and my different direct sale brands are different line items associated with it. 

In the code:

private void requestNewInterstitial() {
       
PublisherAdRequest adRequest = new PublisherAdRequest.Builder()
                 
.addTestDevice("SEE_YOUR_LOGCAT_TO_GET_YOUR_DEVICE_ID")
                 
.build();

       
// If the adRequest is for a video I have cached, can I avoid streaming it
        // while still reporting to DFP an impression has occurred and for which video?
        mPublisherInterstitialAd
.loadAd(adRequest);
}



Would love to hear how we might accomplish this.

Thanks!

Ram Parameswaran (Mobile SDK Team)

unread,
Aug 14, 2015, 7:41:03 PM8/14/15
to Google Mobile Ads SDK Developers
Hi,

Although what you are proposing may be possible using DFP App Events, it would be very convoluted due to the need for manual impression tracking, which is currently not supported for DFP interstitials. If you did want to attempt to implement your proposal, I would recommend using DFP creatives that contain App Events. Your application should handle these events to show cached video. You can learn more about App Events here. The linked documentation is for banners but interstitials also support this functionality.

- Ram 

Will Drevo

unread,
Aug 17, 2015, 11:44:38 AM8/17/15
to google-adm...@googlegroups.com
Ram, many thanks for your reply. 

If I understand correctly, in the DFP web interface I can add to a Line Item a certain App Event that, when the mobile application asks for the next ad, the response from DFP will contain a Creative that actually isn't a video, but is instead an App Event code that the mobile application could react in any way desirable?

This would mean that instead of downloading a video, the app would only download a response and could play cached video in its place. 

Is this description of your suggestion correct?

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/epxwJ-67NBs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
To post to this group, send email to google-adm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Will Drevo
Co-founder @ Podium

Will Drevo

unread,
Aug 24, 2015, 5:04:10 PM8/24/15
to google-adm...@googlegroups.com
Ram, 

Just wanted to check back. Was my description of your approach correct?


Ram Parameswaran (Mobile SDK Team)

unread,
Aug 24, 2015, 5:15:08 PM8/24/15
to Google Mobile Ads SDK Developers
Hi Will,

Your description was correct.

- Ram 


On Monday, August 24, 2015 at 2:04:10 PM UTC-7, dfp_sdk_w wrote:
Ram, 

Just wanted to check back. Was my description of your approach correct?


On Mon, Aug 17, 2015 at 11:43 AM, Will Drevo <wi...@podiumlabs.com> wrote:
Ram, many thanks for your reply. 

If I understand correctly, in the DFP web interface I can add to a Line Item a certain App Event that, when the mobile application asks for the next ad, the response from DFP will contain a Creative that actually isn't a video, but is instead an App Event code that the mobile application could react in any way desirable?

This would mean that instead of downloading a video, the app would only download a response and could play cached video in its place. 

Is this description of your suggestion correct?
To unsubscribe from this group and all its topics, 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.

For more options, visit https://groups.google.com/d/optout.
--
Will Drevo
Co-founder @ Podium
Reply all
Reply to author
Forward
0 new messages