Skip to content
advardeDeveloper docs
v1.0

Create bulk job

Loading server catalog…. Download catalog

POSThttps://app.advarde.com/mcp
Prepare change

Upstream account eligibility and feature access may also apply.

Description: Prepare a reviewable change: ads create bulk job. Returns a change_id; call ads_apply_change to execute after approval. Some features need Ads account enablement.

Method: tools/call · ads_create_bulk_job

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 /bulk_mutation_jobs. 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_idstringrequired
format: "uuid"
bodyobjectrequired
additionalProperties: false
EXPAND BODY
validate_onlybooleanoptional
partial_failurebooleanoptional
operationsarrayrequired
minItems: 1maxItems: 1000
EXPAND OPERATIONS

Each array item

oneOf · schema 1
operation_idstringrequired
minLength: 1maxLength: 255pattern: ".*\\S.*"
typeschemarequired
const: "campaign.create"
idempotency_keystringrequired
minLength: 1maxLength: 255pattern: ".*\\S.*"
target_resource_idstringoptional
pattern: "^[A-Za-z0-9_-]{1,255}$"
inputobjectrequired
additionalProperties: false
EXPAND INPUT
namestringrequired
minLength: 3maxLength: 1000pattern: ".*\\S.*"
max_budget_microsintegerrequired
minimum: 1000000maximum: 9007199254740991
billing_event_typeenumoptional
enum: ["click","impression"]
budget_typeenumoptional
enum: ["lifetime","daily"]
statusenumoptional
enum: ["active","paused"]
target_countriesarrayoptional
EXPAND TARGET_COUNTRIES

Each array item

{
  "type": "string",
  "pattern": "^[A-Z]{2}$"
}
location_idsarrayoptional
maxItems: 2500
EXPAND LOCATION_IDS

Each array item

{
  "type": "string",
  "minLength": 1,
  "maxLength": 100,
  "pattern": ".*\\S.*"
}
{
  "type": "object",
  "properties": {
    "operation_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "pattern": ".*\\S.*"
    },
    "type": {
      "const": "campaign.create"
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "pattern": ".*\\S.*"
    },
    "target_resource_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,255}$"
    },
    "input": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 3,
          "maxLength": 1000,
          "pattern": ".*\\S.*"
        },
        "max_budget_micros": {
          "type": "integer",
          "minimum": 1000000,
          "maximum": 9007199254740991
        },
        "billing_event_type": {
          "enum": [
            "click",
            "impression"
          ]
        },
        "budget_type": {
          "enum": [
            "lifetime",
            "daily"
          ]
        },
        "status": {
          "enum": [
            "active",
            "paused"
          ]
        },
        "target_countries": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          }
        },
        "location_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": ".*\\S.*"
          },
          "maxItems": 2500
        }
      },
      "required": [
        "name",
        "max_budget_micros"
      ],
      "additionalProperties": false,
      "minProperties": 0
    }
  },
  "required": [
    "operation_id",
    "type",
    "input",
    "idempotency_key"
  ],
  "additionalProperties": false,
  "minProperties": 0
}
oneOf · schema 2
operation_idstringrequired
minLength: 1maxLength: 255pattern: ".*\\S.*"
typeschemarequired
const: "campaign.update"
idempotency_keystringoptional
minLength: 1maxLength: 255pattern: ".*\\S.*"
target_resource_idstringrequired
pattern: "^[A-Za-z0-9_-]{1,255}$"
inputobjectrequired
additionalProperties: false
EXPAND INPUT
namestringoptional
minLength: 3maxLength: 1000pattern: ".*\\S.*"
descriptionstring | nulloptional
maxLength: 5000
statusenumoptional
enum: ["active","paused","archived"]
max_budget_microsintegeroptional
minimum: 1000000maximum: 9007199254740991
budget_typeenumoptional
enum: ["lifetime","daily"]
start_timeinteger | nulloptional
minimum: 946684800maximum: 4102444800
end_timeinteger | nulloptional
minimum: 946684800maximum: 4102444800
location_idsarrayoptional
maxItems: 2500
EXPAND LOCATION_IDS

Each array item

