Re: Matching return values. Reference ids when creating new objects through API?

2016-11-03 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi, This is still valid if you have set the partialFailure header to true. If this header is set to false or unset, a failure of one operation will result in none of the operations to be committed. If the partialFailure he

Re: Matching return values. Reference ids when creating new objects through API?

2016-11-03 Thread workday100
Hi, Good to know it's returned in order. 1. Is the solution still valid if there is partial failure? e.g. I perform a mutate request with 5 operations and the third operation results in error. 2. Regarding the example with AdGroupName and CampaignId, how about AdGroupAds and keywords within a

Re: Matching return values. Reference ids when creating new objects through API?

2016-11-01 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi, When you perform a mutate request, if it is successful, the response contains the mutated entities in the same order in which they were passed in the request. You could use this to map the entities to your database. But mapping using AdGroupName and CampaignId is a better option. AdGroups

Matching return values. Reference ids when creating new objects through API?

2016-11-01 Thread workday100
I am building an application that creates campaigns, adgroups, keywords and ads through the API. My application has a local representation of these things. i.e. I have a database tables which contains campaigns/adwords etc. The problem: It is difficult to update my local models with the return