public class AdWordsSession extends Object implements AdsSession, OAuth2Compatible
AdWordsSession
represents a single session of AdWords use.
Implementation is not thread-safe.
Modifier and Type | Class and Description |
---|---|
static class |
AdWordsSession.Builder
Builder for AdWordsSession.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ENDPOINT |
Modifier and Type | Method and Description |
---|---|
String |
getClientCustomerId()
Gets the client customer ID.
|
String |
getDeveloperToken() |
String |
getEndpoint()
Returns the server endpoint to make requests against.
|
Long |
getExpressBusinessId()
Gets the AdWords Express business ID used by AdWords Express PromotionService.
|
String |
getExpressPlusPageId()
Gets the Google+ page ID for the Google My Business location used by AdWords Express
PromotionService.
|
com.google.api.client.auth.oauth2.Credential |
getOAuth2Credential()
Gets the OAuth2 credentials.
|
ReportingConfiguration |
getReportingConfiguration()
Gets the reporting configuration.
|
String |
getUserAgent() |
Boolean |
isPartialFailure() |
Boolean |
isValidateOnly()
Returns
true if the session should only validate the request. |
void |
setClientCustomerId(String clientCustomerId)
Sets the client customer ID.
|
void |
setExpressBusinessId(Long businessId)
Sets the AdWords Express business ID used by AdWords Express PromotionService.
|
void |
setExpressPlusPageId(String expressPlusPageId)
Sets the Google+ page ID for the Google My Business location used by AdWords Express
PromotionService.
|
void |
setOAuth2Credential(com.google.api.client.auth.oauth2.Credential oAuth2Credential)
Sets the OAuth2 credential.
|
void |
setPartialFailure(Boolean isPartialFailure)
Sets whether this session should allow partial failure.
|
void |
setReportingConfiguration(ReportingConfiguration reportingConfiguration)
Sets the reporting configuration.
|
void |
setValidateOnly(Boolean isValidateOnly)
Sets whether this session should only validate the request.
|
public static final String DEFAULT_ENDPOINT
public String getClientCustomerId()
public void setClientCustomerId(String clientCustomerId)
@Nullable public Long getExpressBusinessId()
public void setExpressBusinessId(@Nullable Long businessId)
When using PromotionService, either set this value or the express plus page ID, but not both.
@Nullable public String getExpressPlusPageId()
public void setExpressPlusPageId(String expressPlusPageId)
When using PromotionService, either set this value or the express business ID, but not both.
@Nullable public Boolean isValidateOnly()
true
if the session should only validate the request.public void setValidateOnly(@Nullable Boolean isValidateOnly)
public String getUserAgent()
public String getDeveloperToken()
@Nullable public Boolean isPartialFailure()
public void setPartialFailure(@Nullable Boolean isPartialFailure)
public com.google.api.client.auth.oauth2.Credential getOAuth2Credential()
getOAuth2Credential
in interface OAuth2Compatible
public void setOAuth2Credential(com.google.api.client.auth.oauth2.Credential oAuth2Credential)
@Nullable public ReportingConfiguration getReportingConfiguration()
public void setReportingConfiguration(@Nullable ReportingConfiguration reportingConfiguration)
public String getEndpoint()
AdsSession
getEndpoint
in interface AdsSession
Copyright © 2015. All Rights Reserved.