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 fields:
detail.config_id- STRING - The id of the ad unit the event was triggered fromdetail.msg- STRING - Further details of the eventdetail.targeting- OBJECT - The key-value targeting applied to the slot for the ad request. Only present on theci_alandci_amevents (see Reading slot targeting below).
Reading slot targeting
Theci_al (Ad Load) and ci_am (Ad Miss) events include a detail.targeting object containing all of the key-value targeting that was applied to that slot for the ad request — in other words, everything that was sent to the ad server. This includes any values you set via .setTargeting(), the tag’s own key-values, and the header-bidding keys applied during the auction (such as hb_pb, hb_size, amznbid and amznsz).
Each value is returned as an array of strings.
This lets you react to the outcome of the auction — for example the winning size and price — from your own page code, without needing to read from Prebid or Amazon directly.
Example