Content restrictions not works

This is the place to post questions and comments about the FlexBanner component
chupi
Posts: 10
Joined: Wed May 08, 2019 7:28 pm

Content restrictions not works

Post by chupi » Thu May 09, 2019 9:17 am

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.
Attachments
inch.jpg
inch.jpg (48.81 KiB) Viewed 233 times

Andrew998
Posts: 1400
Joined: Wed Jan 07, 2009 10:43 am

Re: Content restrictions not works

Post by Andrew998 » Thu May 09, 2019 9:20 am

Have you turned on Content Specific Advertising in the module too?
Andrew998
Developer

chupi
Posts: 10
Joined: Wed May 08, 2019 7:28 pm

Re: Content restrictions not works

Post by chupi » Thu May 09, 2019 9:25 am

I think so, this is my configuration of the FlexBanners module:
Attachments
FlexBanners.jpg
FlexBanners.jpg (43.96 KiB) Viewed 228 times

Andrew998
Posts: 1400
Joined: Wed Jan 07, 2009 10:43 am

Re: Content restrictions not works

Post by Andrew998 » Thu May 09, 2019 9:28 am

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?
Andrew998
Developer

chupi
Posts: 10
Joined: Wed May 08, 2019 7:28 pm

Re: Content restrictions not works

Post by chupi » Thu May 09, 2019 9:38 am

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)
Attachments
Banner-FlexBanners-no.jpg
Banner-FlexBanners-no.jpg (187.26 KiB) Viewed 225 times
Banner-FlexBanners.jpg
Banner-FlexBanners.jpg (73.01 KiB) Viewed 225 times

Andrew998
Posts: 1400
Joined: Wed Jan 07, 2009 10:43 am

Re: Content restrictions not works

Post by Andrew998 » Thu May 09, 2019 9:48 am

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.
Andrew998
Developer

chupi
Posts: 10
Joined: Wed May 08, 2019 7:28 pm

Re: Content restrictions not works

Post by chupi » Thu May 09, 2019 10:07 am

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?

Andrew998
Posts: 1400
Joined: Wed Jan 07, 2009 10:43 am

Re: Content restrictions not works

Post by Andrew998 » Thu May 09, 2019 10:11 am

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.
Andrew998
Developer

chupi
Posts: 10
Joined: Wed May 08, 2019 7:28 pm

Re: Content restrictions not works

Post by chupi » Thu May 09, 2019 10:18 am

Would you be so kind as to inform me if you are going to carry out that investigation and its results soon?

Andrew998
Posts: 1400
Joined: Wed Jan 07, 2009 10:43 am

Re: Content restrictions not works

Post by Andrew998 » Thu May 09, 2019 10:19 am

I'll take a look but Google scripts aren't really within my area of expertise!
Andrew998
Developer

Post Reply