assign_ad_groups
Map keywords to existing ad groups using Google's themeing, with a suggested match type per keyword. Split large ad groups by creating themed groups first, then run this to distribute.
Instructions
Map a list of keywords across ad groups that ALREADY EXIST, using Google's own themeing. It assigns and refines rather than inventing themes from scratch: pass a campaign whose ad groups are already created, and it returns which ad group each keyword belongs in, with a suggested match type. To split one big ad group, create the themed ad groups first, then run this to distribute the keywords.
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": {
"customer_id": "<customer_id>",
"keywords": "<keywords>"
},
"name": "assign_ad_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| campaign_id | No | ||
| customer_id | Yes | ||
| ad_group_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |