We help IT Professionals succeed at work.

Use PHP to scrape the google Adwords ads

Priyadarshni
Priyadarshni asked
on
880 Views
Last Modified: 2012-05-07
Hello,

I am developing a website, In which i have to scrape the google Adwords ads in PHP and For each ad, get the ad title, ad text, visible URL, and destination URL and  For each destination URL, get all the outgoing links

And i am clueless about this. So please advice.

Thanks in advance,
Priya
Comment
Watch Question

You call a script from the google site that embeds the text into the page.
If you call the same script again you will get different links so that doesn't work.
You'll need to call the script and then have the code to read the elements back in using DOM lookups.

What good would this do ?

If you are planning on altering the links in anyway or stopping some companies (competitors maybe) popping up on your site you will very quickly be banned from the google ads program - they do checks.
If it is just stopping your competitors there is an option for this in your admin pages.

Author

Commented:
Thank you for your reply.

Er... I might be asking a silly question, But How do I call that script? Where is it??

I am sorry, But this concept is new to me. So please help me out.
The script is included inline in the web page (by you).  You put it further down than the google advert and it will then run after it.

Author

Commented:
Can i get some documentation or an example for this?

I still dont know what script i shd include?

Author

Commented:
Hello Anybody there???
Help me out please...
Well you have not said what you want to do so it is pretty hard to write a script for you

Author

Commented:
I need a script to scrape the google Adwords ads in PHP for different keywords daily. Or atleast an idea how to do it...
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
I used the same method
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.