Service Account: WaitingForActivation

211 views
Skip to first unread message

Todd Evans

unread,
Feb 19, 2021, 10:37:14 AM2/19/21
to AdWords API and Google Ads API Forum
I have a Service Account setup and I am trying to get my app to authenticate against this Service Account and ultimately call SearchStream()

I have the following code.  Upon GetAccessTokenForRequestAsync() method being called we receive a Status = WaitingForActivation message.

I have checked this Service Account and it shows a green check for status.  What am I missing?

GoogleAdsClient _client = GoogleServiceAccountAuthentication.GetGoogleAdsClient();
var clientToken = _client.Config.Credentials.GetAccessTokenForRequestAsync();

public static GoogleAdsClient GetGoogleAdsClient()
        {                       
            return new GoogleAdsClient(GetGoogleAdsConfig());
        }

        /// <summary>
        /// Get the GoolgeAds Service Account Configuration
        /// </summary>
        /// <returns>GoogleAdsConfig object containing configuration settings</returns>
        public static GoogleAdsConfig GetGoogleAdsConfig()
        {
            GoogleAdsConfig config = new GoogleAdsConfig()
            {                                
                OAuth2SecretsJsonPath = "Keys/xxxxxx.json",                
                OAuth2Mode = OAuth2Flow.SERVICE_ACCOUNT                              
            };

            config.OAuth2ClientId = "xxxxxxxx";          
            config.DeveloperToken = "xxxxxx";

            return config;
        }

Google Ads API Forum Advisor Prod

unread,
Feb 21, 2021, 9:16:45 PM2/21/21
to toddev...@gmail.com, adwor...@googlegroups.com
Hi Todd,

To have a closer look at the issue, could you provide the complete request and response logs with request ID generated on your end where we can see the issue? You can provide it via Reply privately to author option.

If you haven't enabled the logging of the API transactions for the specific client library that you are using, then please refer to the specific guide below:
Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


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