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

# SetPaidMediaAudienceModeAPI sets audience Observation or Targeting through


> the same approval policy and ownership checks as the native agent action. Observation preserves prospecting reach when audiences are subsequently linked.




## OpenAPI

````yaml /api/openapi.json post /v1/paid-media/campaigns/{externalID}/audience-mode
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-26'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/paid-media/campaigns/{externalID}/audience-mode:
    post:
      summary: >
        SetPaidMediaAudienceModeAPI sets audience Observation or Targeting
        through
      description: >
        the same approval policy and ownership checks as the native agent
        action. Observation preserves prospecting reach when audiences are
        subsequently linked.
      operationId: POST:mcp.SetPaidMediaAudienceModeAPI
      parameters:
        - allowEmptyValue: true
          explode: false
          in: path
          name: externalID
          required: true
          schema:
            type: string
          style: simple
      requestBody:
        content:
          application/json:
            schema:
              properties:
                adgroup_id:
                  type: string
                customer_id:
                  type: string
                mode:
                  type: string
                provider:
                  type: string
                reason:
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  action_display:
                    description: |
                      it appears on the approval card.
                    title: >
                      ActionDisplay is the human-readable description of the
                      gated action, as
                    type: string
                  approval_request_id:
                    description: >
                      "pending\_approval". Decide it via POST
                      /v1/approvals/{id}/decide or the activity feed; on
                      approval the action executes. Re-proposing the same change
                      dedupes onto this id.
                    title: >
                      ApprovalRequestID is the approval awaiting decision when
                      Status is
                    type: string
                  decline:
                    $ref: '#/components/schemas/types.DeclineHold'
                  result:
                    title: >
                      Result is the provider's response when Status is
                      "executed".
                    type: object
                  status:
                    description: >
                      action and the provider call was made, "pending\_approval"
                      when the action now awaits a human decision (202-style:
                      accepted, not performed), or "declined" when a person's
                      recent reasoned rejection of this same change holds and no
                      card was filed (see Decline).
                    title: >
                      Status is "executed" when a standing always-approve policy
                      covered the
                    type: string
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    types.DeclineHold:
      description: >
        said why, and nothing new has been said since. No card was filed; the
        proposer is told the decline so it can stop, or re-propose with a
        different reason when the facts have changed.
      properties:
        approval_request_id:
          format: uuid
          title: |
            ApprovalRequestID is the rejected request the hold stands on.
          type: string
        decided_at:
          format: date-time
          type: string
        decided_by_external_ref:
          type: string
        decided_by_user_id:
          description: >
            the calling product's own name for them when it sent one.
            Attribution only.
          format: uuid
          title: >
            DecidedByUserID is the Erdo account that declined;
            DecidedByExternalRef is
          type: string
        reason:
          title: |
            Reason is the decider's own words, verbatim.
          type: string
      title: >
        DeclineHold is the gate's answer when a human already declined this
        subject,
      type: object
  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.