List audiences
GET
/api/v1/ads/audiences
const url = 'https://digize.com/api/v1/ads/audiences';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/ads/audiences \ --header 'x-api-key: <x-api-key>'Every audience, the newest first: the CRM segments and lookalikes kept in sync with the ad platforms, with how each platform matched it.
Needs the ads:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
name
required
string
source
required
string
rule
required
Who’s in it, in plain words.
string
size
required
CRM contacts it holds, or for a lookalike, about how many the platform says it reaches.
number
platforms
required
Array<object>
object
platform
required
string
matchRate
required
The share of its people the platform matched, from 0 to 1; null until it says, and for lookalikes.
number | null
state
required
string
error
required
string | null
status
required
string
error
required
Why the last sync failed somewhere.
string | null
createdAt
required
string format: date-time
campaigns
required
The campaigns that target it.
Array<string>
Example
{ "data": [ { "source": "segment", "platforms": [ { "platform": "google", "state": "pending" } ], "status": "synced" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}