read_ad
Retrieve detailed information about a specific Meta ad to analyze performance metrics, targeting parameters, and creative elements for campaign optimization.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | Yes | ||
| meta_access_token | No |
Implementation Reference
- The `read_ad` function fetches ad details from the Meta API using the provided `ad_id` and optional `meta_access_token`. It includes standard ad fields and a preview shareable link.
@mcp_server.tool() @meta_api_tool async def read_ad(ad_id: str, meta_access_token: Optional[str] = None) -> str: if not ad_id: return _json({"error": "No ad ID provided"}) payload = await make_api_request( ad_id, meta_access_token, {"fields": _AD_FIELDS + ",preview_shareable_link"}, ) return _json(payload)