# 「Bing Ads オーディエンス推定」ライブタスクの設定

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/keywords_data/bing/audience_estimation/live`

**Tags:** DataForSEO

指定した `bid` と `daily_budget` で到達可能な Bing Ads オーディエンスを、`location_code`、`age`、業種、職種で絞り込んで推定します。DataForSEO のエンベロープに包まれます。データは `tasks[0].result`、結果は `tasks[0].status_code` に格納され、拒否されたリクエストでも HTTP 200 が返ります。業種と職種の値は `get_dataforseo_keywords_bing_audience_industries` と `get_dataforseo_keywords_bing_audience_job_functions` から取得します。どちらも無料で、リクエストを組み立てる前に読む価値があります。このエンドポイントの submit / fetch のペアは、待ちきれないほど大きなバッチ向けに、同じ価格で同じ処理を非同期に実行します。

### 料金の参考情報

- 計測方法：報告されたレスポンスコスト。
- 参考リクエスト見積もり：0.09 USD。
- 参照用の顧客乗数：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": {
          "location_name": {
            "type": "string",
            "description": "<em>検索エンジンの所在地の正式名</em><br><strong><code>location_code</code> または <code>location_coordinate</code> を指定しない場合は必須フィールド</strong><br><strong>このフィールドを使用する場合、<code>location_code</code> または <code>location_coordinate</code> を指定する必要はありません</strong><br><code>https://api.dataforseo.com/v3/keywords_data/bing/locations</code> に個別にリクエストすると、検索エンジンの利用可能な所在地とその <code>location_name</code> の一覧を取得できます<br>例:<br><code class=\"long-string\">London,England,United Kingdom</code>"
          },
          "location_code": {
            "type": "integer",
            "description": "<em>検索エンジンの所在地コード</em><br><strong><code>location_name</code> または <code>location_coordinate</code> を指定しない場合は必須フィールド</strong><br><strong>このフィールドを使用する場合、<code>location_name</code> または <code>location_coordinate</code> を指定する必要はありません</strong><br><code>https://api.dataforseo.com/v3/keywords_data/bing/locations</code> に個別にリクエストすると、検索エンジンの利用可能な所在地とその <code>location_code</code> の一覧を取得できます<br>例:<br><code class=\"long-string\">2840</code>"
          },
          "location_coordinate": {
            "type": "string",
            "description": "<em>所在地の GPS 座標</em><br><strong><code>location_name</code> または <code>location_code</code> を指定しない場合は必須フィールド</strong><br><strong>このフィールドを使用する場合、<code>location_name</code> または <code>location_code</code> を指定する必要はありません</strong><br><code>location_coordinate</code> パラメーターは <em>\"緯度,経度,半径（km）\"</em> 形式で指定します<br><strong>データは、指定した座標が属する国について提供されます</strong><br>例:<br><code class=\"long-string\">29.6821525,-82.4098881,100</code>"
          },
          "age": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>ターゲティング用の年齢層の選択</em><br>指定可能な値: <code>eighteen_to_twenty_four</code>、<code>fifty_to_sixty_four</code>、<code>sixty_five_and_above</code>、<code>thirteen_to_seventeen</code>、<code>thirty_five_to_forty_nine</code>、<code>twenty_five_to_thirty_four</code>、<code>unknown</code>、<code>zero_to_twelve</code>"
          },
          "bid": {
            "type": [
              "number",
              "null"
            ],
            "description": "<em>米ドル単位の希望入札設定値</em><br>最大値: 1000"
          },
          "daily_budget": {
            "type": [
              "number",
              "null"
            ],
            "description": "<em>米ドル単位の 1 日のキャンペーン予算額</em><br>最大値: 10000"
          },
          "gender": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>ターゲティングする性別</em><br>指定可能な値: <code>male</code>、<code>female</code>、<code>unknown</code>"
          },
          "industry": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>LinkedIn プロフィールターゲティングの業種</em><p>このフィールドを使用する場合、https://api.dataforseo.com/v3/keywords_data/bing/audience_estimation/industries に個別にリクエストすると、industry_id を付した利用可能な業種名のリストを取得できます<p>例: <code>806301758</code>"
          },
          "job_function": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>LinkedIn プロフィールターゲティングの職務</em><p>このフィールドを使用する場合、https://api.dataforseo.com/v3/keywords_data/bing/audience_estimation/job_functions に個別にリクエストすると、job_function_id を付した利用可能な職務名のリストを取得できます<p>例: <code>806300451</code>"
          }
        },
        "example": [
          {
            "location_coordinate": "29.6821525,-82.4098881,100",
            "age": [
              "twenty_five_to_thirty_four",
              "eighteen_to_twenty_four",
              "unknown"
            ],
            "bid": 1,
            "daily_budget": 24,
            "gender": [
              "male"
            ],
            "industry": [
              "806303407",
              "806301758"
            ],
            "job_function": [
              "806298607"
            ]
          }
        ]
      }
    ]
  },
  "example": [
    {
      "location_coordinate": "29.6821525,-82.4098881,100",
      "age": [
        "twenty_five_to_thirty_four",
        "eighteen_to_twenty_four",
        "unknown"
      ],
      "bid": 1,
      "daily_budget": 24,
      "gender": [
        "male"
      ],
      "industry": [
        "806303407",
        "806301758"
      ],
      "job_function": [
        "806298607"
      ]
    }
  ]
}
```

