HighLevel LinkedIn Ads API

Documentation for Ad-publishing API

Business capability
Digital Marketing Management BC-400.60

Operations 7

GET /ad-publishing/linkedin/ads/{adId} Get ad campaign group #
POST /ad-publishing/linkedin/ads/{adId}/publish Publish ad campaign group #
PUT /ad-publishing/linkedin/ads Upsert ad campaign group #
GET /ad-publishing/linkedin/targeting/search Search targeting options #
GET /ad-publishing/linkedin/{accountId}/forms Get lead forms #
POST /ad-publishing/linkedin/{accountId}/form Create lead form #
PATCH /ad-publishing/linkedin/{adId}/status Update ad status #

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-campaign-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-upsert-ad-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-upsert-segment-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-lead-form-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-upsert-conversion-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-upsert-adset-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-estimate-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-estimate-template-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-invoice-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-estimate-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-text2-pay-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-estimates-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-post-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-post-create-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-search-post-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-set-accounts-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-bulk-delete-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-by-location-id-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-calendar-create-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-calendar-update-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-appointment-create-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-appointment-edit-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-calendar-notifications-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-calendar-notification-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-product-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-price-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-price-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-product-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-product-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-product-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-subscription-response-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-txn-response-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-order-response-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-coupon-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-connect-custom-providers-response-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-custom-providers-response-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-available-shipping-rates-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-shipping-rate-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-shipping-rate-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-shipping-carrier-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-shipping-carrier-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-store-setting-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-send-message-body-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-message-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-process-message-body-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-email-message-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-conversation-by-id-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-user-subscription-change-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-location-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-location-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-location-successful-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-recurring-task-create-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-custom-fields-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-recurring-task-update-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-upsert-contact-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-contact-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-contact-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-tags-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-tags-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-contacts-business-update-schema.json

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/highlevel:highlevel-linkedin-ads-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 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. See our Privacy Policy and Terms.

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

OpenAPI Specification

highlevel-linkedin-ads-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ad Manager LinkedIn Ads API
  description: Documentation for Ad-publishing API
  version: '1.0'
  contact: {}
servers:
- url: https://services.leadconnectorhq.com
tags:
- name: LinkedIn Ads
  description: Documentation for Ad-publishing API
