Create Conversion Source
POST
/conversions/pixelsCreate a web conversion source and its Pixel ID.
Use id as a source_ids value when you create an event setting. Use
pixel_id to initialize the JavaScript Pixel and when you send Conversions API
events. Web pixels created by this endpoint automatically use automatic
advanced matching.
Create Conversion Source
curl https://api.ads.openai.com/v1/conversions/pixels \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $OPENAI_ADS_API_KEY" \
-d '{
"client_type": "web",
"name": "xxx"
}'200 — Example
{
"id": "id",
"client_type": "client_type",
"name": "name",
"pixel_id": "pixel_id"
}Returns Examples
200 — Example
{
"id": "id",
"client_type": "client_type",
"name": "name",
"pixel_id": "pixel_id"
}