# ‘Ad Traffic By Keywords’ 작업 설정

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/keywords_data/google_ads/ad_traffic_by_keywords/task_post`

**Tags:** DataForSEO

주어진 `bid`와 `match` 유형에서 `keywords`의 클릭수, 노출수, 지출을 예측하는 작업을 대기열에 넣고 작업 `id`를 반환합니다. `search_partners`는 Google 파트너 네트워크를 포함합니다. DataForSEO 응답 봉투로 감싸집니다. 데이터는 `tasks[0].result`, 처리 결과는 `tasks[0].status_code`에 있으며, 거부된 요청도 HTTP 200을 반환합니다. 이곳에서 실시간 변형이 없는 유일한 Google Ads 엔드포인트입니다. 예측은 항상 대기열을 거칩니다. `get_dataforseo_keywords_gads_ad_traffic_fetch`로 조회하세요.

### 가격 참고

- 과금 기준: 보고된 응답 비용.
- 참고 요청 추정치: USD 0.09.
- 참고 고객 배수: 1.0. 정산된 고객 금액에 다시 적용하지 마세요.

참고용 메타데이터일 뿐이며, 계정 견적, 보장된 가격 또는 지출 한도가 아닙니다. 리소스 크레딧은 Felo 크레딧이 아닙니다. 최종 청구는 Felo 청구 기록을 따릅니다.

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Request body

Required: **no**

### application/json

Schema:

```json
{
  "type": "array",
  "items": {
    "type": [
      "object",
      "null"
    ],
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "<em>키워드</em><br><strong>필수 필드</strong><br>지정할 수 있는 최대 키워드 수: 1000개<br>키워드 하나의 최대 문자 수: 80자<br>키워드 구문 하나의 최대 단어 수: 10개<br>지정한 키워드는 소문자 형식으로 변환됩니다<br><strong>참고 #1:</strong> <a href=\"https://dataforseo.com/help-center/no-search-volume-data-for-some-keywords\" target=\"_blank\" rel=\"noopener noreferrer\">Google Ads는 특정 키워드 그룹에 대해 데이터를 반환하지 않을 수 있습니다</a>;<br><strong>참고 #2:</strong> <a href=\"https://dataforseo.com/help-center/sv-broad-exact-phrase-match\" target=\"_blank\" rel=\"noopener noreferrer\">Google Ads는 유사한 키워드 그룹에 대해 통합된 검색량 값을 제공합니다</a><br>유사한 키워드의 검색량을 얻으려면 해당 키워드를 별도 요청으로 제출하는 것이 좋습니다;<br><strong>참고 #3:</strong> Google Ads는 특정 기호와 문자(예: UTF 기호, 이모지)를 허용하지 않으므로 작업을 설정할 때 사용할 수 없습니다;<br>사용할 수 있는 기호와 문자에 대한 자세한 내용은 <a href=\"https://dataforseo.com/help-center/using-symbols-in-keywords-when-setting-a-google-ads-task\" target=\"_blank\" rel=\"noopener noreferrer\">이 문서</a>를 참고하세요<p>DataForSEO API의 <code>keyword</code> 및 <code>keywords</code> 필드 규칙과 제한은 이 <a href=\"https://dataforseo.com/help-center/rules-and-limitations-of-keyword-and-keywords-fields-in-dataforseo-apis\" rel=\"noopener noreferrer\" target=\"_blank\">Help Center 문서</a>에서 확인하세요"
          },
          "bid": {
            "type": "number",
            "description": "<em>최대 맞춤 입찰가</em><br><strong>필수 필드</strong><br>수집되는 데이터는 이 값을 기준으로 합니다<br>광고에 지불할 의사가 있는 가격을 의미합니다. 여기에 높은 값을 지정할수록 반환되는 지표에서 더 높은 값을 얻게 됩니다<br>자세한 내용은 <a href=\"https://dataforseo.com/help-center/configuring-bid\">이 도움말 센터 문서</a>에서 확인하세요"
          },
          "match": {
            "type": "string",
            "description": "<em>키워드 일치 유형</em><br><strong>필수 필드</strong><br>다음 값을 사용할 수 있습니다: <code>exact</code>, <code>broad</code>, <code>phrase</code>"
          },
          "location_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>검색 엔진 위치의 전체 이름</em><br>선택 필드<br>위치를 지정하지 않으면 전 세계 결과, 즉 사용 가능한 모든 위치의 결과를 받게 됩니다;<br><strong>이 필드를 사용하면 <code>location_code</code> 또는 <code>location_coordinate</code>를 지정할 필요가 없습니다</strong><br>사용 가능한 검색 엔진 위치와 해당 <code>location_name</code> 목록은 <code>https://api.dataforseo.com/v3/keywords_data/google_ads/locations</code>로 별도 요청해 받을 수 있습니다<br>예:<br><code class=\"long-string\">London,England,United Kingdom</code>"
          },
          "location_code": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>검색 엔진 위치 코드</em><br>선택 필드<br>위치를 지정하지 않으면 전 세계 결과, 즉 사용 가능한 모든 위치의 결과를 받게 됩니다;<br><strong>이 필드를 사용하면 <code>location_name</code> 또는 <code>location_coordinate</code>를 지정할 필요가 없습니다</strong>;<br>사용 가능한 검색 엔진 위치와 해당 <code>location_code</code> 목록은 <code>https://api.dataforseo.com/v3/keywords_data/google_ads/locations</code>로 별도 요청해 받을 수 있습니다<br>예:<br><code class=\"long-string\">2840</code>"
          },
          "location_coordinate": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>위치의 GPS 좌표</em><br>선택 필드<br>위치를 지정하지 않으면 전 세계 결과, 즉 사용 가능한 모든 위치의 결과를 받게 됩니다;<br><strong>이 필드를 사용하면 <code>location_name</code> 또는 <code>location_code</code>를 지정할 필요가 없습니다</strong>;<br><code>location_coordinate</code> 매개변수는 <em>\"위도,경도\"</em> 형식으로 지정해야 합니다;<br><strong>데이터는 지정한 좌표가 속한 국가에 대해 제공됩니다</strong>;<br>예:<br><code class=\"long-string\">52.6178549,-155.352142</code>"
          },
          "language_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>검색 엔진 언어의 전체 이름</em><br>선택 필드<br>사용 가능한 검색 엔진 언어와 해당 <code>language_name</code> 목록은 <code>https://api.dataforseo.com/v3/keywords_data/google_ads/languages</code>로 별도 요청해 받을 수 있습니다<br>예:<br><code class=\"long-string\">English</code>"
          },
          "language_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>검색 엔진 언어 코드</em><br>선택 필드<br>사용 가능한 검색 엔진 언어와 해당 <code>language_code</code> 목록은 <code>https://api.dataforseo.com/v3/keywords_data/google_ads/languages</code>로 별도 요청해 받을 수 있습니다<br>예:<br><code class=\"long-string\">en</code>"
          },
          "date_from": {
            "type": "string",
            "description": "<em>예측 기간의 시작 날짜</em><br><code>date_to</code>를 지정하면 필수 필드<br><strong><code>date_from</code>과 <code>date_to</code>를 모두 지정하면 <code>date_interval</code>을 지정할 필요가 없습니다</strong><br>최솟값은 내일 날짜입니다<br><code>date_from</code>에 지정하는 값은 <code>date_to</code>보다 뒤일 수 없습니다<br>날짜 형식: <code>\"yyyy-mm-dd\"</code><br>예:<br><code>\"2021-10-30\"</code> <a href=\"/v3/keywords_data/google_ads/status/\" target=\"_blank\" rel=\"noopener noreferrer\">Status 엔드포인트</a>가 <code>actual_data</code> 필드에서 <code>false</code>를 반환하면 <code>date_from</code>을 지지난달 이전으로 설정할 수 있습니다;<br><a href=\"/v3/keywords_data/google_ads/status/\" target=\"_blank\" rel=\"noopener noreferrer\">Status 엔드포인트</a>가 <code>actual_data</code> 필드에서 <code>true</code>를 반환하면 <code>date_from</code>을 지난달 이전으로 설정할 수 있습니다"
          },
          "date_to": {
            "type": "string",
            "description": "<em>예측 기간의 종료 날짜</em><br><code>date_from</code>을 지정하면 필수 필드<br><strong><code>date_from</code>과 <code>date_to</code>를 모두 지정하면 <code>date_interval</code>을 지정할 필요가 없습니다</strong><br>최솟값은 <code>date_from</code> +1일입니다<br>최댓값은 내년의 현재 일자와 월입니다<br>날짜 형식: <code>\"yyyy-mm-dd\"</code><br>예:<br><code>\"2022-10-30\"</code>"
          },
          "date_interval": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>예측 날짜 간격</em><br>선택 필드<br><strong><code>date_interval</code>을 지정하면 <code>date_from</code>과 <code>date_to</code>를 지정할 필요가 없습니다</strong><br>가능한 값: <code>next_week</code>, <code>next_month</code>, <code>next_quarter</code><br>기본값: <code>next_month</code>"
          },
          "sort_by": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>결과 정렬 매개변수</em><br>선택 필드<br>이 매개변수를 사용하여 <code>relevance</code>, <code>average_cpc</code>, <code>cost</code> 또는 <code>clicks</code> 기준으로 결과를 내림차순 정렬하세요<br>기본값: <code>relevance</code>"
          },
          "postback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>작업 결과를 보내는 URL</em><br>선택 필드<br>작업이 완료되면 결과를 <code>gzip</code> 형식으로 압축해 지정한 <code>postback_url</code>로 POST 요청을 보냅니다<br>‘$id’ 문자열을 <code>$id</code> 변수로, ‘$tag’를 urlencoded <code>$tag</code> 변수로 사용할 수 있습니다. 요청을 보내기 전에 필요한 값을 설정합니다.<br>예:<br><code>http://your-server.com/postbackscript?id=$id</code><br><code>http://your-server.com/postbackscript?id=$id&amp;tag=$tag</code><br><strong>참고:</strong> <code>postback_url</code>의 특수 문자는 urlencoded됩니다;<br>즉, <code>#</code> 문자는 <code>%23</code>으로 인코딩됩니다<p>자세한 내용은 <a href=\"https://dataforseo.com/help-center/pingbacks-postbacks-with-dataforseo-api\" target=\"_blank\" rel=\"noopener noreferrer\">Help Center</a>를 참고하세요"
          },
          "pingback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>완료된 작업의 알림 URL</em><br>선택 필드<br>작업이 완료되면 지정한 URL로 GET 요청을 보내 알립니다<br>‘$id’ 문자열을 <code>$id</code> 변수로, ‘$tag’를 urlencoded <code>$tag</code> 변수로 사용할 수 있습니다. 요청을 보내기 전에 필요한 값을 설정합니다.<br>예:<br><code>http://your-server.com/pingscript?id=$id</code><br><code>http://your-server.com/pingscript?id=$id&amp;tag=$tag</code><br><strong>참고:</strong> <code>pingback_url</code>의 특수 문자는 urlencoded됩니다;<br>즉, <code>#</code> 문자는 <code>%23</code>으로 인코딩됩니다<p>자세한 내용은 <a href=\"https://dataforseo.com/help-center/pingbacks-postbacks-with-dataforseo-api\" target=\"_blank\" rel=\"noopener noreferrer\">Help Center</a>를 참고하세요"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>사용자 정의 작업 식별자</em><br>선택 필드<br><em>최대 255자</em><br>이 매개변수를 사용해 작업을 식별하고 결과와 매칭할 수 있습니다<br><code>tag</code>에 지정한 값은 응답의 <code>data</code> 객체에서 확인할 수 있습니다"
          }
        },
        "example": [
          {
            "language_code": "en",
            "location_code": 2840,
            "bid": 999,
            "match": "exact",
            "keywords": [
              "seo marketing"
            ]
          }
        ]
      }
    ]
  },
  "example": [
    {
      "language_code": "en",
      "location_code": 2840,
      "bid": 999,
      "match": "exact",
      "keywords": [
        "seo marketing"
      ]
    }
  ]
}
```

## Responses

### 200 — 작업 성공

Headers:
- `X-Request-Id` (string) — Felo 지원팀에 문의할 때 포함할 요청 식별자입니다.

**application/json**

Schema: object | null

```json
{
  "type": [
    "object",
    "null"
  ],
  "oneOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_KeywordsDataGoogleAdsAdTrafficByKeywordsTaskPostResponseInfo"
    }
  ]
}
```

### 400 — 요청을 처리할 수 없습니다. 요청 매개변수를 확인하세요.

### 401 — 유효한 Felo API 키가 필요합니다.

### 402 — 청구 요건이 충족되지 않아 요청을 진행할 수 없습니다.

### 403 — 이 계정에는 이 작업을 수행할 권한이 없습니다.

### 429 — 요청 또는 지출 한도에 도달했습니다.

### 502 — 서비스가 요청을 완료할 수 없습니다.

### 503 — API 또는 청구 서비스를 일시적으로 사용할 수 없습니다.

### 504 — 요청을 처리하는 동안 서비스 시간이 초과되었습니다.

### default — 오류 응답. 업스트림 패스스루 응답은 공급자 형식을 사용할 수 있습니다.

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "API의 현재 버전"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "일반 상태 코드입니다.\n응답 코드 전체 목록은 여기에서 확인할 수 있습니다."
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "일반 정보 메시지입니다.\n일반 정보 메시지 전체 목록은 여기에서 확인할 수 있습니다."
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "총 실행 시간(초)"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "전체 작업 비용, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "tasks 배열의 작업 수",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "오류와 함께 반환된 tasks 배열의 작업 수",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "작업 식별자\n시스템 내 고유 작업 식별자(UUID 형식)"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "작업의 상태 코드\nDataForSEO가 생성하며 10000-60000 범위일 수 있습니다.\n응답 코드 전체 목록은 여기에서 확인할 수 있습니다."
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "작업의 정보 메시지\n일반 정보 메시지 전체 목록은 여기에서 확인할 수 있습니다."
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "실행 시간, 초"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "전체 작업 비용, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "result 배열의 요소 수",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "URL 경로"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "POST 요청에 지정한 것과 동일한 매개변수를 포함합니다"
    }
  }
}
```

### Response36Afe1097B20_KeywordsDataGoogleAdsAdTrafficByKeywordsTaskPostResponseInfo

`#/components/schemas/Response36Afe1097B20_KeywordsDataGoogleAdsAdTrafficByKeywordsTaskPostResponseInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseInfo"
    },
    {
      "type": "object",
      "properties": {
        "tasks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_KeywordsDataGoogleAdsAdTrafficByKeywordsTaskPostTaskInfo"
              }
            ]
          },
          "description": "<em>작업 배열</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_KeywordsDataGoogleAdsAdTrafficByKeywordsTaskPostTaskInfo

`#/components/schemas/Response36Afe1097B20_KeywordsDataGoogleAdsAdTrafficByKeywordsTaskPostTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "object",
            "null"
          ],
          "description": "<em>결과 배열</em><br>이 경우 값은 <code>null</code>입니다"
        }
      }
    }
  ]
}
```
