fetch_ad_creative
Fetch actual ad creatives from Google Ads Transparency Center using advertiser and creative IDs. Save image files at original resolution or extract video frames as JPEGs for local use.
Instructions
Download an ad's actual creative to local files.
Image ads are always saved at their original resolution, so the file you get back is the real creative — usable in a deck or a slide as-is. Video ads are downloaded and sampled into evenly spaced JPEG frames.
Args: advertiser_id: The advertiser's ID (e.g. "AR04139428671737823233") creative_id: The creative/ad ID (e.g. "CR01542648288744833025") out_dir: Directory to write into. Defaults to a fresh temp directory. frames: How many frames to sample from a video (default 8). width: Frame width in pixels, height follows aspect (default 320). Ignored when full_quality is set; pass 0 for native resolution. full_quality: Keep the best video stream and write frames at native resolution. Use for presentation; leave off for vision analysis.
Returns: {format, out_dir, files, ...}. Text ads carry no downloadable asset and return their decoded copy instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| frames | No | ||
| out_dir | No | ||
| creative_id | Yes | ||
| full_quality | No | ||
| advertiser_id | Yes |