---
title: "Create Campaign Ads Batch"
method: POST
path: "/ad-campaigns/{campaign_id}/ads/batch"
tags: ["Ad Campaigns"]
---

# Create Campaign Ads Batch

`POST /ad-campaigns/{campaign_id}/ads/batch`

## Request

- Base URL: `https://be.graph8.com/api/v1`
- URL: `https://be.graph8.com/api/v1/ad-campaigns/{campaign_id}/ads/batch`
- Auth: HTTP bearer

Add several ads at once.

Returns ``status="partial"`` when any individual ad failed, with per-ad
outcomes in ``results``. Inspect those rather than treating a 200 as total
success — one creative rejected on policy does not stop its siblings.

## Path parameters

- `campaign_id` integer, required: Ad campaign ID

## Headers

- `Authorization` string, nullable
- `X-Target-Org-Id` string, nullable

## Request body

- AdBatchCreateRequest: Add several ads at once — "launch these four creatives as four ads". Partial success is expected: one creative rejected on policy does not stop the others, and the response reports each outcome separately.
  - `ads` AdCreateRequest[], required
    - `name` string, nullable
    - `headline` string, nullable
    - `primary_text` string, nullable
    - `description` string, nullable
    - `cta` string, nullable
    - `destination_url` string, nullable
    - `creative_image_url` string, nullable
    - `creative_image_url_square` string, nullable
    - `creative_image_url_portrait` string, nullable
    - `logo_image_url` string, nullable
    - `copy_assets` object, nullable
    - `source_ad_creative_id` string, nullable

## Response `200`

Successful Response

- ApiResponseAdBatchCreateResponse
  - `data` AdBatchCreateResponse, required
    - `campaign_id` integer, required
    - `platform` string, nullable
    - `requested` integer, required
    - `succeeded` integer, required
    - `failed` integer, required
    - `status` string, required: ok | partial — never render success off a 200 alone
    - `results` AdBatchResultItem[], required
      - `index` integer, required
      - `status` string, required
      - `ad` AdResponse: One ad inside a campaign — a creative slot. ``id`` is graph8's, and it is stable: editing an ad almost always mints a new platform ad (LinkedIn creatives are immutable, and on Google only Search/RSA is mutable in place), but the slot and its measurement history survive that. Address an ad by this id, never by ``platform_ad_id``.
        - `id` integer, nullable: graph8 ad id, stable across creative replacements. Null only for a campaign launched before per-ad control, until its first read.
        - `campaign_id` integer, required
        - `slot_index` integer, required
        - `name` string, nullable
        - `status` string, required: draft | launching | active | paused | archived | failed
        - `headline` string, nullable
        - `primary_text` string, nullable
        - `description` string, nullable
        - `cta` string, nullable
        - `destination_url` string, nullable
        - `creative_image_url` string, nullable
        - `creative_image_url_square` string, nullable
        - `creative_image_url_portrait` string, nullable
        - `logo_image_url` string, nullable
        - `copy_assets` object, nullable: Multi-asset copy, e.g. {rsa_headlines: [...], rsa_descriptions: [...]}
        - `source_ad_creative_id` string, nullable: The Studio creative this ad was built from, when it came from Studio
        - `platform_ad_id` string, nullable: Current platform handle. Changes when the creative is replaced.
        - `approval_nuance` string, nullable
        - `policy_topics` object[], nullable
        - `error_message` string, nullable
        - `launched_at` string, nullable
        - `created_at` string, nullable
      - `error` string, nullable
  - `pagination` PaginationMeta
    - `page` integer, required: Current page number (1-indexed)
    - `limit` integer, required: Items per page
    - `total` integer, required: Total number of items
    - `has_next` boolean, required: Whether there are more pages
    - `next_cursor` string, nullable: Opaque cursor for the next page; null when there are no more items. Pass it back as the `cursor` query param to fetch the following page without computing page numbers.
    - `total_available` integer, nullable: Search endpoints only: how many records really match, when known. Can be larger than `total`, which is capped at the 10,000 results that can be paged. For company search this is a distinct-company estimate. Null when unknown; absent outside search.
    - `total_is_lower_bound` boolean, nullable: Search endpoints only: true when more records match than `total` shows (the result set is larger than the 10,000 results that can be paged). Absent outside search.
    - `notes` string[], nullable: Search endpoints only: plain-language notes about the result, e.g. that more records match than can be paged, or that a reversed `between` range was put in order.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/graph8/apis/graph8-developer-api.md) · [All operations](https://skmtc.dev/graph8/apis/graph8-developer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/graph8/apis/graph8-developer-api/revisions/2e7cfa0ca921?raw)
