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 . |
static class |
DfpSession.ImmutableDfpSession
Immutable, thread-safe implementation of 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.
|
DfpSession.Builder |
newBuilder()
Returns a new
DfpSession.Builder with all settings copied from this session. |
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)
public DfpSession.Builder newBuilder()
DfpSession.Builder
with all settings copied from this session. This is not
thread-safe unless this session is an DfpSession.ImmutableDfpSession
.Copyright © 2018. All Rights Reserved.