Google Ads Google Ads Fields API

The GoogleAdsFields API from Google Ads — 2 operation(s) for googleadsfields.

GitHub OpenAPI

Operations 2

GET /v26/googleAdsFields/{googleAdsFieldsId} Get googleAdsFields #
POST /v26/googleAdsFields:search Search googleAdsFields #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-ads:google-ads-googleadsfields-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-ads-googleadsfields-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Ads Fields API
  version: v26
  description: Generated from Google's published Discovery document for Google Ads API (googleads v26, revision 20261110). 2 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://googleads.googleapis.com
tags:
- name: GoogleAdsFields
paths:
  /v26/googleAdsFields/{googleAdsFieldsId}:
    get:
      operationId: googleads.googleAdsFields.get
      summary: Get googleAdsFields
      description: 'Returns just the requested field. List of thrown errors: AuthenticationError AuthorizationError HeaderError InternalError QuotaError RequestError'
      parameters:
      - name: googleAdsFieldsId
        in: path
        required: true
        description: Resource name segment (googleAdsFieldsId).
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleAdsGoogleadsV26Resources__GoogleAdsField'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/adwords
      - apiKey: []
      tags:
      - GoogleAdsFields
  /v26/googleAdsFields:search:
    post:
      operationId: googleads.googleAdsFields.search
      summary: Search googleAdsFields
      description: 'Returns all fields that match the search query. List of thrown errors: AuthenticationError AuthorizationError HeaderError InternalError QueryError QuotaError RequestError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GoogleAdsGoogleadsV26Services__SearchGoogleAdsFieldsRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleAdsGoogleadsV26Services__SearchGoogleAdsFieldsResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/adwords
      - apiKey: []
      tags:
      - GoogleAdsFields
components:
  schemas:
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    GoogleAdsGoogleadsV26Resources__GoogleAdsField:
      properties:
        selectable:
          description: Output only. Whether the artifact can be used in a SELECT clause in search queries.
          type: boolean
          readOnly: true
        enumValues:
          description: Output only. Values the artifact can assume if it is a field of type ENUM. This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
          type: array
          items:
            type: string
          readOnly: true
        name:
          description: Output only. The name of the artifact.
          readOnly: true
          type: string
        filterable:
          readOnly: true
          description: Output only. Whether the artifact can be used in a WHERE clause in search queries.
          type: boolean
        attributeResources:
          items:
            type: string
          description: Output only. The names of all resources that are selectable with the described artifact. Fields from these resources do not segment metrics when included in search queries. This field is only set for artifacts whose category is RESOURCE.
          type: array
          readOnly: true
        sortable:
          readOnly: true
          description: Output only. Whether the artifact can be used in a ORDER BY clause in search queries.
          type: boolean
        category:
          description: Output only. The category of the artifact.
          readOnly: true
          type: string
          enum:
          - UNSPECIFIED
          - UNKNOWN
          - RESOURCE
          - ATTRIBUTE
          - SEGMENT
          - METRIC
        selectableWith:
          items:
            type: string
          description: Output only. The names of all resources, segments, and metrics that are selectable with the described artifact.
          readOnly: true
          type: array
        metrics:
          items:
            type: string
          type: array
          description: Output only. This field lists the names of all metrics that are selectable with the described artifact when it is used in the FROM clause. It is only set for artifacts whose category is RESOURCE.
          readOnly: true
        dataType:
          readOnly: true
          description: Output only. This field determines the operators that can be used with the artifact in WHERE clauses.
          enum:
          - UNSPECIFIED
          - UNKNOWN
          - BOOLEAN
          - DATE
          - DOUBLE
          - ENUM
          - FLOAT
          - INT32
          - INT64
          - MESSAGE
          - RESOURCE_NAME
          - STRING
          - UINT64
          type: string
        typeUrl:
          type: string
          description: Output only. The URL of proto describing the artifact's data type.
          readOnly: true
        resourceName:
          readOnly: true
          type: string
          description: 'Output only. The resource name of the artifact. Artifact resource names have the form: `googleAdsFields/{name}`'
        segments:
          description: Output only. This field lists the names of all artifacts, whether a segment or another resource, that segment metrics when included in search queries and when the described artifact is used in the FROM clause. It is only set for artifacts whose category is RESOURCE.
          type: array
          readOnly: true
          items:
            type: string
        isRepeated:
          type: boolean
          readOnly: true
          description: Output only. Whether the field artifact is repeated.
      description: A field or resource (artifact) used by GoogleAdsService.
      type: object
    GoogleAdsGoogleadsV26Services__SearchGoogleAdsFieldsResponse:
      properties:
        nextPageToken:
          description: Pagination token used to retrieve the next page of results. Pass the content of this string as the `page_token` attribute of the next request. `next_page_token` is not returned for the last page.
          type: string
        results:
          type: array
          items:
            $ref: '#/components/schemas/GoogleAdsGoogleadsV26Resources__GoogleAdsField'
          description: The list of fields that matched the query.
        totalResultsCount:
          format: int64
          type: string
          description: Total number of results that match the query ignoring the LIMIT clause.
      type: object
      description: Response message for GoogleAdsFieldService.SearchGoogleAdsFields.
    GoogleAdsGoogleadsV26Services__SearchGoogleAdsFieldsRequest:
      type: object
      description: Request message for GoogleAdsFieldService.SearchGoogleAdsFields.
      properties:
        query:
          description: Required. The query string.
          type: string
        pageSize:
          description: Number of elements to retrieve in a single page. When too large a page is requested, the server may decide to further limit the number of returned resources.
          type: integer
          format: int32
        pageToken:
          description: Token of the page to retrieve. If not specified, the first page of results will be returned. Use the value obtained from `next_page_token` in the previous response in order to request the next page of results.
          type: string
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/adwords: See, edit, create, and delete your Google Ads accounts and data.
externalDocs:
  url: https://developers.google.com/google-ads/api/
x-provenance:
  method: harvested
  publisher: Google
  source: https://googleads.googleapis.com/$discovery/rest?version=v26
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261110)