From a622e6d2e83ca81237e8efe8c6b48c5c905349d4 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Thu, 29 Mar 2018 16:54:21 +0200 Subject: [PATCH] Add Google Partners Badge --- tarteaucitron.services.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 4feb0ca..9b042b0 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -673,6 +673,25 @@ tarteaucitron.services.adsense = { } }; +// google partners badge +tarteaucitron.services.googlepartners = { + "key": "googlepartners", + "type": "ads", + "name": "Google Partners Badge", + "uri": "http://www.google.com/ads/preferences/", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + tarteaucitron.addScript('https://apis.google.com/js/platform.js'); + }, + "fallback": function () { + "use strict"; + var id = 'googlepartners'; + tarteaucitron.fallback(['g-partnersbadge'], tarteaucitron.engage(id)); + } +}; + // google adsense search (form) tarteaucitron.services.adsensesearchform = { "key": "adsensesearchform",