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

# Read saved Ads campaign groups

> Requires ads:read. Every target is organization/store scoped.

Partial failures are explicit in data.success and ordered results.

Shopee and Lazada support only the formats returned by accounts. Other marketplaces report a concrete limitation. External campaign IDs differ from saved campaign group UUIDs.



## OpenAPI

````yaml /openapi.json post /api/v1/ads/campaigns/read
openapi: 3.1.0
info:
  title: OmniCommerce API
  version: 1.0.0
  license:
    name: Proprietary
    url: https://omnicommerce.sg/terms
  description: >-
    OmniCommerce API surface for agents and developer integrations. Includes
    public endpoints (merchant discovery, product search, compare, catalog, ACO
    retrieval) and authenticated endpoints (product management via API key
    Bearer tokens).
servers:
  - url: https://omnicommerce.ai
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags:
  - name: ads
    description: ads
    x-group: Ads
  - name: agentic-checkout
    description: Merchant-fulfilled agentic checkout
    x-group: Agentic Checkout
  - name: agents
    description: agents
    x-group: Agents
  - name: analytics
    description: Sales performance across marketplaces
    x-group: Analytics
  - name: aops
    description: Agent operating procedures
    x-group: AOPs
  - name: bots
    description: bots
    x-group: Bots
  - name: branding
    description: branding
    x-group: Branding
  - name: campaigns
    description: Campaign briefs, offer windows, and marketplace runs
    x-group: Campaigns
  - name: catalog
    description: catalog
    x-group: Catalog
  - name: commerce
    description: commerce
    x-group: Commerce
  - name: developer-platform
    description: Authenticated developer platform APIs
    x-group: Developer Platform
  - name: documents
    description: Knowledge base document uploads
    x-group: Knowledge Base
  - name: email
    description: email
    x-group: Email
  - name: follow-ups
    description: follow-ups
    x-group: Follow Ups
  - name: inventory
    description: Inventory quantities, planning signals, and marketplace listing absence
    x-group: Inventory
  - name: looks
    description: AI-styled product looks
    x-group: Looks
  - name: oauth
    description: OAuth token endpoints
    x-group: OAuth
  - name: orders
    description: Workspace and agentic orders
    x-group: Orders
  - name: organizations
    description: Organization management
    x-group: Organizations
  - name: price-books
    description: Marketplace list-price markup rules
    x-group: Price Books
  - name: products
    description: Product CRUD, bulk import, enrichment, publish, and delist
    x-group: Products
  - name: promotions
    description: Central promotions and marketplace sync
    x-group: Promotions
  - name: public-agent
    description: Public agent discovery and catalog APIs
    x-group: Public Agent
  - name: returns
    description: returns
    x-group: Returns
  - name: review-queue
    description: review-queue
    x-group: Review Queue
  - name: reviews
    description: Marketplace product reviews and seller replies
    x-group: Reviews
  - name: scripts
    description: scripts
    x-group: Scripts
  - name: settlements
    description: settlements
    x-group: Settlements
  - name: ucp
    description: Universal Commerce Protocol
    x-group: UCP
  - name: wiki
    description: wiki
    x-group: Wiki
