views:

479

answers:

3

Basically, I have a list of keywords, such as:

- red balloons
- free red balloons
- buy red balloons
- blue balloons
- ....

for each keyword, I have a list of 3-4 ads, each ad consisting of a title, line 1, line 2, and a url, e.g:

Title: Free red balloons!

Line 1: Buy free red balloons right now!

Line 2: No hidden fees!

Url: http://example.com

I have 3-4 such ads for every keyword.

Using the API, I want to:

1) Create an adgroup for every keyword
2) Under the adgroup, upload all the ads for that particular keyword. 
   So all the ads for `free red balloons` would go under that keyword's adgroup.

I'm looking for some general pointers/links to API pages for the methods which I'll need to use to accomplish this. Specifically I'm using PHP and the Apility library, but non-php specific info will also be very much welcome.

Thanks.

+1  A: 

APIlity has been deprecated, as it only handles v13 of the AdWords API. To make your coding easier, you should probably be looking at the new PHP Client Library, which offers full support for v200909, the latest API version. Be sure to check the 'examples' folder in the client library for some samples.

Sérgio Gomes
A: 

Hi,

Using AdGroupService you would have to create ad group for each keyword. Of course you need to have parent campaign for that ad group.

Then using AdGroupCriterionService you would have to create keywords for each ad group.

And at last with AdGroupAdService place specified ads under appropriate ad group.

Using default AdWords clients this task is difficult because you need to create all that objects that are then being serialized into SOAP message.

If you are building your app on .NET platform,
you might wanna take a look at GemBox.Ppc AdWords API for .NET.

It dramatically simplifies management of AdWords objects.

Stipo.GemBoxSoftware