Manage Tracking Collection
manage_tracking_collectionCreate, update or delete a Creator Tracking collection (a campaign). Only posts whose caption contains a match term (e.g. #brand) inside starts_at..ends_at count toward it; target_cpm, budget and posts_per_week drive the payout and posting-target views. update changes any field you pass. delete keeps the creators tracked without a collection and needs the preview + confirmation_token step. Free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | No | Optional Firebase uid. Must match the URL uid unless local fallback is enabled. | |
| name | No | Required for create. | |
| action | Yes | ||
| budget | No | ||
| ends_at | No | ||
| starts_at | No | ISO 8601 date or time; a bare date is UTC midnight. | |
| target_cpm | No | ||
| match_terms | No | ||
| bearer_token | No | Optional Firebase ID token. Hosted clients normally authenticate with an API key header or ?uid= in the URL instead. | |
| collection_id | No | Required for update and delete. | |
| posts_per_week | No | ||
| confirmation_token | No | Omit on the first call to get a preview and a token. Pass the token back unchanged only after the user confirmed the preview in a later turn. |