PHP Класс 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.
Наследование: extends ApiError
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$externalPolicyDescription string
$externalPolicyName string
$externalPolicyUrl string
$isExemptable boolean
$key PolicyViolationKey
$violatingParts PolicyViolationErrorPart[]

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

getNamespace() публичный Метод

Gets the namesapce of this class
public getNamespace ( ) : string
Результат string the namespace of this class

getXsiTypeName() публичный Метод

Gets the xsi:type name of this class
public getXsiTypeName ( ) : string
Результат string the xsi:type name of this class

Описание свойств

$externalPolicyDescription публичное свойство

public string $externalPolicyDescription
Результат string

$externalPolicyName публичное свойство

public string $externalPolicyName
Результат string

$externalPolicyUrl публичное свойство

public string $externalPolicyUrl
Результат string

$isExemptable публичное свойство

public bool $isExemptable
Результат boolean

$key публичное свойство

public PolicyViolationKey $key
Результат PolicyViolationKey

$violatingParts публичное свойство

public PolicyViolationErrorPart[] $violatingParts
Результат PolicyViolationErrorPart[]