Hi Milind, That's fixed it - works as expected now - thank you!
Cheers, Tom On Friday, August 31, 2018 at 9:21:46 PM UTC+1, Milind Sankeshware (AdWords API Team) wrote: > > Hi Tom, > > To change the keyword status, you will need to set the UserStatus > <https://developers.google.com/adwords/api/docs/reference/v201806/AdGroupCriterionService.BiddableAdGroupCriterion#userstatus> > of > your BiddableAdGroupCriterion > <https://developers.google.com/adwords/api/docs/reference/v201806/AdGroupCriterionService.BiddableAdGroupCriterion> > of > type Keyword > <https://developers.google.com/adwords/api/docs/reference/v201806/AdGroupCriterionService.Keyword> > using > the AdGroupCriterionService.mutate() > <https://developers.google.com/adwords/api/docs/reference/v201806/AdGroupCriterionService#mutate> > method. > We don't have the sample example to update the status of keyword. Please > refer my sample code below: > > operations = [{ > 'operator': 'SET', > 'operand': { > 'xsi_type': 'BiddableAdGroupCriterion', > 'adGroupId': ad_group_id, > 'criterion': { > 'id': criterion_id, > }, > 'userStatus': 'PAUSED' > > } > }] > > Looks like you are missing *xsi_type': 'BiddableAdGroupCriterion* in your > code. Could you please give a try and let me know if you are still facing > an issue. > > Thanks, > Milind, 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. 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/91c4f615-1465-4553-ad75-0a3d8ccc8b8c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.