Hi Conor, You'll have to create the AdGroups first via AdGroupService.mutate <https://developers.google.com/adwords/api/docs/reference/v201406/AdGroupService#mutate>, and then use the IDs returned from that for subsequent calls against other services. The client libraries do not assign IDs automatically - those come from the API service.
Best regards, Josh, AdWords API Team On Tuesday, September 23, 2014 10:17:25 AM UTC-4, [email protected] wrote: > > Hi All, > > When creating an AdGroup using the AdWords API, it appears that the id > field of the group is set to 0. This happened for fifty-three ad groups in > a row. Is this correct behaviour? Are the groups only assigned a 'proper' > id after they are created using the mutate method? How do I access the id > for use elsewhere in the code? > > Thanks, > Conor > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/aff2ae09-ba42-432f-8c8b-17b6a1e3ce6a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
