\Google\AdsApi\CommonSoapSettingsBuilder

Builds SOAP settings.

Summary

Methods
Properties
Constants
__construct()
from()
withCompressionLevel()
withWsdlCacheType()
disableSslVerify()
withSslCaFile()
build()
defaultOptionals()
validate()
getCompressionLevel()
getWsdlCacheType()
getSslVerify()
getSslCaFile()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$configurationLoader
$compressionLevel
$wsdlCacheType
$sslVerify
$sslCaFile
N/A

Properties

$configurationLoader

$configurationLoader :

Type

$compressionLevel

$compressionLevel :

Type

$wsdlCacheType

$wsdlCacheType :

Type

$sslVerify

$sslVerify :

Type

$sslCaFile

$sslCaFile :

Type

Methods

__construct()

__construct()

withCompressionLevel()

withCompressionLevel(integer|null  $compressionLevel): \Google\AdsApi\Common\SoapSettingsBuilder

Includes gzip compression level.

The level of gzip compression to use, from 1 to 9. The higher the level the greater the compression and time needed to perform the compression. This is optional and defaults to null, in which case PHP will use its default value.

Parameters

integer|null $compressionLevel

Returns

\Google\AdsApi\Common\SoapSettingsBuilder

this builder

withWsdlCacheType()

withWsdlCacheType(integer|null  $wsdlCacheType): \Google\AdsApi\Common\SoapSettingsBuilder

Includes WSDL cache type. Additional WSDL caching settings can be set in the php.ini. This is optional and defaults to `null`, in which case PHP will use its default value.

Parameters

integer|null $wsdlCacheType

Returns

\Google\AdsApi\Common\SoapSettingsBuilder

this builder

disableSslVerify()

disableSslVerify(): \Google\AdsApi\Common\SoapSettingsBuilder

Disables SSL verification. Enabled by default.

This is not recommended.

Returns

\Google\AdsApi\Common\SoapSettingsBuilder

this builder

withSslCaFile()

withSslCaFile(string|null  $sslCaFile): \Google\AdsApi\Common\SoapSettingsBuilder

Includes the path to a CA bundle file to use for SSL verification. This field is only meaningful if SSL verification is not disabled.

This is optional and defaults to null, in which case this library will try to automatically find your system CA bundle file. Use this function only if you want to use a custom CA bundle file or you're getting SSL verification errors because this library cannot find a CA bundle file for you on your system.

Parameters

string|null $sslCaFile

Returns

\Google\AdsApi\Common\SoapSettingsBuilder

this builder

build()

build(): mixed

Creates a new instance of the data object being populated. This method should call defaultOptionals() and validate().

Returns

mixed —

the data object

defaultOptionals()

defaultOptionals()

Sets all optional fields to their default if they are `null`.

validate()

validate()

Checks that required fields have been included and all included fields are valid (e.g., URIs are valid).

getCompressionLevel()

getCompressionLevel(): integer|null

Gets the gzip compression level.

Returns

integer|null

getWsdlCacheType()

getWsdlCacheType(): integer|null

Gets the type of WSDL caching in use.

Returns

integer|null

getSslVerify()

getSslVerify(): boolean

Gets whether SSL verification is enabled.

Returns

boolean

getSslCaFile()

getSslCaFile(): string|null

Gets the SSL CA file.

Returns

string|null