> ## Documentation Index
> Fetch the complete documentation index at: https://docs.adside.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Ad Creative

> Create a new ad creative with images, videos, text, and call-to-action buttons. Supports both image and video creatives with proper object_story_spec structure for Meta API compliance.



## OpenAPI

````yaml /api-reference/openapi.yaml post /meta/mcp#create_ad_creative
openapi: 3.1.0
info:
  title: Multi-Source Ads API
  version: 1.0.0
  description: >-
    Unified API for managing ad campaigns across Meta, LinkedIn, and Google. MCP
    tools are accessed via JSON-RPC 2.0 over HTTP (`POST /{source}/mcp`). Google
    Sheets/Drive endpoints use standard REST.
servers:
  - url: https://api.adside.ai
    description: Production
  - url: http://localhost:3100
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Accounts
    description: ''
  - name: Ads
    description: ''
  - name: Analytics
    description: ''
  - name: Asset Groups
    description: ''
  - name: Assets
    description: ''
  - name: Audiences
    description: ''
  - name: Campaign Groups
    description: ''
  - name: Campaigns
    description: ''
  - name: Conversions
    description: ''
  - name: Creatives
    description: ''
  - name: Drive
    description: ''
  - name: Google
    description: ''
  - name: Google Ads
    description: ''
  - name: Google Tag Manager
    description: ''
  - name: Keywords
    description: ''
  - name: Linkedin
    description: ''
  - name: Meta
    description: ''
  - name: Meta Reporting
    description: ''
  - name: OAuth
    description: ''
  - name: Other
    description: ''
  - name: Reports
    description: ''
  - name: Sheets
    description: ''
  - name: Targeting
    description: ''
  - name: Tiktok
    description: ''
  - name: Workspace
    description: ''
paths:
  /meta/mcp#create_ad_creative:
    post:
      tags:
        - Meta
        - Creatives
      summary: Create Ad Creative
      description: >-
        Create a new ad creative with images, videos, text, and call-to-action
        buttons. Supports both image and video creatives with proper
        object_story_spec structure for Meta API compliance.
      operationId: meta_create_ad_creative
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - params
              properties:
                jsonrpc:
                  type: string
                  const: '2.0'
                id:
                  type: string
                  example: '1'
                method:
                  type: string
                  const: tools/call
                params:
                  type: object
                  required:
                    - name
                    - arguments
                  properties:
                    name:
                      type: string
                      const: create_ad_creative
                    arguments:
                      $ref: '#/components/schemas/meta_create_ad_creative_input'
      responses:
        '200':
          description: JSON-RPC response with tool result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/McpToolResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Channel not connected or access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    meta_create_ad_creative_input:
      type: object
      properties:
        account_id:
          description: Meta Ad Account ID (uses configured account if not provided)
          type: string
        name:
          type: string
          minLength: 1
          description: Creative name
        page_id:
          type: string
          description: Facebook Page ID (required for object_story_spec)
        message:
          description: >-
            Primary ad text/message (single-variant). Mutually exclusive with
            `bodies`.
          type: string
          maxLength: 1024
        headline:
          description: >-
            Ad title/headline (single-variant). Mutually exclusive with
            `titles`.
          type: string
          maxLength: 255
        bodies:
          description: >-
            Multi-variant primary texts (1–5). When set, the creative is built
            with asset_feed_spec and must be attached to a Dynamic Creative ad
            set.
          minItems: 1
          maxItems: 5
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 1024
        titles:
          description: Multi-variant headlines (1–5). Pair with `bodies`.
          minItems: 1
          maxItems: 5
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 255
        descriptions:
          description: Multi-variant descriptions (0–5). Pair with `bodies`.
          maxItems: 5
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 255
        picture:
          description: External image URL - must be publicly accessible
          type: string
          format: uri
        image_hash:
          description: Pre-uploaded image hash (alternative to picture URL)
          type: string
        video_id:
          description: Video ID for video creatives
          type: string
        call_to_action_type:
          description: Call to action button type (40+ supported types)
          type: string
          enum:
            - LEARN_MORE
            - SHOP_NOW
            - SIGN_UP
            - DOWNLOAD
            - BOOK_TRAVEL
            - LISTEN_MUSIC
            - WATCH_VIDEO
            - GET_QUOTE
            - CONTACT_US
            - APPLY_NOW
            - GET_DIRECTIONS
            - CALL_NOW
            - MESSAGE_PAGE
            - SUBSCRIBE
            - BOOK_NOW
            - ORDER_NOW
            - DONATE_NOW
            - SAY_THANKS
            - SELL_NOW
            - SHARE
            - OPEN_LINK
            - LIKE_PAGE
            - FOLLOW_PAGE
            - FOLLOW_USER
            - REQUEST_TIME
            - VISIT_PAGES_FEED
            - USE_APP
            - PLAY_GAME
            - INSTALL_APP
            - USE_MOBILE_APP
            - INSTALL_MOBILE_APP
            - OPEN_MOVIES
            - AUDIO_CALL
            - VIDEO_CALL
            - GET_OFFER
            - GET_OFFER_VIEW
            - BUY_NOW
            - ADD_TO_CART
            - SELL
            - GIFT_WRAP
            - MAKE_AN_OFFER
            - BUY_TICKETS
            - EXPLORE_MORE
            - GET_PROMOTIONS
            - GET_SHOWTIMES
            - LISTEN_NOW
            - SAVE
            - SEE_DETAILS
            - SEE_MENU
            - WATCH_MORE
            - WHATSAPP_MESSAGE
        link_url:
          type: string
          format: uri
          description: Destination URL where users will be directed when clicking the ad
        description:
          description: Additional description text
          type: string
          maxLength: 255
        instagram_actor_id:
          description: Instagram account ID for cross-posting
          type: string
        adlabels:
          description: Ad labels for organization and tracking
          type: array
          items:
            type: string
        enable_standard_enhancements:
          default: false
          description: Enable Standard Enhancements with individual feature control
          type: boolean
        enhancement_features:
          description: Individual enhancement feature controls
          type: object
          properties:
            enhance_cta:
              default: true
              description: Enhance call-to-action buttons
              type: boolean
            image_brightness_and_contrast:
              default: true
              description: Auto-adjust image brightness and contrast
              type: boolean
            text_improvements:
              default: true
              description: Improve ad text readability
              type: boolean
            image_templates:
              default: false
              description: Apply image templates and frames
              type: boolean
        attachment_style:
          default: link
          description: Attachment style for link ads
          type: string
          enum:
            - link
            - album
        caption:
          description: Caption text (typically domain name)
          type: string
        url_tags:
          description: >-
            URL tags appended to the link URL for tracking (e.g.
            utm_source=...&utm_medium=...)
          type: string
      required:
        - name
        - page_id
        - link_url
      $schema: http://json-schema.org/draft-07/schema#
    McpToolResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          const: '2.0'
        id:
          type: string
        result:
          type: object
          properties:
            content:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    const: text
                  text:
                    type: string
                    description: JSON-stringified tool result
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
        code:
          type: string
          enum:
            - UNAUTHORIZED
            - FORBIDDEN
            - NOT_FOUND
            - RATE_LIMITED
            - INTERNAL_ERROR
          description: Error code
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key (sk_live_*) — SHA256 hashed, looked up in Redis. Generate via
        the web app's workspace settings.

````