Skip to main content

โœจ Create a Campaign

Creates a new campaign.

๐Ÿ“ค Request Example

curl -X POST https://betaapi.audiohook.com/v2/companies/:companyUUID/campaigns \
  -H "Authorization: Bearer ${API_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "request_headers": [
      { "name": "X-Request-Header", "value": "Header value" }
    ],
    "body": {
      "draft": false,
      "campaign_type": 1,
      "name": "Test campaign Docs",
      "pacing": 5,
      "status": false,
      "budget_type": 1,
      "budget_value": 1,
      "start_date": "2023-02-15",
      "end_date": "2023-02-16",
      "advertiser_id": "test-advertiser-uuid"
    }
  }'

๐ŸŒ HTTP Request

POST /v2/companies/:companyUUID/campaigns

๐Ÿงพ Body Parameters

ParameterRequiredTypeDescription
draftโœ…booleanDraft mode enabled or not.
campaign_typeโœ…intType of campaign: 1 - Impression, 2 - CPA.
nameโœ…stringName of the campaign.
pacingโœ…intPacing strategy: 1 to 6.
statusโœ…booleanIf the campaign is active.
budget_typeโœ…intBudget type: 1 - Dollars, 2 - Impressions.
budget_valueโœ…intBudget amount.
start_dateโœ…stringStart date (format: Y-M-D).
end_dateโœ…stringEnd date (format: Y-M-D).
advertiser_idโœ…stringUUID of advertiser.
audiencesโŒarraySelected audience list.
dayparting_enabledโŒbooleanWhether dayparting is enabled.
daypartingโŒarrayDayparting info.
geo_uiโŒarrayGeographic targeting list.
google_placesโŒarrayGoogle Places API raw info.
devices_enabledโŒbooleanWhether device targeting is enabled.
brand_safety_filterโŒobjectBrand safety preferences.
creativesโŒarrayCreative weights or priorities.
auto_optimizedโŒbooleanAuto optimization flag.
conversion_typeโŒintConversion type.
conversion_valueโŒfloatConversion value.
goal_optimizationโŒstringOptimization goal: no, partial, full.