Ads Manager broke my comments on WpDiscuz  

  RSS

cmorillo
(@cmorillo)
Member Customer
Joined: 1 year ago
Posts: 4
09/03/2018 4:42 pm  

Hi,

I had to disable Ads Manager on the page https://www.petrolprices.com/news/blanket-diesel-ban-not-happen/ as people from Mobile Phones such as Android couldn't comment on the site. The footer for commenting didn't appear.

It worked fine on Desktop is just for mobile phones.

Also had to change recatpcha method to wp session and now I can put it back to File system , the button doesn't work?

 

Cheers


ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 4 years ago
Posts: 2895
11/03/2018 4:50 pm  

Hi cmorillo,

We don't see the problem, could you please enable Ads manager addon and leave some screenshot where we could see the problem.


ReplyQuote
cmorillo
(@cmorillo)
Member Customer
Joined: 1 year ago
Posts: 4
13/03/2018 9:28 pm  

Hi Tom,

 

Thanks for the reply, I have enabled all now could you please have a look, try on your mobile phone and you will see what I mean, you won't be able to submit a comment.

 

Cheers,

 

Carlos


ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 4 years ago
Posts: 2895
14/03/2018 12:49 pm  

The problem is not in Ads manager addon. The problem is in the ads codes you use. Please disable all comment ads, enable those one by one and find the one which causes this problem. Before checking each one you should delete cache and use private session of mobile browser, because mobile browsers cache is very hard, otherwise you'll not see changes.

Ads codes should not contain line breaks in HTML attributes. Also they should not be multi-line. Once you found the problem maker ads, please get the identical copy of the code (use editor text mode) and attach in a TXT file here.


ReplyQuote
cmorillo
(@cmorillo)
Member Customer
Joined: 1 year ago
Posts: 4
14/03/2018 2:14 pm  

Hi Tom,

We just use one ad, and is dfp, code

Screenshot from 2018 03 14 11 13 27

The code is this one,quite an standard one I think? If I change it to become an image it works but then we get no revenue from it:

<div style="overflow: hidden;"><div id='div-gpt-ad-in_comments-1'>
<script>
googletag.cmd.push(function() {
var mappingInComments = googletag.sizeMapping().addSize([0, 0], [300,250]).addSize([336, 0], [[336,280],[300,250]]).build();
googletag.defineSlot('/283405443/PTP//news//article//in_comments', [300, 250], 'div-gpt-ad-in_comments-1').defineSizeMapping(mappingInComments).addService(googletag.pubads());
googletag.enableServices();
googletag.display('div-gpt-ad-in_comments-1');
});
</script>
</div>
</div>


ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 4 years ago
Posts: 2895
14/03/2018 3:28 pm  

As I've already mentioned this code should not contain line breaks. try these variants:

 

<div style="overflow: hidden;">
<script>googletag.cmd.push(function() { var mappingInComments = googletag.sizeMapping().addSize([0, 0], [300,250]).addSize([336, 0], [[336,280],[300,250]]).build(); googletag.defineSlot('/283405443/PTP//news//article//in_comments', [300, 250], 'div-gpt-ad-in_comments-1').defineSizeMapping(mappingInComments).addService(googletag.pubads()); googletag.enableServices(); googletag.display('div-gpt-ad-in_comments-1');});</script>
</div>

 

<div style="overflow: hidden;"><script>googletag.cmd.push(function() { var mappingInComments = googletag.sizeMapping().addSize([0, 0], [300,250]).addSize([336, 0], [[336,280],[300,250]]).build(); googletag.defineSlot('/283405443/PTP//news//article//in_comments', [300, 250], 'div-gpt-ad-in_comments-1').defineSizeMapping(mappingInComments).addService(googletag.pubads()); googletag.enableServices(); googletag.display('div-gpt-ad-in_comments-1');});</script></div>

 

<script type="text/javascript">
googletag.cmd.push(function() {
var mappingInComments = googletag.sizeMapping().addSize([0, 0], [300,250]).addSize([336, 0], [[336,280],[300,250]]).build();
googletag.defineSlot('/283405443/PTP//news//article//in_comments', [300, 250], 'div-gpt-ad-in_comments-1').defineSizeMapping(mappingInComments).addService(googletag.pubads());
googletag.enableServices();
googletag.display('div-gpt-ad-in_comments-1');
});
</script>

 


ReplyQuote
Share: