Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url https://your_a2_service/api/manager/line-items \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "budget": 500000, "end_date": "2026-05-31T23:59:59+09:00", "goal": "impression", "name": "봄 시즌 캠페인 라인아이템", "oid": "<order_id>", "owner_id": "019e1c11-6be3-78d0-b981-b953ca39de37", "start_date": "2026-05-01T00:00:00+09:00", "status": "preparing", "sub_goal": "cpm", "target_cpa": 0 } '
import requests url = "https://your_a2_service/api/manager/line-items" payload = { "budget": 500000, "end_date": "2026-05-31T23:59:59+09:00", "goal": "impression", "name": "봄 시즌 캠페인 라인아이템", "oid": "<order_id>", "owner_id": "019e1c11-6be3-78d0-b981-b953ca39de37", "start_date": "2026-05-01T00:00:00+09:00", "status": "preparing", "sub_goal": "cpm", "target_cpa": 0 } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.text)
const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: JSON.stringify({ budget: 500000, end_date: '2026-05-31T23:59:59+09:00', goal: 'impression', name: '봄 시즌 캠페인 라인아이템', oid: '<order_id>', owner_id: '019e1c11-6be3-78d0-b981-b953ca39de37', start_date: '2026-05-01T00:00:00+09:00', status: 'preparing', sub_goal: 'cpm', target_cpa: 0 }) }; fetch('https://your_a2_service/api/manager/line-items', 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/line-items", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => json_encode([ 'budget' => 500000, 'end_date' => '2026-05-31T23:59:59+09:00', 'goal' => 'impression', 'name' => '봄 시즌 캠페인 라인아이템', 'oid' => '<order_id>', 'owner_id' => '019e1c11-6be3-78d0-b981-b953ca39de37', 'start_date' => '2026-05-01T00:00:00+09:00', 'status' => 'preparing', 'sub_goal' => 'cpm', 'target_cpa' => 0 ]), 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/line-items" payload := strings.NewReader("{\n \"budget\": 500000,\n \"end_date\": \"2026-05-31T23:59:59+09:00\",\n \"goal\": \"impression\",\n \"name\": \"봄 시즌 캠페인 라인아이템\",\n \"oid\": \"<order_id>\",\n \"owner_id\": \"019e1c11-6be3-78d0-b981-b953ca39de37\",\n \"start_date\": \"2026-05-01T00:00:00+09:00\",\n \"status\": \"preparing\",\n \"sub_goal\": \"cpm\",\n \"target_cpa\": 0\n}") req, _ := http.NewRequest("POST", 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.post("https://your_a2_service/api/manager/line-items") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"budget\": 500000,\n \"end_date\": \"2026-05-31T23:59:59+09:00\",\n \"goal\": \"impression\",\n \"name\": \"봄 시즌 캠페인 라인아이템\",\n \"oid\": \"<order_id>\",\n \"owner_id\": \"019e1c11-6be3-78d0-b981-b953ca39de37\",\n \"start_date\": \"2026-05-01T00:00:00+09:00\",\n \"status\": \"preparing\",\n \"sub_goal\": \"cpm\",\n \"target_cpa\": 0\n}") .asString();
require 'uri' require 'net/http' url = URI("https://your_a2_service/api/manager/line-items") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"budget\": 500000,\n \"end_date\": \"2026-05-31T23:59:59+09:00\",\n \"goal\": \"impression\",\n \"name\": \"봄 시즌 캠페인 라인아이템\",\n \"oid\": \"<order_id>\",\n \"owner_id\": \"019e1c11-6be3-78d0-b981-b953ca39de37\",\n \"start_date\": \"2026-05-01T00:00:00+09:00\",\n \"status\": \"preparing\",\n \"sub_goal\": \"cpm\",\n \"target_cpa\": 0\n}" response = http.request(request) puts response.read_body
{ "budget": 123, "created_at": "2023-11-07T05:31:56Z", "end_date": "2023-11-07T05:31:56Z", "goal": "<string>", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "oid": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "start_date": "2023-11-07T05:31:56Z", "status": "draft", "target_cpa": 123, "updated_at": "2023-11-07T05:31:56Z", "ad_type": "standard", "audience_segments": { "method": "<string>", "segment_list": [ { "id": "<string>", "name": "<string>" } ] }, "bid_strategy": "highest_volume", "creative_rotation": { "admission_confidence_penalty": 0, "posterior_temperature": 1, "prior_weight": 100, "temperature": 1, "type": "optimized", "weights": [] }, "custom_targeting": { "conditions": [ { "key": { "code": "<string>", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }, "operator": "in", "values": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "value": "<string>", "match_type": "exact" } ] } ] }, "daily_budget": 123, "description": "<string>", "ext": "<unknown>", "max_bid": 0, "min_daily_imp": 1000, "no": 123, "pace_method": "evenly", "priority": 8, "schedule": { "days_of_week": [ 1 ], "time_ranges": [ { "end": "<string>", "start": "<string>" } ], "timezone": "<string>" }, "sub_goal": "maximize_volume", "target_cpm": 0, "target_volume": 0 }
{ "detail": "<string>" }
Bearer 인증. 액세스 토큰을 Authorization: Bearer <token> 헤더로 전달합니다.
Authorization: Bearer <token>
광고 항목 종료일 (UTC)
광고 항목의 목표 (click, reach, impression, conversion)
1
상위 주문 ID
광고 항목 소유자 ID
광고 항목 시작일 (UTC)
광고 항목 상태 (draft, ready, preparing, delivering, archived)
draft
ready
preparing
delivering
archived
광고 항목의 목표 전환당 비용 (CPA)
광고 항목의 광고 유형 (예: "standard", "decision")
광고 항목에 연결된 선택적 오디언스 세그먼트
Show child attributes
광고 항목의 입찰 전략 (기본값: "highest_volume")
x >= 0
광고 항목의 소재 로테이션 전략
광고 항목의 맞춤 타겟팅 조건 (선택)
광고 항목의 선택적 일 예산
광고 항목의 선택적 설명
광고 항목의 선택적 확장 데이터
광고 항목의 최대 입찰 금액 (기본값: 0.0)
광고 항목의 최소 일 노출 수 (기본값: 1000.0)
광고 항목의 페이싱 방식
광고 항목의 우선순위
광고 항목의 선택적 일정
광고 항목의 세부 목표 (기본값: "maximize_volume")
광고 항목의 목표 1000회 노출당 비용 (CPM) (기본값: 0.0)
광고 항목의 목표 볼륨 (기본값: 0.0)
성공 응답
광고 항목 총 예산
광고 항목 ID (uuid7)
광고 항목의 이름
이 페이지가 도움이 되었나요?