Page 1 of 3

Content restrictions not works

Posted: Thu May 09, 2019 9:17 am
by chupi
Hi all,

I have a problem, when activating the Content restrictions (in some articles), the banner disappears from all the pages (see attached image).

I use the latest versions of Joomla and FlexBanner.

Re: Content restrictions not works

Posted: Thu May 09, 2019 9:20 am
by Andrew998
Have you turned on Content Specific Advertising in the module too?

Re: Content restrictions not works

Posted: Thu May 09, 2019 9:25 am
by chupi
I think so, this is my configuration of the FlexBanners module:

Re: Content restrictions not works

Posted: Thu May 09, 2019 9:28 am
by Andrew998
So are you using it for specific articles or whole categories? Can you show me an example of a page you think should show an advert and isn't?

Re: Content restrictions not works

Posted: Thu May 09, 2019 9:38 am
by chupi
I use it for specific items. In this image for example I have three restricted articles, but the banner disappears from all the pages of the site (see images)

Re: Content restrictions not works

Posted: Thu May 09, 2019 9:48 am
by Andrew998
If you examine one of those pages you will see that FlexBanner is doing its job but the banner isn't showing anyway:

<div class="flexbannergroup"><div class="youtube"> <script async="async" src="https://www.googletagservices.com/tag/js/gpt.js"></script> <script>var googletag=googletag||{};googletag.cmd=googletag.cmd||[];</script> <script>googletag.cmd.push(function(){googletag.defineSlot('/65969644/vistaalmar.es_300x250',[[300,250],[320,50]],'div-gpt-ad-1556796513709-0').addService(googletag.pubads());googletag.defineSlot('/65969644/vistaalmar.es_970x250',[[728,90],[320,50],[970,250],[320,100],[980,120]],'div-gpt-ad-1557147309503-0').addService(googletag.pubads());googletag.enableServices();});</script><div id="div-gpt-ad-1557147309503-0"> <script>googletag.cmd.push(function(){googletag.display('div-gpt-ad-1557147309503-0');});</script> </div> </div></div>

I suspect it's to do with the Google code you are serving. FlexBanners isn't really desgined to work with ad code like that and CSA doesn't work with the custom code option.

Re: Content restrictions not works

Posted: Thu May 09, 2019 10:07 am
by chupi
Thanks Andrew for your quick answers,

If FlexBanners works very well with the Google Ad Exchange custom code without activating CSA, but not when a restricted item is included.

Would there be any way to correct the FlexBanners code to support custom Ad Exchange code with CSA?

Re: Content restrictions not works

Posted: Thu May 09, 2019 10:11 am
by Andrew998
To be honest, I can't see why FlexBanner would stop that code from working. It might need some in-depth investigation to understand the issue.

Re: Content restrictions not works

Posted: Thu May 09, 2019 10:18 am
by chupi
Would you be so kind as to inform me if you are going to carry out that investigation and its results soon?

Re: Content restrictions not works

Posted: Thu May 09, 2019 10:19 am
by Andrew998
I'll take a look but Google scripts aren't really within my area of expertise!