개발자/게재 할당 제어
게재 할당 상태 강제 변경 (관리자 전용)
PATCH
/
api
/
developer
/
control
/
allocations
/
{no}
/
status
게재 할당 상태 강제 변경 (관리자 전용)
curl --request PATCH \
--url https://your_a2_service/api/developer/control/allocations/{no}/status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "published"
}
'import requests
url = "https://your_a2_service/api/developer/control/allocations/{no}/status"
payload = { "status": "published" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: 'published'})
};
fetch('https://your_a2_service/api/developer/control/allocations/{no}/status', 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/developer/control/allocations/{no}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'status' => 'published'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your_a2_service/api/developer/control/allocations/{no}/status"
payload := strings.NewReader("{\n \"status\": \"published\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://your_a2_service/api/developer/control/allocations/{no}/status")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"published\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/api/developer/control/allocations/{no}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"published\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rtype": "line_item",
"tid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ttype": "ad_unit",
"updated_at": "2023-11-07T05:31:56Z",
"ext": {
"ad_log_tracking_mode": "on_ad_response",
"deferred_native_rendering": false,
"deferred_native_template": "",
"frequency_capping": {
"enabled": 0,
"limit_multiple_click": 0,
"limit_user_impression": [
{
"limit_count": 0,
"num_time_units": 0,
"time_unit": "day"
}
]
},
"supported_environments": [
"web",
"app"
]
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_comment": "",
"no": 0,
"status": "pending"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}인증
Bearer 인증. 액세스 토큰을 Authorization: Bearer <token> 헤더로 전달합니다.
경로 매개변수
본문
application/json
사용 가능한 옵션:
pending, requested, published, rejected, canceled, finished 응답
성공 응답
게재 할당 변경(생성/수정) 응답 스키마.
소유자 ID
리소스 ID (line_items.id 또는 recommendation_policies.id)
타깃에 배정된 리소스 유형 (line_item / recommendation_policy)
사용 가능한 옵션:
line_item, recommendation_policy 대상 ID (ad_units.id 또는 placements.id)
대상 유형 (ad_unit / placement)
사용 가능한 옵션:
ad_unit, placement 다양한 설정용
Show child attributes
Show child attributes
마지막 코멘트
게재 할당 ID
게재 할당의 현재 상태 (예: pending, published, rejected)
사용 가능한 옵션:
pending, requested, published, rejected, canceled, finished 이 페이지가 도움이 되었나요?
⌘I
게재 할당 상태 강제 변경 (관리자 전용)
curl --request PATCH \
--url https://your_a2_service/api/developer/control/allocations/{no}/status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "published"
}
'import requests
url = "https://your_a2_service/api/developer/control/allocations/{no}/status"
payload = { "status": "published" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: 'published'})
};
fetch('https://your_a2_service/api/developer/control/allocations/{no}/status', 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/developer/control/allocations/{no}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'status' => 'published'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your_a2_service/api/developer/control/allocations/{no}/status"
payload := strings.NewReader("{\n \"status\": \"published\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://your_a2_service/api/developer/control/allocations/{no}/status")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"published\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/api/developer/control/allocations/{no}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"published\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rtype": "line_item",
"tid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ttype": "ad_unit",
"updated_at": "2023-11-07T05:31:56Z",
"ext": {
"ad_log_tracking_mode": "on_ad_response",
"deferred_native_rendering": false,
"deferred_native_template": "",
"frequency_capping": {
"enabled": 0,
"limit_multiple_click": 0,
"limit_user_impression": [
{
"limit_count": 0,
"num_time_units": 0,
"time_unit": "day"
}
]
},
"supported_environments": [
"web",
"app"
]
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_comment": "",
"no": 0,
"status": "pending"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}