Google ads links


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Google ads links
# 1  
Old 07-17-2015
Tools Google ads links

I'm trying to reconstruct the google ads as they get displayed in script tags in a html page and place them in a wget command.

Anyone tried that before?

Thank you
# 2  
Old 07-17-2015
It's not clear what you mean by "place them in a wget command". You can use wget to retrieve the html, then you could use awk or perl to parse the output and reorder the page.
# 3  
Old 07-22-2015
sorry for my late reply!

Yes, I can use wget to retrieve the html page as long as I know what kind of html page I have to call! That's exactly my problem. To construct from the google quoted script parameters, the right html I can call.

How these parameters get translated in a URL. That's my problem.

Thank you
# 4  
Old 07-22-2015
You can't get Google Adsense on a site which is not configured as the "owner" of the tags which serve the ads. Each AD tag is specific to an account that has verified web sites; so you can't just grab that HTML and get the display ads to show up, even if you get the script.
# 5  
Old 07-27-2015
here is a random example I picked fro the web. Having the code below:
Code:
google_ad_client = "ca-pub-9231705264853904";
google_ad_slot = "3239500158";
google_ad_width = 728;
google_ad_height = 90;
region = 'test';
<script type="text/javascript" src="//pagead2.googlesyndication.com/pagead/show_ads.js">

Isn't possible to determine which ad the page will call? This 'show_ads.js' translates this parameters to a URL - or not?

I don't really understand the following:

------------
Each AD tag is specific to an account that has verified web sites
------------

you mean that Google checks the IP where the referrer comes from in order to construct the URL ad page?

If I could get just the domain of the ad, it would be more than enough. I don't really need the exact URL of the ad. It would be nice to have it but the domain will also do the trick.

Thank you

Last edited by rbatte1; 07-27-2015 at 11:01 AM.. Reason: Added CODE tags
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

UNIX.com links from Google yield invalid thread error

If one enters a Google search query like site:unix.com mysql php and clicks on the resulting link, one gets the message below: vBulletin Message No Thread specified. If you followed a valid link, please notify the administrator (2 Replies)
Discussion started by: Unregistered
2 Replies

2. AIX

List all the soft links and hard links

Hi I'm logged in as root in an aix box Which command will list all the soft links and hard links present in the server ? (2 Replies)
Discussion started by: newtoaixos
2 Replies

3. Solaris

Hard Links and Soft or Sym links

When loooking at files in a directory using ls, how can I tell if I have a hard link or soft link? (11 Replies)
Discussion started by: Harleyrci
11 Replies

4. Web Development

Flush Ads - Is this code overriding my ads?

I installed a wordpress theme and came across the following code contained in the functions.php (theme functions) file. I am wanting to make sure this code is not over-riding my adsense publisher id and replacing with theirs in the background. I had this happen on another theme and just wanting... (1 Reply)
Discussion started by: blueray1974
1 Replies

5. Web Development

Helpful Tip: Forcing Google to www.google.com

Helpful Tip! Sometimes when we are in another country, Google redirects our request for www.google.com to: www.google.co.in or to: www.google.co.th If you want to force Google to go to the US site, use: www.google.com/webhp (1 Reply)
Discussion started by: Neo
1 Replies
Login or Register to Ask a Question