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
ファイルを表示 Open project: googleads/googleads-php-lib Class Usage Examples

Public Properties

Property Type Description
$externalPolicyDescription string
$externalPolicyName string
$externalPolicyUrl string
$isExemptable boolean
$key PolicyViolationKey
$violatingParts PolicyViolationErrorPart[]

Public Methods

Method 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 method

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

getNamespace() public method

Gets the namesapce of this class
public getNamespace ( ) : string
return string the namespace of this class

getXsiTypeName() public method

Gets the xsi:type name of this class
public getXsiTypeName ( ) : string
return string the xsi:type name of this class

Property Details

$externalPolicyDescription public_oe property

public string $externalPolicyDescription
return string

$externalPolicyName public_oe property

public string $externalPolicyName
return string

$externalPolicyUrl public_oe property

public string $externalPolicyUrl
return string

$isExemptable public_oe property

public bool $isExemptable
return boolean

$key public_oe property

public PolicyViolationKey $key
return PolicyViolationKey

$violatingParts public_oe property

public PolicyViolationErrorPart[] $violatingParts
return PolicyViolationErrorPart[]