Hi Umesh, Thanks for the response but doesn't really answer my question..
There are 2 AdGroups: AdGroup object in my site (say MyAdGroup) and The actual AdGroup in Google (say GoogleAdGroup). When I push MyAdGroup to Google I want to be able to update MyAdGroup.google_id with GoogleAdGroup.id, but to do this I'm hoping I can pass a custom field with MyAdGroup.id in the mutate() operations, so that when I get the response I can do something like MyAdGroup.get_by_id(GoogleAdGroup.my_custom_field). Is this possible? On Wednesday, June 15, 2016 at 1:43:59 AM UTC+1, David Denton wrote: > > I'm synchronizing a number of Ad Groups from a web app (where they are > created) to the customer's AdWords Account via the API. > > operations = [ad_group_1, ad_group_2, ad_group_3 ....] > > Each AdGroup object has an attribute 'google_id' which is the ID key > Google uses to identify the object. > > After calling client.mutute(operations) I would like to be able to update > the 'google_id' attribute for each updated object, and I would like to do > this by passing the primary key of the AdGroup object to some sort of field > in the operation, and for that value to be returned so I can do something > like: > > response = client.mutute(operations) > > for item in response['items'] > adgroup_id = item['my_custom_id_field] > adgroup = get_adgroup_by_id(adgroup_id ) > > Is this possible? > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups "AdWords 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/ac9d4d19-dbd5-4e85-bce6-bdb2ad53f147%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
