Hello!
I have a problem running the Google Ads example.

The program returns a message:  Status(StatusCode=Internal, 
Detail="Internal error encountered.")

Here is the text of the program C#:

using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.Config;
using Google.Ads.GoogleAds.V2.Errors;
using Google.Ads.GoogleAds.V2.Services;
using System;

namespace Google.Ads.GoogleAds.Examples.V2
{
    public class ListAccessibleCustomers 
    {
        public static void Main(string[] args)
        {
            ListAccessibleCustomers codeExample = new 
ListAccessibleCustomers();
            GoogleAdsConfig config = new GoogleAdsConfig()
            {
                LoginCustomerId = "ХХХ-ХХХ-ХХХХ",
                DeveloperToken = "ХХХХХ",
                OAuth2ClientId = "ХХХХХ.apps.googleusercontent.com",
                OAuth2ClientSecret = "ХХХХХХ",
                OAuth2RefreshToken = "ХХХХХХ"
            };
            GoogleAdsClient client = new GoogleAdsClient(config);
            codeExample.Run(client);
            Console.Read();
        }
        public void Run(GoogleAdsClient client)
        {
            CustomerServiceClient customerService = 
client.GetService(Services.V2.CustomerService);
            try
            {
                string[] customerResourceNames = 
customerService.ListAccessibleCustomers();
                foreach (string customerResourceName in 
customerResourceNames)
                {
                    Console.WriteLine($"Found customer with resource name = 
'{customerResourceName}'.");
                }
            }
            catch (GoogleAdsException e)
            {
                Console.WriteLine("Failure:");
                Console.WriteLine($"Message: {e.Message}");
                Console.WriteLine($"Failure: {e.Failure}");
                Console.WriteLine($"Request ID: {e.RequestId}");
            }
        }
    }
}


What am I doing wrong?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/db7a256b-c075-4aef-b66a-ec37b2d84e1d%40googlegroups.com.

Reply via email to