public class DfaSession extends Object implements AdsSession, OAuth2Compatible
DfaSession represents a single session of DFA use.
 Implementation is not thread-safe.
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
DfaSession.Builder
Builder for DfaSession. 
 | 
static class  | 
DfaSession.Environment
Enum representing the endpoint server, aka environment. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getApplicationName()
Gets the application name. 
 | 
String | 
getEndpoint()
Returns the server endpoint to make requests against. 
 | 
com.google.api.client.auth.oauth2.Credential | 
getOAuth2Credential()
Gets the OAuth2 credentials. 
 | 
String | 
getPassword()
Gets the password. 
 | 
String | 
getToken()
Gets the token used for authentication. 
 | 
String | 
getUsername()
Gets the user name. 
 | 
boolean | 
isEnvironment(Endpoint environment)
Determines if the session is for the supplied
  
DfaSession.Environment. | 
void | 
setToken(String token)
Sets the token associated with this session. 
 | 
public void setToken(String token)
public String getUsername()
public String getPassword()
public String getToken()
public String getApplicationName()
public String getEndpoint()
AdsSessiongetEndpoint in interface AdsSessionpublic boolean isEnvironment(Endpoint environment)
DfaSession.Environment.public com.google.api.client.auth.oauth2.Credential getOAuth2Credential()
getOAuth2Credential in interface OAuth2CompatibleCopyright © 2015. All Rights Reserved.