Ads · Ad Audiences

Replace audience companies

Replaces audience companies. Works with LinkedIn Ads.

POSThttps://api.pozy.ai/v1/ads/audiences/{audienceId}/companies
LinkedInreplaceAdAudienceCompanies

Guides: LinkedIn Ads, Audiences

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys cannot call it. Keys with the ads resource group disabled get 403 resource_group_disabled. Authentication

Path parameters

NameTypeNotes
audienceIdrequiredstring

Request body

application/json, required

  • companiesarray of objectrequired

    At least 1 item. Up to 300000 items.

    • namestring

      Up to 255 characters.

    • domainstring

      Up to 100 characters.

    • websitestring

      Up to 100 characters.

    • linkedinPageUrlstring

Example

curl -X POST "https://api.pozy.ai/v1/ads/audiences/6cb6496d2ca0017ff720f51f/companies" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "companies": [
    {
      "name": "Acme",
      "domain": "string",
      "website": "string"
    }
  ]
}'

Response

200 on success

  • messagestring
  • numReceivedinteger
200 response
{
  "message": "Hello from Pozy",
  "numReceived": 1
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is read-only, scoped to other profiles, or has this resource group disabled.
404not_foundNothing with that id exists in your workspace.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Ad Audiences