\Google\AdsApi\AdManagerAdManagerGuzzleLogMessageFormatterProvider

Provides a Guzzle log message formatter for Ad Manager.

Summary

Methods
Properties
Constants
__construct()
getGuzzleLogMessageFormatter()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$HTTP_HEADERS_TO_SCRUB
$session
$shouldLogResponsePayload
$redactedResponsePayloadMessage
N/A

Properties

$HTTP_HEADERS_TO_SCRUB

$HTTP_HEADERS_TO_SCRUB :

Type

$session

$session :

Type

$shouldLogResponsePayload

$shouldLogResponsePayload :

Type

$redactedResponsePayloadMessage

$redactedResponsePayloadMessage :

Type

Methods

__construct()

__construct(\Google\AdsApi\AdManager\AdManagerSession  $session,boolean  $shouldLogResponsePayload,string|null  $redactedResponsePayloadMessage = null)

Creates a new DFP Guzzle log message formatter provider with the specified settings.

Parameters

\Google\AdsApi\AdManager\AdManagerSession $session

the Ad Manager session that makes a Guzzle HTTP call

boolean $shouldLogResponsePayload

whether the formatter should show the response payload in the log

string|null $redactedResponsePayloadMessage

the substitution message to use in case the response payload is redacted

getGuzzleLogMessageFormatter()

getGuzzleLogMessageFormatter(): \Google\AdsApi\Common\GuzzleLogMessageFormatter

Configures and returns a Guzzle log message formatter appropriate for the ads API it is being used for.

Returns

\Google\AdsApi\Common\GuzzleLogMessageFormatter