|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.ads.dfa.lib.client.DfaSession
public class DfaSession
A DfaSession represents a single session of DFA use.
| Nested Class Summary | |
|---|---|
static class |
DfaSession.Builder
Builder for DfaSession. |
static class |
DfaSession.Environment
Enum representing the endpoint server, aka environment. |
| Method Summary | |
|---|---|
String |
getApplicationName()
Gets the application name. |
String |
getEndpoint()
Returns the server endpoint to make requests against. |
String |
getImpersonatedToken()
Gets the token necessary to impersonate. |
Long |
getNetworkToImpersonate()
Gets the network to impersonate. |
String |
getPassword()
Gets the password. |
String |
getToken()
Gets the token used for authentication. |
String |
getUsername()
Gets the user name. |
String |
getUsernameToImpersonate()
Gets the username to impersonate. |
boolean |
isEnvironment(Endpoint environment)
Determines if the session is for the supplied DfaSession.Environment. |
boolean |
isImpersonating()
Indicates whether clients of this session will impersonate. |
void |
setImpersonatedToken(String impersonatedToken)
Sets the token necessary to impersonate. |
void |
setNetworkToImpersonate(Long networkToImpersonate)
Sets the network to impersonate. |
void |
setToken(String token)
Sets the token associated with this session. |
void |
setUsernameToImpersonate(String usernameToImpersonate)
Sets the username to impersonate. |
void |
stopImpersonating()
Resets all settings related to impersonating in this session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void setUsernameToImpersonate(String usernameToImpersonate)
public String getUsernameToImpersonate()
public void setNetworkToImpersonate(Long networkToImpersonate)
public Long getNetworkToImpersonate()
public void setImpersonatedToken(String impersonatedToken)
public String getImpersonatedToken()
public boolean isImpersonating()
public void stopImpersonating()
public void setToken(String token)
public String getUsername()
public String getPassword()
public String getToken()
public String getApplicationName()
public String getEndpoint()
AdsSession
getEndpoint in interface AdsSessionpublic boolean isEnvironment(Endpoint environment)
DfaSession.Environment.
isEnvironment in interface AdsSessionenvironment - the environment to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||