paths:
  /ad-publishing/linkedin/ads/{adId}:
    get:
      operationId: li-get-campaign-group
      summary: Get ad campaign group
      description: Retrieve a LinkedIn ad campaign group by ID
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
          example: '2021-07-28'
      - name: adId
        required: true
        in: path
        description: Ad identifier
        schema:
          example: 507f1f77bcf86cd799439011
          type: string
      - name: locationId
        required: true
        in: query
        description: Location identifier
        schema:
          example: HChooFuiyPpVYzeJ4HMe
          type: string
      responses:
        '200':
          description: ''
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      security:
      - bearer:
        - adPublishing.readonly
      tags:
      - LinkedIn Ads
  /ad-publishing/linkedin/ads/{adId}/publish:
    post:
      operationId: li-publish-campaign-group
      summary: Publish ad campaign group
      description: Publish a LinkedIn ad campaign group and push it live
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
          example: '2021-07-28'
      - name: adId
        required: true
        in: path
        description: Ad identifier
        schema:
          example: 507f1f77bcf86cd799439011
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LocationIdBodyDTO'
      responses:
        '201':
          description: ''
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      security:
      - bearer:
        - adPublishing.write
      tags:
      - LinkedIn Ads
  /ad-publishing/linkedin/ads:
    put:
      operationId: li-upsert-campaign-group
      summary: Upsert ad campaign group
      description: Create or update a LinkedIn ad campaign group with campaigns and ads
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
          example: '2021-07-28'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AdCampaignGroupDataDTO'
      responses:
        '200':
          description: ''
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      security:
      - bearer:
        - adPublishing.write
      tags:
      - LinkedIn Ads
  /ad-publishing/linkedin/targeting/search:
    get:
      operationId: li-search-targeting
      summary: Search targeting options
      description: Search LinkedIn targeting facets such as locations, industries, and job titles
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
          example: '2021-07-28'
      - name: locationId
        required: true
        in: query
        description: Location identifier
        schema:
          example: HChooFuiyPpVYzeJ4HMe
          type: string
      - name: facet
        required: true
        in: query
        description: Targeting facet
        schema:
          example: locations
          type: string
      - name: query
        required: false
        in: query
        description: Search query
        schema:
          example: software
          type: string
      - name: q
        required: false
        in: query
        description: Query parameter
        schema:
          example: typeahead
          type: string
      responses:
        '200':
          description: ''
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      security:
      - bearer:
        - adPublishing.readonly
      tags:
      - LinkedIn Ads
  /ad-publishing/linkedin/{accountId}/forms:
    get:
      operationId: li-get-lead-forms
      summary: Get lead forms
      description: Retrieve LinkedIn lead gen forms for an ad account
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
          example: '2021-07-28'
      - name: accountId
        required: true
        in: path
        description: Account identifier
        schema:
          example: '12345678'
          type: string
      - name: locationId
        required: true
        in: query
        description: Location identifier
        schema:
          example: HChooFuiyPpVYzeJ4HMe
          type: string
      responses:
        '200':
          description: ''
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      security:
      - bearer:
        - adPublishing.readonly
      tags:
      - LinkedIn Ads
  /ad-publishing/linkedin/{accountId}/form:
    post:
      operationId: li-create-lead-form
      summary: Create lead form
      description: Create a new LinkedIn lead gen form for an ad account
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
          example: '2021-07-28'
      - name: locationId
        required: true
        in: query
        description: Location identifier
        schema:
          example: HChooFuiyPpVYzeJ4HMe
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkedInCreateLeadFormBodyDTO'
      responses:
        '201':
          description: ''
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      security:
      - bearer:
        - adPublishing.write
      tags:
      - LinkedIn Ads
  /ad-publishing/linkedin/{adId}/status:
    patch:
      operationId: li-update-ad-status
      summary: Update ad status
      description: Pause or resume a LinkedIn ad, campaign, or ad group
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
          example: '2021-07-28'
      - name: adId
        required: true
        in: path
        description: Ad identifier
        schema:
          example: 507f1f77bcf86cd799439011
          type: string
      - name: locationId
        required: true
        in: query
        description: Location identifier
        schema:
          example: HChooFuiyPpVYzeJ4HMe
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkedInUpdateAdStatusBodyDTO'
      responses:
        '200':
          description: ''
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      security:
      - bearer:
        - adPublishing.write
      tags:
      - LinkedIn Ads
