Skip to main content
POST
/
brands
/
{brand_id}
/
campaigns
/
{campaign_id}
/
ads
/
search
Search campaign ads
curl --request POST \
  --url https://library-backend.dashsocial.com/brands/{brand_id}/campaigns/{campaign_id}/ads/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "limit": 100,
  "offset": 0,
  "sort": null,
  "source_campaign_ids": []
}
'
{
  "data": [
    {
      "ad_name": "<string>",
      "ad_status": "<string>",
      "media": [
        {
          "image_url": "<string>",
          "post_type": "<string>",
          "duration": 123
        }
      ],
      "metrics": {},
      "source_ad_account_id": "<string>",
      "source_ad_id": "<string>",
      "source_campaign_id": "<string>"
    }
  ],
  "paging": {
    "count": 123,
    "next": "<string>",
    "previous": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://developer.dashsocial.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

brand_id
integer<int32>
required

The Dash Social assigned ID of the brand.

campaign_id
integer
required

The ID of the campaign object.

Required range: x >= 0

Body

application/json
source
enum<string>
required

Source specifies which ads platform to return ads for.

Available options:
META_ADS,
TIKTOK_ADS
limit
integer
default:100

The maximum number of ads to return.

Required range: 0 <= x <= 100
offset
integer
default:0

The offset of the first ad returned.

Required range: x >= 0
sort
string | null

The metric to sort the results by.

source_campaign_ids
string[]

Filter the results by ad campaign ID.

Response

OK

data
object[]
paging
object