Hi Adwords Team,

I have problem, I have MCC account, I'm using API create sub Account for 
MCC and I invite email, code example:

public void Run(AdWordsUser user)
        {
            using (ManagedCustomerService managedCustomerService =
                (ManagedCustomerService)user.GetService(
                    AdWordsService.v201802.ManagedCustomerService))
            {

                // Create account.
                ManagedCustomer customer = new ManagedCustomer();
                customer.name = "Customer 01";
                customer.currencyCode = "VND";
                customer.dateTimeZone = "Europe/London";

                // Create operations.
                ManagedCustomerOperation operation = new 
ManagedCustomerOperation();
                operation.operand = customer;
                operation.@operator = Operator.ADD;

                // For whitelisted users only, uncomment two commands below 
as part of the
                // ADD operation to invite a user to have access to an 
account. An email
                // will be sent to that user inviting them to have access 
to the newlyd
                // created account.
                 operation.inviteeEmail = "[email protected]";
                 operation.inviteeRole = AccessRole.ADMINISTRATIVE;

                try
                {
                    ManagedCustomerOperation[] operations = new 
ManagedCustomerOperation[] { operation };
                    // Add account.
                    ManagedCustomerReturnValue result = 
managedCustomerService.mutate(operations);

                    // Display accounts.
                    if (result.value != null && result.value.Length > 0)
                    {
                        ManagedCustomer customerResult = result.value[0];
                        Console.WriteLine("Account with customer ID \"{0}\" 
was created.",
                            customerResult.customerId);
                    }
                    else
                    {
                        Console.WriteLine("No accounts were created.");
                    }
                }
                catch (Exception e)
                {
                    throw new System.ApplicationException("Failed to create 
accounts.", e);
                }
            }

But I receive error:

AdWordsApiException: Exception of type 
'Google.Api.Ads.AdWords.Lib.AdWordsApiException' was thrown. 

Error reason is unknown.. (Error: RequestError.UNKNOWN, FieldPath: 
operations[0].inviteeEmail, Trigger: [email protected])


How to fix this problem?

Thanks,

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a4e5b50f-e050-47cc-89d7-d25a1be6435a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Trường Nguyễn Xuân
    • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... Trường Nguyễn Xuân
    • ... 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... Trường Nguyễn Xuân
        • ... 'Michael Cloonan (AdWords API Team)' via AdWords API and Google Ads API Forum
          • ... 'Michael Cloonan (AdWords API Team)' via AdWords API and Google Ads API Forum
            • ... Алексей Ягла
              • ... 'Michael Cloonan (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to