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

# Build Ad Creative Object



## OpenAPI

````yaml /actionkit/openapi.json POST /projects/{project_id}/tools/#FACEBOOK_ADS_BUILD_AD_CREATIVE_OBJECT
openapi: 3.0.0
info:
  title: ActionKit Tools API
  version: 1.0.0
servers:
  - url: https://actionkit.useparagon.com
    description: US Cloud
security: []
paths:
  /projects/{project_id}/tools/#FACEBOOK_ADS_BUILD_AD_CREATIVE_OBJECT:
    post:
      summary: Build Ad Creative Object
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              Your Paragon Project ID. You can copy your Project ID from your
              dashboard URL or by clicking Copy Project ID under the Environment
              switcher.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tool:
                  type: string
                  default: FACEBOOK_ADS_BUILD_AD_CREATIVE_OBJECT
                parameters:
                  type: object
                  properties:
                    adCreativeType:
                      type: string
                      description: 'Type : Select a type of ad creative to build.'
                      enum:
                        - IMAGE
                        - TEXT
                        - LINK
                        - LEAD_GEN_FORM_ID
                    imageURL:
                      type: string
                      description: >-
                        Image URL : This image will be uploaded to your ad
                        account’s image library. (example:
                        "https://example.com/ad.png") 

                        This field appears only when 'adCreativeType' = 'IMAGE')
                    linkURL:
                      type: string
                      description: >-
                        Link URL : The URL used for the CTA in this ad.
                        (example: "https://example.com/promo") 

                        This field appears only when 'adCreativeType' =
                        'IMAGE') 

                        This field appears only when 'type' = '') 

                        This field appears only when 'type' = '') 

                        This field appears only when 'type' = '')
                    linkTitle:
                      type: string
                      description: >-
                        Link Title : A title to use for the link of your ad. 

                        This field appears only when 'adCreativeType' =
                        'IMAGE') 

                        This field appears only when 'type' = '') 

                        This field appears only when 'type' = '') 

                        This field appears only when 'type' = '')
                    linkDescription:
                      type: string
                      description: >-
                        Link Description : A description to use for the link of
                        your ad. 

                        This field appears only when 'adCreativeType' =
                        'IMAGE') 

                        This field appears only when 'type' = '') 

                        This field appears only when 'type' = '') 

                        This field appears only when 'type' = '')
                    message:
                      type: string
                      description: >-
                        Message : The body of the post included with the image. 

                        This field appears only when 'adCreativeType' =
                        'IMAGE') 

                        This field appears only when 'type' = '')
                    additionalField:
                      type: object
                      description: >-
                        Additional Fields : Specify any other fields that should
                        be included in the post, as fields of AdCreativeLinkData
                        (https://developers.facebook.com/docs/marketing-api/reference/ad-creative-link-data/).
                        (example: "{
                          "call_to_action": { ... },
                          "child_attachments": [{ ... }]
                        }") 

                        This field appears only when 'adCreativeType' =
                        'IMAGE') 

                        This field appears only when 'type' = '') 

                        This field appears only when 'type' = '') 

                        This field appears only when 'type' = '')
                      properties: {}
                    leadGenFormId:
                      type: string
                      description: >-
                        Lead Gen Form ID : The ID of the lead gen form to use
                        with this creative.  

                        This field appears only when 'adCreativeType' =
                        'LEAD_GEN_FORM_ID')
                    callToActionType:
                      type: string
                      description: >-
                        Call to Action Type 

                        This field appears only when 'adCreativeType' =
                        'LEAD_GEN_FORM_ID')
                      enum:
                        - APPLY_NOW
                        - DOWNLOAD
                        - GET_QUOTE
                        - LEARN_MORE
                        - SIGN_UP
                        - SUBSCRIBE
                  required:
                    - adCreativeType
                    - imageURL
                    - linkURL
                    - additionalField
                    - leadGenFormId
                  x-integration: facebookAds
              required:
                - tool
                - parameters
      responses:
        '200':
          description: Success
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Your [Paragon User
        Token](/getting-started/installing-the-connect-sdk#setup) (JWT), which
        you can generate using your project's signing keys.

````