set_final_urls
Update final URLs and URL suffixes for ads, ad groups, and assets in one atomic operation, preserving ad text and history. Use to retag campaigns or move UTMs.
Instructions
Update final URLs and/or final URL suffixes in one atomic mutate.
targets: [{"resource_name": <ad (adGroupAds/..~..) | ad group (adGroups/..) | asset (assets/..)>, "final_url": "https://..." (ads and assets), "final_url_suffix": "utm_..." or "" to clear (ad groups and ads)}, ...] Ads keep their text and history: Google allows changing an ad's final URLs in place. Typical use: move UTMs from an ad-group suffix into the final URL itself, or retag a campaign. Dry run unless confirm=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| targets | Yes | ||
| customer_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |