meta-ads-asset-upload
Get a creative asset (image or video) INTO a Meta ad account and return the image_hash / video_id that an ad needs — sourcing the file from Google Drive (via…
от portermetricsample★ 22 звезды на GitHub
Установить meta-ads-asset-upload в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Meta Ads — Asset Upload (Drive / URL → Meta)
Take a creative file and register it on a Meta ad account so an ad can use it. Meta ads reference
uploaded assets by image_hash (images) or video_id (videos), not by file — this skill
produces those ids. Primary source: Google Drive (already connected via the Porter storage /
google-drive connector). Also supports a public URL. Account-agnostic (resolve the ad account from
list_accounts; never hardcode).
Goal (job-to-be-done)
"Use this image from my Drive as the ad creative" → a validated image_hash on the right ad account,
ready for meta-ads-ad-setup.
- Who: marketer / media buyer assembling ads from assets stored in Drive. When: before creating an ad, or in bulk when preparing a set of creatives.
- Decision it drives: which concrete asset id(s) the ad will use.
- The differentiator: it validates the file (real image type, not a native Google file, within the
size limits) BEFORE uploading, and picks the reliable transport — a public URL, or **
prepare_upload- a JSON POST** for local/Drive bytes (NOT base64 streamed through the model, which truncates) — so the ad step never fails on a bad asset.
Scope
- ✅ Locate + validate a Drive file (
storage.list_files/get_file). - ✅ Upload the bytes to Meta → return
image_hash/video_id, viaprepare_upload+ a JSON POST (local/Drive bytes) orimage_upload/video_uploadwith a publicurl. (For Drive, fetch bytes withstorage.download_file, but POST them from code — never as a model argument.) - ✅ Source can be a local file on disk, a Drive file, or a public URL — not only Drive.
Local/Drive bytes go via
prepare_upload+ JSON POST; a public URL goes straight to Meta'surlparam. - ❌ Ad assembly (copy, headline, CTA, link, placements, per-placement formats, carousel/DCA
structure) →
meta-ads-ad-setup. - ❌ Image editing / resizing / format conversion.
Components (read as needed)
- 📖 Mapa exhaustivo de TODOS los parámetros y opciones (todos los niveles):
../../PARAMETERS-REFERENCE.md— incluye §8 Especificaciones de creativos por formato (relaciones, píxeles, límites de peso/texto), que es lo que esta skill produce/sube. - Tools / chain:
references/tools.md— the exact 3-step call chain + limits. - Framework / validation:
references/framework.md— what to accept, reject, and which transport to use. - Output:
references/output.md— the hash/id payload for ad-setup.
Operate
Input: the ad account (name/id) + the source — a Drive file_id (or a name to search), or a public
image URL.
Process:
- Resolve the asset: if given a name,
storage.list_filesto find thefile_id;get_fileformimeType+size. - Validate (see
references/framework.md): supported image type (image/jpeg,image/png) or a video within limits; NOT a native Google type; size ≤ 30 MiB. - Transport — the exact recipe is in
references/tools.md§"two transports":- Public URL →
facebook_ads.image_upload(url=…)viaexecute_action(Meta fetches it). - Local file / Drive bytes →
prepare_upload(SIGNED account ref) → then, in CODE, base64-encode and POST a JSON body (account_id= the nativeact_…,image_base64,filename,mime) to the returnedupload_url. Never pass a large base64 as anexecute_actionargument — it truncates. - Video → same, via
facebook_ads.video_upload/video_base64; video is processed async.
- Public URL →
- Return the
image_hash/video_idformeta-ads-ad-setup.
Emit the payload in references/output.md.
Safety / limits
account_id— the two-place rule (the #1 failure point): inprepare_upload/execute_actionit's the SIGNED blob fromlist_accounts(never bareact_…); but inside the JSON body POSTed to the presigned URL it's the nativeact_…id. Seereferences/tools.md.- Execution model: the assistant runs the base64-encode +
curlPOST — a non-technical user only supplies the file and names the account. The presigned token is single-use and ~600 s-lived, so callprepare_uploadimmediately before the POST. - Size: don't trust
prepare_upload'smax_size_bytes(2 MB, not enforced — a 2.46 MB video and a 6 MB image POSTed fine); the real upload cap is Meta's (~29 MB image = "too large"). The binding limit is UPSTREAM, on the Drive download: the standalone Google-Drive MCPdownload_file_contenthard-caps at 10 MB (validated 2026-07-16; a 49 MB file errors "over limit of 10 MB"). Porter'sstorage.download_fileconnector caps higher (~30 MiB). **Either way, any Drive file too big to download must
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/framework.md
- references/output.md
- references/tools.md
FAQ
Что делает скилл meta-ads-asset-upload?
Get a creative asset (image or video) INTO a Meta ad account and return the image_hash / video_id that an ad needs — sourcing the file from Google Drive (via the Porter storage/google-drive connector) or a public URL. Use whenever the user wants to upload an image/video from Drive to Meta/Facebook Ads, "subir una imagen de Drive a Meta", turn a Drive asset into an ad creative, or prepare creatives for an ad. Scope: the ingest step only (file → hash/id); assembling the ad (copy, CTA, placements, formats) belongs to meta-ads-ad-setup.
Как установить скилл meta-ads-asset-upload?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл meta-ads-asset-upload запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…