Skip to main content
Glama
EfrainTorres

ArmaVita Meta Ads MCP

read_ad_creative

Retrieve detailed information about Meta ad creatives using their ID to analyze performance, review content, and manage advertising assets within the Meta Marketing API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ad_creative_idYes
meta_access_tokenNo

Implementation Reference

  • The 'read_ad_creative' tool handler, which fetches ad creative details from the Meta API including the dynamic creative spec.
    async def read_ad_creative(ad_creative_id: str, meta_access_token: Optional[str] = None) -> str:
        if not ad_creative_id:
            return _json({"error": "No creative ID provided"})
    
        payload = await make_api_request(ad_creative_id, meta_access_token, {"fields": _CREATIVE_FIELDS.replace(",image_urls_for_viewing", "")})
    
        if isinstance(payload, dict) and payload.get("id"):
            try:
                dynamic_payload = await make_api_request(ad_creative_id, meta_access_token, {"fields": "dynamic_creative_spec"})
                if isinstance(dynamic_payload, dict) and "dynamic_creative_spec" in dynamic_payload:
                    payload["dynamic_creative_spec"] = dynamic_payload["dynamic_creative_spec"]
            except Exception:  # noqa: BLE001
                pass
    
        return _json(payload)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/EfrainTorres/armavita-meta-ads-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server