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

# manage ads

> Ads on the connected ad accounts (Meta, TikTok, LinkedIn, Google, Pinterest, X, Reddit, ChatGPT), to the depth of each platform's own tools: campaigns, ad sets and ads made and changed on their own, creatives, previews, catalogs, ad comments. The spend is billed by the platform to the user's own ad account. An action takes its values in fields; the fields action lists every action, and with of, what one takes. A media field takes a library file. create, boost, create_message_ad and create_call_ad start live unless fields.status is PAUSED; validate_only checks without creating; a copy is made paused. ad_accounts lists a connection's ad accounts and health checks one before creating. An ad account includes 100 running ads; allowance reads the count. Meta holds an ad account for days after a burst of writes: send them one at a time. save_measure keeps a number of the workspace's own, shown in the app beside the platforms' numbers (fields name, formula over spend, impressions, clicks, results, purchase_value and reach, shape money, count, percent or times, and alert_when above or below with alert_value to list it under Needs attention past that value); delete_measure drops one.



## OpenAPI

````yaml /openapi.json post /tools/manage_ads
openapi: 3.1.0
info:
  title: Eversince API
  version: '1'
  description: >-
    Every Eversince tool as one POST call, plus the routes beside them: the tool
    list, account and keys, uploads, webhooks and models. The prose is at
    https://docs.eversince.ai.
servers:
  - url: https://eversince.ai/api/v1
security:
  - bearer: []
tags:
  - name: Discovery
    description: The tool list, the same on the MCP server, the REST API and the CLI.
  - name: Workspace
    description: Projects, jobs, balances, settings, templates, skills and the overview.
  - name: Library
    description: >-
      Items, search, import, reading media, comments, calendars, the brand kit
      and public links.
  - name: Timeline
    description: 'Video editing: timelines, clips, captions, sound, language and rendering.'
  - name: Canvas
    description: 'Still editing: canvases, slides, layers and rendering.'
  - name: Generation
    description: Image, video and audio generation, upscaling, cutouts and models.
  - name: Research
    description: 'What platforms publish: pulling and keeping posts.'
  - name: Publishing
    description: Connected social accounts.
  - name: Account
    description: Balances, keys, workspaces and script sessions.
  - name: Uploads
    description: Files into the library by presigned upload or by URL.
  - name: Webhooks
    description: Job results posted to a URL as they complete.
  - name: Models
    description: Generation models and cost estimates.
