SOAP_HEADER_NAME
SOAP_HEADER_NAME
Handles how HTTP and SOAP headers are set for ads API requests.
generateHttpHeaders(\Google\AdsApi\Common\AdsSession $session): array
Generates the required HTTP headers for the ads API request.
\Google\AdsApi\Common\AdsSession | $session | session information to use for the headers |
the HTTP headers
generateSoapHeaders(\Google\AdsApi\Common\AdsSession $session,\Google\AdsApi\Common\AdsServiceDescriptor $adsServiceDescriptor): \SoapHeader
Sets the required SOAP headers for the ads API request.
\Google\AdsApi\Common\AdsSession | $session | session information to use for the headers |
\Google\AdsApi\Common\AdsServiceDescriptor | $adsServiceDescriptor | descriptor for the ads API service the headers are being generated for |
if an invalid combination of headers are set
the SOAP headers