{
  "type": "string",
  "minLength": 1,
  "maxLength": 100,
  "pattern": ".*\\S.*"
}
{
  "type": "object",
  "properties": {
    "operation_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "pattern": ".*\\S.*"
    },
    "type": {
      "const": "campaign.update"
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "pattern": ".*\\S.*"
    },
    "target_resource_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,255}$"
    },
    "input": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 3,
          "maxLength": 1000,
          "pattern": ".*\\S.*"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 5000
        },
        "status": {
          "enum": [
            "active",
            "paused",
            "archived"
          ]
        },
        "max_budget_micros": {
          "type": "integer",
          "minimum": 1000000,
          "maximum": 9007199254740991
        },
        "budget_type": {
          "enum": [
            "lifetime",
            "daily"
          ]
        },
        "start_time": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 946684800,
          "maximum": 4102444800
        },
        "end_time": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 946684800,
          "maximum": 4102444800
        },
        "location_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": ".*\\S.*"
          },
          "maxItems": 2500
        }
      },
      "required": [],
      "additionalProperties": false,
      "minProperties": 1
    }
  },
  "required": [
    "operation_id",
    "type",
    "input",
    "target_resource_id"
  ],
  "additionalProperties": false,
  "minProperties": 0
}
oneOf · schema 3
operation_idstringrequired
minLength: 1maxLength: 255pattern: ".*\\S.*"
typeschemarequired
const: "ad_group.create"
idempotency_keystringrequired
minLength: 1maxLength: 255pattern: ".*\\S.*"
target_resource_idstringoptional
pattern: "^[A-Za-z0-9_-]{1,255}$"
inputobjectrequired
additionalProperties: false
EXPAND INPUT
campaign_idempotency_keystringrequired
minLength: 1maxLength: 255pattern: ".*\\S.*"
namestringrequired
minLength: 3maxLength: 1000pattern: ".*\\S.*"
context_hintsarrayoptional
maxItems: 2000
EXPAND CONTEXT_HINTS

Each array item

{
  "type": "string",
  "minLength": 1,
  "maxLength": 1000,
  "pattern": ".*\\S.*"
}
exclusion_hintsarrayoptional
maxItems: 2000
EXPAND EXCLUSION_HINTS

Each array item

{
  "type": "string",
  "minLength": 1,
  "maxLength": 1000,
  "pattern": ".*\\S.*"
}
max_bid_microsintegeroptional
minimum: 1maximum: 9007199254740991
max_cpm_bid_microsintegeroptional
minimum: 1maximum: 9007199254740991
statusenumoptional
enum: ["active","paused"]
{
  "type": "object",
  "properties": {
    "operation_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "pattern": ".*\\S.*"
    },
    "type": {
      "const": "ad_group.create"
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "pattern": ".*\\S.*"
    },
    "target_resource_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,255}$"
    },
    "input": {
      "type": "object",
      "properties": {
        "campaign_idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255,
          "pattern": ".*\\S.*"
        },
        "name": {
          "type": "string",
          "minLength": 3,
          "maxLength": 1000,
          "pattern": ".*\\S.*"
        },
        "context_hints": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "pattern": ".*\\S.*"
          },
          "maxItems": 2000
        },
        "exclusion_hints": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "pattern": ".*\\S.*"
          },
          "maxItems": 2000
        },
        "max_bid_micros": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "max_cpm_bid_micros": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "status": {
          "enum": [
            "active",
            "paused"
          ]
        }
      },
      "required": [
        "campaign_idempotency_key",
        "name"
      ],
      "additionalProperties": false,
      "minProperties": 0
    }
  },
  "required": [
    "operation_id",
    "type",
    "input",
    "idempotency_key"
  ],
  "additionalProperties": false,
  "minProperties": 0
}
oneOf · schema 4
operation_idstringrequired
minLength: 1maxLength: 255pattern: ".*\\S.*"
typeschemarequired
const: "ad_group.update"
idempotency_keystringoptional
minLength: 1maxLength: 255pattern: ".*\\S.*"
target_resource_idstringrequired
pattern: "^[A-Za-z0-9_-]{1,255}$"
inputobjectrequired
additionalProperties: false
EXPAND INPUT
namestringoptional
minLength: 3maxLength: 1000pattern: ".*\\S.*"
descriptionstring | nulloptional
maxLength: 5000
statusenumoptional
enum: ["active","paused","archived"]
context_hintsarrayoptional
maxItems: 2000
EXPAND CONTEXT_HINTS

Each array item

{
  "type": "string",
  "minLength": 1,
  "maxLength": 1000,
  "pattern": ".*\\S.*"
}
exclusion_hintsarrayoptional
maxItems: 2000
EXPAND EXCLUSION_HINTS

Each array item

