snap_claim_ad_code
Claim a creator's single-use ad code into the ad account with a preview-first flow: review the request, then confirm with an approval token to apply the change.
Instructions
Claim a creator's ad code (adcode_) into the ad account. ONE-WAY: the code is single-use and cannot be unclaimed. Previews (format check only, 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>"
},
"name": "snap_claim_ad_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_code | Yes | ||
| confirm | No | false = preview only (nothing sent). true = apply; needs approval_token from the preview. | |
| profile_id | No | Brand profile id; defaults to SNAP_BRAND_PROFILE_ID | |
| approval_token | No | The approval_token returned by the preview of this exact request. Required with confirm=true. |