From ba5d06148f852e23e29bb0dd9458c931f89155b8 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Tue, 22 Mar 2022 17:04:57 +0100 Subject: [PATCH] Fix #895 --- tarteaucitron.services.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 106640e..4d3319b 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -32,6 +32,33 @@ tarteaucitron.services.iframe = { } }; +// doubleclick +tarteaucitron.services.doubleclick = { + "key": "doubleclick", + "type": "ads", + "name": "DoubleClick", + "uri": "https://support.google.com/admanager/answer/2839090", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + tarteaucitron.fallback(['doubleclick_container'], function (x) { + var id1 = tarteaucitron.getElemAttr(x, "data-id1"), + id2 = tarteaucitron.getElemAttr(x, "data-id2"), + item = tarteaucitron.getElemAttr(x, "data-item"), + quantity = tarteaucitron.getElemAttr(x, "data-quantity"), + price = tarteaucitron.getElemAttr(x, "data-price"), + postage = tarteaucitron.getElemAttr(x, "data-postage"), + seller = tarteaucitron.getElemAttr(x, "data-seller"), + axel = Math.random() + "", + a = axel * 10000000000000; + + iframe = ''; + return iframe; + }); + } +}; + // userpilot tarteaucitron.services.userpilot = { "key": "userpilot",