---
title: "POST /v23/customers/{+customerId}/campaignBudgets:mutate"
method: POST
path: "/v23/customers/{+customerId}/campaignBudgets:mutate"
tags: ["customers"]
---

# POST /v23/customers/{+customerId}/campaignBudgets:mutate

`POST /v23/customers/{+customerId}/campaignBudgets:mutate`

Creates, updates, or removes campaign budgets. Operation statuses are returned. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [CampaignBudgetError]() [DatabaseError]() [DistinctError]() [FieldError]() [FieldMaskError]() [HeaderError]() [InternalError]() [MutateError]() [NewResourceCreationError]() [OperationAccessDeniedError]() [QuotaError]() [RangeError]() [RequestError]() [ResourceCountLimitExceededError]() [StringLengthError]()

## Path parameters

- `customerId` string, required

## Request body

- GoogleAdsSearchads360V23ServicesMutateCampaignBudgetsRequest — Request message for CampaignBudgetService.MutateCampaignBudgets.
  - `partialFailure` boolean — If true, successful operations will be carried out and invalid operations will return errors. If false, all operations will be carried out in one transaction if and only if they are all valid. Default is false.
  - `operations` GoogleAdsSearchads360V23ServicesCampaignBudgetOperation[] — Required. The list of operations to perform on individual campaign budgets.
    - `remove` string — Remove operation: A resource name for the removed budget is expected, in this format: `customers/{customer_id}/campaignBudgets/{budget_id}`
    - `updateMask` string, google-fieldmask — FieldMask that determines which resource fields are modified in an update.
    - `create` GoogleAdsSearchads360V23ResourcesCampaignBudget — A campaign budget.
      - `recommendedBudgetEstimatedChangeWeeklyClicks` string, int64 — Output only. The estimated change in weekly clicks if the recommended budget is applied. This field is read-only.
      - `status` 'UNSPECIFIED' | 'UNKNOWN' | 'ENABLED' | 'REMOVED' — Output only. The status of this campaign budget. This field is read-only.
      - `type` 'UNSPECIFIED' | 'UNKNOWN' | 'STANDARD' | 'FIXED_CPA' | 'SMART_CAMPAIGN' | 'LOCAL_SERVICES' — Immutable. The type of the campaign budget.
      - `id` string, int64 — Output only. The ID of the campaign budget. A campaign budget is created using the CampaignBudgetService create operation and is assigned a budget ID. A budget ID can be shared across different campaigns; the system will then allocate the campaign budget among different campaigns to get optimum results.
      - `deliveryMethod` 'UNSPECIFIED' | 'UNKNOWN' | 'STANDARD' | 'ACCELERATED' — The delivery method that determines the rate at which the campaign budget is spent. Defaults to STANDARD if unspecified in a create operation.
      - `period` 'UNSPECIFIED' | 'UNKNOWN' | 'DAILY' | 'CUSTOM_PERIOD' — Immutable. Period over which to spend the budget. Defaults to DAILY if not specified.
      - `recommendedBudgetEstimatedChangeWeeklyCostMicros` string, int64 — Output only. The estimated change in weekly cost in micros if the recommended budget is applied. One million is equivalent to one currency unit. This field is read-only.
      - `totalAmountMicros` string, int64 — The total amount to be spent by the campaign over its entire duration. This field is used *only* when the CampaignBudget `period` is set to `CUSTOM_PERIOD`. It represents the budget cap for the campaign's lifetime, rather than a daily limit. The amount is specified in micros in the account's local currency. One million micros is equivalent to one currency unit. This field is mutually exclusive with 'amount_micros'. Only one of 'total_amount_micros' or 'amount_micros' should be set.
      - `referenceCount` string, int64 — Output only. The number of campaigns actively using the budget. This field is read-only.
      - `recommendedBudgetAmountMicros` string, int64 — Output only. The recommended budget amount. If no recommendation is available, this will be set to the budget amount. Amount is specified in micros, where one million is equivalent to one currency unit. This field is read-only.
      - `recommendedBudgetEstimatedChangeWeeklyViews` string, int64 — Output only. The estimated change in weekly views if the recommended budget is applied. This field is read-only.
      - `explicitlyShared` boolean — Specifies whether the budget is explicitly shared. Defaults to true if unspecified in a create operation. If true, the budget was created with the purpose of sharing across one or more campaigns. If false, the budget was created with the intention of only being used with a single campaign. The budget's name and status will stay in sync with the campaign's name and status. Attempting to share the budget with a second campaign will result in an error. A non-shared budget can become an explicitly shared. The same operation must also assign the budget a name. A shared campaign budget can never become non-shared.
      - `name` string — The name of the campaign budget. When creating a campaign budget through CampaignBudgetService, every explicitly shared campaign budget must have a non-null, non-empty name. Campaign budgets that are not explicitly shared derive their name from the attached campaign's name. The length of this string must be between 1 and 255, inclusive, in UTF-8 bytes, (trimmed).
      - `alignedBiddingStrategyId` string, int64 — ID of the portfolio bidding strategy that this shared campaign budget is aligned with. When a bidding strategy and a campaign budget are aligned, they are attached to the same set of campaigns. After a campaign budget is aligned with a bidding strategy, campaigns that are added to the campaign budget must also use the aligned bidding strategy.
      - `hasRecommendedBudget` boolean — Output only. Indicates whether there is a recommended budget for this campaign budget. This field is read-only.
      - `amountMicros` string, int64 — The average daily amount to be spent by the campaign. This field is used when the CampaignBudget `period` is set to `DAILY`, which is the default. Amount is specified in micros in the account's local currency. One million micros is equivalent to one currency unit. The effective monthly spend is capped at 30.4 times this daily amount. This field is mutually exclusive with 'total_amount_micros'. Only one of 'amount_micros' or 'total_amount_micros' should be set.
      - `resourceName` string — Immutable. The resource name of the campaign budget. Campaign budget resource names have the form: `customers/{customer_id}/campaignBudgets/{campaign_budget_id}`
      - `recommendedBudgetEstimatedChangeWeeklyInteractions` string, int64 — Output only. The estimated change in weekly interactions if the recommended budget is applied. This field is read-only.
    - `update` GoogleAdsSearchads360V23ResourcesCampaignBudget — A campaign budget.
      - `recommendedBudgetEstimatedChangeWeeklyClicks` string, int64 — Output only. The estimated change in weekly clicks if the recommended budget is applied. This field is read-only.
      - `status` 'UNSPECIFIED' | 'UNKNOWN' | 'ENABLED' | 'REMOVED' — Output only. The status of this campaign budget. This field is read-only.
      - `type` 'UNSPECIFIED' | 'UNKNOWN' | 'STANDARD' | 'FIXED_CPA' | 'SMART_CAMPAIGN' | 'LOCAL_SERVICES' — Immutable. The type of the campaign budget.
      - `id` string, int64 — Output only. The ID of the campaign budget. A campaign budget is created using the CampaignBudgetService create operation and is assigned a budget ID. A budget ID can be shared across different campaigns; the system will then allocate the campaign budget among different campaigns to get optimum results.
      - `deliveryMethod` 'UNSPECIFIED' | 'UNKNOWN' | 'STANDARD' | 'ACCELERATED' — The delivery method that determines the rate at which the campaign budget is spent. Defaults to STANDARD if unspecified in a create operation.
      - `period` 'UNSPECIFIED' | 'UNKNOWN' | 'DAILY' | 'CUSTOM_PERIOD' — Immutable. Period over which to spend the budget. Defaults to DAILY if not specified.
      - `recommendedBudgetEstimatedChangeWeeklyCostMicros` string, int64 — Output only. The estimated change in weekly cost in micros if the recommended budget is applied. One million is equivalent to one currency unit. This field is read-only.
      - `totalAmountMicros` string, int64 — The total amount to be spent by the campaign over its entire duration. This field is used *only* when the CampaignBudget `period` is set to `CUSTOM_PERIOD`. It represents the budget cap for the campaign's lifetime, rather than a daily limit. The amount is specified in micros in the account's local currency. One million micros is equivalent to one currency unit. This field is mutually exclusive with 'amount_micros'. Only one of 'total_amount_micros' or 'amount_micros' should be set.
      - `referenceCount` string, int64 — Output only. The number of campaigns actively using the budget. This field is read-only.
      - `recommendedBudgetAmountMicros` string, int64 — Output only. The recommended budget amount. If no recommendation is available, this will be set to the budget amount. Amount is specified in micros, where one million is equivalent to one currency unit. This field is read-only.
      - `recommendedBudgetEstimatedChangeWeeklyViews` string, int64 — Output only. The estimated change in weekly views if the recommended budget is applied. This field is read-only.
      - `explicitlyShared` boolean — Specifies whether the budget is explicitly shared. Defaults to true if unspecified in a create operation. If true, the budget was created with the purpose of sharing across one or more campaigns. If false, the budget was created with the intention of only being used with a single campaign. The budget's name and status will stay in sync with the campaign's name and status. Attempting to share the budget with a second campaign will result in an error. A non-shared budget can become an explicitly shared. The same operation must also assign the budget a name. A shared campaign budget can never become non-shared.
      - `name` string — The name of the campaign budget. When creating a campaign budget through CampaignBudgetService, every explicitly shared campaign budget must have a non-null, non-empty name. Campaign budgets that are not explicitly shared derive their name from the attached campaign's name. The length of this string must be between 1 and 255, inclusive, in UTF-8 bytes, (trimmed).
      - `alignedBiddingStrategyId` string, int64 — ID of the portfolio bidding strategy that this shared campaign budget is aligned with. When a bidding strategy and a campaign budget are aligned, they are attached to the same set of campaigns. After a campaign budget is aligned with a bidding strategy, campaigns that are added to the campaign budget must also use the aligned bidding strategy.
      - `hasRecommendedBudget` boolean — Output only. Indicates whether there is a recommended budget for this campaign budget. This field is read-only.
      - `amountMicros` string, int64 — The average daily amount to be spent by the campaign. This field is used when the CampaignBudget `period` is set to `DAILY`, which is the default. Amount is specified in micros in the account's local currency. One million micros is equivalent to one currency unit. The effective monthly spend is capped at 30.4 times this daily amount. This field is mutually exclusive with 'total_amount_micros'. Only one of 'amount_micros' or 'total_amount_micros' should be set.
      - `resourceName` string — Immutable. The resource name of the campaign budget. Campaign budget resource names have the form: `customers/{customer_id}/campaignBudgets/{campaign_budget_id}`
      - `recommendedBudgetEstimatedChangeWeeklyInteractions` string, int64 — Output only. The estimated change in weekly interactions if the recommended budget is applied. This field is read-only.
  - `responseContentType` 'UNSPECIFIED' | 'RESOURCE_NAME_ONLY' | 'MUTABLE_RESOURCE' — The response content type setting. Determines whether the mutable resource or just the resource name should be returned post mutation.
  - `validateOnly` boolean — If true, the request is validated but not executed. Only errors are returned, not results.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/searchads360.md) · [All operations](https://skmtc.net/google/apis/searchads360/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/searchads360/revisions/40d087435afd/schema)
