6. Create a User DMP segment (skip this step if the user chose to update an existing Audience)
POST {{baseUrl}}/dmpSegments
This call creates a DMP segment named DMP Segment 2
for users to be streamed to.
The sourcePlatform is an ENUM value that is provided by your LinkedIn contact after you have been granted access to the Audience APIs.
NOTE: there must be at least a 5 second delay between step 2 (creating the segment) and step 3 (streaming user data) or the segment may not be populated.
Request Body
{"name"=>"User DMP Segment", "sourcePlatform"=>"{{dmp_partner_platform_enum}}", "account"=>"urn:li:sponsoredAccount:{{sponsoredaccount_id}}", "accessPolicy"=>"PRIVATE", "type"=>"USER", "destinations"=>[{"destination"=>"LINKEDIN"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
LinkedIn-Version | string | ||
Authorization | string | ||
X-Restli-Protocol-Version | string |
RESPONSES
status: Created