Forum Moderators: martinibuster

Message Too Old, No Replies

I put my adsense code in frames and then

bump

         

Rolozo

9:21 pm on Nov 16, 2005 (gmt 0)

10+ Year Member



I am no more getting relevant ads to my contents.
I have also included
google_page_url = document.location;
in adsense code.

is it right to put adsense code in a frame which has no other contents.
I have specifically used frame for putting adsense code Only.
Thank you.

Rolozo

11:03 pm on Nov 16, 2005 (gmt 0)

10+ Year Member



can you answer plz ...

ann

11:07 pm on Nov 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



First of all you changed the adsense code. TOS violation.

If the frame has no other content then what is media bot going to analyse to send you ads? No content=no ads.

Rolozo

11:12 pm on Nov 16, 2005 (gmt 0)

10+ Year Member



No no i haven't changed any adsense code.
I got this code from Adsense account.
i selected my ad type and "checked" want to use in frames.
and it automatically included that above line.
google_page_url = document.location;
This is not against TOS.

ann

11:18 pm on Nov 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Read this thread:

[webmasterworld.com...]

Rolozo

11:19 pm on Nov 16, 2005 (gmt 0)

10+ Year Member



as it's not TOS violation.
because i have copy pasted from Adsene account.
This code is provided by Google not manipulated by myself.

Yes there is no content in that frame
my code is like
<iframe src="code.php" frameborder=0 width=280 height=280 onFocus='logClick()'>
</iframe>

and whole this shug i have done is just to track ad clicks.

** there must be some functionality of
google_page_url = document.location;

because it's Adsense provided code.

But it seems to be not working.and my ads are irrelevant.

Rolozo

11:27 pm on Nov 16, 2005 (gmt 0)

10+ Year Member



heck
google_page_url = document.location;
what is it telling to media?
goto document.location which is complete page and get ads.

aeiouy

11:54 pm on Nov 16, 2005 (gmt 0)

10+ Year Member



Doesn't work that way. You can't put adsense in a frame with no content.

You are in violation of the TOS.

I suggest you remove the frames from your site and then contact adsense for some help in trying to accomplish whatever it is you are trying to accomplish.

frox

12:13 am on Nov 17, 2005 (gmt 0)

10+ Year Member



I suppose you want to have a simple way to have a single file containing the adsense script, called by several html pages...

So, if you want to change (for example) the colour you change it in one file and all the pages are changed...

If this is what you need, then the correct way to do this is via server-side includes.

mafew

12:15 am on Nov 17, 2005 (gmt 0)

10+ Year Member



You could try:

google_page_url = parent.location;

That's a violation of the TOS... but it's justifiable and no one may ever notice :)

LeChuck

12:47 am on Nov 17, 2005 (gmt 0)

10+ Year Member



Eh- the mediabot will notice. Not smart.

mafew

1:07 am on Nov 17, 2005 (gmt 0)

10+ Year Member



Right, so you know what the mediabot will and won't notice? Can you support that claim?

I put the page url in, instead of document.location, left it for 6 months and didn't have any problems.

LeChuck

1:17 am on Nov 17, 2005 (gmt 0)

10+ Year Member



It's quite simple for the mediabot to grab the adsense code, remove the changing parts like colors and channel and do a checksum on the non-changing parts.

Or do you expect Google to manually go and check every single page with adsense on it?

But if you want to gamble with your adsense account then that's your business.

Rolozo

1:12 pm on Nov 17, 2005 (gmt 0)

10+ Year Member



mafew
i don't want to change the original adsense code.
and what i mentioned above.
google_page_url = document.location;
is provided by adsense.
Now the problem is if i put this code thru server side includes .e.g php include.
Then i would not be able to track click on ads.
The purpose of using frames is just to track click on ads.
Frames support onFocus() event that is the major advantage i am looking for.But now i am running into other problems like mediabot is not checking whole page.
So what is another way of tracking clicks?
Frames are tracking clicks for me.But it is not bringing relevants ads.
Oh BS.

Rolozo

8:35 pm on Nov 17, 2005 (gmt 0)

10+ Year Member



after 1 day no answer.
means here at WebmasterWorld no one is tracking his adsense clicks.
I am fool to do it ... ^o)

ArtistMike

8:43 pm on Nov 17, 2005 (gmt 0)



after 1 day no answer.
means here at WebmasterWorld no one is tracking his adsense clicks.

=======================

Sticky me and I will tell you how to track each AS click with a page tracker code. You will get data on where the click came from, which ad they clicked on. It is a regular page tracker service that is free.

AdSenseAdvisor

6:47 pm on Nov 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Rolozo -

To remain compliant with AdSense program policies, and also to receive relevant ads, you should place your AdSense code in your site's primary content frame.

You'll also need to use the framed-pages checkbox when generating your ad code, which will also help with targeting. For more information, read: [google.com...]

hunderdown

6:50 pm on Nov 18, 2005 (gmt 0)



Maybe it would help to put this more simply:

You can't put the AdSense code in a frame with no content. You need to put the AdSense code in the frame WITH the content. Even if you don't want to.

rebelde

7:13 pm on Nov 18, 2005 (gmt 0)

10+ Year Member




Hmmm. I run my original AdSense code in iframes without any problem at all.

Try the original AdSense code, not the frames version.

hunderdown

7:52 pm on Nov 18, 2005 (gmt 0)



rebelde, that's a different situation. He's got what amount to separate PAGES -- at least from what the AdSense program can tell -- which display together in a browser window.