Integrate AdsMonetization directly into your applications with our comprehensive REST API. Access ad units, reports, and analytics programmatically.
Get started with the AdsMonetization API in just a few steps. All API requests require authentication using your API key.
Navigate to your account settings in the AdsMonetization dashboard and generate a new API key. Keep this key secure as it provides access to your account data.
Use the API key in the Authorization header of your HTTP requests. Here's an example using cURL:
Start with the endpoints below to retrieve your ad units, generate reports, and manage your campaigns programmatically.
All API requests require authentication using Bearer token authentication. Include your API key in the Authorization header.
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your API key from the dashboard |
| api_secret | string | Yes | Your API secret from the dashboard |
Manage your ad units programmatically. Create, retrieve, update, and delete ad units through the API.
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | integer | No | Page number for pagination (default: 1) |
| limit | integer | No | Number of items per page (default: 20, max: 100) |
| status | string | No | Filter by status (active, paused, archived) |
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Name for the ad unit |
| format | string | Yes | Ad format (banner, native, video, etc.) |
| size | string | Yes | Ad size (e.g., 728x90, 300x250) |
| website_id | string | Yes | ID of the website this ad unit belongs to |