PHP Class PolicyViolationError, googleads-php-lib

Violations of a single policy by the same string in multiple places within a field is reported in one instance of this class and only one exemption needs to be filed. Violations of a single policy by two different strings is reported as two separate instances of this class. e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it would be represented by one instance. If the ad also contains 'INC' which also violates 'capitalization' it would be represented in a separate instance. Errors returned when Authentication failed.
Inheritance: extends ApiError
Afficher le fichier Open project: googleads/googleads-php-lib Class Usage Examples

Méthodes publiques

Свойство Type Description
$externalPolicyDescription string
$externalPolicyName string
$externalPolicyUrl string
$isExemptable boolean
$key PolicyViolationKey
$violatingParts PolicyViolationErrorPart[]

Méthodes publiques

Méthode Description
__construct ( $key = null, $externalPolicyName = null, $externalPolicyUrl = null, $externalPolicyDescription = null, $isExemptable = null, $violatingParts = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null )
getNamespace ( ) : string Gets the namesapce of this class
getXsiTypeName ( ) : string Gets the xsi:type name of this class

Method Details

__construct() public méthode

public __construct ( $key = null, $externalPolicyName = null, $externalPolicyUrl = null, $externalPolicyDescription = null, $isExemptable = null, $violatingParts = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null )

getNamespace() public méthode

Gets the namesapce of this class
public getNamespace ( ) : string
Résultat string the namespace of this class

getXsiTypeName() public méthode

Gets the xsi:type name of this class
public getXsiTypeName ( ) : string
Résultat string the xsi:type name of this class

Property Details

$externalPolicyDescription public_oe property

public string $externalPolicyDescription
Résultat string

$externalPolicyName public_oe property

public string $externalPolicyName
Résultat string

$externalPolicyUrl public_oe property

public string $externalPolicyUrl
Résultat string

$isExemptable public_oe property

public bool $isExemptable
Résultat boolean

$key public_oe property

public PolicyViolationKey $key
Résultat PolicyViolationKey

$violatingParts public_oe property

public PolicyViolationErrorPart[] $violatingParts
Résultat PolicyViolationErrorPart[]