--- title: "ExportCampaignDataSet" slug: "exportaudience" updated: 2024-06-28T11:21:21Z published: 2024-06-28T11:21:21Z canonical: "docs.datajet.app/exportaudience" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.datajet.app/llms.txt > Use this file to discover all available pages before exploring further. # ExportAudience Exports to file for the fields defined in campaign root, each unique key-field value in the audience | Key | Value(s) | Description | | --- | --- | --- | | method | "ExportAudience" | Exports to file for the fields defined in campaign root, each unique key-field value in the audience | | overwrite | true/false | if true, overwrites file if it exists | | name | "Audience name" | Optional. Name of audience from which to build unique key list. | | notify | true/false | Optional. If true, a notification will be generated. | | ids | [] | Optional. List of segment ids from which to build unique key list | | debug | true/false | Optional. If true, debug information will be returned. | | filename | export file name | Name of output file. No path required as this is configured in the project campaign definition file. | | prefix | "prefix string" | String to prefix to audience key | | suffix | "suffix string" | String to suffix to audience key | Either "ids" or "audience" should be specified The following campaign variables can be used in the prefix and suffix strings: - %AUDIENCEID% - %AUDIENCENAME% These will be resolved to the Audience ID or Audience Name at the time of output. ```json { "method": "ExportCampaignDataSet", "overwrite": true, "ids": [ [ "10004", "10005", "10007" ], [ "10013", "10016" ], [ "11304", "11305" ] ], "filename": "Diverse_Interests.dat", "description": "Diverse Interests", "project": "eyeota" } ``` ```json { "method": "ExportAudience", "project": "eyeota-audience", "overwrite": true, "name": "Over65 or retired Buick owners", "filename": "Over65_or_retired_Buick_owners.dat", "description": "", "prefix": "US|", "suffix": "|%AUDIENCEID%" } ```