/
Global Scripts tab

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.

Bildschirmfoto 2024-06-12 um 10.11.33.png

If we have scripts with different variables (such as Ids), we can control them via the Global Variable area:

Bildschirmfoto 2024-06-12 um 10.12.26.png

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:

  1. Scripts title - name/description of the script

  2. Apply script to - All means all publishers, but you can open the selection and select, exclude or include individual publishers

  3. Priority:

    1. low - SDK load script after first ad request

    2. high - SDK load script during initialization

    3. very high - SDK load script during initialization before high priority scripts

  4. 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. 

  5. Force execution - toggle to force the script delivery even when no_ad applied (even if dataLayer.push({ 'atf-noAdDelivery': true });)

  6. Use user consent - on/ off toggle: if useUserConsent is true, SDK will check if consents are applied for vendors from vendorIDs list and then load scripts if all consents are allowed

  7. Vendor ID: vendorIDs is list of vendor ids for which consents need to be verified if useUserConsent 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.

  8. Script input - to include the script

  9. on/off - toggle to turn on (activate) or off (deactivate) the script. If deactivated, script will not be included.

Related content