> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 设置实时“Google Ads Search Volume”任务

> 请注意，Google Ads Keywords Data API 基于最新版本的 [Google Ads API](https://developers.



## OpenAPI

````yaml openapi/zh/dataforseo.json POST /dataforseo/keywords_data/google_ads/search_volume/live
openapi: 3.0.3
info:
  title: DataForSEO API
  version: 1.0.0
  description: 通过 AIsa 统一网关提供的 DataForSEO API 端点。
servers:
  - url: https://api.aisa.one/apis/v1
security:
  - BearerAuth: []
paths:
  /dataforseo/keywords_data/google_ads/search_volume/live:
    post:
      summary: 设置实时“Google Ads Search Volume”任务
      description: >-
        请注意，Google Ads Keywords Data API 基于最新版本的 [Google Ads
        API](https://developers.google.com/google-ads/api/docs/start)，该版本已取代旧版
        Google AdWords API。如果您正在使用 [DataForSEO Google AdWords
        API](https://docs.dataforseo.com/v3/keywords_data/google/overview.md)，则需要升级到
        [DataForSEO Google Ads
        API](https://docs.dataforseo.com/v3/keywords_data/google_ads/overview.md)。
      operationId: post_dataforseo_keywords_data_google_ads_search_volume_live
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                keywords:
                  type: array
                  items:
                    type: string
                  description: >-
                    keywords 必填字段 最多可指定的关键词数量：1000 每个关键词的最大字符数：80
                    每个关键词短语的最大单词数：10 您指定的关键词将转换为小写格式 注意 #1：Google Ads
                    可能不会返回某些关键词组的数据；注意 #2：Google Ads
                    会为相似关键词组提供合并的搜索量值；要获取相似关键词各自的搜索量，建议在不同请求中分别提交这些关键词；注意
                    #3：Google Ads 不允许使用某些符号和字符（例如 UTF
                    符号、表情符号），因此设置任务时不能使用这些内容；有关可使用哪些符号和字符的更多信息，请参阅此文章 有关
                    DataForSEO API 中 keyword 和 keywords 字段的规则和限制，请参阅此帮助中心文章
                location_name:
                  type: string
                  description: >-
                    搜索引擎位置的完整名称 可选字段 如果未指定位置，您将收到全球结果，即所有可用位置的结果；如果使用此字段，则无需指定
                    location_code 或 location_coordinate 可通过向
                    https://api.dataforseo.com/v3/keywords_data/google_ads/locations
                    发出单独请求，获取搜索引擎可用位置及其 location_name 的列表
                    示例：London,England,United Kingdom
                location_code:
                  type: integer
                  description: >-
                    搜索引擎位置代码，可选字段。如果不指定位置，您将收到全球结果，即所有可用位置的结果；如果使用此字段，则无需指定
                    location_name 或 location_coordinate；您可以单独向
                    https://api.dataforseo.com/v3/keywords_data/google_ads/locations
                    发出请求，以获取搜索引擎可用位置及其 location_code 的列表。示例：2840
                location_coordinate:
                  type: string
                  description: >-
                    位置的 GPS 坐标，可选字段。如果不指定位置，您将收到全球结果，即所有可用位置的结果；如果使用此字段，则无需指定
                    location_name 或 location_code；location_coordinate
                    参数应以“latitude,longitude”格式指定；将提供指定坐标所属国家/地区的数据；示例：52.6178549,-155.352142
                language_name:
                  type: string
                  description: >-
                    搜索引擎语言的完整名称 可选字段 可通过向
                    https://api.dataforseo.com/v3/keywords_data/google_ads/languages
                    单独发出请求，获取搜索引擎可用语言及其 language_name 的列表 示例：English
                language_code:
                  type: string
                  description: >-
                    搜索引擎语言代码，可选字段；你可以通过向
                    https://api.dataforseo.com/v3/keywords_data/google_ads/languages
                    单独发起请求，获取搜索引擎可用语言及其 language_code 的列表；示例：en
                search_partners:
                  type: boolean
                  description: >-
                    是否包含 Google 搜索合作伙伴 可选字段 如果指定 true，将返回 Google 自有、运营及联合网络，以及托管
                    Google 搜索的合作伙伴网站的结果；默认值：false – 仅返回 Google 搜索网站的结果
                date_from:
                  type: string
                  description: >-
                    时间范围的开始日期 可选字段 日期格式："yyyy-mm-dd" 最小值：当前日期往前 4 年 默认返回过去 12
                    个月的数据；注意：指定日期不得晚于 date_to 指定的日期和/或昨天；如果 Status 端点在
                    actual_data 字段中返回 false，则 date_from 可设置为上上个月或更早；如果 Status
                    端点在 actual_data 字段中返回 true，则 date_from 可设置为上个月或更早
                date_to:
                  type: string
                  description: >-
                    时间范围的结束日期；可选字段。注意：指定的日期不能晚于上个月，因为 Google Ads
                    不返回当月数据；如果未指定此字段，默认使用昨天的日期；日期格式："yyyy-mm-dd"；示例："2022-11-30"
                include_adult_keywords:
                  type: boolean
                  description: >-
                    包含与成人内容相关的关键词，可选字段。如果设置为 true，响应中将包含成人关键词，默认值：false。请注意，由于
                    Google Ads 的限制，API 可能不会返回此类关键词的数据
                sort_by:
                  type: string
                  description: >-
                    结果排序参数，可选字段。使用这些参数可按
                    relevance、search_volume、competition_index、low_top_of_page_bid
                    或 high_top_of_page_bid 对结果进行降序排序。默认值：relevance
                tag:
                  type: string
                  description: >-
                    用户定义的任务标识符，可选字段。字符数限制为 255。可以使用此参数标识任务并将其与结果匹配；可在响应的 data
                    数组中找到指定的 tag 值
              required:
                - keywords
      responses:
        '200':
          description: 成功响应
          content:
            application/json:
              schema:
                type: object
                properties:
                  version:
                    type: string
                    description: API 的当前版本
                  status_code:
                    type: integer
                    description: 通用状态码；您可以在此处查看完整的响应码列表。注意：我们强烈建议设计必要的系统来处理相关异常或错误情况
                  status_message:
                    type: string
                    description: 常规信息消息；可在此处查看常规信息消息的完整列表
                  time:
                    type: string
                    description: 执行时间（秒）
                  cost:
                    type: number
                    description: 任务总成本（美元）
                  tasks_count:
                    type: integer
                    description: tasks 数组中的任务数量
                  tasks_error:
                    type: integer
                    description: 返回错误的 tasks 数组中的任务数量
                  tasks:
                    type: array
                    items:
                      type: string
                    description: 任务数组
                  tasks.id:
                    type: string
                    description: 任务标识符，系统中采用 UUID 格式的唯一任务标识符
                  tasks.status_code:
                    type: integer
                    description: DataForSEO 生成的任务状态码；范围为：10000-60000；完整响应代码列表可在此处查看
                  tasks.status_message:
                    type: string
                    description: 任务的信息性消息，你可以在此处查看通用信息性消息的完整列表
                  tasks.time:
                    type: string
                    description: 执行时间（秒）
                  tasks.cost:
                    type: number
                    description: 任务成本（美元）
                  tasks.result_count:
                    type: integer
                    description: 结果数组中的元素数量
                  tasks.path:
                    type: array
                    items:
                      type: string
                    description: URL 路径
                  tasks.data:
                    type: array
                    items:
                      type: string
                    description: 包含您在 POST 请求中指定的相同参数
                  tasks.result:
                    type: array
                    items:
                      type: string
                    description: 结果数组
                  tasks.result.keyword:
                    type: string
                    description: keyword 关键词返回时会解码 %##（加号字符“+”将被解码为空格字符）
                  tasks.result.spell:
                    type: string
                    description: >-
                      关键词的正确拼写 注意：如果 POST 数组中的关键词疑似拼写错误，将返回正确拼写关键词的数据；我们使用
                      Google Ads API 的功能检查并验证关键词拼写，点击此链接了解更多信息
                  tasks.result.location_code:
                    type: integer
                    description: POST 数组中的位置代码；如果没有数据，则值为 null
                  tasks.result.language_code:
                    type: string
                    description: POST 数组中的语言代码；如果没有数据，则值为 null
                  tasks.result.search_partners:
                    type: boolean
                    description: 指示响应中是否包含来自合作伙伴网络的数据
                  tasks.result.competition:
                    type: string
                    description: >-
                      competition 表示指定关键词仅在付费 SERP 中的相对竞争程度；该值基于 Google Ads
                      数据，可取以下值：HIGH、MEDIUM、LOW；如果没有数据，则值为
                      null；有关此指标的更多信息，请参阅此帮助中心文章
                  tasks.result.competition_index:
                    type: integer
                    description: >-
                      competition 表示给定关键词在付费 SERP 中的相对竞争程度；此值基于 Google Ads
                      数据，范围为 0 至 100（含端点）；如果没有数据，该值为 null；有关该指标的更多信息，请参阅此帮助中心文章
                  tasks.result.search_volume:
                    type: integer
                    description: >-
                      月均搜索量；根据用户的定向设置，表示给定关键词创意在 google.com 或 google.com
                      及其合作伙伴上的（近似）搜索次数；如果没有数据，则值为 null
                  tasks.result.low_top_of_page_bid:
                    type: number
                    description: >-
                      广告显示在第一页顶部所需的最低出价，表示高于广告展示最低出价约 20% 的值（基于 Google Ads
                      的广告客户统计数据）；该值可能因 POST 请求中指定的位置而异
                  tasks.result.high_top_of_page_bid:
                    type: number
                    description: >-
                      广告在第一页顶部展示的最高出价，表示高于约 80% 的广告实际展示最低出价（基于 Google Ads
                      的广告主统计数据）；该值可能因 POST 请求中指定的位置而异
                  tasks.result.cpc:
                    type: number
                    description: 每次点击费用，表示针对给定关键词展示的广告每次被点击时支付的金额（美元）
                  tasks.result.monthly_searches:
                    type: array
                    items:
                      type: string
                    description: >-
                      monthly searches
                      表示该关键词创意的（近似）搜索次数（默认提供过去十二个月的数据），并以指定地理位置为目标；如果没有数据，则该值为
                      null
                  tasks.result.monthly_searches.year:
                    type: integer
                    description: 年
                  tasks.result.monthly_searches.month:
                    type: integer
                    description: 月
                  tasks.result.monthly_searches.search_volume:
                    type: integer
                    description: 月平均搜索量
        '400':
          description: 错误请求
        '401':
          description: 未授权
        '429':
          description: 超出速率限制
        '500':
          description: 内部服务器错误
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````