{
  "type": "string",
  "minLength": 1,
  "maxLength": 1000,
  "pattern": ".*\\S.*"
}
max_bid_microsintegeroptional
minimum: 1maximum: 9007199254740991
max_cpm_bid_microsintegeroptional
minimum: 1maximum: 9007199254740991
{
  "type": "object",
  "properties": {
    "operation_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "pattern": ".*\\S.*"
    },
    "type": {
      "const": "ad_group.update"
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "pattern": ".*\\S.*"
    },
    "target_resource_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,255}$"
    },
    "input": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 3,
          "maxLength": 1000,
          "pattern": ".*\\S.*"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 5000
        },
        "status": {
          "enum": [
            "active",
            "paused",
            "archived"
          ]
        },
        "context_hints": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "pattern": ".*\\S.*"
          },
          "maxItems": 2000
        },
        "exclusion_hints": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "pattern": ".*\\S.*"
          },
          "maxItems": 2000
        },
        "max_bid_micros": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "max_cpm_bid_micros": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        }
      },
      "required": [],
      "additionalProperties": false,
      "minProperties": 1
    }
  },
  "required": [
    "operation_id",
    "type",
    "input",
    "target_resource_id"
  ],
  "additionalProperties": false,
  "minProperties": 0
}
oneOf · schema 5
operation_idstringrequired
minLength: 1maxLength: 255pattern: ".*\\S.*"
typeschemarequired
const: "ad.create"
idempotency_keystringrequired
minLength: 1maxLength: 255pattern: ".*\\S.*"
target_resource_idstringoptional
pattern: "^[A-Za-z0-9_-]{1,255}$"
inputobjectrequired
additionalProperties: false
EXPAND INPUT
campaign_idempotency_keystringrequired
minLength: 1maxLength: 255pattern: ".*\\S.*"
ad_group_idempotency_keystringrequired
minLength: 1maxLength: 255pattern: ".*\\S.*"
titlestringrequired
minLength: 3maxLength: 50pattern: ".*\\S.*"
bodystringrequired
maxLength: 100
target_urlstringrequired
format: "uri"maxLength: 2048
source_image_urlstringrequired
format: "uri"maxLength: 2048
statusenumoptional
enum: ["active","paused"]
{
  "type": "object",
  "properties": {
    "operation_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "pattern": ".*\\S.*"
    },
    "type": {
      "const": "ad.create"
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "pattern": ".*\\S.*"
    },
    "target_resource_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,255}$"
    },
    "input": {
      "type": "object",
      "properties": {
        "campaign_idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255,
          "pattern": ".*\\S.*"
        },
        "ad_group_idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255,
          "pattern": ".*\\S.*"
        },
        "title": {
          "type": "string",
          "minLength": 3,
          "maxLength": 50,
          "pattern": ".*\\S.*"
        },
        "body": {
          "type": "string",
          "maxLength": 100
        },
        "target_url": {
          "type": "string",
          "format": "uri",
          "maxLength": 2048
        },
        "source_image_url": {
          "type": "string",
          "format": "uri",
          "maxLength": 2048
        },
        "status": {
          "enum": [
            "active",
            "paused"
          ]
        }
      },
      "required": [
        "campaign_idempotency_key",
        "ad_group_idempotency_key",
        "title",
        "body",
        "target_url",
        "source_image_url"
      ],
      "additionalProperties": false,
      "minProperties": 0
    }
  },
  "required": [
    "operation_id",
    "type",
    "input",
    "idempotency_key"
  ],
  "additionalProperties": false,
  "minProperties": 0
}
oneOf · schema 6
operation_idstringrequired
minLength: 1maxLength: 255pattern: ".*\\S.*"
typeschemarequired
const: "ad.update"
idempotency_keystringoptional
minLength: 1maxLength: 255pattern: ".*\\S.*"
target_resource_idstringrequired
pattern: "^[A-Za-z0-9_-]{1,255}$"
inputobjectrequired
additionalProperties: false
EXPAND INPUT
namestringoptional
minLength: 3maxLength: 1000pattern: ".*\\S.*"
statusenumoptional
enum: ["active","paused","archived"]
creativeobjectoptional
additionalProperties: false
EXPAND CREATIVE
titlestringoptional
minLength: 3maxLength: 50pattern: ".*\\S.*"
bodystringoptional
maxLength: 100
target_urlstringoptional
format: "uri"maxLength: 2048
file_idstringoptional
minLength: 1maxLength: 255pattern: ".*\\S.*"
{
  "type": "object",
  "properties": {
    "operation_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "pattern": ".*\\S.*"
    },
    "type": {
      "const": "ad.update"
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "pattern": ".*\\S.*"
    },
    "target_resource_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,255}$"
    },
    "input": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 3,
          "maxLength": 1000,
          "pattern": ".*\\S.*"
        },
        "status": {
          "enum": [
            "active",
            "paused",
            "archived"
          ]
        },
        "creative": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string",
              "minLength": 3,
              "maxLength": 50,
              "pattern": ".*\\S.*"
            },
            "body": {
              "type": "string",
              "maxLength": 100
            },
            "target_url": {
              "type": "string",
              "format": "uri",
              "maxLength": 2048
            },
            "file_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": ".*\\S.*"
            }
          },
          "required": [],
          "additionalProperties": false,
          "minProperties": 0
        }
      },
      "required": [],
      "additionalProperties": false,
      "minProperties": 1
    }
  },
  "required": [
    "operation_id",
    "type",
    "input",
    "target_resource_id"
  ],
  "additionalProperties": false,
  "minProperties": 0
}
Full JSON Schema
{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "format": "uuid"
    },
    "body": {
      "type": "object",
      "properties": {
        "validate_only": {
          "type": "boolean"
        },
        "partial_failure": {
          "type": "boolean"
        },
        "operations": {
          "type": "array",
          "minItems": 1,
          "maxItems": 1000,
          "items": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "operation_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": ".*\\S.*"
                  },
                  "type": {
                    "const": "campaign.create"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": ".*\\S.*"
                  },
                  "target_resource_id": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,255}$"
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 1000,
                        "pattern": ".*\\S.*"
                      },
                      "max_budget_micros": {
                        "type": "integer",
                        "minimum": 1000000,
                        "maximum": 9007199254740991
                      },
                      "billing_event_type": {
                        "enum": [
                          "click",
                          "impression"
                        ]
                      },
                      "budget_type": {
                        "enum": [
                          "lifetime",
                          "daily"
                        ]
                      },
                      "status": {
                        "enum": [
                          "active",
                          "paused"
                        ]
                      },
                      "target_countries": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Z]{2}$"
                        }
                      },
                      "location_ids": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": ".*\\S.*"
                        },
                        "maxItems": 2500
                      }
                    },
                    "required": [
                      "name",
                      "max_budget_micros"
                    ],
                    "additionalProperties": false,
                    "minProperties": 0
                  }
                },
                "required": [
                  "operation_id",
                  "type",
                  "input",
                  "idempotency_key"
                ],
                "additionalProperties": false,
                "minProperties": 0
              },
              {
                "type": "object",
                "properties": {
                  "operation_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": ".*\\S.*"
                  },
                  "type": {
                    "const": "campaign.update"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": ".*\\S.*"
                  },
                  "target_resource_id": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,255}$"
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 1000,
                        "pattern": ".*\\S.*"
                      },
                      "description": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 5000
                      },
                      "status": {
                        "enum": [
                          "active",
                          "paused",
                          "archived"
                        ]
                      },
                      "max_budget_micros": {
                        "type": "integer",
                        "minimum": 1000000,
                        "maximum": 9007199254740991
                      },
                      "budget_type": {
                        "enum": [
                          "lifetime",
                          "daily"
                        ]
                      },
                      "start_time": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "minimum": 946684800,
                        "maximum": 4102444800
                      },
                      "end_time": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "minimum": 946684800,
                        "maximum": 4102444800
                      },
                      "location_ids": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": ".*\\S.*"
                        },
                        "maxItems": 2500
                      }
                    },
                    "required": [],
                    "additionalProperties": false,
                    "minProperties": 1
                  }
                },
                "required": [
                  "operation_id",
                  "type",
                  "input",
                  "target_resource_id"
                ],
                "additionalProperties": false,
                "minProperties": 0
              },
              {
                "type": "object",
                "properties": {
                  "operation_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": ".*\\S.*"
                  },
                  "type": {
                    "const": "ad_group.create"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": ".*\\S.*"
                  },
                  "target_resource_id": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,255}$"
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "campaign_idempotency_key": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255,
                        "pattern": ".*\\S.*"
                      },
                      "name": {
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 1000,
                        "pattern": ".*\\S.*"
                      },
                      "context_hints": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1000,
                          "pattern": ".*\\S.*"
                        },
                        "maxItems": 2000
                      },
                      "exclusion_hints": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1000,
                          "pattern": ".*\\S.*"
                        },
                        "maxItems": 2000
                      },
                      "max_bid_micros": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      },
                      "max_cpm_bid_micros": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      },
                      "status": {
                        "enum": [
                          "active",
                          "paused"
                        ]
                      }
                    },
                    "required": [
                      "campaign_idempotency_key",
                      "name"
                    ],
                    "additionalProperties": false,
                    "minProperties": 0
                  }
                },
                "required": [
                  "operation_id",
                  "type",
                  "input",
                  "idempotency_key"
                ],
                "additionalProperties": false,
                "minProperties": 0
              },
              {
                "type": "object",
                "properties": {
                  "operation_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": ".*\\S.*"
                  },
                  "type": {
                    "const": "ad_group.update"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": ".*\\S.*"
                  },
                  "target_resource_id": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,255}$"
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 1000,
                        "pattern": ".*\\S.*"
                      },
                      "description": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 5000
                      },
                      "status": {
                        "enum": [
                          "active",
                          "paused",
                          "archived"
                        ]
                      },
                      "context_hints": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1000,
                          "pattern": ".*\\S.*"
                        },
                        "maxItems": 2000
                      },
                      "exclusion_hints": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1000,
                          "pattern": ".*\\S.*"
                        },
                        "maxItems": 2000
                      },
                      "max_bid_micros": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      },
                      "max_cpm_bid_micros": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [],
                    "additionalProperties": false,
                    "minProperties": 1
                  }
                },
                "required": [
                  "operation_id",
                  "type",
                  "input",
                  "target_resource_id"
                ],
                "additionalProperties": false,
                "minProperties": 0
              },
              {
                "type": "object",
                "properties": {
                  "operation_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": ".*\\S.*"
                  },
                  "type": {
                    "const": "ad.create"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": ".*\\S.*"
                  },
                  "target_resource_id": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,255}$"
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "campaign_idempotency_key": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255,
                        "pattern": ".*\\S.*"
                      },
                      "ad_group_idempotency_key": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255,
                        "pattern": ".*\\S.*"
                      },
                      "title": {
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 50,
                        "pattern": ".*\\S.*"
                      },
                      "body": {
                        "type": "string",
                        "maxLength": 100
                      },
                      "target_url": {
                        "type": "string",
                        "format": "uri",
                        "maxLength": 2048
                      },
                      "source_image_url": {
                        "type": "string",
                        "format": "uri",
                        "maxLength": 2048
                      },
                      "status": {
                        "enum": [
                          "active",
                          "paused"
                        ]
                      }
                    },
                    "required": [
                      "campaign_idempotency_key",
                      "ad_group_idempotency_key",
                      "title",
                      "body",
                      "target_url",
                      "source_image_url"
                    ],
                    "additionalProperties": false,
                    "minProperties": 0
                  }
                },
                "required": [
                  "operation_id",
                  "type",
                  "input",
                  "idempotency_key"
                ],
                "additionalProperties": false,
                "minProperties": 0
              },
              {
                "type": "object",
                "properties": {
                  "operation_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": ".*\\S.*"
                  },
                  "type": {
                    "const": "ad.update"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": ".*\\S.*"
                  },
                  "target_resource_id": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,255}$"
                  },
                  "input": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 1000,
                        "pattern": ".*\\S.*"
                      },
                      "status": {
                        "enum": [
                          "active",
                          "paused",
                          "archived"
                        ]
                      },
                      "creative": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "minLength": 3,
                            "maxLength": 50,
                            "pattern": ".*\\S.*"
                          },
                          "body": {
                            "type": "string",
                            "maxLength": 100
                          },
                          "target_url": {
                            "type": "string",
                            "format": "uri",
                            "maxLength": 2048
                          },
                          "file_id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255,
                            "pattern": ".*\\S.*"
                          }
                        },
                        "required": [],
                        "additionalProperties": false,
                        "minProperties": 0
                      }
                    },
                    "required": [],
                    "additionalProperties": false,
                    "minProperties": 1
                  }
                },
                "required": [
                  "operation_id",
                  "type",
                  "input",
                  "target_resource_id"
                ],
                "additionalProperties": false,
                "minProperties": 0
              }
            ]
          }
        }
      },
      "required": [
        "operations"
      ],
      "additionalProperties": false,
      "minProperties": 0
    }
  },
  "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.

Advarde MCP API v1.0