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

# Update campaign tracker additions and overrides

> Replace campaign-local trackers and/or enable-disable decisions for inherited advertiser tracker IDs. Advertiser defaults remain referenced rather than copied, so later advertiser updates flow through automatically.



## OpenAPI

````yaml /v2/buyer-api-v2.yaml put /campaigns/{campaignId}/tracking-config
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}/tracking-config:
    put:
      tags:
        - Campaigns
      summary: Update campaign tracker additions and overrides
      description: >-
        Replace campaign-local trackers and/or enable-disable decisions for
        inherited advertiser tracker IDs. Advertiser defaults remain referenced
        rather than copied, so later advertiser updates flow through
        automatically.
      operationId: upsertCampaignTrackingConfig
      parameters:
        - in: path
          name: campaignId
          schema:
            description: Unique public campaign identifier
            example: cmp_987654321
            type: string
            minLength: 1
          required: true
          description: Unique public campaign identifier
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpsertCampaignTrackingConfigInput'
      responses:
        '200':
          description: Update campaign tracker additions and overrides
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignTrackingConfigResponse'
        '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:
    UpsertCampaignTrackingConfigInput:
      description: Campaign-local tracker additions and overrides of advertiser defaults
      type: object
      properties:
        expected_revision:
          description: Last-read campaign_revision. Rejects concurrent tracking updates.
          type: integer
          minimum: 0
          maximum: 9007199254740991
        custom_tracker_urls:
          description: Campaign-local trackers added after inherited advertiser trackers
          maxItems: 10
          type: array
          items:
            $ref: '#/components/schemas/CustomTrackerUrl'
        tracker_overrides:
          maxItems: 50
          type: array
          items:
            $ref: '#/components/schemas/TrackerOverride'
    CampaignTrackingConfigResponse:
      description: >-
        Response containing campaign-local tracker settings and the effective
        inherited set
      type: object
      properties:
        data:
          $ref: '#/components/schemas/CampaignTrackingConfigOutput'
      required:
        - data
      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
    CustomTrackerUrl:
      description: A third-party tracking pixel URL configuration
      type: object
      properties:
        tracker_id:
          description: >-
            Stable tracker identifier. Omit when creating; return it on later
            updates to preserve identity.
          example: trk_0123456789abcdef01234567
          type: string
          pattern: ^trk_[a-f0-9]{24}$
        name:
          description: Display name for the tracker
          example: DoubleVerify Impression
          type: string
          minLength: 1
          maxLength: 100
        url:
          description: The third-party tracker URL
          example: https://tracker.doubleverify.com/pixel?id=123
          type: string
          format: uri
        tracker_type:
          description: Whether this tracker fires on impressions, clicks, or custom events
          type: string
          enum:
            - IMPRESSION
            - CLICK
            - CUSTOM
        custom_event_name:
          description: >-
            AdCP custom event name. Optional for V2 compatibility; required for
            publishable CUSTOM trackers and strict V3 writes.
          type: string
          minLength: 1
          maxLength: 100
        vendor_name:
          description: Human-readable measurement or tracking vendor name
          example: HappyDemics
          type: string
          minLength: 1
          maxLength: 100
        raw_url:
          description: >-
            Exact vendor URL before macro translation. Defaults to url for
            legacy inputs.
          type: string
          format: uri
        enabled:
          description: >-
            Default enabled state at this scope. Campaign overrides can
            specialize inherited advertiser trackers.
          type: boolean
        source_dialect:
          description: Macro dialect of the retained raw tracker input
          type: string
          enum:
            - adcp
            - happydemics
            - gam
            - vast
            - custom
            - mixed
            - unknown
        compiler_version:
          description: Version of the raw-to-AdCP macro compiler
          type: string
          minLength: 1
          maxLength: 50
        mapping_artifact:
          description: Auditable macro mapping diagnostics and documentation provenance
          type: object
          additionalProperties: {}
        created_at:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        updated_at:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
      required:
        - name
        - url
        - tracker_type
    TrackerOverride:
      description: Campaign enable/disable decision for one inherited advertiser tracker
      type: object
      properties:
        tracker_id:
          description: Stable third-party tracker resource identifier
          example: trk_0123456789abcdef01234567
          type: string
          pattern: ^trk_[a-f0-9]{24}$
        enabled:
          type: boolean
      required:
        - tracker_id
        - enabled
    CampaignTrackingConfigOutput:
      description: >-
        Campaign tracker configuration plus the fully resolved inherited tracker
        set
      type: object
      properties:
        campaign_id:
          type: string
        advertiser_id:
          type: string
        custom_tracker_urls:
          type: array
          items:
            $ref: '#/components/schemas/TrackerResource'
        tracker_overrides:
          type: array
          items:
            $ref: '#/components/schemas/TrackerOverrideOutput'
        effective_trackers:
          type: array
          items:
            $ref: '#/components/schemas/EffectiveTracker'
        orphaned_override_ids:
          type: array
          items:
            description: Stable third-party tracker resource identifier
            example: trk_0123456789abcdef01234567
            type: string
            pattern: ^trk_[a-f0-9]{24}$
        advertiser_revision:
          type: integer
          minimum: 0
          maximum: 9007199254740991
        campaign_revision:
          type: integer
          minimum: 0
          maximum: 9007199254740991
        effective_revision:
          type: string
        created_at:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        updated_at:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
      required:
        - campaign_id
        - advertiser_id
        - custom_tracker_urls
        - tracker_overrides
        - effective_trackers
        - orphaned_override_ids
        - advertiser_revision
        - campaign_revision
        - effective_revision
        - created_at
        - updated_at
      additionalProperties: false
    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
    TrackerResource:
      description: >-
        Persisted third-party tracker with stable identity, raw vendor input,
        canonical URL, and server-owned timestamps
      type: object
      properties:
        tracker_id:
          description: Stable third-party tracker resource identifier
          example: trk_0123456789abcdef01234567
          type: string
          pattern: ^trk_[a-f0-9]{24}$
        name:
          description: Display name for the tracker
          example: DoubleVerify Impression
          type: string
          minLength: 1
          maxLength: 100
        url:
          description: The third-party tracker URL
          example: https://tracker.doubleverify.com/pixel?id=123
          type: string
          format: uri
        tracker_type:
          description: Whether this tracker fires on impressions, clicks, or custom events
          type: string
          enum:
            - IMPRESSION
            - CLICK
            - CUSTOM
        custom_event_name:
          description: >-
            AdCP custom event name. Optional for V2 compatibility; required for
            publishable CUSTOM trackers and strict V3 writes.
          type: string
          minLength: 1
          maxLength: 100
        vendor_name:
          description: Human-readable measurement or tracking vendor name
          example: HappyDemics
          type: string
          minLength: 1
          maxLength: 100
        raw_url:
          type: string
          format: uri
        enabled:
          type: boolean
        source_dialect:
          description: Macro dialect of the retained raw tracker input
          type: string
          enum:
            - adcp
            - happydemics
            - gam
            - vast
            - custom
            - mixed
            - unknown
        compiler_version:
          description: Version of the raw-to-AdCP macro compiler
          type: string
          minLength: 1
          maxLength: 50
        mapping_artifact:
          description: Auditable macro mapping diagnostics and documentation provenance
          type: object
          additionalProperties: {}
        created_at:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        updated_at:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
      required:
        - tracker_id
        - name
        - url
        - tracker_type
        - raw_url
        - enabled
        - created_at
        - updated_at
      additionalProperties: false
    TrackerOverrideOutput:
      description: Campaign enable/disable decision for one inherited advertiser tracker
      type: object
      properties:
        tracker_id:
          description: Stable third-party tracker resource identifier
          example: trk_0123456789abcdef01234567
          type: string
          pattern: ^trk_[a-f0-9]{24}$
        enabled:
          type: boolean
      required:
        - tracker_id
        - enabled
      additionalProperties: false
    EffectiveTracker:
      description: >-
        Resolved tracker with inheritance source and the reason for its
        effective state
      type: object
      properties:
        tracker_id:
          description: Stable third-party tracker resource identifier
          example: trk_0123456789abcdef01234567
          type: string
          pattern: ^trk_[a-f0-9]{24}$
        name:
          description: Display name for the tracker
          example: DoubleVerify Impression
          type: string
          minLength: 1
          maxLength: 100
        url:
          description: The third-party tracker URL
          example: https://tracker.doubleverify.com/pixel?id=123
          type: string
          format: uri
        tracker_type:
          description: Whether this tracker fires on impressions, clicks, or custom events
          type: string
          enum:
            - IMPRESSION
            - CLICK
            - CUSTOM
        custom_event_name:
          description: >-
            AdCP custom event name. Optional for V2 compatibility; required for
            publishable CUSTOM trackers and strict V3 writes.
          type: string
          minLength: 1
          maxLength: 100
        vendor_name:
          description: Human-readable measurement or tracking vendor name
          example: HappyDemics
          type: string
          minLength: 1
          maxLength: 100
        raw_url:
          type: string
          format: uri
        enabled:
          type: boolean
        source_dialect:
          description: Macro dialect of the retained raw tracker input
          type: string
          enum:
            - adcp
            - happydemics
            - gam
            - vast
            - custom
            - mixed
            - unknown
        compiler_version:
          description: Version of the raw-to-AdCP macro compiler
          type: string
          minLength: 1
          maxLength: 50
        mapping_artifact:
          description: Auditable macro mapping diagnostics and documentation provenance
          type: object
          additionalProperties: {}
        created_at:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        updated_at:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        source_scope:
          type: string
          enum:
            - advertiser
            - campaign
            - creative
        inherited:
          type: boolean
        effective_enabled:
          type: boolean
        status_reason:
          type: string
          enum:
            - enabled
            - disabled_at_source
            - disabled_by_campaign_override
            - enabled_by_campaign_override
            - duplicate_shadowed_by_campaign
      required:
        - tracker_id
        - name
        - url
        - tracker_type
        - raw_url
        - enabled
        - created_at
        - updated_at
        - source_scope
        - inherited
        - effective_enabled
        - status_reason
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or access token

````