Create pixel
create_pixelCreate a conversion pixel (facebook_capi, tiktok_events, google_ga4, google_ads, moloco, reddit_capi, twitter_capi, snapchat_capi, pinterest_capi, bigo_events, kwai_events). config holds the platform settings: facebook_capi {pixel_id, access_token}, tiktok_events {pixel_id, access_token}, google_ga4 {measurement_id, api_secret}, google_ads {customer_id, conversion_action_id, login_customer_id?, client_id, client_secret, refresh_token, consent?} (offline click conversions via the Data Manager API), moloco {platform_id, api_key}, reddit_capi {account_id, access_token}, twitter_capi {pixel_id, consumer_key, consumer_secret, access_token, access_token_secret, event_id?} (event mapping values are X event ids), snapchat_capi {pixel_id, access_token}, pinterest_capi {ad_account_id, access_token}, bigo_events {pixel_id}, kwai_events {pixel_id, access_token}. Secrets are write-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| tags | No | ||
| config | No | Platform settings (pixel_id / access_token / measurement_id / api_secret / customer_id / conversion_action_id / client_id / client_secret / refresh_token / platform_id / api_key / account_id / ad_account_id / consumer_key / consumer_secret / access_token_secret / event_id); secrets write-only | |
| status | No | ||
| currency | No | Value currency (default USD) | |
| group_id | No | ||
| platform | Yes | ||
| send_value | No | Send the payout as the event value | |
| payout_percent | No | 0–500, share of the payout sent as value |