GaiaAds API Reference v2.1
Welcome to the GaiaAds Developer Documentation. Our REST API empowers you to manage programmatic advertising campaigns at scale. Monitor performance, automate bid adjustments, and sync creative assets programmatically.
https://api.gaiaads.com/v2
Authentication
The GaiaAds API uses Bearer Token authentication. You must include your API key in the
Authorization header for all requests.
Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, etc.
Pagination
All list API responses are paginated. We use cursor-based pagination via the page
parameter.
Errors
GaiaAds uses conventional HTTP response codes to indicate the success or failure of an API request.
| Code | Description |
|---|---|
| 200 | OK - Request succeeded |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid API key |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error - Something went wrong on our end |
/campaigns
Returns a paginated list of campaigns belonging to your account.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Number of results to return per page. Max 100. Default 20. |
| status | string | Filter by status: ACTIVE, PAUSED, ARCHIVED. |
| sort | string | Field to sort by, e.g. -created_at. |
Response Example
/campaigns
Create a new campaign. Campaigns are created in PAUSED state by default.
Body Parameters
| Field | Type | Description |
|---|---|---|
| name | string | Required. Unique name for the campaign. |
| objective | string | One of BRAND_AWARENESS, TRAFFIC, CONVERSIONS. |
| budget_daily | integer | Daily budget cap in micros (e.g. $10.00 = 1000000). |
/campaigns/:id
Retrieve a specific campaign by its ID.
/campaigns/:id
Update campaign settings. Only provided fields are updated.
/reports/daily
Get pre-aggregated daily stats for your account.
/reports/custom
Generate a synchronous or asynchronous report based on provided metrics and dimensions.
Creative Types (Enum)
BANNER- Standard display banner (JPG, PNG)VIDEO- VAST video tagNATIVE- Native ad assets (Title, Icon, Image, Desc)AUDIO- Audio ad (MP3)
Geo Codes
We use ISO 3166-1 alpha-2 country codes (e.g. US, GB, DE) and a proprietary city ID map available for download via the dashboard.