com.google.api.ads.adwords.lib.factory.helper
Class AdWordsServiceClientFactoryHelper

java.lang.Object
  extended by com.google.api.ads.common.lib.factory.helper.BaseAdsServiceClientFactoryHelper<AdWordsServiceClient,AdWordsSession,AdWordsServiceDescriptor>
      extended by com.google.api.ads.adwords.lib.factory.helper.AdWordsServiceClientFactoryHelper
All Implemented Interfaces:
AdsServiceClientFactoryHelper<AdWordsServiceClient,AdWordsSession,AdWordsServiceDescriptor>

public class AdWordsServiceClientFactoryHelper
extends BaseAdsServiceClientFactoryHelper<AdWordsServiceClient,AdWordsSession,AdWordsServiceDescriptor>

Factory helper for AdWords.

Author:
Adam Rogal

Constructor Summary
AdWordsServiceClientFactoryHelper(FactoryModule.AdsServiceClientFactoryInterface<AdWordsServiceClient,AdWordsSession,AdWordsServiceDescriptor> adsServiceClientFactory, FactoryModule.AdsServiceDescriptorFactoryInterface<AdWordsServiceDescriptor> adsServiceDescriptorFactory, SoapClientHandlerInterface soapClientHandler, com.google.api.ads.common.lib.conf.AdsLibConfiguration adsLibConfiguration)
          Constructor.
 
Method Summary
 String determineVersion(Class<?> interfaceClass)
          Determines what API version an ads service belongs to.
 
Methods inherited from class com.google.api.ads.common.lib.factory.helper.BaseAdsServiceClientFactoryHelper
createAdsServiceClient, createServiceDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdWordsServiceClientFactoryHelper

@Inject
public AdWordsServiceClientFactoryHelper(FactoryModule.AdsServiceClientFactoryInterface<AdWordsServiceClient,AdWordsSession,AdWordsServiceDescriptor> adsServiceClientFactory,
                                                FactoryModule.AdsServiceDescriptorFactoryInterface<AdWordsServiceDescriptor> adsServiceDescriptorFactory,
                                                SoapClientHandlerInterface soapClientHandler,
                                                com.google.api.ads.common.lib.conf.AdsLibConfiguration adsLibConfiguration)
Constructor.

Parameters:
adsServiceClientFactory - the ads service client factory
adsServiceDescriptorFactory - the ads service descriptor factory
soapClientHandler - the SOAP client handler
adsLibConfiguration - the lib configuration
Method Detail

determineVersion

public String determineVersion(Class<?> interfaceClass)
Description copied from interface: AdsServiceClientFactoryHelper
Determines what API version an ads service belongs to.

Parameters:
interfaceClass - the interface class of the service
Returns:
a string representation of the version of this service
See Also:
AdsServiceClientFactoryHelper.determineVersion(Class)


Copyright © 2012. All Rights Reserved.