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

The factory class for all Ad Manager API services. More...

Inheritance diagram for Google.Api.Ads.AdManager.Lib.AdManagerServiceFactory:
Google.Api.Ads.Common.Lib.ServiceFactory Google.Api.Ads.Common.Lib.Configurable

Public Member Functions

 AdManagerServiceFactory ()
 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 Ad Manager API services.

Constructor & Destructor Documentation

Google.Api.Ads.AdManager.Lib.AdManagerServiceFactory.AdManagerServiceFactory ( )
inline

Default public constructor.

Member Function Documentation

override void Google.Api.Ads.AdManager.Lib.AdManagerServiceFactory.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.AdManager.Lib.AdManagerServiceFactory.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.
Parameters
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.AdManager.Lib.AdManagerAppConfig.AdManagerApiServer, Google.Api.Ads.Common.Lib.ServiceSignature.ServiceName, Google.Api.Ads.AdManager.Lib.AdManagerServiceSignature.ServiceType, and Google.Api.Ads.Common.Lib.ServiceSignature.Version.

override void Google.Api.Ads.AdManager.Lib.AdManagerServiceFactory.ReadHeadersFromConfig ( AppConfig  config)
inlineprotectedvirtual

Reads the headers from App.config.

Parameters
configThe configuration class.

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


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