Package | Description |
---|---|
com.google.api.ads.dfa.lib.client |
Modifier and Type | Method and Description |
---|---|
DfaSession.Builder |
DfaSession.Builder.from(org.apache.commons.configuration.Configuration config)
Reads properties from the provided
Configuration object.Known properties: api.dfa.username api.dfa.password api.dfa.applicationName api.dfa.token api.dfa.environment, e.g. |
DfaSession.Builder |
DfaSession.Builder.fromFile() |
DfaSession.Builder |
DfaSession.Builder.fromFile(File path) |
DfaSession.Builder |
DfaSession.Builder.fromFile(String path) |
DfaSession.Builder |
DfaSession.Builder.fromFile(URL path) |
DfaSession.Builder |
DfaSession.Builder.withApplicationName(String applicationName)
Includes application name.
|
DfaSession.Builder |
DfaSession.Builder.withEndpoint(String endpoint)
Override the endpoint server.
|
DfaSession.Builder |
DfaSession.Builder.withEnvironment(DfaSession.Environment environment)
Includes the specified environment, e.g.
|
DfaSession.Builder |
DfaSession.Builder.withOAuth2Credential(com.google.api.client.auth.oauth2.Credential credential)
Includes an OAuth2 credential.
|
DfaSession.Builder |
DfaSession.Builder.withUsernameAndOAuth2Credential(String username,
com.google.api.client.auth.oauth2.Credential credential)
Includes a username with an OAuth2 credential used for generating DFA
tokens.
|
DfaSession.Builder |
DfaSession.Builder.withUsernameAndPassword(String username,
String password)
Deprecated.
It is encouraged that you switch to OAuth2 at your earliest
convenience. Please see the OfflineCredentials utility for
generating offline credentials easily.
|
DfaSession.Builder |
DfaSession.Builder.withUsernameAndToken(String username,
String token)
Includes a username with a hard-coded token to be used instead of
fetching a new one.
|
Copyright © 2015. All Rights Reserved.