This page covers data collection for the Creative URL variable. See Creative URL for the corresponding reporting dimension.
The creative URL variable is the URL of the ad creative. Use the variable to track the asset location of each creative when the URL itself is meaningful for analysis (for example, distinguishing CDN paths or creative versions).
a.media.ad.creativeURLc_contextdata.a.media.ad.creativeURLRecommended implementation types
Set creativeURL inside xdm.mediaCollection.advertisingDetails when calling sendEvent:
| code language-javascript |
|---|
|
Pass the creative URL as a metadata key in the HashMap argument to trackEvent(AdStart). Use MediaConstants.AdMetadataKeys.CREATIVE_URL.
| code language-swift |
|---|
|
Pass the creative URL as a metadata key in the HashMap argument to trackEvent(AdStart). Use MediaConstants.AdMetadataKeys.CREATIVE_URL.
| code language-kotlin |
|---|
|
Set creativeURL inside xdm.mediaCollection.advertisingDetails when calling sendMediaEvent for media.adStart:
| code language-brightscript |
|---|
|
Call the adStart endpoint with creativeURL inside xdm.mediaCollection.advertisingDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the creative URL in the contextData object using ADB.Media.AdMetadataKeys.CreativeUrl:
| code language-javascript |
|---|
|
Set the creative URL using ADBMobile.media.AdMetadataKeys.CREATIVE_URL in the standard ad metadata object:
| code language-javascript |
|---|
|
Include media.ad.creativeURL in the params object:
| code language-json |
|---|
|
See the Media Collection API events reference for the full request structure.