{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zernio-com/json-schema/zernio-com-linked-in-ads-platform-data-schema.json",
  "title": "LinkedInAdsPlatformData",
  "description": "LinkedIn-specific options for POST /v1/ads/boost and POST /v1/ads/create: campaign bidding and delivery controls, plus the LinkedIn-only creative formats on /v1/ads/create. Unknown keys are rejected.\n",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zernio-com-openapi.json#/components/schemas/LinkedInAdsPlatformData",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "costType": {
      "type": "string",
      "enum": [
        "CPM",
        "CPC",
        "CPV"
      ],
      "description": "Campaign cost model (billing event). Defaults to `CPM`. Required when\n`unitCost` is set so the manual bid applies to an explicit cost model.\n"
    },
    "unitCost": {
      "type": "number",
      "description": "Manual bid in WHOLE account-currency units (e.g. 2.5 = $2.50). Requires\n`costType`. Omit for LinkedIn's automated (max delivery) bidding.\nLinkedIn enforces its own per-audience min/max bid bounds.\n"
    },
    "optimizationTargetType": {
      "type": "string",
      "description": "Campaign `optimizationTargetType` (e.g. `MAX_CLICK`, `TARGET_COST_PER_CLICK`, `MAX_IMPRESSION`). Forwarded verbatim; LinkedIn validates compatibility with the objective and `costType`.\n\n**Default** when omitted, derived from the objective:\n\n- `awareness`: `MAX_IMPRESSION`.\n- `video_views`: `MAX_VIDEO_VIEW`.\n- Every other goal: `MAX_CLICK`. That includes `lead_generation` and `conversions`, because `MAX_LEAD` and `MAX_CONVERSION` need a lead gen form or a conversion rule that neither creation flow attaches.\n\nThe default applies only to `SPONSORED_UPDATES` campaigns (every boost, and the image, video and carousel standalone ads), never to the `TEXT_AD`, `DYNAMIC` and `SPONSORED_INMAILS` campaigns the other creative formats produce.\n\nIt is also skipped when `unitCost` or a non-`CPM` `costType` is set, since those select manual bidding and the bid is then yours to choose.\n"
    },
    "creativeSelection": {
      "type": "string",
      "enum": [
        "OPTIMIZED",
        "ROUND_ROBIN"
      ],
      "description": "How LinkedIn rotates creatives within the campaign. Defaults to `OPTIMIZED`."
    },
    "audienceExpansionEnabled": {
      "type": "boolean",
      "description": "Enable LinkedIn audience expansion. Defaults to false."
    },
    "offsiteDeliveryEnabled": {
      "type": "boolean",
      "description": "Deliver on the LinkedIn Audience Network. Defaults to false."
    },
    "connectedTelevisionOnly": {
      "type": "boolean",
      "description": "Restrict delivery to Connected TV inventory."
    },
    "imageLinkFormat": {
      "type": "string",
      "enum": [
        "article",
        "single_image"
      ],
      "default": "article",
      "description": "LinkedIn shape of an `imageUrl` with `linkUrl` ad on POST /v1/ads/create.\n\n- `article` (default): an article link ad (`content.article`, image as the thumbnail).\n- `single_image`: a Single Image Ad (the image as the post media, `linkUrl` as the landing page, `callToAction` as the button).\n\n`single_image` works only with `imageUrl`, returns 400 with `longHeadline` (LinkedIn does not show it on this format), and is rejected on boost.\n"
    },
    "carousel": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "cards"
      ],
      "description": "POST /v1/ads/create only. Carousel ad with 2-10 image cards.\nMutually exclusive with the other creative sources.\n",
      "properties": {
        "cards": {
          "type": "array",
          "minItems": 2,
          "maxItems": 10,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "imageUrl"
            ],
            "properties": {
              "imageUrl": {
                "type": "string",
                "format": "uri"
              },
              "headline": {
                "type": "string",
                "description": "Card title. Falls back to the ad-level headline."
              },
              "landingUrl": {
                "type": "string",
                "format": "uri",
                "description": "Per-card click destination. LinkedIn requires one on every\ncard; the ad-level `linkUrl` backfills cards that omit it.\n"
              }
            }
          }
        }
      }
    },
    "document": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "url",
        "title"
      ],
      "description": "POST /v1/ads/create only. Document ad rendered as an in-feed viewer.\nPDF, PPT or DOC up to 100MB. Mutually exclusive with the other\ncreative sources.\n",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri"
        },
        "title": {
          "type": "string",
          "description": "Document title."
        }
      }
    },
    "spotlight": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "headline",
        "callToAction",
        "landingUrl"
      ],
      "description": "POST /v1/ads/create only. Dynamic Spotlight Ad personalized with the\nviewer's profile photo. Supported goals: traffic, awareness. logoUrl\nand organizationName default to the Company Page's; set them\nexplicitly if LinkedIn rejects the create with a 404. Mutually\nexclusive with the other creative sources.\n",
      "properties": {
        "headline": {
          "type": "string"
        },
        "description": {
          "type": "string",
          "description": "Mutually exclusive with backgroundImageUrl."
        },
        "callToAction": {
          "type": "string",
          "description": "Button label text."
        },
        "landingUrl": {
          "type": "string",
          "format": "uri"
        },
        "logoUrl": {
          "type": "string",
          "format": "uri"
        },
        "organizationName": {
          "type": "string"
        },
        "showMemberProfilePhoto": {
          "type": "boolean",
          "description": "Defaults to true."
        },
        "backgroundImageUrl": {
          "type": "string",
          "format": "uri",
          "description": "Custom background. Replaces the description and the profile photo."
        }
      }
    },
    "follower": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "headline",
        "description",
        "callToAction"
      ],
      "description": "POST /v1/ads/create only. Dynamic Follower Ad promoting the Company\nPage. Supported goals: engagement, awareness. headline and\ndescription take exactly one of preApproved or custom. Mutually\nexclusive with the other creative sources.\n",
      "properties": {
        "headline": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "preApproved": {
              "type": "string",
              "description": "LinkedIn preset id, not reviewed. Example GROW_YOUR_BUSINESS_INSIGHTS."
            },
            "custom": {
              "type": "string",
              "description": "Free text, reviewed by LinkedIn."
            }
          }
        },
        "description": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "preApproved": {
              "type": "string",
              "description": "LinkedIn preset id, not reviewed. Example GET_LATEST_JOBS_AND_INDUSTRY_NEWS."
            },
            "custom": {
              "type": "string",
              "description": "Free text, reviewed by LinkedIn."
            }
          }
        },
        "callToAction": {
          "type": "string",
          "enum": [
            "VISIT_ORGANIZATION_COMPANY_PAGE",
            "VISIT_ORGANIZATION_LIFE_PAGE",
            "VISIT_ORGANIZATION_JOBS_PAGE",
            "VISIT_ORGANIZATION_CAREERS_PAGE"
          ]
        },
        "logoUrl": {
          "type": "string",
          "format": "uri"
        },
        "organizationName": {
          "type": "string"
        },
        "showMemberProfilePhoto": {
          "type": "boolean",
          "description": "Defaults to true."
        }
      }
    },
    "jobs": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "headline",
        "buttonLabel"
      ],
      "description": "POST /v1/ads/create only. Dynamic Jobs Ad promoting your open roles, personalized with the viewer's profile photo. Mutually exclusive with the other creative sources.\n\n- Requires goal job_applicants and a Company Page with active job postings.\n- headline and buttonLabel take exactly one of preApproved or custom.\n- logoUrl and organizationName default to the Company Page's.\n",
      "properties": {
        "headline": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "preApproved": {
              "type": "string",
              "description": "LinkedIn preset id, not reviewed. Example MEMBER_READY_FOR_YOUR_DREAM_JOB."
            },
            "custom": {
              "type": "string",
              "description": "Free text, reviewed by LinkedIn."
            }
          }
        },
        "buttonLabel": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "preApproved": {
              "type": "string",
              "description": "LinkedIn preset id, not reviewed. One of SEE_MORE_JOBS, VIEW_MORE, CAREERS_AT_COMPANY."
            },
            "custom": {
              "type": "string",
              "description": "Free text, reviewed by LinkedIn."
            }
          }
        },
        "logoUrl": {
          "type": "string",
          "format": "uri"
        },
        "organizationName": {
          "type": "string"
        },
        "showMemberProfilePhoto": {
          "type": "boolean",
          "description": "Defaults to true."
        }
      }
    },
    "textAd": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "headline",
        "description",
        "landingUrl"
      ],
      "description": "POST /v1/ads/create only. Classic right-rail Text Ad. The copy lives\nhere; ad-level body and headline are not used. Mutually exclusive\nwith the other creative sources.\n",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 25
        },
        "description": {
          "type": "string",
          "maxLength": 75
        },
        "landingUrl": {
          "type": "string",
          "format": "uri"
        },
        "imageUrl": {
          "type": "string",
          "format": "uri",
          "description": "Optional 100x100 image."
        }
      }
    },
    "conversation": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "subject",
        "firstMessageId",
        "messages"
      ],
      "description": "POST /v1/ads/create only. Conversation Ad: a choose-your-path message tree delivered to the member's LinkedIn inbox.\n\n- Messages are flat nodes wired by local ids. Each button either opens a url or leads to nextMessageId.\n- Cycles, unknown ids and a missing firstMessageId return a 400.\n- LinkedIn does not deliver message ads to EU members.\n- Mutually exclusive with the other creative sources.\n",
      "properties": {
        "subject": {
          "type": "string",
          "description": "InMail subject shown in the inbox."
        },
        "sender": {
          "type": "string",
          "description": "Person or organization URN. Defaults to the authoring Company\nPage. The sender must be approved for the ad account first\n(Campaign Manager > Manage message ad senders) or LinkedIn\nrejects the create with SINMAIL_SENDER_NOT_APPROVED.\n"
        },
        "body": {
          "type": "string",
          "description": "Optional intro body (HTML allowed)."
        },
        "footer": {
          "type": "string",
          "description": "Terms shown at the bottom of the message."
        },
        "headline": {
          "type": "string",
          "description": "Conversation headline. Defaults to the first message's first line."
        },
        "firstMessageId": {
          "type": "string"
        },
        "messages": {
          "type": "array",
          "minItems": 1,
          "maxItems": 25,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "text"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "text": {
                "type": "string",
                "maxLength": 500
              },
              "buttons": {
                "type": "array",
                "minItems": 1,
                "maxItems": 5,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "text"
                  ],
                  "properties": {
                    "text": {
                      "type": "string",
                      "maxLength": 35
                    },
                    "nextMessageId": {
                      "type": "string",
                      "description": "Continues the conversation at this message. Exactly one of nextMessageId or url."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Opens this landing page. Exactly one of nextMessageId or url."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "event": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "urn"
      ],
      "description": "POST /v1/ads/create only. Promotes an existing LinkedIn Event; no\nheadline needed. Mutually exclusive with the other creative sources.\n",
      "properties": {
        "urn": {
          "type": "string",
          "pattern": "^urn:li:event:\\d+$",
          "description": "LinkedIn Event URN, urn:li:event:N."
        }
      }
    },
    "thoughtLeader": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "postUrn"
      ],
      "description": "POST /v1/ads/create only. Sponsors an existing LinkedIn post (a share or ugcPost authored by your organization's Company Page) as the creative, keeping its commentary, author and engagement.\n\nUnlike boostPost, which provisions its own CampaignGroup + Campaign around the post, this attaches the reference under the campaign /v1/ads/create builds, like every other format. You pick bidding / targeting / schedule freely.\n\nNo headline, body, imageUrl or organization are needed; the referenced post carries its own commentary and author. Mutually exclusive with the other creative sources.\n\nPosts from personal profiles (Thought Leader Ads) are NOT supported (see postUrn).\n",
      "properties": {
        "postUrn": {
          "type": "string",
          "pattern": "^urn:li:(share|ugcPost):\\d+$",
          "description": "LinkedIn share or ugcPost URN: urn:li:share:N or urn:li:ugcPost:N.\n\nGet it via \"Copy link to post\" on the target LinkedIn post. The URL contains -share- (share) or -ugcPost- (ugcPost), then the numeric id.\n\nThe post must be authored by an organization (Company Page). Member (personal profile) posts, i.e. Thought Leader Ads proper, are rejected by LinkedIn's public Marketing API regardless of sponsorship approval and post type.\n\nThis is a LinkedIn limitation (Campaign Manager creates those through a private API). Referencing a member post returns a 422 with a clear error.\n"
        }
      }
    }
  }
}