Forum Moderators: martinibuster

Message Too Old, No Replies

violation of TOS or just good idea?

use of google_page_url

         

shortbus1662

9:03 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It was suggested in a forum to apply the following addition to adsense code so that it takes the content of the page from the forum archive rather than the actual forum page the ad is on. Since there is so much BS on the forum page in terms of code and stuff, this would make the ad relevant to the actual thread on the page by taking it from the archive which has less clutter, etc. than the forum page:

google_page_url = "pathtoforums/archive/index.php/t-$threadid.html";

What this is saying is "Google adsense bot, look to the archived version of this thread and display ads relating to that content, but on this page".

--------

Is this okay to do? You're telling adsense to display ads based on a different page, BUT the content on that page (the forum "archive")is identical to the content of the forum post.

Is this okay to do, or not? And if it IS OKAY, is it something you guys would suggest? Thanks

ganderla

9:04 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is not OK, you are messing with the code, that is not allowed.

shortbus1662

9:35 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



what do you mean if you are messing with the code?

Didn't google come out with a thing saying you could insert lines of code to tell google which part of your page you want your ads to be relevant to?

That's doing this, BUT calling from a "different" page.

That's why I'm asking. I don't want to do anything to violate Google Adsense's TOS.

aeiouy

9:36 pm on Oct 13, 2005 (gmt 0)

10+ Year Member



Why don't you just use section targetting and bookend the actual output of the forum posts?

I do that on several forums and it works very well.

Zygoot

9:36 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is not allowed, unless you get permission from Google to use such code.

Never_again

9:53 pm on Oct 13, 2005 (gmt 0)

10+ Year Member



What do you mean if you are messing with the code?

The AdSense TOS doesn't allow you to modify the AdSense code you insert in your pages.

The section targeting tags are not modifications of the AdSense code, but tags you insert before and after your targeted content.

stella_kl

10:35 pm on Oct 13, 2005 (gmt 0)



Do you actually know what you are talking about?

Rodney

10:49 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is this okay to do, or not?

It would be a violation of the TOS unless you have permission from google to edit that variable.

You could always write them to ask if you can use the variable to help targeting on your site.

I think it is reserved for Premium publishers though.

incrediBILL

12:42 am on Oct 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



NO you CAN'T mess with the HTML created by AdSense and changing google_page_url is definitely a big NO!

If your page uses frames AdSense inserts the following line:
google_page_url = document.location;

Don't believe me that it's not allowed?

Check out Jenstar's answer on this topic:
[webmasterworld.com...]

It never ceases to amaze me that after all this time people just don't take NO for an answer to tampering with the AdSemse HTML. Tamper with that and we don't want to see your "I'VE BEEN BANNED" thread so don't bother posting it.

Sheesh.

shortbus1662

12:52 am on Oct 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks to everyone who replied.

Do you actually know what you are talking about?

If you are asking me...

The answer is: NO, I have no idea really. That's why I'm asking you guys!

:)

I'm trying to learn, but I don't know php or html. If I don't get my site back in Google's index soon it won't matter if I know it or not.

So...I won't be doing this, but instead I'll be telling the adsense bot to only go by what's in the post. The problem with that though, could be that the post is barely relevant to the forum topic and if there is a signature in the post, that could skew it even more.

Could I put it around the meta data, or would that be enough text for it to use without considering it "spam"?

the meta data like forum description and forum title would be perfect, because then the ads would be 100% relative to the forums that people are viewing.

For the most part, they already are, but my skyscraper doesn't even show up on the show thread pages and the leaderboard ads on some of the forum's showthread pages aren't relevant to the content.

All the other pages are fine except those, but those are the ones that get indexed in the search engines (the ones I'm actually indexed in anyway) hehe.

I'm just tryin' to tweak it the best way that I can so I get the most bang for my buck. I'm having to pay someone to do most of the stuff on my site so I gotta get out of it what I can.

Adding the leaderboard had a phenomenal impact on my CTR but it made my skyscraper dissappear on most pages, so the ctr increase pretty much evened out because clicks on that ad dissapeared with the ad.

If someone can suggest how to get those side ads to show up, using that include thing would then become unnecessary.

Thanks for all the info so far. I won't be modifying the adsense code since it violates the TOS. (it looks like some people are doing this though, that aren't suppossed to)

I guess I wasn't thinking that the conditional would be on the site and what I was mentioning would be to the code, but hell, I still don't really understand it, so whatever :).

shortbus1662

12:59 am on Oct 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



incredibill,

I must have typed my response at the same time as your post.

I don't know php or html. I just know copy and paste.

I read on a forum that you could insert this and it would make the ads more relevant. I didn't even think about where you'd be inserting it.

I instantly thought it had something to do with the thing where you tell google what part of the page you want the ads to be relevant to. I didn't think about it being to the <script> part that you paste in there.

Sorry for being ignorant, but I can't KNOW any of this until someone tells me it.

It's amazing how I can get frustrated with people who ask me questions on my site just like you guys get frustrated with people like me.

Nurses on my site don't realize that they can type the url in rather than doing a search for www.sitename.com in a search engine.

They can't figure out how to add a pop account to their webmail. Those are VERY simple things to me. It blows my mind.

These are very simple things to you, however I don't understand them like you do. I'm like the nurse who can't check her email.

I'm sure there are search engine engineeers who get asked questions by people who wrote books about this crap and they get frustrated with their simple level of comprehension, which may be complex to you and whatnot.

Anyway, sorry again for my ignorance...

Ankhenaton

1:00 am on Oct 14, 2005 (gmt 0)



So...I won't be doing this, but instead I'll be telling the adsense bot to only go by what's in the post. The problem with that though, could be that the post is barely relevant to the forum topic and if there is a signature in the post, that could skew it even more.

As far as I remember G offers the adsense start content stop content for all publishers. I have had hints to that.

<!-- google_ad_section_start -->

<!-- google_ad_section_end -->

If you manage get the <!-- google_ad_section_end --> before the sig part u should be OK, although G says it doesn't promise anything. You might need some programming knowledge to implement this though.

incrediBILL

1:12 am on Oct 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Sorry for being ignorant, but I can't KNOW any of this until someone tells me it.

That's not true at all, never trust US for answers, trust GOOGLE!

You need to read the AdSense program policies page:
[google.com...]

You would see this:

Code Modification

Any AdSense ad code or search box code must be pasted directly into Web pages without modification. AdSense participants are not allowed to alter any portion of the ad code or change the layout, behavior, targeting, or delivery of ads for any reason.

If you need something special you have to write the AdSense team as they do make exceptions for people having problems, but you need permission before making those changes.

shortbus1662

1:53 am on Oct 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



thanks Bill. I did know that you aren't allowed to modify the code. I just didn't realize what they were saying was about the code you insert and not something you just put on the page to tell the bot what to do.

Sometimes it's easier to just ask someone rather than look it up yourself...like those people who ask me stupid nursing questions and I have to answer them with "A simple google search of the subject will give you plenty of results to answer your question", rather than just doing it for them.

Just like you referred me to the adsense policy, except I look here cause I usually don't understand much of the code talk.

I do marketing stuff to the end user. I'm good at that. I come up with endless ideas and things that work well but never have the means to implement due to lack of programming knowledge and monetary resources to get them done. That leaves me in the middle...which is right here, asking you guys.

Again, at the same time, I'm sorry and thank you!

incrediBILL

3:06 am on Oct 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Again, at the same time, I'm sorry and thank you!

No need to be sorry, I'm having a bad day ;)

I have some stupid marketing questions to ask, you can yell at me...