Returns one audience by ID. The audience must belong to the member group in the path and must not be deleted; otherwise 404. Requires the audience_builder_management permission (read) for the member group. The migration that created the permission grants read, write, create and delete to the Super Admin, Internal Admin and Client Admin roles. The endpoint is only available when the is-audience-builder-enabled feature flag is on for the caller; otherwise it returns 404.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Returns one audience by its ID. The audience must belong to the member group in the path and must not have been deleted.
Callers need the audience builder permission (read) for the member group, which the Super Admin, Internal Admin and Client Admin roles have. The endpoint is only available when the audience builder feature is enabled for the caller.
Inputs
| Field | Type | Description | Required |
| memberGroupId | integer (path) | The member group id (provided by Koddi) | Yes |
| audienceId | integer (path) | The audience ID | Yes |
Response
The body is {"status": "success", "result": {...}} where result is the audience:
| Field | Type | Description |
| audience_id | integer | The audience ID. |
| member_group_id | integer | The member group that owns the audience. |
| audience_guid | string | The audience GUID (UUID generated when the audience is created). Once published, it is the value of the experience's Audience (user_segments) targeting option. |
| audience_name | string | The audience name. |
| audience_description | string | The audience description. Empty string when none was given. |
| experience_id | integer | The experience the audience belongs to. |
| experience_targeting_id | integer or null | The ID of the targeting dimension the audience was published into. Null until published. |
| experience_targeting_option_id | integer or null | The ID of the targeting option created when the audience was published. Null until published. |
| published | boolean | True once the audience has been published. |
| audience_criteria.action_count | integer | The number of actions the user must have, compared using action_comparison. |
| audience_criteria.action_comparison | string | One of >, >=, ==, <=, <. |
| audience_criteria.action_type | string | One of impression, click, conversion. |
| audience_criteria.lookback_window | integer | Lookback window in days (1 to 60). |
| audience_criteria.product_feed_attr | object or null | Optional product feed attribute filter; null when the audience has none. |
| audience_criteria.product_feed_attr.attribute_id | integer | The product feed attribute ID. |
| audience_criteria.product_feed_attr.attribute_value | string | The attribute value to match. |
| audience_count | integer or null | Number of users in the audience, written back from the Databricks job result. Null until a result is received. |
| ad_groups_targeting_count | integer or null | The number of active ad groups that target this audience. Null when the audience is not published. |
| status | string | inactive, pending or active. New audiences are inactive; publishing sets pending; the Databricks result then sets the reported status. |
| synced_with_databricks | boolean | True when the criteria match the last successful Databricks run. Set to false when criteria change or a run fails. |
| last_databricks_update | string (date-time) or null | When the last Databricks result was recorded. Null if none yet. |
| created_by | integer | The ID of the user who created the audience. |
| created_at | string (date-time) | When the audience was created. |
| last_edited_by | integer | The ID of the user who last edited the audience. |
| last_edited_at | string (date-time) | When the audience was last edited. |

