google_ads_script_generate
Returns a ready Google Ads Script (JavaScript) for one campaign that a person pastes into Google Ads themselves. The tool only produces text. Amounts are in the ad account's own currency, in whole units (not cents or micros).
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": {
"campaign_id": "<campaign_id>",
"action": "<action>"
},
"name": "google_ads_script_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What the script does. | |
| new_value | No | New value for the update actions: monthly budget, target CPA or target ROAS. | |
| campaign_id | Yes | ADS Beast id from list_campaigns, not the platform's. |