From 99f889e798f11c54d3b7b1c563cca99977962be7 Mon Sep 17 00:00:00 2001 From: Evheniy Bystrov Date: Tue, 26 Jan 2021 13:18:20 +0200 Subject: [PATCH] APP-1677 MW - Mobile Inline 300x250 ads not appearing on MoneyWeek Homepage and Index Pages --- lib/Bling.js | 4 ++-- package.json | 2 +- src/Bling.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Bling.js b/lib/Bling.js index 514da8c..c4c4b0a 100644 --- a/lib/Bling.js +++ b/lib/Bling.js @@ -317,7 +317,7 @@ var Bling = (_temp2 = _class = function (_Component) { slotSize = sizeMapping[0] && sizeMapping[0].slot; } - return slotSize; + return JSON.stringify(slotSize) === "[0,0]" ? [] : slotSize; } }, { key: "renderAd", @@ -881,7 +881,7 @@ var Bling = (_temp2 = _class = function (_Component) { /** * An optional string for GPT seed file url to override. */ - seedFileUrl: "//www.googletagservices.com/tag/js/gpt.js", + seedFileUrl: "https://securepubads.g.doubleclick.net/tag/js/gpt.js", /** * An optional flag to indicate whether an ad should only render when it's fully in the viewport area. Default is `true`. */ diff --git a/package.json b/package.json index 4fe414e..7db234a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dennisinteractive/react-gpt", - "version": "2.2.0", + "version": "2.2.0-APP-1677-mobile-inline-adds-test", "description": "A react display ad component using Google Publisher Tag", "main": "lib/index.js", "jsnext:main": "es/index.js", diff --git a/src/Bling.js b/src/Bling.js index 2335259..e550ad1 100644 --- a/src/Bling.js +++ b/src/Bling.js @@ -605,7 +605,7 @@ class Bling extends Component { slotSize = sizeMapping[0] && sizeMapping[0].slot; } - return slotSize; + return JSON.stringify(slotSize) === "[0,0]" ? [] : slotSize; } renderAd() {