|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Credentials
Provides service objects for a single authorized user and AdWords account.
All Credentials objects are immutable and all methods are thread safe. The Service objects that they return are not in general thread safe. If you wish to use a Service object returned from one of these methods in multiple threads, you must externally synchronize access to all methods. In addition, the results ofAdWordsService.getLastOperationCount()
and AdWordsService.getLastTime()
will not be reliable unless the calls are
within the same synchronized block as the service method whose time/operation
resource you wish to return.
The various factory methods can throw
ServiceExceptions
if the underlying
Axis implementation encounters an error while attempting to locate the
appropriate web service.
Method Summary | |
---|---|
java.lang.String |
getApplicationToken()
Returns the developer token associated with these Credentials. |
java.lang.String |
getClientEmail()
Returns the client email account associated with these Credentials. |
java.lang.String |
getDeveloperToken()
Returns the developer token associated with these Credentials. |
java.lang.String |
getEmail()
Returns the email account associated with these Credentials. |
java.lang.String |
getPassword()
Returns the password associated with these Credentials. |
java.lang.Object |
getService(int service)
Get the Service for these Credentials. |
java.lang.String |
getUseragent()
Returns the useragent associated with these Credentials. |
java.lang.String |
toString()
Returns a String describing these credentials. |
java.lang.String |
toString(boolean hidePassword,
boolean hideDeveloperToken)
Returns a String describing these credentials. |
Method Detail |
---|
java.lang.Object getService(int service) throws javax.xml.rpc.ServiceException
javax.xml.rpc.ServiceException
java.lang.String getEmail()
java.lang.String getClientEmail()
java.lang.String getPassword()
java.lang.String getUseragent()
java.lang.String getDeveloperToken()
java.lang.String getApplicationToken()
java.lang.String toString()
"[Credentials clientEmail='myclient@client.com'
email='user@company.com' useragent='Update keywords for Client.com
campaigns']"
toString
in class java.lang.Object
java.lang.String toString(boolean hidePassword, boolean hideDeveloperToken)
"[Credentials clientEmail='myclient@client.com' email='user@company.com'
password='passw0rd' useragent='Update keywords for Client.com campaigns']"
hidePassword
- false iff the password may be visible in
the description.hideDeveloperToken
- false iff the developer token may be
visible in the description.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |