INTERNAL error when running Google Ads example

84 views
Skip to first unread message

dwh synergy

unread,
Oct 22, 2019, 7:56:05 AM10/22/19
to AdWords API and Google Ads API Forum
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?


Google Ads API Forum Advisor Prod

unread,
Oct 22, 2019, 2:22:11 PM10/22/19
to dwh.synergy....@gmail.com, adwor...@googlegroups.com

Hello,

Thank you for reaching out. This 'Internal error encountered' could be a transient error. Could you please retry the request after a short pause to check if the issue persists? If yes, could you please provide the complete request and error response logs along with the client customer id by enabling logging using this guide for me to investigate better? Please use Reply privately to author option while sharing the details.

Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001UKO4sI:ref

dwh synergy

unread,
Oct 28, 2019, 2:57:17 AM10/28/19
to AdWords API and Google Ads API Forum
Hello!
The problem is still relevant. The execution log was sent as a private message.

вторник, 22 октября 2019 г., 21:22:11 UTC+3 пользователь adsapiforumadvisor написал:
Message has been deleted

dwh synergy

unread,
Nov 5, 2019, 1:38:25 AM11/5/19
to AdWords API and Google Ads API Forum
Hello.
please tell me if there is a solution to my problem? What am I doing wrong?

вторник, 22 октября 2019 г., 21:22:11 UTC+3 пользователь adsapiforumadvisor написал:

Hello,



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