Hi, Before you can associate the label to your ad group via AdGroupCriterionService <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService>, you need to create a label <https://developers.google.com/adwords/api/docs/reference/v201809/LabelService.Label> first with its text/name <https://developers.google.com/adwords/api/docs/reference/v201809/LabelService.Label#name> via LabelService.mutate() <https://developers.google.com/adwords/api/docs/reference/v201809/LabelService#mutate> .
Let me know if you have further clarifications. Thanks, Vincent AdWords API Team On Wednesday, October 31, 2018 at 5:35:57 AM UTC+8, [email protected] wrote: > > Hi Shwetha, > > We are trying to do the same, but how do we set the label text for > AdGroupCriterionLabel? I don't see a set function for label text. > > Thanks! > > On Thursday, June 16, 2016 at 9:25:35 AM UTC-7, Shwetha Vastrad (AdWords > API Team) wrote: >> >> Hi, >> >> To add labels to your keywords, you would need to create >> AdGroupCriterionLabel >> <https://developers.google.com/adwords/api/docs/reference/v201605/AdGroupCriterionService.AdGroupCriterionLabel> >> which >> contains: >> >> - labelId - ID of the label. >> - adGroupId - ID of the AdGroup containing the keyword. >> - criterionId - ID of the keyword. >> >> Once you have created these objects, you need to use the >> AdGroupCriterionService.mutateLabel >> <https://developers.google.com/adwords/api/docs/reference/v201605/AdGroupCriterionService.html#mutateLabel> >> with >> ADD operator to associate an existing Label >> <https://developers.google.com/adwords/api/docs/reference/v201605/AdGroupCriterionService.Label.html> >> to >> an existing AdGroupCriterion >> <https://developers.google.com/adwords/api/docs/reference/v201605/AdGroupCriterionService.AdGroupCriterion.html> >> . >> >> Regards, >> Shwetha, AdWords API Team. >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/30d64202-7bcc-4c86-9a5b-c023a813cec2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
