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;
        }

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d2d89a7c-0a18-4dee-9a22-98755e7d88a9n%40googlegroups.com.

Reply via email to