Quote a campaign
Это содержимое пока не доступно на вашем языке.
scope wallet:readreadslive key only
Returns what publishing a campaign with this budget, rate and platforms would do, to the cent: the reserve taken from the wallet, the creatorPool, the commission fee and its rate in basis points, and whether the available balance covers it.
Everything the agent is told about this tool
Returns what publishing a campaign with this budget, rate and platforms would do, to the cent: the reserve taken from the wallet, the creatorPool, the commission fee and its rate in basis points, and whether the available balance covers it. Amounts are {amount, currency} with amount in minor units (cents). Use it while a budget is still being discussed, before any draft exists: it prices numbers, not a campaign. To price a saved draft and hold that price for launching, use campaign_quote_issue instead. It is a calculation and creates nothing. A budget under the platform’s smallest campaign or a rate below the floor is invalid_arguments (422). Example: {"budget": {"amount": 50000, "currency": "EUR"}, "rate": {"amount": 100, "currency": "EUR"}, "platforms": ["youtube_shorts"]}.
Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
budget |
object |
yes | |
rate |
object |
yes | |
platforms |
"tiktok" | "youtube_shorts" | "instagram_reels" | "vk_clips" | "x"[] |
yes |
Example
Section titled “Example”curl https://countviews.com/api/public/v1/call \ -H "Authorization: Bearer $COUNTVIEWS_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"campaign_quote","arguments":{"budget":{"amount":50000,"currency":"EUR"},"rate":{"amount":100,"currency":"EUR"},"platforms":["youtube_shorts"]}}'{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "campaign_quote", "arguments": { "budget": { "amount": 50000, "currency": "EUR" }, "rate": { "amount": 100, "currency": "EUR" }, "platforms": [ "youtube_shorts" ] } }}{ "budget": { "amount": 50000, "currency": "EUR" }, "rate": { "amount": 100, "currency": "EUR" }, "platforms": [ "youtube_shorts" ]}