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.
  1. kWidget.embed({
  2. 'targetId': 'myVideoTarget',
  3. 'wid': '_243342',
  4. 'uiconf_id' : '12905712',
  5. 'entry_id' : '0_uka1msg4',
  6. 'flashvars': {
  7. 'doubleClick':{
  8. 'plugin':true,
  9. 'trackCuePoints': true
  10. },
  11. 'mediaProxy':{
  12. 'entryCuePoints': [{
  13. "protocolType": 1,
  14. "adType": 1,
  15. "cuePointType": "adCuePoint.Ad",
  16. "startTime": 5000,
  17. "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]"
  18. }]
  19. }
  20. },
  21. );
html5 qunit | flash qunit