$adsUtilityRegistry
$adsUtilityRegistry :
Provides methods related to formatting HTTP and SOAP headers for ads APIs.
__construct(\Google\AdsApi\Common\AdsUtilityRegistry|null $adsUtilityRegistry = null,\Google\AdsApi\Common\LibraryMetadataProvider|null $libraryMetadataProvider = null)
\Google\AdsApi\Common\AdsUtilityRegistry|null | $adsUtilityRegistry | the ads utility registry |
\Google\AdsApi\Common\LibraryMetadataProvider|null | $libraryMetadataProvider | the library metadata provider |
formatApplicationNameForSoapHeader(string $applicationName,string $productNameForSoapHeader,boolean $includeUtilityUsage): string
Formats an application name in a format standard to the ads libraries to include in the SOAP header.
string | $applicationName | the application name to format |
string | $productNameForSoapHeader | the ads product API calls are being made against, formatted to be used in the SOAP header |
boolean | $includeUtilityUsage | true if logging of utilities usages is turned on |
the formatted application name
formatApplicationNameForGuzzleHeader(string $applicationName,string $productName,boolean $includeUtilityUsage,null|boolean $isReportingGzipEnabled = null): string
Formats an application name in a format standard to the ads libraries to include in the Guzzle HTTP header.
string | $applicationName | the application name to format |
string | $productName | the ads product API calls are being made against |
boolean | $includeUtilityUsage | true if logging of utilities usages is turned on |
null|boolean | $isReportingGzipEnabled | true if the user agent should include "gzip" to indicate that this request should be gzip-compressed |
the formatted application name