Get a Single Catalog Ad Item
curl --request GET \
--url https://api.hakumedia.ai/v2/ad-items/catalog-item/{id} \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.hakumedia.ai/v2/ad-items/catalog-item/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hakumedia.ai/v2/ad-items/catalog-item/{id}"
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/ad-items/catalog-item/{id}",
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;
}{
"name": "Catalog Item with ID",
"catalog_id": 123456,
"catalog_item_identifier": "123456789",
"location": null,
"tracking_pixel": "https://example.com/",
"tracking_pixels": [
{
"id": 123,
"url": "<string>"
}
],
"metadata": [],
"object": "catalog_ad_item",
"self": "/v2/ad-items/catalog-item/14456",
"id": 14456,
"created_date": "2023-01-12 15:03:22",
"last_modified": "2023-01-19 10:59:22",
"deleted": false
}Ad Items · Catalog Item
Get a Single Catalog Ad Item
Retrieve a single catalog ad item. :ID is the identifier for a catalog ad item (eg client SKU, or whichever other unique identifier used).
GET
/
ad-items
/
catalog-item
/
{id}
Get a Single Catalog Ad Item
curl --request GET \
--url https://api.hakumedia.ai/v2/ad-items/catalog-item/{id} \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.hakumedia.ai/v2/ad-items/catalog-item/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hakumedia.ai/v2/ad-items/catalog-item/{id}"
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/ad-items/catalog-item/{id}",
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;
}{
"name": "Catalog Item with ID",
"catalog_id": 123456,
"catalog_item_identifier": "123456789",
"location": null,
"tracking_pixel": "https://example.com/",
"tracking_pixels": [
{
"id": 123,
"url": "<string>"
}
],
"metadata": [],
"object": "catalog_ad_item",
"self": "/v2/ad-items/catalog-item/14456",
"id": 14456,
"created_date": "2023-01-12 15:03:22",
"last_modified": "2023-01-19 10:59:22",
"deleted": false
}Autorizaciones
Parámetros de ruta
Parámetros de consulta
Respuesta
default - application/json
successful operation