paths:
  /api/v1/ads/campaigns/read:
    post:
      tags:
        - ads
      summary: Read saved Ads campaign groups
      description: >-
        Requires ads:read. Every target is organization/store scoped.


        Partial failures are explicit in data.success and ordered results.


        Shopee and Lazada support only the formats returned by accounts. Other
        marketplaces report a concrete limitation. External campaign IDs differ
        from saved campaign group UUIDs.
      operationId: post_v1_ads_campaigns_read
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                campaignIds:
                  minItems: 1
                  maxItems: 50
                  type: array
                  items:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                offset:
                  default: 0
                  type: integer
                  minimum: 0
                  maximum: 1000000
                organizationId:
                  type: string
                  description: >-
                    Required for cookie sessions; bearer credentials bind their
                    organization.
              required:
                - campaignIds
              additionalProperties: false
      responses:
        '200':
          description: Operation result.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  apiVersion:
                    type: string
                    const: developer_v1
                  operationId:
                    type: string
                  status:
                    type: string
                    enum:
                      - accepted
                      - completed
                      - failed
                  warnings:
                    type: array
                    items:
                      type: string
                  recommendations:
                    type: array
                    items:
                      type: string
                  links:
                    type: object
                    propertyNames:
                      type: string
                    additionalProperties:
                      type: string
                  data:
                    type: object
                    properties:
                      success:
                        type: boolean
                      succeededCount:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      failedCount:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      results:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            success:
                              type: boolean
                            error:
                              type: string
                            data:
                              type: object
                              properties:
                                id:
                                  type: string
                                name:
                                  type: string
                                specification:
                                  type: object
                                  properties:
                                    name:
                                      type: string
                                      minLength: 1
                                      maxLength: 150
                                    objective:
                                      type: string
                                      const: product_sales
                                    schedule:
                                      type: object
                                      properties:
                                        from:
                                          type: string
                                          format: date
                                          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])))$
                                        to:
                                          type: string
                                          format: date
                                          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])))$
                                      required:
                                        - from
                                        - to
                                      additionalProperties: false
                                    productIds:
                                      maxItems: 5000
                                      type: array
                                      items:
                                        type: string
                                        minLength: 1
                                        maxLength: 150
                                    deployments:
                                      minItems: 1
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          store:
                                            type: object
                                            properties:
                                              marketplace:
                                                type: string
                                                enum:
                                                  - shopee
                                                  - lazada
                                                  - tiktok
                                                  - shopify
                                                  - whatsapp
                                                  - zalora
                                                  - amazon
                                                  - ebay
                                              country:
                                                type: string
                                                minLength: 1
                                                maxLength: 75
                                              storeId:
                                                type: string
                                                minLength: 1
                                                maxLength: 150
                                            required:
                                              - marketplace
                                              - country
                                              - storeId
                                            additionalProperties: false
                                          bidding:
                                            default:
                                              strategy: auto
                                            oneOf:
                                              - type: object
                                                properties:
                                                  strategy:
                                                    type: string
                                                    const: auto
                                                required:
                                                  - strategy
                                                additionalProperties: false
                                              - type: object
                                                properties:
                                                  strategy:
                                                    type: string
                                                    const: target_roas
                                                  targetRoas:
                                                    type: number
                                                    exclusiveMinimum: 0
                                                    maximum: 1000
                                                required:
                                                  - strategy
                                                  - targetRoas
                                                additionalProperties: false
                                              - type: object
                                                properties:
                                                  strategy:
                                                    type: string
                                                    const: max_cpc
                                                  maxCpc:
                                                    type: string
                                                    pattern: ^(?:0|[1-9]\d{0,8})(?:\.\d{1,3})?$
                                                required:
                                                  - strategy
                                                  - maxCpc
                                                additionalProperties: false
                                              - type: object
                                                properties:
                                                  strategy:
                                                    type: string
                                                    const: manual_keywords
                                                  keywords:
                                                    minItems: 1
                                                    maxItems: 20
                                                    type: array
                                                    items:
                                                      type: object
                                                      properties:
                                                        keyword:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 100
                                                        matchType:
                                                          type: string
                                                          enum:
                                                            - exact
                                                            - broad
                                                        bid:
                                                          type: string
                                                          pattern: ^(?:0|[1-9]\d{0,8})(?:\.\d{1,3})?$
                                                      required:
                                                        - keyword
                                                        - matchType
                                                        - bid
                                                      additionalProperties: false
                                                required:
                                                  - strategy
                                                  - keywords
                                                additionalProperties: false
                                          adFormat:
                                            type: string
                                            minLength: 1
                                            maxLength: 100
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          dailyBudget:
                                            type: string
                                            pattern: ^(?:0|[1-9]\d{0,8})(?:\.\d{1,3})?$
                                          dailyLimit:
                                            type: string
                                            pattern: ^(?:0|[1-9]\d{0,8})(?:\.\d{1,3})?$
                                          totalLimit:
                                            type: string
                                            pattern: ^(?:0|[1-9]\d{0,8})(?:\.\d{1,3})?$
                                        required:
                                          - store
                                          - adFormat
                                          - currency
                                          - dailyBudget
                                          - dailyLimit
                                          - totalLimit
                                        additionalProperties: false
                                  required:
                                    - name
                                    - objective
                                    - schedule
                                    - productIds
                                    - deployments
                                  additionalProperties: false
                                plans:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                      organization_id:
                                        type: string
                                      name:
                                        type:
                                          - string
                                          - 'null'
                                      campaign_id:
                                        type:
                                          - string
                                          - 'null'
                                      ad_format:
                                        type:
                                          - string
                                          - 'null'
                                      bidding:
                                        anyOf:
                                          - oneOf:
                                              - type: object
                                                properties:
                                                  strategy:
                                                    type: string
                                                    const: auto
                                                required:
                                                  - strategy
                                                additionalProperties: false
                                              - type: object
                                                properties:
                                                  strategy:
                                                    type: string
                                                    const: target_roas
                                                  targetRoas:
                                                    type: number
                                                    exclusiveMinimum: 0
                                                    maximum: 1000
                                                required:
                                                  - strategy
                                                  - targetRoas
                                                additionalProperties: false
                                              - type: object
                                                properties:
                                                  strategy:
                                                    type: string
                                                    const: max_cpc
                                                  maxCpc:
                                                    type: string
                                                    pattern: ^(?:0|[1-9]\d{0,8})(?:\.\d{1,3})?$
                                                required:
                                                  - strategy
                                                  - maxCpc
                                                additionalProperties: false
                                              - type: object
                                                properties:
                                                  strategy:
                                                    type: string
                                                    const: manual_keywords
                                                  keywords:
                                                    minItems: 1
                                                    maxItems: 20
                                                    type: array
                                                    items:
                                                      type: object
                                                      properties:
                                                        keyword:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 100
                                                        matchType:
                                                          type: string
                                                          enum:
                                                            - exact
                                                            - broad
                                                        bid:
                                                          type: string
                                                          pattern: ^(?:0|[1-9]\d{0,8})(?:\.\d{1,3})?$
                                                      required:
                                                        - keyword
                                                        - matchType
                                                        - bid
                                                      additionalProperties: false
                                                required:
                                                  - strategy
                                                  - keywords
                                                additionalProperties: false
                                          - type: 'null'
                                      marketplace:
                                        type: string
                                        enum:
                                          - shopee
                                          - lazada
                                          - tiktok
                                          - shopify
                                          - whatsapp
                                          - zalora
                                          - amazon
                                          - ebay
                                      country:
                                        type: string
                                      store_id:
                                        type: string
                                      currency:
                                        type: string
                                      starts_on:
                                        type: string
                                      ends_on:
                                        type: string
                                      daily_limit_millis:
                                        type: string
                                      total_limit_millis:
                                        type: string
                                      status:
                                        type: string
                                        enum:
                                          - draft
                                          - approved
                                          - stopping
                                          - stopped
                                      approved_by:
                                        type:
                                          - string
                                          - 'null'
                                      stopped_by:
                                        type:
                                          - string
                                          - 'null'
                                      min_roas:
                                        type:
                                          - string
                                          - 'null'
                                      min_evaluation_spend_millis:
                                        type:
                                          - string
                                          - 'null'
                                      target_count:
                                        type: number
                                    required:
                                      - id
                                      - organization_id
                                      - name
                                      - campaign_id
                                      - ad_format
                                      - bidding
                                      - marketplace
                                      - country
                                      - store_id
                                      - currency
                                      - starts_on
                                      - ends_on
                                      - daily_limit_millis
                                      - total_limit_millis
                                      - status
                                      - approved_by
                                      - stopped_by
                                      - min_roas
                                      - min_evaluation_spend_millis
                                      - target_count
                                planIds:
                                  type: array
                                  items:
                                    type: string
                                statusCounts:
                                  type: object
                                  propertyNames:
                                    type: string
                                  additionalProperties:
                                    type: number
                                totalStores:
                                  type: number
                                nextOffset:
                                  anyOf:
                                    - type: integer
                                      minimum: -9007199254740991
                                      maximum: 9007199254740991
                                    - type: 'null'
                              required:
                                - id
                                - name
                                - specification
                                - plans
                                - planIds
                                - statusCounts
                                - totalStores
                                - nextOffset
                          required:
                            - id
                            - success
                      campaignIds:
                        type: array
                        items:
                          type: string
                    required:
                      - success
                      - succeededCount
                      - failedCount
                      - results
                      - campaignIds
                required:
                  - ok
                  - apiVersion
                  - operationId
                  - status
                  - warnings
                  - recommendations
                  - links
                  - data
        '400':
          description: Invalid request.
        '401':
          description: Missing credentials.
        '403':
          description: Missing Ads scope, capability or store grant.
        '409':
          description: Provider or saved budget/schedule validation rejected the operation.
        '503':
          description: Operation unavailable. Re-read saved state before retrying.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Bearer API key for server-to-server access. Session auth is also
        supported in first-party UI flows.

````

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