Add Google Segments (affinity / in-market) to Search Campaign
add_google_segments_to_campaignAdds GOOGLE-DEFINED audience segments (affinity and in-market) to a Search campaign in bulk. Use when the user says 'Google audiences', 'all Google audiences', 'affinity', 'in-market' or 'predefined segments'. Does NOT add the advertiser's own remarketing lists (site visitors, converters, customer lists) — use add_remarketing_lists_to_campaign for those. If the user only says 'audience' without saying which kind, ASK: (a) their own remarketing lists, or (b) Google's affinity/in-market segments? Adds them in OBSERVATION mode (bid adjustments only, no reach restriction): if the campaign has no audience setting the tool sets it to Observation first, because the API otherwise treats it as Targeting. If the campaign is explicitly in TARGETING mode the tool refuses unless allow_non_observation=true, because ads would then show ONLY to people in these segments. Adds immediately (no preview step); show the user your plan beforehand if they want one. Skips segments already attached. Search campaigns only.
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": {
"user_intent": "<user_intent>",
"campaign_id": "<campaign_id>"
},
"name": "add_google_segments_to_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | No | AFFINITY and/or IN_MARKET. Default: both. | |
| campaign_id | Yes | Search campaign ID from list_campaigns. | |
| customer_id | No | ||
| user_intent | Yes | ||
| bid_modifier | No | Optional bid multiplier 0.1-10, e.g. '1.2' = +20%. Omit for no bid adjustment (typical for pure observation). | |
| name_contains | No | Optional. Only segments whose name contains this text, e.g. 'Autos'. | |
| allow_non_observation | No | Default false. Set true only if the user explicitly wants TARGETING mode (ads only to these segments); the tool then leaves the campaign setting untouched. |