설정
시스템 기본 Public URL 수정
이벤트 트래커 및 외부 링크에 사용하는 시스템 기본 Public URL을 설정합니다.
PATCH
/
api
/
manager
/
settings
/
public-url
시스템 기본 Public URL 수정
curl --request PATCH \
--url https://your_a2_service/api/manager/settings/public-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"public_url": "https://ads.example.com"
}
'import requests
url = "https://your_a2_service/api/manager/settings/public-url"
payload = { "public_url": "https://ads.example.com" }
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({public_url: 'https://ads.example.com'})
};
fetch('https://your_a2_service/api/manager/settings/public-url', 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/settings/public-url",
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([
'public_url' => 'https://ads.example.com'
]),
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/manager/settings/public-url"
payload := strings.NewReader("{\n \"public_url\": \"https://ads.example.com\"\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/manager/settings/public-url")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"public_url\": \"https://ads.example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/api/manager/settings/public-url")
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 \"public_url\": \"https://ads.example.com\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"currency": "KRW",
"language": "<string>",
"no": 123,
"tls_enable": true,
"updated_at": "2023-11-07T05:31:56Z",
"access_token": {
"access_token": "<string>",
"token_type": "Bearer"
},
"example_data_info": "<unknown>",
"ext": {},
"external_channel_url": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"public_url": "<string>",
"site_config": {
"footer_height": 123,
"footer_html": "<string>",
"show_a2_news": true,
"terms_url": "<string>"
},
"tls_domain": "<string>",
"yield_optimization": {
"ceiling_cpm": 123,
"floor_cpm": 123,
"yield_roas_balance": 0.5
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}인증
Bearer 인증. 액세스 토큰을 Authorization: Bearer <token> 헤더로 전달합니다.
본문
application/json
응답
성공 응답
전체 설정 응답. 싱글톤 행, UUID id 없음.
예산 관리에 사용하는 통화 코드 (예: "USD", "KRW").
사용 가능한 옵션:
KRW, USD 시스템 언어 코드 (예: "en", "ko").
설정 행 내부 식별자.
TLS 활성화 여부.
외부 연동용 Bearer 액세스 토큰.
Show child attributes
Show child attributes
예시 데이터 정보.
설정 전용 데이터 확장 백.
예산 관리 시 사용하는 외부 채널 URL.
이벤트 트래커 및 외부 링크용 시스템 기본 Public URL.
사이트 구성 값.
Show child attributes
Show child attributes
TLS 도메인 이름.
수익 최적화 설정.
Show child attributes
Show child attributes
이 페이지가 도움이 되었나요?
⌘I
시스템 기본 Public URL 수정
curl --request PATCH \
--url https://your_a2_service/api/manager/settings/public-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"public_url": "https://ads.example.com"
}
'import requests
url = "https://your_a2_service/api/manager/settings/public-url"
payload = { "public_url": "https://ads.example.com" }
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({public_url: 'https://ads.example.com'})
};
fetch('https://your_a2_service/api/manager/settings/public-url', 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/settings/public-url",
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([
'public_url' => 'https://ads.example.com'
]),
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/manager/settings/public-url"
payload := strings.NewReader("{\n \"public_url\": \"https://ads.example.com\"\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/manager/settings/public-url")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"public_url\": \"https://ads.example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/api/manager/settings/public-url")
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 \"public_url\": \"https://ads.example.com\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"currency": "KRW",
"language": "<string>",
"no": 123,
"tls_enable": true,
"updated_at": "2023-11-07T05:31:56Z",
"access_token": {
"access_token": "<string>",
"token_type": "Bearer"
},
"example_data_info": "<unknown>",
"ext": {},
"external_channel_url": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"public_url": "<string>",
"site_config": {
"footer_height": 123,
"footer_html": "<string>",
"show_a2_news": true,
"terms_url": "<string>"
},
"tls_domain": "<string>",
"yield_optimization": {
"ceiling_cpm": 123,
"floor_cpm": 123,
"yield_roas_balance": 0.5
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}