On May 25th, 2018, the new EU data protection regulatory framework – the General Data Protection Regulation ("GDPR") – came into effect.

Taboola takes considerable efforts to ensure that its privacy practices comply with data protection laws and the industry's best practices.

Working with the IAB consent framework

Taboola added support for the IAB consent framework ("IABConsent_ConsentString") in Android SDK version 2.2.3. Please make sure you are using this SDK version or above.

Passing consent status directly to Taboola SDK

It is possible to forward the consent status to Taboola SDK on each time the widget/feed is initialized using a dedicated flag - cex. The consent boolean value (in string format) should be passed on each SDK session.

By default, the value of this flag is set to "true" - allowing Taboola to use the user's data. Please use the flag only when the end-user is GDPR subject and set it to "true" (user provided consent), or "false" (user didn't provide consent). It is recommended to place these lines alongside the other settings, such as publisher name, etc

//Setting taboolaWidget object
taboolaWidget.setPublisher("<publisher-as-supplied-by-taboola>")
  .setMode("<mode-as-supplied-by-taboola>")
  .setPlacement("<placement-as-supplied-by-taboola>")
  .setPageUrl("<public-web-url-which-reflects-the-current-content>")
  .setPageType("<my-page-type>")
  .taboolaWidget.setTargetType("<my-target-type>");

HashMap<String, String> extraProperties = new HashMap<>();
extraProperties.put("cex","true");
taboolaWidget.setExtraProperties(extraProperties);
<!-- in the body tag add user_opt_out to the JS tag -->
<div id="container-id"></div>
<script type="text/javascript">
   window._taboola = window._taboola || [];
   _taboola.push({mode: "mode-name",
   	container: "container-id",
   	placement: "Placement Name",
        cex: "true",
   	target_type: "mix"});
   _taboola["mobile"] = window._taboola["mobile"] || [];
   _taboola["mobile"].push({
   publisher:"publisher-id-goes-here"
   });
</script>

Updated about a month ago


GDPR


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.