## Responses

### 200 — 操作成功

Headers:
- `X-Request-Id` (string) — Felo サポートに問い合わせる際に伝えるリクエスト識別子。

**application/json**

Schema: object | null

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

### 400 — リクエストを処理できませんでした。リクエストパラメータを確認してください。

### 401 — 有効な Felo API キーが必要です。

### 402 — 請求要件が満たされていないため、リクエストを続行できません。

### 403 — このアカウントにはこの操作を行う権限がありません。

### 429 — リクエストまたは支出の上限に達しました。

### 502 — サービスがリクエストを完了できませんでした。

### 503 — API または請求サービスが一時的に利用できません。

### 504 — リクエストの処理中にサービスがタイムアウトしました。

### default — エラーレスポンス。上流のパススルーレスポンスはプロバイダーの形式を使用する場合があります

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_AudienceEstimationInfo

`#/components/schemas/Response36Afe1097B20_AudienceEstimationInfo`

```json
{
  "type": "object",
  "properties": {
    "high": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>範囲結果の上限を示します</em>",
      "format": "double"
    },
    "low": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>範囲結果の下限を示します</em>",
      "format": "double"
    }
  }
}
```

### 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_KeywordsDataBingAudienceEstimationLiveResponseInfo

`#/components/schemas/Response36Afe1097B20_KeywordsDataBingAudienceEstimationLiveResponseInfo`

```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_KeywordsDataBingAudienceEstimationLiveTaskInfo"
              }
            ]
          },
          "description": "<em>タスクの配列</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_KeywordsDataBingAudienceEstimationLiveResultInfo

`#/components/schemas/Response36Afe1097B20_KeywordsDataBingAudienceEstimationLiveResultInfo`

```json
{
  "type": "object",
  "properties": {
    "est_impressions": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_AudienceEstimationInfo"
        }
      ],
      "description": "<em>月間推定インプレッション数の範囲</em>"
    },
    "est_audience_size": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_AudienceEstimationInfo"
        }
      ],
      "description": "<em>月間推定リーチ ユーザー数の範囲</em>"
    },
    "est_clicks": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_AudienceEstimationInfo"
        }
      ],
      "description": "<em>月間推定クリック数の範囲</em>"
    },
    "est_spend": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_AudienceEstimationInfo"
        }
      ],
      "description": "<em>月間推定支出額の範囲</em>"
    },
    "est_cost_per_event": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_AudienceEstimationInfo"
        }
      ],
      "description": "<em>範囲で示される推定のイベント単価</em>"
    },
    "est_ctr": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_AudienceEstimationInfo"
        }
      ],
      "description": "<em>推定クリック率の範囲</em>"
    },
    "suggested_bid": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>現在のターゲティングにおける推奨入札額</em>"
    },
    "suggested_budget": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>現在のターゲティングと入札額における推奨 1 日予算</em>",
      "format": "double"
    },
    "events_lost_to_bid": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>入力入札額が不足しているために失われたイベント数を示します</em>",
      "format": "int64"
    },
    "events_lost_to_budget": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>入力予算が不足しているために失われたイベント数を示します</em>"
    },
    "est_reach_audience_size": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>月間推定ユーザー数</em>",
      "format": "int64"
    },
    "est_reach_impressions": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>月間推定インプレッション数</em>",
      "format": "int64"
    },
    "currency": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>通貨名</em><p>例：<code>USDollar</code>"
    }
  }
}
```

### Response36Afe1097B20_KeywordsDataBingAudienceEstimationLiveTaskInfo

`#/components/schemas/Response36Afe1097B20_KeywordsDataBingAudienceEstimationLiveTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_KeywordsDataBingAudienceEstimationLiveResultInfo"
              }
            ]
          },
          "description": "<em>結果の配列</em>"
        }
      }
    }
  ]
}
```
