Skip to main content

Retrieve Categories for a Campaign

The categories associated with a specific campaign can be retrieved via a GET request to the /campaigns endpoint, with the campaign ID as a URL parameter and /categories specified.
The same request can be achieved with a GET request to the /categories endpoint and including a campaignIds query parameter :
The API will return an array of categories associated with the campaign:
 

Retrieve a Single Category for a Campaign

A single category can be retrieved for a specific campaign by making a GET request to the /campaigns endpoint for a specific campaign ID, and adding the /categories path with a particular category hash ID:
As above, an equivalent request can be constructed to the /categories endpoint by specifying campaignIds and categoryHashCodes query parameters:

What’s Next Manage categories by enabling, disabling and adjusting bids