Today we are releasing v201411 of the DFP API. This release supports creating and updating VideoRedirectCreatives, enhances cross-sell via the new SharedAdUnitService, and adds an experimental Targeting field to the Line_Item PQL table. There are also new Sales Manager enhancements, including derived custom criteria on proposal line items and PQL filtering for Product.lastModifiedDateTime. A detailed list of these and other changes can be found on our release notes page.
videoRedirectAsset.setRedirectUrl("http://0.thirdpartyadserver.com/ad.mp4")
You will also need to set the VideoMetadata information for both externally hosted and YouTube hosted ads. For streaming videos, set the minimumBitRate and maximumBitRate; for progressive videos, use the static bitRate.
WHERE status = 'ACTIVE'
<Value.Type>TargetingValue</Value.Type> <value> <inventoryTargeting> <targetedAdUnits> <adUnitId>33985943</adUnitId> <includeDescendants>true</includeDescendants> </targetedAdUnits> </inventoryTargeting> </value>
If you've been waiting for a faster way to retrieve line item targeting, try it out and let us know what you think. Head over to the API forum and tell us what works for you, and how we can improve.
- Chris Seeley, DFP API Team