POST
/
api
/
cache
/
campaigns
curl --request POST \
  --url https://your_a2_service/api/cache/campaigns \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "audience_segments": {
      "method": "<string>",
      "segment_list": [
        {
          "id": "<string>",
          "name": "<string>"
        }
      ]
    },
    "bid_strategy": "highest_volume",
    "budget": 123,
    "crid": "<string>",
    "daily_budget": 123,
    "end_date": "2023-11-07T05:31:56Z",
    "goal": "<string>",
    "id": "<string>",
    "max_bid": 0,
    "min_daily_imp": 1000,
    "start_date": "2023-11-07T05:31:56Z",
    "status": "<string>",
    "sub_goal": "maximize_volume",
    "tagid": "<string>",
    "target_cpa": 123,
    "target_cpm": 0,
    "target_volume": 0
  }
]'

Body

application/json · object[]
budget
number
required

Total budget of the campaign

end_date
string
required

End date of the campaign (UTC)

goal
string
required

Goal of the campaign

id
string
required

ID of the campaign (uuid4)

start_date
string
required

Start date of the campaign (UTC)

status
string
required

Status of the campaign

target_cpa
number
required

Target cost per acquisition (CPA) for the campaign

audience_segments
object | null

Optional audience segments associated with the campaign

bid_strategy
string
default:highest_volume

Bid strategy for the campaign (default: "highest_volume")

crid
string | null

Optional creative ID associated with the campaign

daily_budget
number | null

Optional daily budget of the campaign

max_bid
number
default:0

Maximum bid amount for the campaign (default: 0.0)

min_daily_imp
number
default:1000

Minimum daily impressions for the campaign (default: 1000.0)

sub_goal
string
default:maximize_volume

Sub-goal of the campaign (default: "maximize_volume")

tagid
string | null

Optional tag ID associated with the campaign

target_cpm
number
default:0

Target cost per thousand impressions (CPM) for the campaign (default: 0.0)

target_volume
number
default:0

Target volume for the campaign (default: 0.0)

Response

204

Success