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

# Auto-select products

> Automatically select products for a performance campaign using a 3-tier strategy (scoring → measurability → CPM heuristic). Campaign must be in DRAFT status. Supports iterative refinement via ADCP-style refine directives — review results then re-call with include/omit/more_like_this to adjust selections. Replaces all previously selected products.



## OpenAPI

````yaml /v2/buyer-api-v2.yaml post /campaigns/{campaignId}/auto-select-products
openapi: 3.0.0
info:
  title: Scope3 Buyer API
  version: 2.0.0
  description: |-
    REST API for advertisers to manage advertisers, campaigns, and reporting.

    ## Authentication

    All endpoints require a Bearer token in the Authorization header:
    ```
    Authorization: Bearer your-api-key
    ```

    ## Base URL

    `https://api.interchange.io/api/v2/buyer`

    ## For AI Agents

    AI agents can use the MCP endpoint at `/mcp/v2/buyer` with three tools:
    - `initialize`: Start an MCP session
    - `api_call`: Make REST API calls
    - `ask_about_capability`: Learn about API features
servers:
  - url: https://api.interchange.io/api/v2/buyer
    description: Production server
security: []
tags:
  - name: Signup
    description: Request reviewed access to Interchange
  - name: Account
    description: Account management, service tokens, and preferences
  - name: Asks
    description: >-
      What you are waiting on Scope3 for — support, product, and supply asks in
      one list
  - name: Advertisers
    description: Manage advertisers
  - name: Product Discovery
    description: Discover and select products
  - name: Campaigns
    description: Manage advertising campaigns
  - name: Creatives
    description: Build, manage, and sync campaign creatives via AdCP Creative Protocol
  - name: Reporting
    description: Access performance metrics
  - name: Event Sources
    description: >-
      Manage event source configurations and log conversion/marketing events for
      attribution
  - name: Property Lists
    description: Validate property lists against AAO registry
  - name: Sales Agents
    description: View and connect sales agents
  - name: Measurement
    description: Measurement sources, records, context, and freshness
  - name: Syndication
    description: Syndicate resources to ADCP agents
  - name: Tasks
    description: Track async operation status
  - name: Buyer Billing
    description: >-
      Consolidated invoicing for buyers — invoices and pending invoice items
      issued by Scope3 across the buyer customer.
  - name: MCP
    description: Model Context Protocol endpoints for AI agents
paths:
  /campaigns/{campaignId}/auto-select-products:
    post:
      tags:
        - Campaigns
      summary: Auto-select products
      description: >-
        Automatically select products for a performance campaign using a 3-tier
        strategy (scoring → measurability → CPM heuristic). Campaign must be in
        DRAFT status. Supports iterative refinement via ADCP-style refine
        directives — review results then re-call with
        include/omit/more_like_this to adjust selections. Replaces all
        previously selected products.
      operationId: autoSelectProducts
      parameters:
        - in: path
          name: id
          schema:
            description: Unique identifier for the campaign
            example: cmp_987654321
            type: string
            minLength: 1
          required: true
          description: Unique identifier for the campaign
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoSelectProductsRequest'
      responses:
        '200':
          description: Auto-select products
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoSelectProductsResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    AutoSelectProductsRequest:
      description: >-
        Optional refinement parameters for iterative auto-select product
        selection. Based on ADCP refine spec.
      type: object
      properties:
        refine:
          description: >-
            Array of refinement directives from a previous auto-select response.
            Supports request-scoped direction and product-scoped
            include/omit/more_like_this actions.
          minItems: 1
          type: array
          items:
            $ref: '#/components/schemas/RefinementItem'
        maxProducts:
          description: Maximum number of products to select
          example: 5
          type: integer
          maximum: 9007199254740991
          minimum: 1
        minBudgetPerProduct:
          description: Minimum budget to allocate per product
          example: 500
          type: number
          minimum: 0
          exclusiveMinimum: true
      additionalProperties: false
    AutoSelectProductsResponse:
      description: Response from auto-selecting products for a performance campaign
      type: object
      properties:
        campaignId:
          description: Campaign ID
          type: string
        discoveryId:
          description: Discovery session ID containing the selected products
          type: string
        selectedProducts:
          description: Products selected and added to the discovery session
          type: array
          items:
            type: object
            properties:
              productId:
                type: string
              name:
                type: string
              salesAgentId:
                type: string
              groupId:
                type: string
              groupName:
                type: string
              cpm:
                type: number
              budget:
                type: number
              pricingOptionId:
                type: string
            required:
              - productId
              - name
              - salesAgentId
              - groupId
              - groupName
              - budget
            additionalProperties: false
        budgetContext:
          description: Budget allocation summary
          type: object
          properties:
            campaignBudget:
              type: number
            totalAllocated:
              type: number
            remainingBudget:
              type: number
            currency:
              type: string
          required:
            - campaignBudget
            - totalAllocated
            - remainingBudget
            - currency
          additionalProperties: false
        productCount:
          description: Total number of products selected
          type: integer
          minimum: 0
          maximum: 9007199254740991
        previouslySelectedCount:
          description: >-
            Number of previously selected products that were replaced by
            auto-select
          type: integer
          minimum: 0
          maximum: 9007199254740991
      required:
        - campaignId
        - discoveryId
        - selectedProducts
        - budgetContext
        - productCount
      additionalProperties: false
    ErrorResponse:
      description: Standard error response
      type: object
      properties:
        data:
          type: string
          nullable: true
          enum:
            - null
        error:
          $ref: '#/components/schemas/ApiError'
      required:
        - data
        - error
      additionalProperties: false
    RefinementItem:
      description: A single refinement directive (request-scoped or product-scoped)
      oneOf:
        - description: 'Request-scoped refinement: direction for the overall selection'
          type: object
          properties:
            scope:
              description: Applies direction to the overall selection
              type: string
              enum:
                - request
            ask:
              description: >-
                Free-text direction for the overall selection, e.g. "more video
                options and less display"
              type: string
              minLength: 1
          required:
            - scope
            - ask
        - description: 'Product-scoped refinement: target a specific product'
          type: object
          properties:
            scope:
              description: Targets a specific product from a prior auto-select response
              type: string
              enum:
                - product
            id:
              description: Product ID from a prior auto-select response
              type: string
              minLength: 1
            action:
              description: >-
                include: keep this product; omit: exclude it; moreLikeThis: find
                similar products
              type: string
              enum:
                - include
                - omit
                - moreLikeThis
            ask:
              description: Optional direction when action is include or more_like_this
              type: string
              minLength: 1
          required:
            - scope
            - id
            - action
      type: object
    ApiError:
      description: Structured error object
      type: object
      properties:
        code:
          description: Machine-readable error code
          type: string
        message:
          description: Human-readable error message
          type: string
        field:
          description: Field path associated with the error
          type: string
        details:
          description: Additional error context
          type: object
          additionalProperties: {}
      required:
        - code
        - message
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or access token

````