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

# SetPaidMediaCampaignConversionGoalsAPI mirrors


> erdo\_set\_paid\_media\_campaign\_conversion\_goals: scope one campaign to exactly the requested conversion actions through the same approval-gated agent action. It never changes campaign status or bidding. An omitted customer\_id uses the selected operating account. When the campaign's custom goal already equals the requested set it answers ready and writes nothing.




## OpenAPI

````yaml /api/openapi.json post /v1/paid-media/campaigns/{externalID}/conversion-goals
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, experiments, and bounded outreach.
    Authenticate with a Bearer API key (erdo_api_...) or scoped token
    (erdo_token_...).
  version: '2026-10-22'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/paid-media/campaigns/{externalID}/conversion-goals:
    post:
      summary: |
        SetPaidMediaCampaignConversionGoalsAPI mirrors
      description: >
        erdo\_set\_paid\_media\_campaign\_conversion\_goals: scope one campaign
        to exactly the requested conversion actions through the same
        approval-gated agent action. It never changes campaign status or
        bidding. An omitted customer\_id uses the selected operating account.
        When the campaign's custom goal already equals the requested set it
        answers ready and writes nothing.
      operationId: POST:mcp.SetPaidMediaCampaignConversionGoalsAPI
      parameters:
        - allowEmptyValue: true
          explode: false
          in: path
          name: externalID
          required: true
          schema:
            type: string
          style: simple
      requestBody:
        content:
          application/json:
            schema:
              properties:
                conversion_action_ids:
                  items:
                    type: string
                    pattern: ^\d+$
                  type: array
                  minItems: 1
                customer_id:
                  type: string
              type: object
              required:
                - conversion_action_ids
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  approval_request_id:
                    type: string
                  campaign_id:
                    type: string
                  conversion_action_ids:
                    items:
                      type: string
                    type: array
                  conversion_goal:
                    description: >
                      present goal on a no-write ready): goal\_resource\_name,
                      conversion\_actions, reused\_existing\_goal,
                      inherited\_goals\_disabled.
                    title: >
                      ConversionGoal is the goal that exists after the call (or
                      the already-
                    type: object
                  customer_id:
                    type: string
                  goal_config_level:
                    type: string
                  status:
                    description: >
                      requested set (no write) or a standing policy approved the
                      action and it executed; "pending\_approval" when a human
                      decision is now pending.
                    title: >
                      Status is "ready" when the campaign's custom goal already
                      equals the
                    type: string
                    enum:
                      - ready
                      - pending_approval
                type: object
                required:
                  - status
                  - customer_id
                  - campaign_id
                  - conversion_action_ids
          description: Campaign conversion-goal scope or pending approval
        default:
          $ref: '#/components/responses/APIError'
components:
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````

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