Skip to content

Commit 99f889e

Browse files
committed
APP-1677 MW - Mobile Inline 300x250 ads not appearing on MoneyWeek Homepage and Index Pages
1 parent dd4bea2 commit 99f889e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/Bling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ var Bling = (_temp2 = _class = function (_Component) {
317317
slotSize = sizeMapping[0] && sizeMapping[0].slot;
318318
}
319319

320-
return slotSize;
320+
return JSON.stringify(slotSize) === "[0,0]" ? [] : slotSize;
321321
}
322322
}, {
323323
key: "renderAd",
@@ -881,7 +881,7 @@ var Bling = (_temp2 = _class = function (_Component) {
881881
/**
882882
* An optional string for GPT seed file url to override.
883883
*/
884-
seedFileUrl: "//www.googletagservices.com/tag/js/gpt.js",
884+
seedFileUrl: "https://securepubads.g.doubleclick.net/tag/js/gpt.js",
885885
/**
886886
* An optional flag to indicate whether an ad should only render when it's fully in the viewport area. Default is `true`.
887887
*/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dennisinteractive/react-gpt",
3-
"version": "2.2.0",
3+
"version": "2.2.0-APP-1677-mobile-inline-adds-test",
44
"description": "A react display ad component using Google Publisher Tag",
55
"main": "lib/index.js",
66
"jsnext:main": "es/index.js",

src/Bling.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ class Bling extends Component {
605605
slotSize = sizeMapping[0] && sizeMapping[0].slot;
606606
}
607607

608-
return slotSize;
608+
return JSON.stringify(slotSize) === "[0,0]" ? [] : slotSize;
609609
}
610610

611611
renderAd() {

0 commit comments

Comments
 (0)