meta-ads
Installation
SKILL.md
Prerequisites
- Connect Meta Ads in Zero at Settings > Connectors > Meta Ads.
- Requests require
META_ADS_TOKEN. - Ad account IDs usually use the
act_<account-id>format when calling ad account endpoints.
Authentication
Normal connector requests require this header:
Authorization: Bearer $META_ADS_TOKEN
Do not pass META_ADS_TOKEN as an access_token query parameter or in the request body. Zero connector tokens are placeholders that are resolved at the network boundary when sent as the Authorization header to https://graph.facebook.com. Putting the placeholder in access_token= can send it literally and cause Meta to return a malformed access token error.
Exception: Page access tokens returned by Graph API are real secondary tokens, not Zero placeholders. For Page-token-only endpoints such as /{page-id}/ads_posts, get the Page access token with the connector token first, then use Authorization: Bearer $page_token for that Page-token request.