\Google\AdsApi\CommonAdsSoapClientFactory

Creates SOAP clients that interface with ads APIs. These SOAP clients extend `AdsSoapClient`. For example, the Ad Manager `LineItemService` or the AdWords `CampaignService`.

Summary

Methods
Properties
Constants
__construct()
generateSoapClient()
No public properties found
DEFAULT_SOAP_CALL_TIMEOUT
No protected methods found
No protected properties found
N/A
populateOptions()
$reflection
$soapLogMessageFormatter
$soapCallTimeout
N/A

Constants

DEFAULT_SOAP_CALL_TIMEOUT

DEFAULT_SOAP_CALL_TIMEOUT

Properties

$reflection

$reflection :

Type

$soapLogMessageFormatter

$soapLogMessageFormatter :

Type

$soapCallTimeout

$soapCallTimeout :

Type

Methods

__construct()

__construct(\Google\AdsApi\Common\SoapLogMessageFormatter  $soapLogMessageFormatter,\Google\AdsApi\Common\Util\Reflection|null  $reflection = null,integer|null  $soapCallTimeout = null)

Creates a new instance of this factory with the specified SOAP log formatter.

Parameters

\Google\AdsApi\Common\SoapLogMessageFormatter $soapLogMessageFormatter
\Google\AdsApi\Common\Util\Reflection|null $reflection
integer|null $soapCallTimeout

the time in seconds to wait for a SOAP call to connect to the service and respond before timing out

generateSoapClient()

generateSoapClient(\Google\AdsApi\Common\AdsSession  $session,\Google\AdsApi\Common\AdsHeaderHandler  $headerHandler,\Google\AdsApi\Common\AdsServiceDescriptor  $serviceDescriptor): \SoapClient

Generates a SOAP client that interfaces with the specified service using configuration data from the specified ads session.

Parameters

\Google\AdsApi\Common\AdsSession $session

the session to read configuration information from

\Google\AdsApi\Common\AdsHeaderHandler $headerHandler

the header handler that will generate HTTP and SOAP headers

\Google\AdsApi\Common\AdsServiceDescriptor $serviceDescriptor

descriptor for the service the SOAP client is being generated to interface with

Throws

\UnexpectedValueException

if the SOAP client could not be generated

Returns

\SoapClient —

a SOAP client