Creating campaigns, ad groups, keywords with one API call - possible?

35 views
Skip to first unread message

Bryan

unread,
Oct 17, 2017, 2:41:21 AM10/17/17
to AdWords API Forum
Hi, I have been reading through the API documents and it looks like the examples always have hardcoded IDs - for example, the script to create Ad Groups has a hardcoded ID for the campaign to use. Is it possible to create related campaigns, ad groups and keywords all in one API call? For example, if I want to add a new Campaign called "Campaign A", and create an Ad Group inside of it called "Ad Group One", and add a Keyword to that Ad Group, can I do that all at once, or do I have to make 3 separate API calls to create the campaign, retrieve the ID, then assign the Campaign ID to all my Ad Groups, then do the same for the Keyword?

Thanks

Bryan

unread,
Oct 17, 2017, 3:33:05 AM10/17/17
to AdWords API Forum
Unfortunately there doesn't seem to be a way to update or delete posts that are in the queue to be published...

The answer to this is probably to use BatchJobService and temporary IDs: https://developers.google.com/adwords/api/docs/guides/batch-jobs#using_temporary_ids

Peter Oliquino

unread,
Oct 17, 2017, 4:02:22 AM10/17/17
to AdWords API Forum
Hi Bryan,

That is correct, using the BatchJobService and temporary IDs is what you could do to create a complete hierarchy simultaneously. However, please note that the order of creating objects should still be considered to avoid errors in your batch jobs. I hope this helps and feel free to write back if you have any further questions.

Thanks and regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages