Hi,
I'm new to Google Ads API and have not been able to make any successful API 
calls with the *test account*.

1) created a developer token (from my manager account, where my email is 
listed as the admin)
[https://developers.google.com/google-ads/api/docs/first-call/overview]
2) created a test manager account with the *same email* as my ad manager 
account.
[https://developers.google.com/google-ads/api/docs/first-call/]
2a) In the test manager account I have created a dummy customer, and within 
it a dummy campaign
3) Enabled the Google Ads API in the API library
[https://console.developers.google.com/apis/library]
4) Created a desktop app credential and obtained the clientID and secret
5) Cloned the google-ads-dotnet from Github, and was able to obtain a 
refresh token after running the AuthenticateInDesktopApplication
6) Followed the online instruction in modifying App.config and created a 
GoogleAdsApi.json

In my program, I followed the example for the custom json:
            ConfigurationBuilder builder = (ConfigurationBuilder)new 
ConfigurationBuilder()
                .SetBasePath(Directory.GetCurrentDirectory())
                .AddJsonFile("PATH\\TO\\GoogleAdsApi.json");
            IConfigurationRoot configRoot = builder.Build();

            GoogleAdsConfig googleAdsConfig = new 
GoogleAdsConfig(configRoot);
            GoogleAdsClient googleAdsClient = new 
GoogleAdsClient(googleAdsConfig);

My 'dummy' customerid is 2666127839, and while following the example, I got 
the following error in the log:

Request
-------

Method Name: /google.ads.googleads.v6.services.GoogleAdsService/SearchStream
Host: https://googleads.googleapis.com
Headers: {
  "x-goog-api-client": "gl-dotnet/3.0.0 gapic/7.0.0 
gax/3.2.0+002f6637d17e4170f5db7ec7ca6f0163e6df1481 grpc/2.35.0",
  "developer-token": "REDACTED"
}

{ "customerId": "2666127839", "query": "SELECT campaign.id, campaign.name 
FROM campaign ORDER BY campaign.id", "summaryRowSetting": "NO_SUMMARY_ROW" }

Response
--------
Headers: {}

Fault: Grpc.Core.RpcException: Status(StatusCode="DeadlineExceeded", 
Detail="Deadline Exceeded", 
DebugException="Grpc.Core.Internal.CoreErrorDetailException: 
{"created":"@1614782557.607000000","description":"Deadline 
Exceeded","file":"..\..\..\src\core\ext\filters\deadline\deadline_filter.cc","file_line":81,"grpc_status":4}")
   at Grpc.Core.Internal.ClientResponseStream`2.MoveNext(*CancellationToken 
token*)
----------------END API CALL----------------

Is something wrong with my token? Which one specifically?

Thanks in advance!

Powell

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b6330489-efb3-4b50-b89f-4fa5720b0edan%40googlegroups.com.

Reply via email to