public final class AdWordsServices extends BaseAdWordsServices
Usage example:
AdWordsSession session = new AdWordsSession.Builder()...build();
CampaignServiceInterface campaignService =
AdWordsServices.getInstance().get(session, CampaignServiceInterface.class);
campaignService.get(...);
...
session.setClientCustomerId(...);
campaignService.get(...);
Implementation is thread-safe.
Constructor and Description |
---|
AdWordsServices() |
Modifier and Type | Method and Description |
---|---|
static DependencyBootstrapper |
getBootstrapper()
Returns a dependency bootstrapper based on the default instance of this class.
|
static AdWordsServicesInterface |
getInstance()
Returns the default instance, configured when this class was loaded.
|
static AdWordsServicesInterface |
newInstance()
Returns a new instance, configured using the current set of configurations and system
properties.
|
AdWordsServicesInterface |
withPluginModule(AdWordsPluginModule pluginModule)
Factory method for extensions and apps to get a new instance of this type, configured
with an
AdWordsPluginModule . |
createBootstrapper, getUtility
get
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
public AdWordsServicesInterface withPluginModule(AdWordsPluginModule pluginModule)
AdWordsServicesInterface
AdWordsPluginModule
.AdWordsServicesInterface
, configured with
the provided plugin module.public static final AdWordsServicesInterface getInstance()
public static final AdWordsServicesInterface newInstance()
public static final DependencyBootstrapper getBootstrapper()
To get an instance of a utility, use BaseAdWordsServices.getUtility(com.google.api.ads.adwords.lib.client.AdWordsSession, Class)
instead.
Copyright © 2018. All Rights Reserved.