Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.AdWords.Lib.AdWordsServiceFactory Class Reference

The factory class for all AdWords API services. More...

Inheritance diagram for Google.Api.Ads.AdWords.Lib.AdWordsServiceFactory:
Google.Api.Ads.Common.Lib.ServiceFactory Google.Api.Ads.Common.Lib.Configurable

Public Member Functions

 AdWordsServiceFactory ()
 Default public constructor. More...
 
override AdsClient CreateService (ServiceSignature signature, AdsUser user, Uri serverUrl)
 Create a service object. More...
 

Protected Member Functions

override void ReadHeadersFromConfig (AppConfig config)
 Reads the headers from App.config. More...
 
override void CheckServicePreconditions (ServiceSignature signature)
 Checks preconditions of the service signature and throws and exception if the service cannot be generated. More...
 

Additional Inherited Members

- Properties inherited from Google.Api.Ads.Common.Lib.ServiceFactory
AppConfig Config [get, set]
 Gets an App.config reader suitable for this factory. More...
 
- Properties inherited from Google.Api.Ads.Common.Lib.Configurable
AppConfig Config [get]
 Gets the application configuration class for this object. More...
 

Detailed Description

The factory class for all AdWords API services.

Constructor & Destructor Documentation

Google.Api.Ads.AdWords.Lib.AdWordsServiceFactory.AdWordsServiceFactory ( )
inline

Default public constructor.

Member Function Documentation

override void Google.Api.Ads.AdWords.Lib.AdWordsServiceFactory.CheckServicePreconditions ( ServiceSignature  signature)
inlineprotectedvirtual

Checks preconditions of the service signature and throws and exception if the service cannot be generated.

Parameters
signaturethe service signature for generating the service

Implements Google.Api.Ads.Common.Lib.ServiceFactory.

override AdsClient Google.Api.Ads.AdWords.Lib.AdWordsServiceFactory.CreateService ( ServiceSignature  signature,
AdsUser  user,
Uri  serverUrl 
)
inlinevirtual

Create a service object.

Parameters
signatureSignature of the service being created.
userThe user for which the service is being created.
serverUrlThe server to which the API calls should be made.
Returns
An object of the desired service type.

Implements Google.Api.Ads.Common.Lib.ServiceFactory.

References Google.Api.Ads.AdWords.Lib.AdWordsAppConfig.AdWordsApiServer, Google.Api.Ads.AdWords.Lib.AdWordsServiceSignature.GroupName, Google.Api.Ads.Common.Lib.ServiceSignature.ServiceName, Google.Api.Ads.AdWords.Lib.AdWordsServiceSignature.ServiceType, and Google.Api.Ads.Common.Lib.ServiceSignature.Version.

override void Google.Api.Ads.AdWords.Lib.AdWordsServiceFactory.ReadHeadersFromConfig ( AppConfig  config)
inlineprotectedvirtual

Reads the headers from App.config.

Parameters
configThe configuration class.

Implements Google.Api.Ads.Common.Lib.ServiceFactory.

References Google.Api.Ads.AdWords.Lib.AdWordsAppConfig.ClientCustomerId.


The documentation for this class was generated from the following file: