Ads Studio
Alphaads_studio_generate
静止画広告の配分を見積もり、承認後に生成します。
操作 書き込み・承認が必要・creative フラグが必要
パラメーター
| パラメーター | 型 | 必須 | 既定値 | 説明 |
|---|---|---|---|---|
allocation | array of object | 任意 | — | Exact per-product counts from the Ads Studio app. Submit the whole allocation in one call, with brand_id, aspect_ratio and one stable idempotency_key. The first call quotes and requests approval without spending. Do not combine with product_ids, total, prompt, images, objective, include_brand or brand_kit. Chat-approved retries require expected_credits equal to the approved total cost. |
aspect_ratio | string | 任意 | "1:1" | The frame for the whole batch: 1:1 square feed, 9:16 stories and reels, 16:9 landscape, 3:4 portrait feed. 4:5 is not available - offer 3:4 as the nearest portrait frame. |
brand_id | string | 任意 | — | The brand whose kit (logo, palette, tone) shapes the ads, from Ads Studio. Leave it out to make ads with no brand kit at all. The kit only reaches this brand's own products: a product of another brand, or of none, is advertised without it, so never promise the user this brand's look on someone else's product. |
brand_kit | boolean | 任意 | — | false to make the ads without the brand kit even though brand_id is set: a plain product or prompt ad. Default true when brand_id is set; always off without one. |
expected_credits | number | 任意 | — | Exact credit cost explicitly approved by the user in chat. The server requotes before spending and refuses a changed price. For an app allocation on a host without native form support, preserve the exact allocation and key. Omit for native confirmation. |
idempotency_key | string | 必須 | — | A key you choose once for this generation and repeat unchanged if you have to retry. Never invent a new one for a retry: that buys the same batch a second time. |
images | array of object | 任意 | — | Pictures the user supplied for this generation: inspiration or photos of their product. |
include_brand | boolean | 任意 | — | Also generate a run about the brand itself, not a single product. Needs brand_id and the kit on. |
objective | string | 任意 | — | What the ads are for. Set it only when the user made the goal clear (more sales -> sales; sign-ups, demos, quotes -> leads; visits, clicks -> traffic; a launch or being known -> awareness; comments, shares -> engagement). Left out, the product's own profile decides. |
product_ids | array of string | 任意 | — | Products to advertise, from Ads Studio - of this brand, another brand or none; each gets its own run. Name at least one product, or set include_brand, or give a prompt - with none of them there is nothing to advertise. |
prompt | string | 任意 | — | What the user asked for in their own words: the angle, the offer, the audience. A prompt alone, with no product and no brand, is an ad about what it describes. |
total | integer | 任意 | — | How many concepts in total across all subjects: the number the user named, or 1 for a singular request. Ads Studio splits it between the subjects, so it must be at least one per subject. |
次の値は入力項目の外にあります。MCP リクエストの tools/call の params._meta に指定します。
| パラメーター | 型 | 必須 | 既定値 | 説明 |
|---|---|---|---|---|
approval_receipt | string | 任意 | — | プランの approval_id。ユーザーが承認した後の呼び出しで指定します。 |
allocation に製品ごとの product_id と count を指定するか、product_ids、include_brand、prompt、total で対象を指定します。brand_id、brand_kit、images、objective、aspect_ratio で生成条件を指定できます。allocation を使う場合は brand_id と aspect_ratio を組み合わせられます。Studio の商品 ID とブランド ID は UUID 部分を渡します。
初回は expected_credits を省略し、1 つの idempotency_key を指定します。サーバーは件数とクレジットを返します。フォームに対応するホストでは、allocation の承認をフォームで行います。チャットで承認する場合は、同じ配分とキーに expected_credits を追加し、tools/call の params._meta.approval_receipt に承認レシートを渡します。
応答には drama_ads_id、jobs、errors が含まれます。一部が受理された場合も、同じキーと配分で再試行します。価格が変わった場合は、同じキーで再見積もりし、更新後の金額を承認してください。
依頼例
この商品向けに静止画広告を 3 案作る場合の配分と費用を見せてください。