Link to home
Start Free TrialLog in
Avatar of Priyadarshni
Priyadarshni

asked on

Use PHP to scrape the google Adwords ads

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
Avatar of edster9999
edster9999
Flag of Ireland image

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.

Avatar of Priyadarshni
Priyadarshni

ASKER

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.
Can i get some documentation or an example for this?

I still dont know what script i shd include?
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
I need a script to scrape the google Adwords ads in PHP for different keywords daily. Or atleast an idea how to do it...
ASKER CERTIFIED SOLUTION
Avatar of edster9999
edster9999
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I used the same method