Get a list of Campaign Assignments
curl --request GET \
--url https://api.hakumedia.ai/v2/campaign-assignments \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.hakumedia.ai/v2/campaign-assignments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hakumedia.ai/v2/campaign-assignments"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hakumedia.ai/v2/campaign-assignments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"object": "list",
"has_more": false,
"limit": 10,
"offset": 0,
"url": "/v2/campaign-assignments",
"data": [
{
"active": false,
"advertisement": {
"id": 92213512,
"type": "image_ad_item"
},
"campaign": {
"id": 442135,
"type": "standard_campaign"
},
"weight": 1,
"geo_target": 1234,
"platform_target": 10500,
"keywords": "example, keyword, list",
"keywords_match_method": "preferred",
"data_key_target": 10000,
"list_target": 12345,
"schedule": 10002,
"status": "active",
"object": "campaign_assignment",
"id": 8247,
"self": "/v2/campaign-assignments/8247"
}
]
}Campaign Assignments
Get a list of Campaign Assignments
You can use the fields query parameter to restrict the fields to be retrieved.
GET
/
campaign-assignments
Get a list of Campaign Assignments
curl --request GET \
--url https://api.hakumedia.ai/v2/campaign-assignments \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.hakumedia.ai/v2/campaign-assignments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hakumedia.ai/v2/campaign-assignments"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hakumedia.ai/v2/campaign-assignments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"object": "list",
"has_more": false,
"limit": 10,
"offset": 0,
"url": "/v2/campaign-assignments",
"data": [
{
"active": false,
"advertisement": {
"id": 92213512,
"type": "image_ad_item"
},
"campaign": {
"id": 442135,
"type": "standard_campaign"
},
"weight": 1,
"geo_target": 1234,
"platform_target": 10500,
"keywords": "example, keyword, list",
"keywords_match_method": "preferred",
"data_key_target": 10000,
"list_target": 12345,
"schedule": 10002,
"status": "active",
"object": "campaign_assignment",
"id": 8247,
"self": "/v2/campaign-assignments/8247"
}
]
}Autorizaciones
Parámetros de consulta
Respuesta
default - application/json
successful operation