Add or remove members in bulk from a Facebook custom audience via CSV or smart lists

http
PUT https://services.leadconnectorhq.com/ad-publishing/facebook/custom-audience/{audienceId}/member/batch

Authorization

NameTypeRequiredExampleDescription
AuthorizationstringYesBearer token generated from the Leadway portal. See Authentication.
VersionstringYes2021-07-28API version.

Path parameters

NameTypeRequiredExampleDescription
audienceIdstringYes23851234567890123Custom audience identifier

Body

NameTypeRequiredExampleDescription
locationIdstringYesloc_abc123Account identifier
csvPathstringNo/uploads/audience.csvCSV file path
operationTypestringYesADDBatch operation type
smartlistIdsstring[]NoSmartlist IDs array
dynamicAudiencestringNotrueDynamic audience flag

Responses

200 - Response
400 - Bad Request
json
{}
401 - Unauthorized
json
{}
422 - Unprocessable Entity
json
{}

Example

curl -X PUT 'https://services.leadconnectorhq.com/ad-publishing/facebook/custom-audience/YOUR_audienceId/member/batch' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
  "locationId": "loc_abc123",
  "csvPath": "/uploads/audience.csv",
  "operationType": "ADD",
  "smartlistIds": [
    "list_1",
    "list_2"
  ],
  "dynamicAudience": "true"
}'

Last updated October 26, 2026

Was this page helpful?