Only one account creation request was issued, but many duplicate accounts were created

61 views
Skip to first unread message

Alan Li

unread,
Dec 8, 2023, 1:30:06 AM12/8/23
to Google Ads API and AdWords API Forum
Today, there was a problem in my company's production environment. The following code was called once, but a dozen duplicate accounts appeared on the Google advertising platform.




Customer customer = new()
            {
                DescriptiveName = req.DescriptiveName,
                CurrencyCode = req.CurrencyCode,
                TimeZone = req.TimeZone,
                Manager = false,
                TrackingUrlTemplate = "{lpurl}?device={device}",
                FinalUrlSuffix = "keyword={keyword}&matchtype={matchtype}&adgroupid={adgroupid}"
            };
            CreateCustomerClientRequest createCustomerClientRequest = new()
            {
                ValidateOnly = req.ValidateOnly,
                CustomerId = req.CustomerId,
                CustomerClient = customer
            };

       
                // Create the account.
                CreateCustomerClientResponse response = customerService.CreateCustomerClient(createCustomerClientRequest);

                // Display the result.
                var message = string.Format($"Created a customer with resource name " +
                    $"'{response.ResourceName}' under the manager account with customer " +
                    $"ID '{req.CustomerId}'");

Google Ads API Forum Advisor

unread,
Dec 8, 2023, 1:37:37 AM12/8/23
to leili...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

By reviewing your query, I understand that you called the code once and the duplicate accounts were created in the Google Ads account.

In order to investigate your issue further, kindly provide us with the uncropped UI screenshot of the Google Ads account and updated complete API logs (request and response with request-id and request header) generated at your end.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02qXLMC:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages