clone_ad
Duplicate Meta ads to test variations or scale campaigns using Meta's Graph API copy functionality.
Instructions
Duplicate an ad using Meta's local Graph copy edge.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | Yes | ||
| meta_access_token | No | ||
| target_ad_set_id | No | ||
| name_suffix | No | - Copy | |
| clone_ad_creative | No | ||
| new_creative_name | No | ||
| new_status | No | PAUSED |
Implementation Reference
- The implementation of the clone_ad tool, which forwards the duplication request to the Meta Graph API via _forward_duplication_request.
async def clone_ad( ad_id: str, meta_access_token: Optional[str] = None, target_ad_set_id: Optional[str] = None, name_suffix: Optional[str] = " - Copy", clone_ad_creative: bool = True, new_creative_name: Optional[str] = None, new_status: Optional[str] = "PAUSED", ) -> str: """Duplicate an ad using Meta's local Graph copy edge.""" return await _forward_duplication_request( "ad", ad_id, meta_access_token, { "target_ad_set_id": target_ad_set_id, "name_suffix": name_suffix, "clone_ad_creative": clone_ad_creative, "new_creative_name": new_creative_name, "new_status": new_status, }, )