Create ad group
Loading server catalog…. Download catalog
https://app.advarde.com/mcpUpstream account eligibility and feature access may also apply.
Description: Prepare a reviewable change: Create an ad group for a campaign. Returns a change_id; call ads_apply_change to execute after approval. Some features need Ads account enablement.
Method: tools/call · ads_create_ad_group
Output: Tool data is returned in result.structuredContent and as JSON text in result.content. Inspect result.isError before using the result. Individual output fields depend on the operation.
Access: Requires the applicable write scopes, workspace role, and account permissions.
Upstream operation: POST /ad_groups. Call this through the MCP tool above.
Review before applying
This tool prepares a proposal. Review the exact payload and obtain authorization before calling ads_apply_change. Preparation does not mean the upstream change has been applied.
Authentication
Use an MCP access token from MCP connections, or connect through OAuth. Send your token in the Authorization: Bearer header.
For full protocol initialization and tool discovery, use an MCP client. These examples show individual JSON-RPC requests.
Tool arguments
Send these fields inside params.arguments. The tool name is sent as params.name.
account_idstringrequiredWorkspace-owned Advarde connection ID from ads_list_accounts.
"uuid"bodyobjectrequiredfalseEXPAND BODY
campaign_idstringrequirednamestringrequired3maxLength: 1000pattern: "^.*\\S.*$"descriptionstringoptionalcontext_hintsarrayoptional2000EXPAND CONTEXT_HINTS
Each array item
{
"type": "string"
}statusstringrequired["active","paused"]bidding_configobjectrequiredfalseEXPAND BIDDING_CONFIG
billing_event_typestringrequired["impression","click"]strategystringoptional["fixed_bid","maximize_clicks","maximize_conversions"]max_bid_microsintegeroptional1maximum: 30400000000000custom_audience_bid_multipliersarrayoptionalEXPAND CUSTOM_AUDIENCE_BID_MULTIPLIERS
Each array item
custom_audience_idstringrequiredbid_multiplier_microsintegerrequired100000maximum: 10000000product_setschemaoptionalEXPAND PRODUCT_SET
anyOf · schema 1
product_feed_idstringrequiredfiltersarrayoptionalEXPAND FILTERS
Each array item
fieldstringrequiredoperatorstringrequired["in","not_in","gt","gte","lt","lte","contains","not_contains","starts_with"]valuesarrayrequiredEXPAND VALUES
Each array item
{
"type": "string"
}{
"properties": {
"product_feed_id": {
"type": "string"
},
"filters": {
"items": {
"properties": {
"field": {
"type": "string"
},
"operator": {
"type": "string",
"enum": [
"in",
"not_in",
"gt",
"gte",
"lt",
"lte",
"contains",
"not_contains",
"starts_with"
],
"x-openai-class-name": "sofa.api.params.ad_groups.ProductSetFilterOperatorParam"
},
"values": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object",
"required": [
"field",
"operator",
"values"
],
"x-openai-class-name": "sofa.api.params.ad_groups.ProductSetFilterParams",
"additionalProperties": false
},
"type": "array"
}
},
"type": "object",
"required": [
"product_feed_id"
],
"x-openai-class-name": "sofa.api.params.ad_groups.ProductSetParams",
"additionalProperties": false
}anyOf · schema 2
See the full schema for accepted values.
{
"type": "null"
}landing_page_configurationobjectoptionalfalseEXPAND LANDING_PAGE_CONFIGURATION
query_string_templatestringoptionalFull JSON Schema
{
"type": "object",
"properties": {
"account_id": {
"type": "string",
"format": "uuid",
"description": "Workspace-owned Advarde connection ID from ads_list_accounts."
},
"body": {
"properties": {
"campaign_id": {
"type": "string"
},
"name": {
"type": "string",
"maxLength": 1000,
"minLength": 3,
"pattern": "^.*\\S.*$"
},
"description": {
"type": "string"
},
"context_hints": {
"items": {
"type": "string"
},
"type": "array",
"maxItems": 2000
},
"status": {
"type": "string",
"enum": [
"active",
"paused"
],
"x-openai-class-name": "sofa.api.params.common.ActivePausedStatusParam"
},
"bidding_config": {
"properties": {
"billing_event_type": {
"type": "string",
"enum": [
"impression",
"click"
],
"x-openai-class-name": "sofa.api.params.ad_groups.BillingEventTypeParam"
},
"strategy": {
"type": "string",
"enum": [
"fixed_bid",
"maximize_clicks",
"maximize_conversions"
],
"x-openai-class-name": "sofa.api.params.ad_groups.BiddingStrategyTypeParam"
},
"max_bid_micros": {
"type": "integer",
"maximum": 30400000000000,
"minimum": 1
},
"custom_audience_bid_multipliers": {
"items": {
"properties": {
"custom_audience_id": {
"type": "string"
},
"bid_multiplier_micros": {
"type": "integer",
"maximum": 10000000,
"minimum": 100000
}
},
"type": "object",
"required": [
"custom_audience_id",
"bid_multiplier_micros"
],
"x-openai-class-name": "sofa.api.params.ad_groups.CustomAudienceBidMultiplierParams",
"additionalProperties": false
},
"type": "array"
}
},
"type": "object",
"required": [
"billing_event_type"
],
"x-openai-class-name": "sofa.api.params.ad_groups.BiddingConfigParams",
"additionalProperties": false
},
"product_set": {
"anyOf": [
{
"properties": {
"product_feed_id": {
"type": "string"
},
"filters": {
"items": {
"properties": {
"field": {
"type": "string"
},
"operator": {
"type": "string",
"enum": [
"in",
"not_in",
"gt",
"gte",
"lt",
"lte",
"contains",
"not_contains",
"starts_with"
],
"x-openai-class-name": "sofa.api.params.ad_groups.ProductSetFilterOperatorParam"
},
"values": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object",
"required": [
"field",
"operator",
"values"
],
"x-openai-class-name": "sofa.api.params.ad_groups.ProductSetFilterParams",
"additionalProperties": false
},
"type": "array"
}
},
"type": "object",
"required": [
"product_feed_id"
],
"x-openai-class-name": "sofa.api.params.ad_groups.ProductSetParams",
"additionalProperties": false
},
{
"type": "null"
}
]
},
"landing_page_configuration": {
"properties": {
"query_string_template": {
"type": "string"
}
},
"type": "object",
"required": [],
"x-openai-class-name": "sofa.api.params.campaigns.LandingPageConfigurationParams",
"additionalProperties": false
}
},
"type": "object",
"required": [
"campaign_id",
"name",
"status",
"bidding_config"
],
"x-openai-class-name": "sofa.api.params.ad_groups.CreateAdGroupBody",
"additionalProperties": false
}
},
"required": [
"account_id",
"body"
],
"additionalProperties": false
}Responses
200Successful protocol response
Inspect result.isError for tool-level failures, even when the HTTP status is 200.
202Notification accepted
MCP notifications return no JSON-RPC response body.
400Invalid request
Check the JSON-RPC envelope, parameters, and protocol version.
406Not acceptable
Accept must include application/json and text/event-stream.
429Rate limited
Wait for the Retry-After interval before making another request.
401Unauthorized
A valid, unexpired MCP bearer token is required.
403Access denied
Your connection needs access to this workspace and the requested operation.