Transactional calls with LinkedIn Ads audiences
The connection proxy lets you call LinkedIn’s API directly through a Polytomic LinkedIn Ads Connection. Polytomic authenticates the request and injects the required LinkedIn headers automatically — you only need to supply the method, path, and body.
Set your Polytomic API key as an environment variable:
Proxy info
Call GET /api/connections/{id}/proxy/info to inspect the inherited base URL, locked headers, allowed methods, and rate limits before building requests dynamically.
1. Get a DMP segment
Retrieve a single DMP segment by ID.
cURL
Python
Typescript
Go
2. Get multiple DMP segments
Retrieve several segments in one call using LinkedIn’s ids=List(...) query syntax. Use rawQuery instead of query for non-standard query strings like this one.
cURL
Python
Typescript
Go
3. Add or remove a company audience member
Add or remove a single company from a DMP segment.
cURL
Python
Typescript
Go
4. Batch add or remove companies
Add or remove multiple companies in a single request. Pass X-RestLi-Method: BATCH_CREATE as a per-request header via request.headers.
cURL
Python
Typescript
Go
5. Batch add or remove users
Add multiple users to a segment in one request. Each element can carry one or more identity types (SHA256_EMAIL, GOOGLE_AID, etc.) and optional profile attributes.
cURL
Python
Typescript
Go
6. Add or remove a single user
Add or remove one user from a segment, optionally including profile attributes to improve match rates.
cURL
Python
Typescript
Go
7. Create a DMP segment
Create a new DMP segment and associate it with a LinkedIn Ads account.
