本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
用戶端追蹤
MediaTailor 將覆蓋廣告放置在可nonLinearAdsList
用範圍內。用 MediaTailor 戶端追蹤 API 有兩個根物件,稱為avails
和nonLinearAvails
。如果 VAST 回應是具有的 WMAPnonlinear
,則可用breakType
的中繼資料位於nonLinearAvails
根物件內。如果 VAST 回應是含有 a breakType
的 VMAPlinear
,或是沒有 VMAP 的純 VAST 回應,則可用的中繼資料位於avails
根物件內。
如需有關用戶端追蹤的詳細資訊,請參閱用戶端追蹤。
下列範例顯示一般 VAST 回應或 VMAP 回應,breakType
值為。linear
{ "avails": [ { "adBreakTrackingEvents": [ { "beaconUrls": [ "
https://adserver.com/beacon=breakstartimpression
" ], "eventType": "breakStart" }, { "beaconUrls": [ "https://adserver.com/beacon=breakendimpression
" ], "eventType": "breakEnd" } ], "adMarkerDuration": null, "ads": [], "availId": "828", "availProgramDateTime": null, "duration": "PT0S", "durationInSeconds": 0, "meta": null, "nonLinearAdsList": [ { "extensions": null, "nonLinearAdList": [ { "adId": "", "adParameters": null, "adSystem": "2.0", "adTitle": "2", "apiFramework": null, "clickThrough": null, "clickTracking": null, "clickTrackingId": null, "creativeAdId": "", "creativeId": "18", "creativeSequence": "", "duration": null, "durationInSeconds": 0, "expandedHeight": null, "expandedWidth": null, "height": "360", "htmlResource": null, "iFrameResource": null, "maintainAspectRatio": false, "minSuggestedDuration": null, "scalable": false, "staticResource": "https://client-side-ads.com/tags/static/ctv-generic/overlay001.json?iv_geo_country%3DUS%26
", "staticResourceCreativeType": "text/js_ref", "width": "640" } ], "trackingEvents": [ { "beaconUrls": [ "https://adserver.com/beacon=impression" ], "duration": null, "durationInSeconds": 0, "eventId": null, "eventProgramDateTime": null, "eventType": "impression", "startTime": null, "startTimeInSeconds": 0 } ] } ], "startTime": "PT1M46.08S", "startTimeInSeconds": 106.08 } ], "dashAvailabilityStartTime": null, "hlsAnchorMediaSequenceNumber": null, "nextToken": null, "nonLinearAvails": [] }
下列範例顯示breakType
值為的nonlinear
純 VMAP 回應。
{ "avails": [], "dashAvailabilityStartTime": null, "hlsAnchorMediaSequenceNumber": null, "nextToken": null, "nonLinearAvails": [ { "adBreakTrackingEvents": [ { "beaconUrls": [ "
https://adserver.com/beacon=breakstartimpression
" ], "eventType": "breakStart" }, { "beaconUrls": [ "https://adserver.com/beacon=breakendimpression
" ], "eventType": "breakEnd" } ], "adMarkerDuration": null, "ads": [], "availId": "828", "availProgramDateTime": null, "duration": "PT0S", "durationInSeconds": 0, "meta": null, "nonLinearAdsList": [ { "extensions": null, "nonLinearAdList": [ { "adId": "", "adParameters": null, "adSystem": "2.0", "adTitle": "2", "apiFramework": null, "clickThrough": null, "clickTracking": null, "clickTrackingId": null, "creativeAdId": "", "creativeId": "18", "creativeSequence": "", "duration": null, "durationInSeconds": 0, "expandedHeight": null, "expandedWidth": null, "height": "360", "htmlResource": null, "iFrameResource": null, "maintainAspectRatio": false, "minSuggestedDuration": null, "scalable": false, "staticResource": "https://client-side-ads.com/tags/static/ctv-generic/overlay001.json?iv_geo_country%3DUS%26
", "staticResourceCreativeType": "text/js_ref", "width": "640" } ], "trackingEvents": [ { "beaconUrls": [ "https://adserver.com/beacon=impression
" ], "duration": null, "durationInSeconds": 0, "eventId": null, "eventProgramDateTime": null, "eventType": "impression", "startTime": null, "startTimeInSeconds": 0 } ] } ], "startTime": "PT1M46.08S", "startTimeInSeconds": 106.08 } ] }