AuditFilter
A single filter condition in an audit query request, specifying the field to filter on, the comparison operator, and one or more values to match against.
Declaration
object AuditFilterProperties
| Name | Type | Description |
|---|---|---|
field | string | The name of the field to filter on. Standard event fields always available: |
operator | AuditOperator | The comparison operator to apply. See AuditOperator. For most fields use |
value | AuditFilter.Value | One or more filter values as strings. See AuditFilter.Value. For |
Discussion
The AuditFilter object is the building block for narrowing change history query results. Each filter targets a single field and applies the specified operator against the provided values. The system combines multiple filters in the same request with logical AND.
Every AuditQuery request requires an eventTime filter:
{ "field": "eventTime", "operator": "BETWEEN", "value": ["2025-03-01", "2025-03-31"] }
{ "field": "eventTime", "operator": "GREATER_THAN", "value": "2025-03-01T00:00:00.000Z" }
{ "field": "eventTime", "operator": "LESS_THAN", "value": "2025-03-31T23:59:59.999Z" }Use IN for categorical filters:
{ "field": "entityType", "operator": "IN", "value": ["Campaign", "AdGroup"] }
{ "field": "eventType", "operator": "IN", "value": ["UPDATE"] }
{ "field": "userType", "operator": "IN", "value": ["CUSTOMER_API"] }Each field accepts only certain operators and value formats, summarized below.
Field | Operator | Accepted Values |
|---|---|---|
|
| ISO 8601 timestamps. Maximum lookback is 6 months. |
|
| Not a closed enum. A string matching the name of the API entity that changed, such as |
|
| Entity ID string(s). Identifies the specific entity that changed. |
|
|
|
|
|
|
|
| User ID string(s). |
|
| Transaction ID string(s). Matches |
|
| Ad account ID string(s). Available when |
|
| Campaign ID string(s). Available when |
|
| Ad group ID string(s). Available when |
Example
{
"field": "campaignId",
"operator": "IN",
"value": ["123456789", "987654321"]
}