Skip to content

Commit

Permalink
APP-1677 MW - Mobile Inline 300x250 ads not appearing on MoneyWeek Ho…
Browse files Browse the repository at this point in the history
…mepage and Index Pages
  • Loading branch information
evheniy committed Jan 26, 2021
1 parent dd4bea2 commit 99f889e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Bling.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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`.
*/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/Bling.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ class Bling extends Component {
slotSize = sizeMapping[0] && sizeMapping[0].slot;
}

return slotSize;
return JSON.stringify(slotSize) === "[0,0]" ? [] : slotSize;
}

renderAd() {
Expand Down

0 comments on commit 99f889e

Please sign in to comment.