adsense don't appear where I put them

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
Post Reply
bryan23
Registered User
Posts: 71
Joined: Thu Dec 28, 2017 2:16 pm

adsense don't appear where I put them

Post by bryan23 » Fri Apr 27, 2018 4:56 pm

I've used advertisement management extension but it actually violates the google policy for UCP no content page (as the extension include it in overall_header), so I am manually inserting the script into these 3 files:
index_body
viewforum_body
viewtopic_body

my question is, why do the adsense don't code appear where I put them? I put the script in the top line of the files, however, it will appear below the footer. Is it because of the
(adsbygoogle = window.adsbygoogle || []).push({

How do I solve this?

kamaleon
Registered User
Posts: 246
Joined: Tue Sep 09, 2014 9:47 am

Re: adsense don't appear where I put them

Post by kamaleon » Fri Apr 27, 2018 7:13 pm

Why don't you use adsense auto ads?

You just place the code in a page and google does the rest...

Check it out.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19368
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff
Contact:

Re: adsense don't appear where I put them

Post by Mick » Sat Apr 28, 2018 7:30 am

bryan23 wrote:
Fri Apr 27, 2018 4:56 pm
I've used advertisement management extension but it actually violates the google policy for UCP
You need to inform the author if that’s the case.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.
Forza Garibaldi

bryan23
Registered User
Posts: 71
Joined: Thu Dec 28, 2017 2:16 pm

Re: adsense don't appear where I put them

Post by bryan23 » Sat Apr 28, 2018 5:18 pm

I am already using adsense auto add. For example, if i put the script on top of the index_body file, it will appear bottom below my footer instead.

Mick, i have highlighted to them. They are waiting for the release of the new version of the extension.

User avatar
Lumpy Burgertushie
Registered User
Posts: 64487
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: adsense don't appear where I put them

Post by Lumpy Burgertushie » Sat Apr 28, 2018 7:37 pm

how about a link to your site so we can see what you are doing with the code.

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

kamaleon
Registered User
Posts: 246
Joined: Tue Sep 09, 2014 9:47 am

Re: adsense don't appear where I put them

Post by kamaleon » Sun Apr 29, 2018 8:29 am

bryan23 wrote:
Sat Apr 28, 2018 5:18 pm
I am already using adsense auto add. For example, if i put the script on top of the index_body file, it will appear bottom below my footer instead.
If you use adsense auto ads, ads will display anywhere on the page. They might display once, twice or three times on a page. If there is not much text, ads might not even display.

They won't display where you put the code. I believe google tests different positions until it finds the best ones.

bryan23
Registered User
Posts: 71
Joined: Thu Dec 28, 2017 2:16 pm

Re: adsense don't appear where I put them

Post by bryan23 » Sun Apr 29, 2018 11:22 am

Hi kamaleon,

Thats what i read on the net too, no way to rectify this?

My site is xervicemart.com

Anyway, i also realize the ads only appear in .../index.php homepage, if it is without /index.php homepage, it wont appear. In this case, What are the files to insert the script without involving overall header and overall footer?

User avatar
Lumpy Burgertushie
Registered User
Posts: 64487
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: adsense don't appear where I put them

Post by Lumpy Burgertushie » Sun Apr 29, 2018 3:09 pm

don't use the auto ads thing. just use adsense and put your adsense code in those three files you mentioned wherever you want it to show up.

as was stated, you don't control where auto ads show up, google does.


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

kamaleon
Registered User
Posts: 246
Joined: Tue Sep 09, 2014 9:47 am

Re: adsense don't appear where I put them

Post by kamaleon » Mon Apr 30, 2018 8:22 am

bryan23 wrote:
Sun Apr 29, 2018 11:22 am
Hi kamaleon,

Thats what i read on the net too, no way to rectify this?

My site is xervicemart.com

Anyway, i also realize the ads only appear in .../index.php homepage, if it is without /index.php homepage, it wont appear. In this case, What are the files to insert the script without involving overall header and overall footer?
When I added auto ads, my revenue from the site increased considerably by allowing google to place ads anywhere it wanted.

On another side, if I were you I would worry about growing my board way before worrying about ads.

It will take you a looooog time before you start seeing any revenue from adsense.

bryan23
Registered User
Posts: 71
Joined: Thu Dec 28, 2017 2:16 pm

Re: adsense don't appear where I put them

Post by bryan23 » Sun May 13, 2018 3:24 pm

thanks for your reply guys. guess i will accept the fact that the auto ads will go to any position they want to. thanks.

another issue i am facing now is that adsense don't appear in my homepage and forums, but it will appear on other pages where i created using the official extension.

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: canonknipser, GanstaZ, Toxyy and 2 guests