Hi, The relevant services are
CampaignService: http://code.google.com/apis/adwords/v2009/docs/reference/CampaignService.html AdGroupService: http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupService.html AdGroupAdServie: http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupAdService.html All services use the get() and mutate() methods. To add an object, use the mutate() method with an operation that has the ADD operator. For some concrete examples, take a look at our client libraries and sample code: http://code.google.com/apis/adwords/docs/clients.html. Best, - Eric On Oct 21, 1:15 pm, google400 <[email protected]> wrote: > Hi Eric, > > Thanks for this info. I think 2000 adgroups should be sufficient but > I'll research it further. In the meantime could you also please point > me to the relavent API function for: > > - Creating campaigns > - Creating adgroups > - And posting ads to those adgroups? > > I'd really appreciate your help with this. > Thanks. > > On Oct 21, 9:06 pm, AdWords API Advisor <[email protected]> > wrote: > > > > > Hi, > > > This is certainly possible via the API, but I'm not sure it is the > > best overall solution. First, something to be aware of is that there > > is a limit of 2000 ad groups per campaign: > > > http://adwords.google.com/support/aw/bin/answer.py?hl=en&answer=40907 > > > Depending on the number of keywords you have this may pose a problem > > for you. Secondly, there is a feature of AdWords called Keyword > > Insertion that may allow you to simplify your approach: > > > http://adwords.google.com/support/aw/bin/answer.py?hl=en&answer=74996 > > > This feature allows you to take the keyword that triggered an ad and > > inject it into the ad text (as well as providing a default value). > > > Title: Free {keyword:stuff}! > > Line 1: Buy free {keyword:stuff} right now! > > Line 2: No hidden fees! > > Url:http://example.com > > > If all your ads follow a very similar pattern you can use this feature > > to consolidate down to a much smaller number of ads and ad groups. > > > Best, > > - Eric Koleda, AdWords API Team > > > On Oct 21, 6:54 am, google400 <[email protected]> wrote: > > > > 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 for an adwords account. > > > > 2) Under the adgroup, upload all the ads for that particular > > > keyword to a given google adwords account. > > > 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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~----------~----~----~----~------~----~------~--~---
