NegativeKeyword
A keyword exclusion that prevents ads from showing when a search query matches the excluded term.
Declaration
object NegativeKeywordProperties
| Name | Type | Description |
|---|---|---|
adAccountId | int64 | The ad account this negative keyword belongs to. Informational. Read-only. |
campaignId | int64 | The campaign ID. Negative keywords can be defined at campaign or ad group level. Filterable ( |
adGroupId | int64 | The ad group this negative keyword belongs to. Null if defined at campaign level. Filterable ( |
text | string | The original advertiser-given keyword text. Filterable ( |
matchType | NegativeKeyword.MatchType | Match type for this negative keyword. The schema accepts all four |
status | NegativeKeyword.Status | Whether the negative keyword is active or paused. See NegativeKeywordStatus. Filterable ( |
id | int64 | System-assigned unique identifier. Read-only. Filterable ( |
creationTime | date-time | Timestamp when the negative keyword was created. Read-only. |
modificationTime | date-time | Timestamp of the last modification. Read-only. |
deleted | boolean | Whether the negative keyword has been deleted. Read-only. |
Discussion
A NegativeKeyword prevents ads from showing when a search query matches the excluded term.
The
EXACTmatch negatives block only searches that precisely match the term.The
BROADmatch negatives block a wider range of related queries.The
PHRASEmatch negatives block Apple Maps searches that match the term and close variants.
Pausing a negative keyword (status: PAUSED) temporarily re-enables traffic from that term without permanently removing the exclusion. A deleted negative keyword is soft-deleted and excluded from serving but remains accessible in query results.
You can use fields marked Filterable in the dictionary keys as filter criteria in query endpoint requests. See Calling the Apple Ads Platform API for details on constructing queries.
Example
{
"id": 777888999,
"adAccountId": 123456789,
"campaignId": 444555666,
"text": "free app",
"matchType": "BROAD",
"status": "ENABLED",
"creationTime": "2025-01-10T08:00:00.000",
"modificationTime": "2025-01-10T08:00:00.000",
"deleted": false
}