[Ads API Beta]

87 views
Skip to first unread message

Matej Lach

unread,
Jul 17, 2020, 1:25:32 PM7/17/20
to AdWords API and Google Ads API Forum
Hello, 

Am trying to Mutate Customer Labels, (assign a label of a managing account to a managed account). 

The request looks like (Go):

 operations = append(operations, &services.CustomerLabelOperation{
Operation: &services.CustomerLabelOperation_Create{
Create: &resources.CustomerLabel{
Customer: &wrappers.StringValue{
Value: resourcenames.Customer(req.AccountId),
},
Label: &wrappers.StringValue{
Value: resourcenames.Label(parsedManagerAccountID, labelID),
},
},
},
})

if _, err := s.CustomerLabelServiceClient.MutateCustomerLabels(ctx, &services.MutateCustomerLabelsRequest{
CustomerId: fmt.Sprint(req.AccountId),
Operations: operations,
}); err != nil {
return nil, err
}

The problem is the error response details am getting just return:


Request contains an invalid argument.

The error code is not in this version.


This suggests that the error enum is missing a case. There is no unpublished error like there is in some other situations like this. 

I've tried v3 and v4 of the Ads API Beta with the same outcome using https://github.com/googleapis/go-genproto 

Google Ads API Forum Advisor Prod

unread,
Jul 20, 2020, 9:27:21 AM7/20/20
to matej...@redbrain.com, adwor...@googlegroups.com
Hi Matej,

Thank you for reaching out to us. I see that you're encountering an error with an error code that isn't in the version you're using for Google Ads API. Could you provide the full request and response logs for where this error occurs so that I may further investigate? For your privacy, you can reply using the "reply privately to author" button.

Thank you,
Bryan, Google Ads API Team

ref:_00D1U1174p._5004Q21mvjX:ref
Reply all
Reply to author
Forward
0 new messages