From 36b1d72189110e2f6f60a6cca41d6efbfa7ac61b Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Mon, 30 May 2022 19:01:53 +0200 Subject: [PATCH] Add Google Adsense Search Fix #952 --- tarteaucitron.services.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index b996ede..a66cca5 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -1804,6 +1804,27 @@ tarteaucitron.services.adsense = { } }; +// Google Adsense Search +tarteaucitron.services.adsensesearch = { + "key": "adsensesearch", + "type": "ads", + "name": "Google Adsense Search", + "uri": "https://adssettings.google.com/", + "needConsent": true, + "readmoreLink": "https://policies.google.com/technologies/partner-sites", + "cookies": ['__gads'], + "js": function () { + "use strict"; + tarteaucitron.addScript('https://www.google.com/adsense/search/ads.js'); + (function(g,o){g[o]=g[o]||function(){(g[o]['q']=g[o]['q']||[]).push(arguments)},g[o]['t']=1*new Date})(window,'_googCsa'); + }, + "fallback": function () { + "use strict"; + var id = 'adsensesearch'; + tarteaucitron.fallback(['afscontainer1'], tarteaucitron.engage(id)); + } +}; + // google partners badge tarteaucitron.services.googlepartners = { "key": "googlepartners",