Draft image assets
draft_image_assetsDraft campaign image assets from local files, public URLs, or uploads; return a preview plan_id to confirm before applying to Google Ads.
Instructions
Draft campaign image assets from local files, public image URLs or uploads — returns a PREVIEW.
At least one image in total is required across image_paths, image_urls and upload_ids. Images must be PNG, JPEG or GIF and at most 5120 KB (Google's limit). URL images are downloaded now and checked; applying re-downloads them and refuses if the image changed since the preview. Returns a preview with a plan_id and a per-image summary; nothing changes until confirm_and_apply applies it.
Google Ads API: https://developers.google.com/google-ads/api/docs/start
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_urls | No | Public http(s) URLs of PNG/JPEG/GIF images. Links to private, local or internal addresses are refused. | |
| upload_ids | No | Ids of images the user uploaded (up_..., from upload_images or list_uploads). The way to use an image that has no public URL. | |
| campaign_id | Yes | Numeric ID of the campaign to attach the images to. | |
| customer_id | No | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. | |
| image_paths | No | Local PNG/JPEG/GIF file paths on the machine running AdLoop. Not available on a hosted server, where image_urls applies instead. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||