create_ad
Create a new ad for a project from one of the channels in list_ad_channels. Ads are ads-based channels (advertising / price-comparison / classifieds), not marketplaces: they publish products to the ad platform and have no order sync. channel_code is the channelCode from list_ad_channels. Returns {integrationId, action:'create', status, kind:'ads', editUrl, nextStepType, message}. status is 'created' (the ad exists; continue with configure_ad_step starting at nextStepType) or 'prerequisite_not_met' (HTTP 409 — message explains what must be done first, e.g. an offer/primary feed must exist first, or you are over your plan's ads limit (the message carries the upgrade link — see PLANS, ADDONS & UPGRADES); nextStepType names the step). multichannel_code links a multichannel definition when the channel offers one. definition_code picks a SPECIFIC definition of the channel when it has more than one — take it from get_ad_channel definitions[].definitionCode; omit it for the channel's default/primary definition. name is an OPTIONAL human-readable label so you can later find this ad by name (names are not unique — set_ad_name can change it later). project_id is OPTIONAL (inferred for a single-project customer; if project_id_required is returned, call list_projects and pass project_id). The returned integrationId is the ad_id for get_ad / configure_ad_step and other ads tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional human-readable name for the new ad. | |
| project_id | No | ||
| channel_code | Yes | channelCode of the ad channel (from list_ad_channels). | |
| definition_code | No | Pick a specific definition (definitionCode from get_ad_channel) when the channel has more than one; omit for the default/primary definition. | |
| multichannel_code | No | Definition code of a multichannel option when the channel offers one. |