decode_ad
Decode a saved competitor ad into a reusable formula: hook, script, scenes, audio, call to action and style, plus a generation-ready recreation prompt. Requires a quote_id from estimate_ad_cost with kind "decode" (a flat price). Credits are charged only when the analysis succeeds; an ad decoded before returns its stored decode and charges nothing. SIGN-IN REQUIRED: connect this server with OAuth (the host prompts for it), or add an API key header "Authorization: Bearer acd_live_…" created at https://aicontentdrop.com/settings/integrations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | Yes | A saved ad's id, from list_saved_ads or save_competitor_ad. | |
| quote_id | Yes | The quote_id from estimate_ad_cost with kind "decode". Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Present only when the charge could not be applied to the account. | |
| ad_id | Yes | ||
| cached | Yes | True when a stored decode was returned; nothing was charged. | |
| decode | Yes | The ad's formula, layer by layer, plus a generation-ready prompt. | |
| replayed | Yes | True when this quote_id had already been submitted and the original result was returned. | |
| next_step | Yes | ||
| credits_used | Yes | Credits charged: 0 for a stored decode or when the charge could not be applied (then note says so); null when the figure is not reported. | |
| credits_quoted | Yes | The price fixed by the quote. |