This page covers data collection for the Advertiser variable. See Advertiser for the corresponding reporting dimension.
The advertiser variable is the company or brand featured in the ad (for example, "Ford" or "Coca-Cola"). Use the variable to break out engagement and completion by advertiser.
a.media.ad.advertiserc_contextdata.a.media.ad.advertiserRecommended implementation types
Set advertiser inside xdm.mediaCollection.advertisingDetails when calling sendEvent:
| code language-javascript |
|---|
|
Pass the advertiser as a metadata key in the HashMap argument to trackEvent(AdStart). Use MediaConstants.AdMetadataKeys.ADVERTISER.
| code language-swift |
|---|
|
Pass the advertiser as a metadata key in the HashMap argument to trackEvent(AdStart). Use MediaConstants.AdMetadataKeys.ADVERTISER.
| code language-kotlin |
|---|
|
Set advertiser inside xdm.mediaCollection.advertisingDetails when calling sendMediaEvent for media.adStart:
| code language-brightscript |
|---|
|
Call the adStart endpoint with advertiser inside xdm.mediaCollection.advertisingDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the advertiser in the contextData object using ADB.Media.AdMetadataKeys.Advertiser:
| code language-javascript |
|---|
|
Set the advertiser using ADBMobile.media.AdMetadataKeys.ADVERTISER in the standard ad metadata object:
| code language-javascript |
|---|
|
Set the advertiser using MEDIA_AdMetadataKeyADVERTISER in the standard ad metadata object:
| code language-brightscript |
|---|
|
Include media.ad.advertiser in the params object:
| code language-json |
|---|
|
See the Media Collection API events reference for the full request structure.