entities_lookup_by_name
Find ads, ad groups, and campaigns by name, and find which ad groups use a creative or file name. Use this tool when the user asks to find an ad, an ad group, or a campaign by name, or asks where a creative or file is used. Do not use insight search or a creative library for that question. Exact matching ignores case and preserves spelling. Substring matching ignores case, media extensions, and separator differences such as spaces, underscores, dots, and hyphens. Separators do not match arbitrary letters. A name matches as a substring when its folded form has at least 8 characters, or at least 2 characters when that form contains Han, Hiragana, Katakana, or Hangul. Accepts 1-50 names of 1-255 characters each. ad_account_ids is optional; on Meta pass act_ followed by digits, or digits only. Returns delivery status, the parent campaign status, the parent ad group status, the budget owner, today's spend, last-7-day spend, and prepare_groups. status=delivering omits rows that are not delivering. Reads cached data only and does not change anything. When next_cursor is set, pass it as result_cursor to read the next page. A result without next_cursor has no further page. Use this tool to find an ad, campaign, or ad group by name, and to see which ad groups a creative is used in. Do not use analysis families, account lists, workspace, or setup status for a name lookup.
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": {
"names": "<names>"
},
"name": "entities_lookup_by_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | Yes | ||
| levels | No | ||
| status | No | delivering | |
| group_by | No | group | |
| result_cursor | No | ||
| ad_account_ids | No | Limit the search to these ad accounts. The channel's account prefix is optional: on Meta, act_123 and 123 are the same account. | |
| connection_context | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| rows | No | ||
| as_of | No | ||
| error | No | ||
| needs | No | ||
| limits | No | ||
| reason | No | ||
| channel | No | ||
| queries | No | ||
| coverage | No | ||
| warnings | No | ||
| retryable | No | ||
| truncated | No | ||
| error_code | No | ||
| lookup_ref | No | ||
| next_action | No | ||
| next_cursor | No | ||
| support_ref | No | ||
| invalid_fields | No | ||
| prepare_groups | No | ||
| rejected_paths | No | ||
| origin_support_ref | No | ||
| excluded_from_prepare | No |