snap_influencer_ad
Claim a creator ad code, build its web-view creative, and create a paused ad in an ad squad using a preview-then-confirm workflow.
Instructions
Full influencer flow in one step: claim a creator ad code, wait for the media, create a WEB_VIEW creative, and create a PAUSED ad in the given ad squad. Claiming is one-way (single-use code). Previews (nothing sent) unless confirm=true. Two steps: confirm=false returns a preview and an approval_token; to apply, repeat the same arguments with confirm=true and that approval_token.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ad_code": "<ad_code>",
"adsquad_id": "<adsquad_id>",
"name": "<name>",
"headline": "<headline>",
"url": "<url>"
},
"name": "snap_influencer_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| name | Yes | Used for the creative and the ad, e.g. 'Paid - handle - SKU' | |
| ad_code | Yes | ||
| confirm | No | false = preview only (nothing sent). true = apply; needs approval_token from the preview. | |
| headline | Yes | ||
| adsquad_id | Yes | ||
| profile_id | No | ||
| approval_token | No | The approval_token returned by the preview of this exact request. Required with confirm=true. | |
| call_to_action | No | SHOP_NOW |