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
コード例 #1
0
 public function __construct($key = null, $externalPolicyName = null, $externalPolicyUrl = null, $externalPolicyDescription = null, $isExemptable = null, $violatingParts = null)
 {
     parent::__construct();
     $this->key = $key;
     $this->externalPolicyName = $externalPolicyName;
     $this->externalPolicyUrl = $externalPolicyUrl;
     $this->externalPolicyDescription = $externalPolicyDescription;
     $this->isExemptable = $isExemptable;
     $this->violatingParts = $violatingParts;
 }
コード例 #2
0
 public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL)
 {
     parent::__construct();
     $this->key = $key;
     $this->externalPolicyName = $externalPolicyName;
     $this->externalPolicyUrl = $externalPolicyUrl;
     $this->externalPolicyDescription = $externalPolicyDescription;
     $this->isExemptable = $isExemptable;
     $this->violatingParts = $violatingParts;
     $this->fieldPath = $fieldPath;
     $this->trigger = $trigger;
     $this->errorString = $errorString;
     $this->ApiErrorType = $ApiErrorType;
 }