LinkedIn Marketing API AdTargetingEntities API

The AdTargetingEntities API from LinkedIn Marketing API — 1 operation(s) for adtargetingentities.

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/linkedin-ads-adtargetingentities-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

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

OpenAPI Specification

linkedin-ads-adtargetingentities-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: LinkedIn Marketing AdAccounts AdTargetingEntities API
  description: 'Partial OpenAPI 3.1 representation of the LinkedIn Marketing API for

    advertising, campaign management, audience targeting, and reporting. Uses

    OAuth 2.0 three-legged (authorization code) flow and requires a

    `LinkedIn-Version` header in YYYYMM format on every versioned request.

    Reference documentation lives at

    https://learn.microsoft.com/en-us/linkedin/marketing/.

    '
  version: '2026.05'
  contact:
    name: LinkedIn Marketing API Program
    url: https://learn.microsoft.com/en-us/linkedin/marketing/
servers:
- url: https://api.linkedin.com/rest
  description: Versioned REST endpoint.
security:
- OAuth2:
  - rw_ads
tags:
- name: AdTargetingEntities
paths:
  /adTargetingEntities:
    get:
      summary: Discover entities within a targeting facet
      operationId: getAdTargetingEntities
      security:
      - OAuth2:
        - r_ads
        - rw_ads
      parameters:
      - $ref: '#/components/parameters/LinkedInVersion'
      - name: q
        in: query
        required: true
        schema:
          type: string
          enum:
          - adTargetingFacet
      - name: queryVersion
        in: query
        schema:
          type: string
          default: QUERY_USES_URNS
      - name: facet
        in: query
        required: true
        description: Facet URN, e.g. `urn:li:adTargetingFacet:seniorities`.
        schema:
          type: string
      responses:
        '200':
          description: Entities within the requested facet.
      tags:
      - AdTargetingEntities
components:
  parameters:
    LinkedInVersion:
      name: LinkedIn-Version
      in: header
      required: true
      description: API version in `YYYYMM` format, e.g. `202605`.
      schema:
        type: string
        pattern: ^\d{6}$
  securitySchemes:
    OAuth2:
      type: oauth2
      description: OAuth 2.0 three-legged (authorization code) flow.
      flows:
        authorizationCode:
          authorizationUrl: https://www.linkedin.com/oauth/v2/authorization
          tokenUrl: https://www.linkedin.com/oauth/v2/accessToken
          scopes:
            r_ads: Read ads accounts, campaigns, and creatives.
            rw_ads: Read and write ads accounts, campaigns, and creatives.
            r_ads_reporting: Read ad campaign reporting data.
            r_basicprofile: Read basic profile.