I'm migrating a service from Adwords to Google Ads and having trouble understanding how these operations translate. It seems like in AdWords a ad group label can be created as one operation and then we set the label on the ad groups we want. Where as in Google Ads we need to specify which ad group we want to create the label for. (Looking at the add campaign labels example <https://github.com/googleads/google-ads-python/blob/main/examples/campaign_management/add_campaign_labels.py> )
Is there any example of updating ad group labels? Does AdGroupLabelOperating create make a new label that then can be applied on ad groups or does it need to be created and applied directly on to ad groups? Thanks! On Thursday, January 27, 2022 at 2:17:22 AM UTC+1 adsapi wrote: > Hi, > > Thank you for posting your concern. > > You are correct that the *AdGroupLabelOperation* only has *create* and > *remove* operations so it is not possible to update. However, if you want > to use different label names at ad group labels and you want to apply it on > specific ad groups, then you can create an ad group label > <https://developers.google.com/google-ads/api/reference/rpc/v9/AdGroupLabelOperation#create> > > instead and set it on the labels[] > <https://developers.google.com/google-ads/api/reference/rpc/v9/AdGroup#labels[]> > > field of AdGroup > <https://developers.google.com/google-ads/api/reference/rpc/v9/AdGroup> > using update AdGroupOperation > <https://developers.google.com/google-ads/api/reference/rpc/v9/AdGroupOperation#update> > . > > Let me know if you have further questions. > > Regards, > [image: Google Logo] > Ernie John Blanca Tacata > Google Ads API Team > > > ref:_00D1U1174p._5004Q2VPhdQ:ref > -- This email is private and confidential. If you have received this email in error, please notify the sender and delete all copies (including any attachments) from your system. In such circumstances, you must not make any use of this email or its contents. Thanks. By sending emails to us we will process your personal data. To find out more, please read our Privacy Policy <https://www.precisdigital.com/privacy/>. Precis Digital AB. is a company registered in Sweden. Registered number: 556889-3324. Registered office: Åsögatan 121, 116 24 Stockholm, Sweden. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/dca129a1-02dc-48a1-89ef-7d72c3bd437bn%40googlegroups.com.
