Global Scripts tab
Please note that if a script is not used individually for one, but rather affects a publisher, then activate the script at the global level.
Scripts config tab configures scripts which are included on a webpage.
If we have scripts with different variables (such as Ids), we can control them via the Global Variable area:
Please use the variables if two publishers have two different solutions for one value
The CustomVendorBcn, for example, differs if the publishers use different CMPs. To simplify the insertion of this ID, we have stored a default value at global level and the corresponding ID at publisher level. See also Script config tab.
Important note here is that we don't need to have the script on publishers area any more to use the same script with different IDs. Only the IDs need to be stored correctly at Publisher level:
If a variable appears in a global script, it must be defined also in global scripts. It acts as a "safety" in case such a variable is not added in the publisher's scripts.
There is also a validation that a variable cannot be added in a global script if it is not created yet.
The following can be defined within the scripts:
Scripts title - name/description of the script
Apply script to - All means all publishers, but you can open the selection and select, exclude or include individual publishers
Priority:
low - SDK load script after first ad request
high - SDK load script during initialization
very high - SDK load script during initialization before high priority scripts
Required - toggle: if
required
is true, SDK will throw an error and stop initialization process whenever script fails to load. The 'Required' switch should only be used for scripts, that absolutely need to be loaded before loading ads (like Prebid, GAM, Relevant Yield). If the script fails to load (for example due to an error), when the ads will not be loaded. As long as the script is not executed, the ads will not be loaded.Force execution - toggle to force the script delivery even when no_ad applied (even if
dataLayer.push({ 'atf-noAdDelivery': true });
)Use user consent - on/ off toggle: if
useUserConsent
is true, SDK will check if consents are applied for vendors fromvendorIDs
list and then load scripts if all consents are allowedVendor ID:
vendorIDs
is list of vendor ids for which consents need to be verified ifuseUserConsent
is true. The IDs only need to be separated by a comma and there is no limit of Vendor IDs. The vendor IDs are stored with an and-link.Script input - to include the script
on/off - toggle to turn on (activate) or off (deactivate) the script. If deactivated, script will not be included.