Upsert conversion pixel
PUT/ad-publishing/facebook/pixels
Create a Facebook conversion pixel, or rename an existing one by passing conversionPixelId. The two paths acknowledge differently: a create returns the new id, a rename returns only { success: true }. Renaming is the only update supported, and it rejects type: INSTAGRAM_DM. Creating an INSTAGRAM_DM dataset requires igUserId and fails if one already exists for that account.
Request
Version stringrequired
API Version
Available options
v3- application/json
- Body
- Example (auto)
Bodyrequired
locationIdstringrequired
Location identifier
conversionPixelIdstring
Conversion pixel ID
namestring
Pixel name
igUserIdstring
Instagram user ID
typestringrequired
Pixel event type
Available options
LEAD_EVENTFUNNEL_EVENTINSTAGRAM_DM{
"locationId": "loc_abc123",
"conversionPixelId": "px_123",
"name": "My Pixel",
"igUserId": "ig_user_123",
"type": "LEAD_EVENT"
}
The new id when a pixel was created, or a success flag when an existing pixel was renamed
- application/json
- Schema
- Example (auto)
Schema
- oneOf
- FacebookUpsertPixelCreatedDTO
- FacebookUpsertPixelUpdatedDTO
idstringrequired
Id of the pixel or dataset that was created
{
"id": "1712619223343735"
}