New AdSense Auto ads Implementation

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
User avatar
Lumpy Burgertushie
Registered User
Posts: 65710
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: New AdSense Auto ads Implementation

Post by Lumpy Burgertushie » Mon May 21, 2018 2:58 pm

it is easier to do it the way thecoalman said. however, you can just put the code in those files like I said. it will work the same way.

like I said, google's instructions are assuming a standard html page.


robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

mattash
Registered User
Posts: 136
Joined: Thu Nov 11, 2004 6:33 am

Re: New AdSense Auto ads Implementation

Post by mattash » Wed Jan 09, 2019 4:40 pm

Lumpy Burgertushie wrote:
Fri May 18, 2018 7:19 pm
I would suggest that you don't put it in the head section since that will show ads on all pages of the site. google's TOS restricts ads to content pages only.
that means that they should really only go on the index_body.html, viewforum_body.html and viewtopic_body.html files.

having said that, open those files in a good text editor and paste you google code at the top or bottom of those pages.

using ftp, download the relevant files, open them in a text editor only, paste your code, save the file and upload back,

then, go in your admin panel and purge the cache and then refresh your browser.


roberrt

Thank you sir, this works perfectly.

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: No registered users and 5 guests