Adhub API
  1. Campaigns
Adhub API
  • User
    • Get user information
      GET
    • Update user
      PATCH
    • Reset API key
      POST
    • Get user balance
      GET
  • Campaigns
    • List campaigns
      GET
    • Create campaign
      POST
    • Get campaign
      GET
    • Update campaign
      PATCH
    • Delete campaign
      DELETE
    • Toggle campaign status
      POST
  • Adverts
    • List adverts
      GET
    • Create advert
      POST
    • Get advert
      GET
    • Update advert
      PATCH
    • Delete advert
      DELETE
  1. Campaigns

Get campaign

GET
/campaigns/{id}
Returns detailed campaign information including advert data

Request

Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Path Params

Responses

🟢200OK
application/json
Campaign details
Body

🟠401Unauthorized
🟠404Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'adhub.plus/api/v1/campaigns/' \
--header 'Authorization: <api-key>'
Response Response Example
200 - Example 1
{
    "success": true,
    "data": {
        "id": 1,
        "advert_id": 5,
        "advert_title": "Sample Ad",
        "broadcasting_type": "active_ad",
        "cpm": 1.5,
        "sending_limit": 1000,
        "sending_count": 250,
        "enabled": true,
        "created_at": "2024-01-01T00:00:00Z",
        "updated_at": "2024-01-15T10:30:00Z",
        "advert": {
            "id": 1,
            "name": "Sample Advertisement",
            "text": "This is a sample advertisement text",
            "pic_url": "https://example.com/image.jpg",
            "button_caption": "Click Me",
            "button_url": "https://example.com",
            "parse_mode": "HTML",
            "admitted": true,
            "created_at": "2024-01-01T00:00:00Z",
            "updated_at": "2024-01-15T10:30:00Z"
        }
    }
}
Modified at 2025-11-11 09:40:41
Previous
Create campaign
Next
Update campaign
Built with