get Audiences

GET {{baseUrl}}/2022-04/audiences?advertiser-id=<int32>

Get a list of all the audiences for the user or for the given advertiser_id

Request Params

KeyDatatypeRequiredDescription
advertiser-idstringThe advertiser id to get all the audiences for.
Mandatory for internal users. For external users,
       if you don&#39;t provide it, we will take into account the advertisers from your portfolio |

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:[{&quot;type&quot;:&quot;AudienceContactlist&quot;,&quot;id&quot;:&quot;1&quot;,&quot;attributes&quot;:{&quot;advertiserId&quot;:&quot;18&quot;,&quot;name&quot;:&quot;Audience name&quot;,&quot;description&quot;:&quot;Audience&quot;,&quot;created&quot;:&quot;2018-12-10T10:00:50.0000000+00:00&quot;,&quot;updated&quot;:&quot;2018-12-10T10:17:15.0000000+00:00&quot;,&quot;nbLines&quot;:100,&quot;nbLinesEmail&quot;:10,&quot;nbMatchesEmail&quot;:10}}],&quot;errors&quot;:[],&quot;warnings&quot;:[{&quot;traceId&quot;:&quot;56ed4096-f96a-4944-8881-05468efe0ec9&quot;,&quot;type&quot;:&quot;deprecation&quot;,&quot;code&quot;:&quot;deprecated-field&quot;,&quot;instance&quot;:&quot;/audiences/314195&quot;,&quot;title&quot;:&quot;&#39;nbValidIds&#39; is deprecated&quot;,&quot;detail&quot;:&quot;The field &#39;nbValidIds&#39; is deprecated please use &#39;nbValidIdentifiers&quot;}]}