> ## 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.

# Create Ad Set



## OpenAPI

````yaml /actionkit/openapi.json POST /projects/{project_id}/tools/#FACEBOOK_ADS_CREATE_AD_SET
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_CREATE_AD_SET:
    post:
      summary: Create Ad Set
      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_CREATE_AD_SET
                parameters:
                  type: object
                  properties:
                    campaignId:
                      type: string
                      description: Specify the campaign ID to perform the operation on
                    name:
                      type: string
                      description: 'Name : The name of the ad set.'
                    status:
                      type: string
                      description: >-
                        Status : This value will default to Paused to prevent
                        your test account from being billed while testing.
                        Change this to Active for production uses.
                      enum:
                        - PAUSED
                        - ACTIVE
                    optimizationGoal:
                      type: string
                      description: >-
                        Optimization Goal : Specify the optimization goal that
                        this ad set will use.
                      enum:
                        - APP_INSTALLS
                        - AD_RECALL_LIFT
                        - ENGAGED_USERS
                        - EVENT_RESPONSES
                        - IMPRESSIONS
                        - LEAD_GENERATION
                        - QUALITY_LEAD
                        - LINK_CLICKS
                        - OFFSITE_CONVERSIONS
                        - PAGE_LIKES
                        - POST_ENGAGEMENT
                        - QUALITY_CALL
                        - REACH
                        - LANDING_PAGE_VIEWS
                        - VISIT_INSTAGRAM_PROFILE
                        - VALUE
                        - VALUE_THROUGHPLAY
                        - DERIVED_EVENTS
                        - APP_INSTALLS_AND_OFFSITE_CONVERSIONS
                        - CONVERSIONS
                    billingEvent:
                      type: string
                      description: >-
                        Billing Event : Specify the billing event that this ad
                        set will use.
                      enum:
                        - APP_INSTALLS
                        - CLICKS
                        - IMPRESSIONS
                        - LINK_CLICKS
                        - OFFER_CLAIMS
                        - PAGE_LIKES
                        - POST_ENGAGEMENT
                        - VIDEO_VIEWS
                        - VALUE_THROUGHPLAY
                    bidAmount:
                      type: string
                      description: >-
                        Bid Amount : Set a maximum bid you want to pay for a
                        result based on this ad set’s optimization goal. Value
                        is in cents, for your account’s local currency.
                    dailyBudget:
                      type: string
                      description: >-
                        Daily Budget : Set a daily budget for this ad set to
                        use, in your account’s local currency.
                    startTime:
                      type: string
                      description: >-
                        Start Time : Specify when this ad set should start
                        running. (example: "2021-01-01 12:00:00 AM")
                    targeting:
                      type: object
                      description: >-
                        Targeting : Provide a Targeting spec to define the
                        audience for this ad set. (example: "{
                          "geo_locations": {"countries": ["US"]},
                          "interests": [{id: 6003139266461, 'name': 'Movies'}]
                        }")
                      properties: {}
                    promotedObject:
                      type: object
                      description: >-
                        Promoted Object : The object an ad set promotes, such as
                        a Page or app. This field may be required depending on
                        your campaign’s Objective. Read the docs
                        (https://developers.facebook.com/docs/marketing-api/reference/ad-promoted-object)
                        for more details. (example: "{
                          "page_id": "11111111111111111"
                        }")
                      properties: {}
                  required:
                    - campaignId
                    - name
                    - status
                    - optimizationGoal
                    - billingEvent
                    - bidAmount
                    - dailyBudget
                    - startTime
                    - targeting
                  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.

````