POST
/
metric
/
campaign
curl --request POST \
  --url https://your_a2_service/metric/campaign \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "from_datetime": "2023-11-07T05:31:56Z",
  "to_datetime": "2023-11-07T05:31:56Z"
}'
[
  {
    "ad_revenue": 123,
    "budget_spent": 0,
    "cid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "click": 0,
    "conversion": 0,
    "cpa": 0,
    "cpc": 0,
    "cpm": 0,
    "finished": 123,
    "id": 123,
    "impression": 0,
    "reach": 0,
    "roas": 0,
    "tagid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
]

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Query for campaign metric.

Response

200
application/json

Successful Response

The response is of type object[].