Hello, I have a more general design question for making changes to a Google Ads account through the API.
Does anyone have any advice on how to retry sweeping account changes or write code that interacts with the API in an idempotent way? For example, if I was trying to create several campaigns and ad groups, I can batch up the create operations into two api requests (one for executing all the create campaign operations and one for all the create ad group operations). However, if something goes wrong in the middle of creating ad groups, as far as I can tell there is no way to easily re-run these changes in an idempotent way because the campaigns have already been created and I cannot recreate campaigns with the same names (even after removing the old campaigns, the names must be unique among all removed and active campaigns). The closest thing I can think is to check (before every create operation) if an object already exists with a similar name, and if so, skip creating the new object. However, this would require an API call to check on Google Ads for the existence of an object for every creation operation and would kind of mute the entire point of batching create operations into one API request. Would be nice to have COMMIT and ROLLBACK operations in the API. Advice? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/7f90b95d-dc11-41dc-8950-2049f4223fae%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
