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}'");

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b18173b8-5927-44ea-afbc-11a9313fe178n%40googlegroups.com.

Reply via email to