...
When working with GDPR users, a publisher may need to get consent for other vendors other than the IAB-compliant ones, e.g. when using some special analytics tool or other product from a company that is not registered in the IAB Global Vendor List. The function setCustomVendors
is used to configure AdConsent with an additional list of custom vendors to get consent for them. This will only work when using the standalone version of AdConsent, otherwise, if AdConsent is served by AdEngine it’s required to check with the account manager for them to add the custom vendors to the list.
Syntax
function adconsent.gdpr()
...
String holding a description for this vendor, e.g., what kind of business they conduct, their values, etc. It's not mandatory to have a vendor description (the field can be set as an empty string), but having a more complete info for the vendor may rise raise the odds to have a of having positive consent for it.
CustomVendorsList.policyUrl
...
After the user gives consent, this can be checked for the custom vendors by using the function getCustomVendorsConsent and then setting set whatever behaviour behavior should be expected in case of having or not having consent for these vendors.
...
The function must be called before AdConsent shows the GUI. Calls, after AdConsent has shown the GUI, will be ignored.
Examples
Enable one custom vendor called Veritass
Code Block |
---|
adconsent.gdpr('setCustomVendors', [ { id: 1, name: "Veritass", description: "Veritass' mission is simply to provide you an example on how to create a custom vendor.", policyUrl: "https://www.veritass.com/privacy_policy" } ]); |
Enable 3 custom vendors called Veritass, Bing, and YANIAB
Code Block |
---|
adconsent.gdpr('setCustomVendors', [ { id: 1, name: "Veritass", description: "Veritass' mission is simply to provide you an example on how to create a custom vendor.", policyUrl: "https://www.veritass.com/privacy_policy" }, { id: 2, name: "Bing", description: "Bing helps you turn information into action, making it faster and easier to go from searching to doing.", policyUrl: "https://about.ads.microsoft.com/en-us/resources/policies/microsoft-advertising-privacy-policy" }, { id: 3, name: "YANIAB", description: "Yet another non-IAB vendor.", policyUrl: "https://yaniab.com/privacy-policy" } ]); |
...