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!