src/Google/AdsApi/Common/Util/LogMessageScrubbers.php
public static function scrubRequestSoapBodyTags(
        $soapXml,
        array $tagsToScrub
    ) {
        foreach ($tagsToScrub as $tag) {
            $regex = sprintf(self::$SOAP_REQUEST_BODY_TAG_REGEX, $tag);
            $soapXml = preg_replace($regex, '\1' . self::$REDACTED . '\2', $soapXml, 1);
        }

        return $soapXml;
    }
public static function scrubRequestSoapBodyTags(
        $soapXml,
        array $tagsToScrub
    ) {
        foreach ($tagsToScrub as $tag) {
            $regex = sprintf(self::$SOAP_REQUEST_BODY_TAG_REGEX, $tag);
            $soapXml = preg_replace($regex, '\1' . self::$REDACTED . '\2', $soapXml, 1);
        }

        return $soapXml;
    }
public static function scrubRequestSoapBodyTags ( $ soapXml , array $ tagsToScrub ) { foreach ( $ tagsToScrub as $ tag ) { $ regex = sprintf ( self :: $ SOAP_REQUEST_BODY_TAG_REGEX , $ tag ) ; $ soapXml = preg_replace ( $ regex , '\1' . self :: $ REDACTED . '\2' , $ soapXml , 1 ) ; } return $ soapXml ; }
Scrubs the values of specified tags, replacing their occurrences in the
specified request SOAP XML with a redacted token.

@param string $soapXml
@param string[] $tagsToScrub which SOAP tags to scrub
@return string the SOAP XML with any sensitive info removed from its
headers
Scrubs the values of specified tags replacing their occurrences in the specified request SOAP XML with a redacted token .