This was working in the previous deprecated adwords api. Is this a not supported feature in the new api? below is my code. very simple. throws an exception saying "Invalid cliend ID", however, the client ID is good. Same client IDs using deprecated adwords api is working.
CustomerServiceClient customerService = GoogleAdsServices.client.GetService(Google.Ads.GoogleAds.Services.V8.CustomerService);
Customer customer = new Customer()
{
ResourceName = ResourceNames.CustomerClient(
9768429872,
8368118288 ,
DescriptiveName = "my new account name",
};
CustomerOperation op = new CustomerOperation() {
Update = customer,
//UpdateMask = FieldMasks.AllSetFieldsOf(customer)
};
try
{
// Create the account.
MutateCustomerRequest o = new MutateCustomerRequest()
{
Operation = op
};
customerService.MutateCustomer(o);
}
catch (GoogleAdsException e)
{
Console.WriteLine("Failure:");
Console.WriteLine($"Message: {e.Message}");
Console.WriteLine($"Failure: {e.Failure}");
Console.WriteLine($"Request ID: {e.RequestId}");
}
return null;