components:
  schemas:
    LegalInfoDTO:
      type: object
      properties:
        consents:
          description: Consent entries
          type: array
          items:
            $ref: '#/components/schemas/ConsentDTO'
        privacyPolicyUrl:
          type: string
          description: Privacy policy URL
          example: https://example.com/privacy
        legalDisclaimer:
          description: Legal disclaimer text
          allOf:
          - $ref: '#/components/schemas/LocalizedStringDTO'
      required:
      - consents
      - privacyPolicyUrl
    LeadFormQuestionDTO:
      type: object
      properties:
        question:
          description: Question text
          allOf:
          - $ref: '#/components/schemas/LocalizedStringDTO'
        name:
          type: string
          description: Question field name
          example: firstName
        questionDetails:
          description: Question type details
          allOf:
          - $ref: '#/components/schemas/QuestionDetailsDTO'
        predefinedField:
          type: string
          description: Predefined field identifier
          example: FIRST_NAME
      required:
      - question
      - name
      - questionDetails
    AdCampaignDTO:
      type: object
      properties:
        id:
          type: string
        locale:
          description: Campaign locale
          allOf:
          - $ref: '#/components/schemas/LocaleDTO'
        name:
          type: string
        publishingStatus:
          type: string
          enum:
          - DRAFT
          - SCHEDULED
          - PUBLISHED
          - PUBLISHING
          - FAILED
          - IN_REVIEW
          - PAUSED
          - ARCHIVED
          - WITH_ISSUES
          - REJECTED
        mediaType:
          type: string
          description: Campaign audience targeting
          enum:
          - STANDARD_UPDATE
          - SINGLE_VIDEO
          - CAROUSEL
        audience:
          description: Campaign audience targeting
          allOf:
          - $ref: '#/components/schemas/AudienceDTO'
        unitCost:
          description: Bid unit cost
          allOf:
          - $ref: '#/components/schemas/UnitCostDTO'
        campaignType:
          type: string
        adCampaignGroupId:
          type: string
        adCampaignId:
          type: string
        ads:
          type: array
          items:
            $ref: '#/components/schemas/LinkedInAdDTO'
        linkedInError:
          type: string
          description: LinkedIn API error message
        meta:
          type: object
    SponsoredAccountOwnerDTO:
      type: object
      properties:
        sponsoredAccount:
          type: string
          description: Sponsored account URN
          example: urn:li:sponsoredAccount:123456
      required:
      - sponsoredAccount
    TargetAudienceDTO:
      type: object
      properties:
        include:
          type: array
          description: Included targeting attributes (groups of ANDed attributes, ORed together)
          items:
            type: array
            items:
              $ref: '#/components/schemas/SelectedAttributeDTO'
        exclude:
          type: array
          description: Excluded targeting attributes
          items:
            type: array
            items:
              $ref: '#/components/schemas/SelectedAttributeDTO'
    MultipleChoiceQuestionDetailsDTO:
      type: object
      properties:
        options:
          description: Choice options
          type: array
          items:
            $ref: '#/components/schemas/MultipleChoiceOptionDTO'
      required:
      - options
    AdCampaignGroupDataDTO:
      type: object
      properties:
        id:
          type: string
        locationId:
          type: string
          description: Location ID
        budget:
          $ref: '#/components/schemas/LinkedInBudgetDTO'
        adCampaigns:
          type: array
          items:
            $ref: '#/components/schemas/AdCampaignDTO'
        adBudgetOptimization:
          type: string
          enum:
          - MAXIMUM_DELIVERY
          - COST_CAP
        objectiveType:
          type: string
          enum:
          - LEAD_GENERATION
          - WEBSITE_VISIT
        name:
          type: string
        adCampaignGroupId:
          type: string
        publishingStatus:
          type: string
          enum:
          - DRAFT
          - SCHEDULED
          - PUBLISHED
          - PUBLISHING
          - FAILED
          - IN_REVIEW
          - PAUSED
          - ARCHIVED
          - WITH_ISSUES
          - REJECTED
        linkedInAdAccountId:
          type: string
        unpublishedChanges:
          type: boolean
        meta:
          type: object
        linkedInError:
          type: string
      required:
      - locationId
    LinkedInAdDTO:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        introductoryText:
          type: string
        destinationUrl:
          type: string
        callToActionLabel:
          type: string
        destinationFormId:
          type: string
        contentReferenceString:
          type: string
        media:
          type: array
          items:
            $ref: '#/components/schemas/LinkedInMediaDTO'
        adCampaignId:
          type: string
        adId:
          type: string
        headline:
          type: string
        publishingStatus:
          type: string
          enum:
          - DRAFT
          - SCHEDULED
          - PUBLISHED
          - PUBLISHING
          - FAILED
          - IN_REVIEW
          - PAUSED
          - ARCHIVED
          - WITH_ISSUES
          - REJECTED
        adCampaignGroupId:
          type: string
        description:
          type: string
        meta:
          type: object
        linkedInError:
          type: string
          description: LinkedIn API error message
    LocalizedStringDTO:
      type: object
      properties:
        localized:
          type: object
          description: Locale-keyed string map
          example:
            en_US: Hello
      required:
      - localized
    ConsentDTO:
      type: object
      properties:
        checkRequired:
          type: boolean
          description: Whether consent checkbox is required
          example: true
        id:
          type: number
          description: Consent identifier
          example: 1
        consent:
          description: Consent text
          allOf:
          - $ref: '#/components/schemas/LocalizedStringDTO'
      required:
      - checkRequired
      - id
      - consent
    PostSubmissionInfoDTO:
      type: object
      properties:
        message:
          description: Thank-you message
          allOf:
          - $ref: '#/components/schemas/LocalizedStringDTO'
        callToAction:
          description: Post-submission call to action
          allOf:
          - $ref: '#/components/schemas/PostSubmissionCallToActionDTO'
      required:
      - message
      - callToAction
    CreationLocaleDTO:
      type: object
      properties:
        country:
          type: string
          description: Country code
          example: US
        language:
          type: string
          description: Language code
          example: en
      required:
      - country
      - language
    QuestionDetailsDTO:
      type: object
      properties:
        textQuestionDetails:
          type: object
          description: Text question details (empty object for text questions)
        multipleChoiceQuestionDetails:
          description: Multiple choice question details
          allOf:
          - $ref: '#/components/schemas/MultipleChoiceQuestionDetailsDTO'
    PostSubmissionCallToActionDTO:
      type: object
      properties:
        callToActionTarget:
          description: Call to action target
          allOf:
          - $ref: '#/components/schemas/PostSubmissionCallToActionTargetDTO'
        callToActionLabel:
          type: string
          description: Call to action label
          enum:
          - VISIT_COMPANY_WEBSITE
          - DOWNLOAD_NOW
          - TRY_NOW
          - VIEW_NOW
          - LEARN_MORE
      required:
      - callToActionTarget
      - callToActionLabel
    HiddenFieldDTO:
      type: object
      properties:
        name:
          type: string
          description: Field name
          example: utm_source
        value:
          type: string
          description: Field value
          example: linkedin
      required:
      - name
      - value
    LinkedInCreateLeadFormBodyDTO:
      type: object
      properties:
        owner:
          description: Form owner
          allOf:
          - $ref: '#/components/schemas/SponsoredAccountOwnerDTO'
        creationLocale:
          description: Creation locale
          allOf:
          - $ref: '#/components/schemas/CreationLocaleDTO'
        name:
          type: string
          description: Form name
          example: Contact Us
        state:
          type: string
          description: Form state
          enum:
          - PUBLISHED
          example: PUBLISHED
        content:
          description: Form content
          allOf:
          - $ref: '#/components/schemas/LeadFormContentDTO'
        hiddenFields:
          description: Hidden fields
          type: array
          items:
            $ref: '#/components/schemas/HiddenFieldDTO'
      required:
      - owner
      - creationLocale
      - name
      - state
      - content
    GeoLocationDTO:
      type: object
      properties:
        name:
          type: string
          description: Location display name
          example: India
        urn:
          type: string
          description: Location URN
          example: urn:li:geo:12321321
        facetUrn:
          type: string
          description: Facet URN
          example: urn:li:adTargetingFacet:locations
        selectionType:
          type: string
          description: Selection type
          example: include
          enum:
          - include
          - exclude
      required:
      - name
      - urn
      - facetUrn
      - selectionType
    LeadFormContentDTO:
      type: object
      properties:
        questions:
          description: Form questions
          type: array
          items:
            $ref: '#/components/schemas/LeadFormQuestionDTO'
        description:
          description: Form description
          allOf:
          - $ref: '#/components/schemas/LocalizedStringDTO'
        headline:
          description: Form headline
          allOf:
          - $ref: '#/components/schemas/LocalizedStringDTO'
        postSubmissionInfo:
          description: Post-submission info
          allOf:
          - $ref: '#/components/schemas/PostSubmissionInfoDTO'
        legalInfo:
          description: Legal information
          allOf:
          - $ref: '#/components/schemas/LegalInfoDTO'
      required:
      - questions
      - headline
      - postSubmissionInfo
      - legalInfo
    LocaleDTO:
      type: object
      properties:
        country:
          type: string
          description: Country code
          example: US
        language:
          type: string
          description: Language code
          example: en
      required:
      - country
      - language
    AudienceDTO:
      type: object
      properties:
        geo_locations:
          description: Geographic location targets
          type: array
          items:
            $ref: '#/components/schemas/GeoLocationDTO'
        targetAudience:
          description: Target audience attribute selections
          allOf:
          - $ref: '#/components/schemas/TargetAudienceDTO'
    LocationIdBodyDTO:
      type: object
      properties:
        locationId:
          type: string
          description: Location identifier
          example: HChooFuiyPpVYzeJ4HMe
      required:
      - locationId
    UnitCostDTO:
      type: object
      properties:
        amount:
          type: number
          description: Bid amount in currency minor units
          example: 500
      required:
      - amount
    LinkedInMediaDTO:
      type: object
      properties:
        type:
          type: string
          description: Media type
          enum:
          - video
          - image
        src:
          type: string
          description: Media source URL
        frames:
          description: Video frame URLs
          type: array
          items:
            type: string
        selectedPoster:
          type: number
          description: Selected poster frame index
        thumbnailUrl:
          type: string
          description: Thumbnail URL
        name:
          type: string
          description: Media name
        headline:
          type: string
          description: Media headline
        destinationUrl:
          type: string
          description: Click-through destination URL
        fileSizeBytes:
          type: number
          description: File size in bytes
    LinkedInBudgetDTO:
      type: object
      properties:
        budgetType:
          type: string
          enum:
          - DAILY
          - LIFETIME
        amount:
          type: number
        scheduleStartDate:
          type: string
          description: Schedule start date (ISO 8601)
          example: '2025-01-01'
        scheduleEndDate:
          type: string
          description: Schedule end date (ISO 8601)
          example: '2025-12-31'
    LinkedInUpdateAdStatusBodyDTO:
      type: object
      properties:
        operationType:
          type: string
          description: Update operation
          example: PAUSED
          enum:
          - PAUSED
          - ARCHIVED
          - RESUME
        type:
          type: string
          description: Ad object type
          example: adCampaign
          enum:
          - adGroup
          - adCampaign
          - ad
      required:
      - operationType
      - type
    SelectedAttributeDTO:
      type: object
      properties:
        urn:
          type: string
          description: Targeting attribute URN
        name:
          type: string
          description: Display name
        categoryName:
          type: string
          description: Category name
        facet:
          type: string
          description: Facet identifier
      required:
      - urn
      - name
      - categoryName
      - facet
    PostSubmissionCallToActionTargetDTO:
      type: object
      properties:
        landingPageUrl:
          type: string
          description: Landing page URL
          example: https://example.com/thank-you
      required:
      - landingPageUrl
    MultipleChoiceOptionDTO:
      type: object
      properties:
        id:
          type: number
          description: Option ID
          example: 1
        text:
          description: Option text
          allOf:
          - $ref: '#/components/schemas/LocalizedStringDTO'
      required:
      - id
      - text
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
      type: http
    Location-Access:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
      type: http
    Location-Access-Only:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Sub-Account.
      type: http
    Agency-Access:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Agency (OR) Private Integration Token of Agency.
      type: http
    Agency-Access-Only:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Agency.
      type: http
x-tagGroups:
  name: Ad Manager
  tags:
  - Facebook Integration
  - Facebook Ads
  - Facebook Reporting
  - Google Integration
  - Google Ads
  - Google Reporting
  - LinkedIn Integration
  - LinkedIn Ads
  - LinkedIn Reporting
  - Reselling
  - Snapshots