paths:
  /tools/manage_ads:
    post:
      tags:
        - Publishing
      summary: manage ads
      description: >-
        Ads on the connected ad accounts (Meta, TikTok, LinkedIn, Google,
        Pinterest, X, Reddit, ChatGPT), to the depth of each platform's own
        tools: campaigns, ad sets and ads made and changed on their own,
        creatives, previews, catalogs, ad comments. The spend is billed by the
        platform to the user's own ad account. An action takes its values in
        fields; the fields action lists every action, and with of, what one
        takes. A media field takes a library file. create, boost,
        create_message_ad and create_call_ad start live unless fields.status is
        PAUSED; validate_only checks without creating; a copy is made paused.
        ad_accounts lists a connection's ad accounts and health checks one
        before creating. An ad account includes 100 running ads; allowance reads
        the count. Meta holds an ad account for days after a burst of writes:
        send them one at a time. save_measure keeps a number of the workspace's
        own, shown in the app beside the platforms' numbers (fields name,
        formula over spend, impressions, clicks, results, purchase_value and
        reach, shape money, count, percent or times, and alert_when above or
        below with alert_value to list it under Needs attention past that
        value); delete_measure drops one.
      operationId: manage_ads
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/WorkspaceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                action:
                  type: string
                  enum:
                    - ad_accounts
                    - allowance
                    - save_measure
                    - delete_measure
                    - fields
                    - health
                    - live
                    - activity
                    - alerts
                    - dismiss_alert
                    - instagram_identities
                    - tiktok_identities
                    - apps
                    - ios14_limits
                    - dsa_defaults
                    - dsa_recommendations
                    - campaigns
                    - campaign
                    - ad_sets
                    - ad_set
                    - list
                    - ad
                    - review
                    - ad_preview
                    - ad_media
                    - schedule
                    - bidding
                    - create
                    - boost
                    - create_message_ad
                    - create_call_ad
                    - create_campaign
                    - create_ad_set
                    - preview
                    - update_campaign
                    - update_ad_set
                    - update_ad
                    - set_schedule
                    - campaign_status
                    - ad_set_status
                    - ad_status
                    - duplicate_campaign
                    - duplicate_ad_set
                    - duplicate_ad
                    - delete_campaign
                    - delete_ad_set
                    - end
                    - creatives
                    - creative
                    - create_creative
                    - rename_creative
                    - delete_creative
                    - images
                    - upload_image
                    - videos
                    - video
                    - upload_video
                    - delete_video
                    - boostable_posts
                    - partnership_content
                    - partnership_permissions
                    - set_partnership_permission
                    - comments
                    - reply_comment
                    - hide_comment
                    - delete_comment
                    - value_rule_sets
                    - value_rule_set
                    - create_value_rule_set
                    - replace_value_rule_set
                    - delete_value_rule_set
                    - budget_increases
                    - schedule_budget_increase
                    - catalogs
                    - catalog
                    - create_catalog
                    - delete_catalog
                    - products
                    - product
                    - add_product
                    - update_product
                    - delete_product
                    - batch_products
                    - product_batch
                    - feeds
                    - create_feed
                    - feed_uploads
                    - fetch_feed
                    - product_sets
                    - create_product_set
                    - update_product_set
                    - delete_product_set
                account_id:
                  description: >-
                    An ad account connection from manage_social_accounts list,
                    for each action that reaches an ad account.
                  type: string
                ad_account_id:
                  description: >-
                    An ad account on that connection, from manage_ads
                    ad_accounts.
                  type: string
                id:
                  description: >-
                    What the action is about: the campaign, ad set, ad,
                    audience, creative, form or other thing, by its id.
                  type: string
                sub_id:
                  description: >-
                    A second id where a thing is inside another: a comment on an
                    ad, a product in a catalog.
                  type: string
                fields:
                  description: The action's values, by the names the fields action lists.
                  type: object
                  propertyNames:
                    type: string
                  additionalProperties: {}
                of:
                  description: >-
                    fields: the action to describe. Left out, every action with
                    a line on what it does.
                  type: string
                field:
                  description: >-
                    fields: read inside one field, by its path, such as
                    targeting or placements.
                  type: string
                match:
                  description: 'fields: only fields whose name or text has these letters.'
                  type: string
                context:
                  description: 'Optional: one sentence shown to the user beside this action.'
                  type: string
                  maxLength: 600
              required:
                - action
      responses:
        '200':
          description: >-
            Done, or a job started for work that runs longer (follow it with
            get_jobs).
          content:
            application/json:
              schema:
                type: object
                required:
                  - ok
                  - data
                  - meta
                properties:
                  ok:
                    const: true
                  data:
                    type: object
                    additionalProperties: true
                  meta:
                    type: object
                    properties:
                      request_id:
                        type: string
                      cost:
                        $ref: '#/components/schemas/Cost'
                      cloud_processing:
                        $ref: '#/components/schemas/CloudProcessing'
                  media:
                    type: array
                    items:
                      type: object
                      additionalProperties: true
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      schema:
        type: string
      description: >-
        Retry a paid dispatch safely: the same key returns the job already
        dispatched instead of charging again.
    WorkspaceId:
      name: x-workspace-id
      in: header
      required: false
      schema:
        type: string
      description: >-
        The workspace this one call acts in, when it is not the default: for a
        key or a connected agent, one of the workspaces the user allowed it.
  schemas:
    Cost:
      type: object
      description: AI credits the call cost.
      additionalProperties: true
    CloudProcessing:
      type: object
      description: >-
        Cloud processing for this call. minutes is the estimate. charged_minutes
        is what work that finished inside the call was charged; work still
        running or queued is charged when it finishes, and get_jobs reports it
        as cloud_minutes. month_left_minutes is the month after held_minutes,
        which running work holds until it settles, with bought_minutes apart.
      properties:
        ran_on:
          const: cloud
        minutes:
          type: number
        charged_minutes:
          type: number
        queued_minutes:
          type: number
        month_left_minutes:
          type: number
        held_minutes:
          type: number
        bought_minutes:
          type: number
        note:
          type: string
    Error:
      type: object
      required:
        - ok
        - error
      properties:
        ok:
          const: false
        error:
          type: object
          required:
            - code
            - message
            - retryable
          properties:
            code:
              type: string
            message:
              type: string
              description: What went wrong, in words to act on.
            retryable:
              type: boolean
            suggested_action:
              type: string
              description: The next step that works.
            cloud_processing:
              $ref: '#/components/schemas/CloudProcessing'
  responses:
    Error:
      description: The call was refused or failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        An API key (es_live_…) from Settings, under API keys, or an OAuth access
        token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.