Latest ad set and ad of a campaign
get_latest_in_campaignThe newest ad set and ad of a campaign, to copy their settings into a new launch. The most recently created ad set and ad of a campaign (ids, names, creation times): "copy the latest ad set and ad of campaign X". Use them as prepare_launch copy_adset_from / copy_ad_from (get_templates shows what each one holds; changes go in adset_settings / ad_settings).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ad_account_id": "<ad_account_id>",
"campaign_id": "<campaign_id>"
},
"name": "get_latest_in_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaign_id | Yes | A campaign (list_campaigns) | |
| ad_account_id | Yes | Meta ad account id (act_…), from list_ad_accounts |