Passing data to ID/Signal providers
Definition
PrivacyIt is worth noting that any PI passed through using this method never reaches the Content Ignite servers. We do not store this data in any way, we simply act as the “pipes” to pass it to the ID vendors you’ve configured in Fusion, all handled client side.
Example
Setting targeting
Definition
Example
Mergeing vs Overwriting vs deleting key-values
When you call.setTargeting() with a string value, it will merge that value with any existing values for that key. If you call it with an array value, it will overwrite any existing values for that key. To delete targeting values for a given key, call .setTargeting() with the value NULL.
Config/Slot level targeting
Definition
.setTargeting() allows you to pass targeting for a specific slot, identified by either the config ID, unit type or parent container ID. If not passed, the targeting will be applied at the page level.
Example
Targeting Macros
When passing targeting values, you can also use macros to pass dynamic values. The macros available are:{CONFIG_ID}The config ID as it is in Fusion; e.g. 1234{INSTANCE_COUNT}The instance count for repeating units; e.g. 1, 2, 3 etc{UNIT_TYPE}Unit type from Fusion; e.g. in-image, adhesion, iab etc
Example
IAB Taxonomy (reserved keys)
We support two different IAB taxonomy types, which you can pass in via.setTargeting() by use of their reserved keys, these are:
IAB_AUDIENCE_1_1- IAB Specification, List of ValuesIAB_CONTENT_2_2- IAB Specification, List of Values
Example
Note that if you enable contextual inside of Fusion for a given publisher,
then the
IAB_CONTENT_2_2 taxonomy is already passed for you!SPA reloads
Definition
Example
Tag Events
For custom development, there are several JavaScript events that are triggered throughout an ads life cycle. You can hook into these as needed to perform additional follow-up actions. These are standard JavaScript events, available on the window the tag was deployed into. For example, for a direct tag-on-page deployment, you can listen to an event with the following:Example
detail object is returned with the following optional field:
detail.config_id- STRING - The id of the ad unit the event was triggered fromdetail.msg- STRING - Further details of the event
| Event Name | Description |
|---|---|
Audience Push ci_ap | Fired when an audience is matched and will be pushed into Ad Manager. Fired once per ad unit. |
Ad Impression ci_ai | Fired when an ad has had a viewable impression (50% of the ad’s pixels are visible in the browser window for a continuous 1 second.) |
Page Impression ci_pi | Fired once for each page once the tag has loaded |
Ad Unit Load ci_aul | Fired once an ad unit has been loaded. Once user consent has been received (if applicable) and an ad has been served. For in-view units, this will be once the in-view event was detected. |
Ad Load ci_al | Fired once an ad unit has been loaded. Once user consent has been received (if applicable) and an ad has been served. For in-view units, this will be once the in-view event was detected. For refresh units, this will fire once per refresh. |
Ad Miss ci_am | Fired if an ad unit did not receive an ad (either ad_load or ad_miss will be triggered for each ad and any subsequent refreshes) |
Consent Denied ci_cd | Fired when user consent is required but was not given |
Tag Error ci_te | Fired on an unexpected tag error |