Attach asset to ad
attach_asset_to_adAttach an existing asset to an ad (scope=AD, adId required) or an ad group (scope=AD_GROUP, adGroupId required) with a role (MARKETING_IMAGE, SQUARE_MARKETING_IMAGE, LOGO, LANDSCAPE_LOGO, PORTRAIT_MARKETING_IMAGE, YOUTUBE_VIDEO, VIDEO). This is the scope that actually serves images/video on Display, Performance Max and Video campaigns. campaignId is derived from the ad/ad group when omitted. Returns the full updated/created object. Scoped to the active Space — see set_active_space to switch, or pass space_id to override for this one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body matching the AdAssetCreate schema. Fields below; see the OpenAPI spec for nested object shapes. | |
| space_id | No | Override the active Space for this one call. Defaults to the active Space set via set_active_space (or GROWOMAT_SPACE_ID on the server). Pass to read/write a different Space without changing the session binding. |