curl --request POST \
--url https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/campaign_optimizations/{id}/implement_suggestions \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'{
"updated_count": 123,
"total_asset_groups": 123,
"results": [
{
"asset_group_id": "<string>",
"status": "success",
"error": "<string>"
}
]
}Implements the latest optimization suggestions for a campaign optimization.
Required permission: write:analysis.
Platform-Specific Behavior:
Google Ads:
details field is optional and can contain an asset_groups array to filter which asset groups to process.details.asset_groups is provided, only suggestions for the specified asset groups will be implemented.details is omitted or asset_groups is not specified, all suggestions will be implemented.TikTok:
details field is not used and can be omitted.campaign_optimization.campaign.ad_group_ids will be updated.Response Body (Google Ads):
{
"updated_count": 2,
"total_asset_groups": 3,
"results": [
{ "asset_group_id": "6476435676", "status": "success" },
{ "asset_group_id": "6481074503", "status": "success" },
{ "asset_group_id": "6477355033", "status": "failed", "error": "Failed to add search theme 'xyz'" }
]
}
Response fields:
updated_count (int): Number of asset groups where all suggestions were applied successfully.total_asset_groups (int): Total number of asset groups in the suggestion (not just those requested via details).results (array): Per-asset-group outcome.
asset_group_id (string): The asset group ID.status (string): success or failed.error (string, optional): Error message, only present when status is failed.curl --request POST \
--url https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/campaign_optimizations/{id}/implement_suggestions \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'{
"updated_count": 123,
"total_asset_groups": 123,
"results": [
{
"asset_group_id": "<string>",
"status": "success",
"error": "<string>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.shareofmodel.ai/llms.txt
Use this file to discover all available pages before exploring further.
A UUID string identifying the campaign optimization.
A UUID string identifying this campaign optimization.
csv, json Platform-specific details for implementing suggestions.