Forum Moderators: martinibuster
If I'm reading what you want to do correctly, there's no way to do it, to my knowledge, that doesn't break Adsense Cardinal Rule #1: Do not modify the Adsense code. Adsense is displayed on your page via a remote javascript. To do what I think you want to do, you'd have to "intercept" the javascript call, gather the results of what the javascript call sends back to your page from Google, act on those results to find the ad url(s), and then redisplay the javascript results on your page somehow.
Like I said, way big modification of the Adsense javascript serving code, and a big no-no, sure to get you booted from Adsense.
1. What I just theorized above probably wouldn't even work, because your function would be sending the ad request, not your page, and therefore, Google wouldn't know how to target it.
2. Things you could possibly do with the info you gathered from your function to change your page in relation to the ads currently showing on the page would probably be construed by Google as drawing attention to the ads, which would break Adsense Cardinal Rule #2, also a big no-no.
Google puts adsense in an iframe on your webpage. I just want to know what contents (here in my case, displayed URLs) are in that iframe when a page is visited. I just did a quick search and find there are several adsense tracking and analyzing products, so I guess I am supposed to be able to do what I want.
To do what I think you want to do, you'd have to "intercept" the javascript call, gather the results of what the javascript call sends back to your page from Google, act on those results to find the ad url(s)
Yes
and then redisplay the javascript results on your page somehow.
No. I do not want to redisplay google's JS. All I want is to find URLs to be displayed in my page and then do some custom work based on those URLs.
A follow-up: Just find this thread ( [webmasterworld.com...] ), very useful :)
[msdn.microsoft.com...]
you cannot get the iFrame data that resides on another server (Google's) for security reasons. You can however get the URL that displays in the Status bar (IE) with some tracking programs, but most MFAs manipulate these.
In my observation, the MFAs are the ones dragging the income down (not smartpricing) since Advertisers pay only 1 cent above the next competition, and the competing Adverts are MFAs paying .01 to .03, the Advert bidding $10 on a keyword actually pays only .04 :-<