unable to change the MCC child account name

22 views
Skip to first unread message

PPC Developer

unread,
Jun 2, 2022, 8:20:54 AM6/2/22
to Google Ads API and AdWords API Forum
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;
 

Google Ads API Forum Advisor

unread,
Jun 2, 2022, 10:24:53 AM6/2/22
to ppcdev...@mineeds.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to us.

For our team to better check the issue you are encountering, could you please provide the complete API logs (request and response with request-id ) generated on your end including the invalid client you are referring to so our team can further investigate with this?

For you to provide the requested API logs, note that this can be requested or provided to the developer handling the Google Ads API transactions when logging of the API requests has been enabled.

These are the specific guidelines to enable it.
You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Moving forward, I can see that you are using v8. That said, you should switch and upgrade to the newest version ,which is v10, to avoid any issues. Kindly refer to this guide for more details.

You may try the request again once you have upgraded the version, and if you continue to have problems, please let us know.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


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