Ця сторінка також доступна українською.
How it works
Every ad group and keyword mutation endpoint accepts an optional query parameter:regenerate_rsas=true (the default) and the mutation affects
RSA-relevant fields, the backend:
- Resolves the company name and description from the linked
AssistantKnowledgeItem - Collects the active (non-deleted) keywords for each affected ad group
- Enqueues a background
generate_rsas_for_ad_grouptask per affected ad group - Returns the normal response immediately — RSA generation happens asynchronously
If no company is linked to the draft’s Google Ads customer, RSA regeneration is
silently skipped. This can happen for newly connected accounts that don’t have a
company entity yet.
Which endpoints trigger it
Endpoints with auto-regeneration
| Endpoint | Method | Triggers RSA regen when… |
|---|---|---|
.../drafts/{id}/ad-groups | PATCH | Ad group name changes, or keyword text changes |
.../drafts/{id}/ad-groups | POST | New ad group is created with at least one keyword |
.../drafts/{id}/ad-groups/{ag_id} | PUT | Ad group name changes |
.../drafts/{id}/ad-groups/{ag_id}/keywords | POST | Always (new keyword added) |
.../drafts/{id}/ad-groups/{ag_id}/keywords/{kw_id} | PUT | Keyword text changes |
.../drafts/{id}/ad-groups/{ag_id}/keywords/{kw_id} | DELETE | Always (keyword removed) |
What does NOT trigger regeneration
These changes are not considered RSA-relevant:- Changing
cpc_bid_microson an ad group or keyword - Changing a keyword’s
match_type - Changing a keyword’s
final_url - Creating an ad group without keywords
Opting out
Pass?regenerate_rsas=false on any of the above endpoints to skip automatic
regeneration. Use this when:
- The user is making rapid batch edits and you plan to trigger regeneration manually at the end
- You’re only updating bids or metadata and want to guarantee no background tasks fire
- The user has manually edited RSA copy and doesn’t want it overwritten
Manual regeneration endpoints
You can also trigger RSA generation explicitly, regardless of theregenerate_rsas flag:
| Endpoint | What it does |
|---|---|
POST .../drafts/{id}/ad-groups/{ag_id}/rsa/generate | Generate RSAs for a single ad group |
POST .../drafts/{id}/rsas/generate-all | Generate RSAs for all ad groups in the draft |
AssistantKnowledgeItem. Both return a task_id for polling. RSAs are created
asynchronously by the background worker.
If no company is linked to the draft’s Google Ads customer, these endpoints
return 400 with an error message. This differs from auto-regeneration (which
silently skips).