Create or Update LinkedIn Document Ad
create_update_document_adCreate a new or update an existing LinkedIn Document Ad on the Metadata platform.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Existing Document Ad ID — include to UPDATE; omit to CREATE. | |
| name | Yes | Ad name in the platform library (max 50 characters). | |
| text | Yes | Introductory text shown with the document (max 3000 characters). | |
| ctaType | No | Call-to-action. Defaults to UNLOCK_FULL_DOCUMENT (the document-gate CTA). | |
| headline | Yes | Headline shown with the document (max 200 characters). | |
| libraryId | Yes | Integer id of the DOCUMENT creative in the library (contentType=DOCUMENT). Get it from search_library_creatives_by_name(contentTypes="DOCUMENT"). NOT an image/video id. | |
| maxPreviewPages | No | How many document pages are previewable before the unlock gate. Defaults to 1. | |
| completionStatus | No | Defaults to DRAFT. Use COMPLETED only when every required field is final. |