Get a List of Advertisers
curl --request GET \
--url https://api.hakumedia.ai/v2/advertisers \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.hakumedia.ai/v2/advertisers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hakumedia.ai/v2/advertisers"
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/advertisers",
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/advertisers",
"data": [
{
"can_change_password": false,
"can_add_ad_items": false,
"email": "advertiser@example.com",
"name": "Example Advertiser",
"metadata": {
"btf": "true",
"mobile_only": "false"
},
"object": "advertiser",
"id": 5195,
"has_password": false,
"self_serve_customer": 100795,
"self": "/v2/advertisers/5195",
"parent": "admin"
}
]
}Advertisers
Get a List of Advertisers
Returns a list of advertisers. If no advertisers were found, the data object will be empty. You can use the fields query parameter to restrict the fields to be retrieved.
GET
/
advertisers
Get a List of Advertisers
curl --request GET \
--url https://api.hakumedia.ai/v2/advertisers \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.hakumedia.ai/v2/advertisers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hakumedia.ai/v2/advertisers"
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/advertisers",
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/advertisers",
"data": [
{
"can_change_password": false,
"can_add_ad_items": false,
"email": "advertiser@example.com",
"name": "Example Advertiser",
"metadata": {
"btf": "true",
"mobile_only": "false"
},
"object": "advertiser",
"id": 5195,
"has_password": false,
"self_serve_customer": 100795,
"self": "/v2/advertisers/5195",
"parent": "admin"
}
]
}Autorizaciones
Parámetros de consulta
Respuesta
default - application/json
successful operation