This page covers data collection for the Ad name variable. See Ad name for the corresponding reporting dimension.
The ad name variable is the human-readable title of the ad (for example, "Ford F-150"). Set it on every media.adStart event.
a.media.ad.friendlyNamec_contextdata.a.media.ad.friendlyNameRecommended implementation types
Set friendlyName inside xdm.mediaCollection.advertisingDetails when calling sendEvent:
| code language-javascript |
|---|
|
Pass the ad name as the first (name) argument to createAdObject. The second argument is the ad ID.
| code language-swift |
|---|
|
Pass the ad name as the first (name) argument to createAdObject. The second argument is the ad ID.
| code language-kotlin |
|---|
|
Set friendlyName inside xdm.mediaCollection.advertisingDetails when calling sendMediaEvent for media.adStart:
| code language-brightscript |
|---|
|
Call the adStart endpoint with friendlyName inside xdm.mediaCollection.advertisingDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the ad name as the first argument to ADB.Media.createAdObject:
| code language-javascript |
|---|
|
Pass the ad name as the first argument to ADBMobile.media.createAdObject:
| code language-javascript |
|---|
|
Pass the ad name as the first argument to adb_media_init_adinfo:
| code language-brightscript |
|---|
|
Include media.ad.name in the params object of your adStart POST request:
| code language-json |
|---|
|
See the Media Collection API events reference for the full request structure.