public class DfpServiceClientFactoryHelper extends BaseAdsServiceClientFactoryHelper<DfpServiceClient,DfpSession,DfpServiceDescriptor>
| Constructor and Description |
|---|
DfpServiceClientFactoryHelper(FactoryModule.AdsServiceClientFactoryInterface<DfpServiceClient,DfpSession,DfpServiceDescriptor> adsServiceClientFactory,
FactoryModule.AdsServiceDescriptorFactoryInterface<DfpServiceDescriptor> adsServiceDescriptorFactory,
SoapClientHandlerInterface soapClientHandler,
com.google.api.ads.common.lib.conf.AdsLibConfiguration adsLibConfiguration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkServiceClientPreconditions(DfpSession dfpSession,
Class<?> interfaceClass)
Default implementation of passing service client preconditions.
|
String |
determineVersion(Class<?> interfaceClass)
Determines what API version an ads service belongs to.
|
createAdsServiceClient, createServiceDescriptor@Inject public DfpServiceClientFactoryHelper(FactoryModule.AdsServiceClientFactoryInterface<DfpServiceClient,DfpSession,DfpServiceDescriptor> adsServiceClientFactory, FactoryModule.AdsServiceDescriptorFactoryInterface<DfpServiceDescriptor> adsServiceDescriptorFactory, SoapClientHandlerInterface soapClientHandler, com.google.api.ads.common.lib.conf.AdsLibConfiguration adsLibConfiguration)
adsServiceClientFactory - the ads service client factoryadsServiceDescriptorFactory - the ads service descriptor factorysoapClientHandler - the SOAP client handleradsLibConfiguration - the lib configurationpublic String determineVersion(Class<?> interfaceClass)
AdsServiceClientFactoryHelperinterfaceClass - the interface class of the serviceAdsServiceClientFactoryHelper.determineVersion(Class)public void checkServiceClientPreconditions(DfpSession dfpSession, Class<?> interfaceClass) throws ServiceException
BaseAdsServiceClientFactoryHelpercheckServiceClientPreconditions in interface AdsServiceClientFactoryHelper<DfpServiceClient,DfpSession,DfpServiceDescriptor>checkServiceClientPreconditions in class BaseAdsServiceClientFactoryHelper<DfpServiceClient,DfpSession,DfpServiceDescriptor>dfpSession - the session containing the authentication methodinterfaceClass - the ads service that a client is being generated forServiceException - if the preconditions are not met for service client
creationAdsServiceClientFactoryHelper.checkServiceClientPreconditions(AdsSession, Class)Copyright © 2014. All Rights Reserved.