|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.ads.dfp.lib.client.DfpSession
public class DfpSession
A DfpSession represents a single session of DFP use.
| Nested Class Summary | |
|---|---|
static class |
DfpSession.Builder
Builder for DfpSession. |
static class |
DfpSession.Environment
Enum representing the endpoint server, aka environment. |
| Method Summary | |
|---|---|
String |
getApplicationName()
Gets the application name. |
String |
getClientLoginToken()
Gets the client login token. |
String |
getEndpoint()
Gets the endpoint. |
String |
getNetworkCode()
Gets the network code. |
com.google.api.client.auth.oauth2.Credential |
getOAuth2Credential()
Gets the OAuth2 credentials. |
com.google.api.client.auth.oauth.OAuthParameters |
getOAuthParameters()
Gets the OAuth parameters. |
boolean |
isEnvironment(Endpoint environment)
Determines if the session is for the supplied DfpSession.Environment. |
void |
setClientLoginToken(String clientLoginToken)
Sets the client login token. |
void |
setNetworkCode(String networkCode)
Sets the network code. |
void |
setOAuth2Credential(com.google.api.client.auth.oauth2.Credential oAuth2Credential)
Sets the OAuth2 credential. |
void |
setOAuthParameters(com.google.api.client.auth.oauth.OAuthParameters oAuthParameters)
Sets the OAuth parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getApplicationName()
public com.google.api.client.auth.oauth.OAuthParameters getOAuthParameters()
getOAuthParameters in interface OAuthCompatiblepublic void setOAuthParameters(com.google.api.client.auth.oauth.OAuthParameters oAuthParameters)
public com.google.api.client.auth.oauth2.Credential getOAuth2Credential()
getOAuth2Credential in interface OAuth2Compatiblepublic void setOAuth2Credential(com.google.api.client.auth.oauth2.Credential oAuth2Credential)
public String getClientLoginToken()
public void setClientLoginToken(String clientLoginToken)
public String getEndpoint()
getEndpoint in interface AdsSessionpublic boolean isEnvironment(Endpoint environment)
DfpSession.Environment.
isEnvironment in interface AdsSessionenvironment - the environment to checkpublic String getNetworkCode()
public void setNetworkCode(String networkCode)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||