examples/AdWords/v201809/Remarketing/UploadOfflineData.php
private static function createUserIdentifier($type, $value)
    {
        // If the user identifier type is a hashed type, normalize and hash the
        // value.
        if (0 === strpos($type, 'HASHED_')) {
            $value = hash('sha256', strtolower(trim($value)));
        }
        $userIdentifier = new UserIdentifier();
        $userIdentifier->setUserIdentifierType($type);
        $userIdentifier->setValue($value);

        return $userIdentifier;
    }
private static function createUserIdentifier($type, $value)
    {
        // If the user identifier type is a hashed type, normalize and hash the
        // value.
        if (0 === strpos($type, 'HASHED_')) {
            $value = hash('sha256', strtolower(trim($value)));
        }
        $userIdentifier = new UserIdentifier();
        $userIdentifier->setUserIdentifierType($type);
        $userIdentifier->setValue($value);

        return $userIdentifier;
    }
private static function createUserIdentifier ( $ type , $ value ) { // If the user identifier type is a hashed type, normalize and hash the // value. if ( 0 === strpos ( $ type , 'HASHED_' ) ) { $ value = hash ( 'sha256' , strtolower ( trim ( $ value ) ) ) ; } $ userIdentifier = new UserIdentifier ( ) ; $ userIdentifier -> setUserIdentifierType ( $ type ) ; $ userIdentifier -> setValue ( $ value ) ; return $ userIdentifier ; }
Creates a user identifier from the specified type and value.
Creates a user identifier from the specified type and value .