Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.Common.Lib.AdsOAuthProviderForServiceAccounts Interface Reference

Provides OAuth authorization mechanism for Ads services when using service account flow. More...

Inheritance diagram for Google.Api.Ads.Common.Lib.AdsOAuthProviderForServiceAccounts:
Google.Api.Ads.Common.Lib.AdsOAuthProvider Google.Api.Ads.Common.Lib.Configurable Google.Api.Ads.Common.OAuth.AdsOAuthProviderImpl Google.Api.Ads.Common.Lib.OAuth2ProviderBase Google.Api.Ads.Common.Lib.OAuth2ProviderForApplications Google.Api.Ads.Common.Lib.OAuth2ProviderForServiceAccounts

Public Member Functions

void GenerateAccessTokenForServiceAccount ()
 Generates the access token for service account. More...
 
- Public Member Functions inherited from Google.Api.Ads.Common.Lib.AdsOAuthProvider
void RefreshAccessToken ()
 Refreshes the access token if expiring. More...
 
void RefreshAccessTokenIfExpiring ()
 Refreshes the access token if expiring. More...
 
string GetAuthHeader ()
 Gets the OAuth authorization header to be used with HTTP requests. More...
 

Properties

string ServiceAccountEmail [get]
 Gets the service account email for which access token should be retrieved. More...
 
string PrnEmail [get, set]
 Gets or sets the email of the account for which the call is being made. More...
 
- Properties inherited from Google.Api.Ads.Common.Lib.AdsOAuthProvider
string ClientId [get, set]
 Gets or sets the client that is making the request. This value is obtained from the API console during application registration. More...
 
string ClientSecret [get, set]
 Gets or sets the client secret obtained from the API console during application registration.during application registration. More...
 
string Scope [get, set]
 Gets or sets the API access your application is requesting. This is space delimited. More...
 
string State [get, set]
 Gets or sets a parameter that your application can use for keeping state. The OAuth Authorization Server roundtrips this parameter. More...
 
string TokenType [get]
 Gets the type of token returned by the server. This field will always have the value Bearer for now. More...
 
string AccessToken [get, set]
 Gets or sets the token that can be sent to a Google API for authentication. More...
 
DateTime UpdatedOn [get, set]
 Gets or sets the time at which access token was retrieved. More...
 
int ExpiresIn [get, set]
 Gets the remaining lifetime on the access token. More...
 
OAuthTokensObtainedCallback OnOAuthTokensObtained [get]
 Callback triggered when this provider obtains a new access token or refresh token from the OAuth server. More...
 
- Properties inherited from Google.Api.Ads.Common.Lib.Configurable
AppConfig Config [get]
 Gets the application configuration class for this object. More...
 

Detailed Description

Provides OAuth authorization mechanism for Ads services when using service account flow.

Member Function Documentation

void Google.Api.Ads.Common.Lib.AdsOAuthProviderForServiceAccounts.GenerateAccessTokenForServiceAccount ( )

Generates the access token for service account.

Implemented in Google.Api.Ads.Common.OAuth.AdsOAuthProviderImpl.

Property Documentation

string Google.Api.Ads.Common.Lib.AdsOAuthProviderForServiceAccounts.PrnEmail
getset

Gets or sets the email of the account for which the call is being made.

string Google.Api.Ads.Common.Lib.AdsOAuthProviderForServiceAccounts.ServiceAccountEmail
get

Gets the service account email for which access token should be retrieved.


The documentation for this interface was generated from the following file: