public class DfpSession extends Object implements AdsSession, OAuthCompatible, OAuth2Compatible, ClientLoginCompatible
DfpSession represents a single session of DFP use.
Implementation is not thread-safe.
| Modifier and Type | Class and Description |
|---|---|
static class |
DfpSession.Builder
Builder for
DfpSession. |
static class |
DfpSession.Environment
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ENDPOINT |
| Modifier and Type | Method and Description |
|---|---|
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)
Deprecated.
|
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)
Deprecated.
It is encouraged that you switch to OAuth2 at your earliest
convenience. Beginning in 1.9.0, the GoogleOAuth
authorization flow will no longer be supported, making it
substantially more difficult to create OAuth1.0a tokens.
|
public static final String DEFAULT_ENDPOINT
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()
getClientLoginToken in interface ClientLoginCompatiblepublic void setClientLoginToken(String clientLoginToken)
public String getEndpoint()
getEndpoint in interface AdsSession@Deprecated public boolean isEnvironment(Endpoint environment)
DfpSession.Environment.isEnvironment in interface AdsSessionenvironment - the environment to checkpublic String getNetworkCode()
public void setNetworkCode(String networkCode)
Copyright © 2013. All Rights Reserved.