Advertisement Management

Restricting Showing Ads in Certain Pages - Advertisement Management

Restricting Showing Ads in Certain Pages

by Exclusive » Tue Jan 28, 2020 5:57 pm

Is there any way to restrict showing Google AdSense ads in certain pages aside from the "no content pages" ? For example, I created a custom "thank you page" where users get redirected after they make a successful payment. Such a page may violate Google Adsense rules. So is it possible to add the page link as a restricted page where the ads will show up (so that ads will not show in that page)?
Use Search Button to get Instant Results | Follow Forum Rules
Avoid Spams in the forum to prevent banning the offending account. | ⟿ Visit My Awesome phpBB Forum! ⬳

Best Web Hosting with 99.9% Uptime! | ✔ Buy Cheap Domain Names
User avatar
Exclusive
Registered User
Posts: 512
Joined: Mon Jun 25, 2018 1:33 pm
Contact:

Re: Restricting Showing Ads in Certain Pages

by DavidIQ » Wed Jan 29, 2020 10:26 pm

No, not possible in the context of the extension. You would need to extend the template locations and have a switch in there to control when to show the extension. I think PAGE_NAME might be available to the template for checking.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17179
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: Restricting Showing Ads in Certain Pages

by wads24 » Wed Jan 29, 2020 10:35 pm

You can turn on auto ads, and add pages to exclusions list on your AdSense account
Thanks in advance for a reply.
User avatar
wads24
Registered User
Posts: 540
Joined: Fri Jun 10, 2005 4:44 am
Name: James