This page covers data collection for the Creative ID variable. See Creative ID for the corresponding reporting dimension.
The creative ID variable identifies the specific ad creative. Any string value (typically a creative ID from your ad-server platform) is acceptable.
a.media.ad.creativec_contextdata.a.media.ad.creativeRecommended implementation types
Set creativeID inside xdm.mediaCollection.advertisingDetails when calling sendEvent:
| code language-javascript |
|---|
|
Pass the creative ID as a metadata key in the HashMap argument to trackEvent(AdStart). Use MediaConstants.AdMetadataKeys.CREATIVE_ID.
| code language-swift |
|---|
|
Pass the creative ID as a metadata key in the HashMap argument to trackEvent(AdStart). Use MediaConstants.AdMetadataKeys.CREATIVE_ID.
| code language-kotlin |
|---|
|
Set creativeID inside xdm.mediaCollection.advertisingDetails when calling sendMediaEvent for media.adStart:
| code language-brightscript |
|---|
|
Call the adStart endpoint with creativeID inside xdm.mediaCollection.advertisingDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the creative ID in the contextData object using ADB.Media.AdMetadataKeys.CreativeId:
| code language-javascript |
|---|
|
Set the creative ID using ADBMobile.media.AdMetadataKeys.CREATIVE_ID in the standard ad metadata object:
| code language-javascript |
|---|
|
Include media.ad.creativeId in the params object:
| code language-json |
|---|
|
See the Media Collection API events reference for the full request structure.