연관 상품 풀
연관 상품 풀 조회.
지정한 조회 맥락과 기준 카탈로그 항목(key) 조합의 연관 추천 상품 풀을 조회합니다.
접근: ADMIN 전용
GET
/
api
/
manager
/
admin
/
associated-items-pools
/
{serving_context}
/
{key}
연관 상품 풀 조회.
curl --request GET \
--url https://your_a2_service/api/manager/admin/associated-items-pools/{serving_context}/{key} \
--header 'Authorization: Bearer <token>'import requests
url = "https://your_a2_service/api/manager/admin/associated-items-pools/{serving_context}/{key}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://your_a2_service/api/manager/admin/associated-items-pools/{serving_context}/{key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your_a2_service/api/manager/admin/associated-items-pools/{serving_context}/{key}",
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: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your_a2_service/api/manager/admin/associated-items-pools/{serving_context}/{key}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://your_a2_service/api/manager/admin/associated-items-pools/{serving_context}/{key}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/api/manager/admin/associated-items-pools/{serving_context}/{key}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"key": "<string>",
"pool": [
{
"key": "<string>",
"ext": {},
"score": 123
}
],
"serving_context": "<string>",
"snapshot_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}인증
Bearer 인증. 액세스 토큰을 Authorization: Bearer <token> 헤더로 전달합니다.
경로 매개변수
kind[:child[:value]] 형태의 조회 맥락. 예: all, ad_unit:<id>, segment:<id>.
기준 카탈로그 항목 ID (외부 ML 시스템 형식).
응답
성공 응답
GET 응답 스키마.
기준 카탈로그 항목 ID
Minimum string length:
1key에 대한 연관 후보 목록 (순위 순)
Show child attributes
Show child attributes
조회 맥락. 예: all, ad_unit:<id>, segment:<id>
Minimum string length:
1이 풀이 속한 사전 계산 배치
Minimum string length:
1이 페이지가 도움이 되었나요?
⌘I
연관 상품 풀 조회.
curl --request GET \
--url https://your_a2_service/api/manager/admin/associated-items-pools/{serving_context}/{key} \
--header 'Authorization: Bearer <token>'import requests
url = "https://your_a2_service/api/manager/admin/associated-items-pools/{serving_context}/{key}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://your_a2_service/api/manager/admin/associated-items-pools/{serving_context}/{key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your_a2_service/api/manager/admin/associated-items-pools/{serving_context}/{key}",
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: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your_a2_service/api/manager/admin/associated-items-pools/{serving_context}/{key}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://your_a2_service/api/manager/admin/associated-items-pools/{serving_context}/{key}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/api/manager/admin/associated-items-pools/{serving_context}/{key}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"key": "<string>",
"pool": [
{
"key": "<string>",
"ext": {},
"score": 123
}
],
"serving_context": "<string>",
"snapshot_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}