public class AdManagerSession extends Object implements AdsSession, OAuth2Compatible
AdManagerSession represents a single session of Ad Manager use.
 Implementation is not thread-safe.
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
AdManagerSession.Builder
Builder for  
AdManagerSession. | 
static class  | 
AdManagerSession.ImmutableAdManagerSession
Immutable, thread-safe implementation of AdManagerSession. 
 | 
| 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. 
 | 
AdManagerSession.Builder | 
newBuilder()
Returns a new  
AdManagerSession.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 OAuth2Compatiblepublic void setOAuth2Credential(com.google.api.client.auth.oauth2.Credential oAuth2Credential)
public String getEndpoint()
getEndpoint in interface AdsSessionpublic String getNetworkCode()
public void setNetworkCode(String networkCode)
public AdManagerSession.Builder newBuilder()
AdManagerSession.Builder with all settings copied from this session. This is not
 thread-safe unless this session is an AdManagerSession.ImmutableAdManagerSession.Copyright © 2020. All Rights Reserved.