10. Stream multiple conversion events to the conversion rule
POST
{{baseUrl}}/conversionEvents
Create one or more conversion rules with this endpoint and set conversionMethod
to CONVERSIONS_API
for streaming conversions through API.
Body
PARAM
Key |
Datatype |
Required |
Description |
HEADERS
Key |
Datatype |
Required |
Description |
LinkedIn-Version
|
string |
|
|
X-Restli-Protocol-Version
|
string |
|
|
X-RestLi-Method
|
string |
|
|
RESPONSES
status OK
{
"elements": [
{
"status": 201
},
{
"status": 201
}
]
}
|
curl -X POST 'baseUrl/conversionEvents' -H 'LinkedIn-Version: insert_version' -H 'X-Restli-Protocol-Version: 2.0.0' -H 'X-RestLi-Method: BATCH_CREATE' -d '{"elements":[{"conversion":"urn:lla:llaPartnerConversion:conversion_id","conversionHappenedAt":1695739275000,"conversionValue":{"currencyCode":"USD","amount":"1500.0"},"user":{"userIds":[{"idType":"SHA256_EMAIL","idValue":"bad8677b6c86f5d308ee82786c183482a5995f066694246c58c4df37b0cc41f1"},{"idType":"LINKEDIN_FIRST_PARTY_ADS_TRACKING_UUID","idValue":"df5gf5-gh6t7-ph4j7h-fgf6n1"}],"userInfo":{"firstName":"mike","lastName":"smith","title":"software engineer","companyName":"microsoft","countryCode":"US"}},"eventId":"abc12345"},{"conversion":"urn:lla:llaPartnerConversion:conversion_id","conversionHappenedAt":1695950057000,"conversionValue":{"currencyCode":"USD","amount":"2000.0"},"user":{"userIds":[{"idType":"SHA256_EMAIL","idValue":"dsfgrtg56u767ujy982fgnbmcsdocl46c58c56b650cik230bb9"},{"idType":"LINKEDIN_FIRST_PARTY_ADS_TRACKING_UUID","idValue":"ufh8h5-gh6t7-ph4j7h-mkl86n1"}],"userInfo":{"firstName":"jason","lastName":"bourne","title":"tech lead","companyName":"linkedin","countryCode":"US"}},"eventId":"xyz345"}]}'