DFP Runtime Cuepoints
How to set DFP cuePoints at Runtime
CuePoints at Runtime work by partial mediaProxy override. Here you can see a cuePoint object added with startTime 5 seconds.
- kWidget.embed({
- 'targetId': 'myVideoTarget',
- 'wid': '_243342',
- 'uiconf_id' : '12905712',
- 'entry_id' : '0_uka1msg4',
- 'flashvars': {
- 'doubleClick':{
- 'plugin':true,
- 'trackCuePoints': true
- },
- 'mediaProxy':{
- 'entryCuePoints': [{
- "protocolType": 1,
- "adType": 1,
- "cuePointType": "adCuePoint.Ad",
- "startTime": 5000,
- "sourceUrl": "http://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&cust_params=sample_ct%3Dlinear&correlator=[timestamp]"
- }]
- }
- },
- );
html5 qunit | flash qunit