public class AdWordsSessionUtil extends Object
AdWordsSession
.Constructor and Description |
---|
AdWordsSessionUtil() |
Modifier and Type | Method and Description |
---|---|
static AdWordsSession |
copy(AdWordsSession adWordsSession)
Creates a copy of the AdWordsSession.
|
static AdWordsSession |
copy(AdWordsSession adWordsSession,
String userAgent)
Creates a copy of the AdWordsSession and changes the userAgent.
|
static AdWordsSession |
copyIfNeededWithUtilityUserAgent(AdWordsSession adWordsSession)
Copies (if needed) the AdWordsSession and Adds USER_AGENT to the userAgent.
|
static AdWordsSession |
copyWithUtilityUserAgent(AdWordsSession adWordsSession)
Copies the AdWordsSession and Adds USER_AGENT to the userAgent.
|
static AdWordsSession |
fromFileWithOAuth2()
Creates a new AdWordsSession using the ads.properties file and using OAuth2.
|
public static AdWordsSession copy(AdWordsSession adWordsSession)
adWordsSession
- to copy frompublic static AdWordsSession copyWithUtilityUserAgent(AdWordsSession adWordsSession)
adWordsSession
- to copy frompublic static AdWordsSession copyIfNeededWithUtilityUserAgent(AdWordsSession adWordsSession)
adWordsSession
- to copy frompublic static AdWordsSession copy(AdWordsSession adWordsSession, String userAgent)
adWordsSession
- to copy fromuserAgent
- the new User Agent for the sessionpublic static AdWordsSession fromFileWithOAuth2() throws OAuthException, ValidationException, com.google.api.ads.common.lib.conf.ConfigurationLoadException
OAuthException
- if problem with OAuth2com.google.api.ads.common.lib.conf.ConfigurationLoadException
- if problems loading the ad.properties fileValidationException
- if the AdWordsSession
did not validateCopyright © 2014. All Rights Reserved.