public class DfpSession extends Object implements AdsSession, OAuth2Compatible
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 . |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ENDPOINT |
Modifier and Type | Method and Description |
---|---|
String |
getApplicationName()
Gets the application name.
|
String |
getEndpoint()
Gets the endpoint.
|
String |
getNetworkCode()
Gets the network code.
|
com.google.api.client.auth.oauth2.Credential |
getOAuth2Credential()
Gets the OAuth2 credentials.
|
void |
setNetworkCode(String networkCode)
Sets the network code.
|
void |
setOAuth2Credential(com.google.api.client.auth.oauth2.Credential oAuth2Credential)
Sets the OAuth2 credential.
|
public static final String DEFAULT_ENDPOINT
public String getApplicationName()
public com.google.api.client.auth.oauth2.Credential getOAuth2Credential()
getOAuth2Credential
in interface OAuth2Compatible
public void setOAuth2Credential(com.google.api.client.auth.oauth2.Credential oAuth2Credential)
public String getEndpoint()
getEndpoint
in interface AdsSession
public String getNetworkCode()
public void setNetworkCode(String networkCode)
Copyright © 2016. All Rights Reserved.