Page Summary
-
AdRuleService handles errors related to ad rule frequency caps.
-
The AdRuleFrequencyCapError object provides a reason for the error, including cases where frequency caps are incorrectly specified as on or off.
-
Inherited ApiError fields like
fieldPath,fieldPathElements,trigger, anderrorStringprovide details about the specific error occurrence.
Errors related to ad rule frequency caps
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field
ApiError
(inherited) fieldPath
xsd:
string
The OGNL field path to identify cause of error.
fieldPathElements
A parsed copy of the field path. For example, the field path "operations[1].operand" corresponds to this list: {FieldPathElement(field = "operations", index = 1), FieldPathElement(field = "operand", index = null)}.
trigger
xsd:
string
The data that caused the error.
errorString
xsd:
string
A simple string representation of the error and reason.
AdRuleFrequencyCapError
reason
AdRuleFrequencyCapError.Reason
Enumerations
-
NO_FREQUENCY_CAPS_SPECIFIED_WHEN_FREQUENCY_CAPS_TURNED_ON - The ad rule specifies that frequency caps should be turned on, but then none of the frequency caps have actually been set.
-
FREQUENCY_CAPS_SPECIFIED_WHEN_FREQUENCY_CAPS_TURNED_OFF - The ad rule specifies that frequency caps should not be turned on, but then some frequency caps were actually set.
-
UNKNOWN - The value returned if the actual value is not exposed by the requested API version.

