---
title: "POST /v23/customers/{customersId}/recommendationSubscriptions:mutateRecommendationSubscription"
method: POST
path: "/v23/customers/{customersId}/recommendationSubscriptions:mutateRecommendationSubscription"
tags: ["customers"]
---

# POST /v23/customers/{customersId}/recommendationSubscriptions:mutateRecommendationSubscription

`POST /v23/customers/{customersId}/recommendationSubscriptions:mutateRecommendationSubscription`

## Request

- Base URL: `https://searchads360.googleapis.com`
- URL: `https://searchads360.googleapis.com/v23/customers/{customersId}/recommendationSubscriptions:mutateRecommendationSubscription`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/doubleclicksearch`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/doubleclicksearch`
- TypeScript: <https://skmtc.dev/google/apis/searchads360/docs/v23/customers/:customersId/recommendationSubscriptions:mutateRecommendationSubscription/post.ts> (a function with typed inputs; its response is checked against the schema)

Mutates given subscription with corresponding apply parameters. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [DatabaseError]() [FieldError]() [HeaderError]() [InternalError]() [MutateError]() [QuotaError]() [RecommendationError]() [RecommendationSubscriptionError]() [RequestError]() [UrlFieldError]()

## Path parameters

- `customersId` string, required

## Request body

- GoogleAdsSearchads360V23ServicesMutateRecommendationSubscriptionRequest: Request message for RecommendationSubscriptionService.MutateRecommendationSubscription
  - `operations` GoogleAdsSearchads360V23ServicesRecommendationSubscriptionOperation[]: Required. The list of create or update operations.
    - `create` GoogleAdsSearchads360V23ResourcesRecommendationSubscription: Recommendation Subscription resource
      - `createDateTime` string: Output only. Time in seconds when the subscription was first created. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss" format.
      - `modifyDateTime` string: Output only. Contains the time in microseconds, when the Recommendation Subscription was last updated. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format.
      - `resourceName` string: Immutable. The resource name of the recommendation subscription. `customers/{customer_id}/recommendationSubscriptions/{recommendation_type}`
      - `status` 'UNSPECIFIED' | 'UNKNOWN' | 'ENABLED' | 'PAUSED': Required. Status of the subscription, either enabled or paused.
      - `type` 'UNSPECIFIED' | 'UNKNOWN' | 'CAMPAIGN_BUDGET' | 'KEYWORD' | 'TEXT_AD' | 'TARGET_CPA_OPT_IN' | 'MAXIMIZE_CONVERSIONS_OPT_IN' | 'ENHANCED_CPC_OPT_IN' | 'SEARCH_PARTNERS_OPT_IN' | 'MAXIMIZE_CLICKS_OPT_IN' | 'OPTIMIZE_AD_ROTATION' | 'KEYWORD_MATCH_TYPE' | 'MOVE_UNUSED_BUDGET' | 'FORECASTING_CAMPAIGN_BUDGET' | 'TARGET_ROAS_OPT_IN' | 'RESPONSIVE_SEARCH_AD' | 'MARGINAL_ROI_CAMPAIGN_BUDGET' | 'USE_BROAD_MATCH_KEYWORD' | 'RESPONSIVE_SEARCH_AD_ASSET' | 'UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX' | 'RESPONSIVE_SEARCH_AD_IMPROVE_AD_STRENGTH' | 'DISPLAY_EXPANSION_OPT_IN' | 'UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX' | 'RAISE_TARGET_CPA_BID_TOO_LOW' | 'FORECASTING_SET_TARGET_ROAS' | 'CALLOUT_ASSET' | 'SITELINK_ASSET' | 'CALL_ASSET' | 'SHOPPING_ADD_AGE_GROUP' | 'SHOPPING_ADD_COLOR' | 'SHOPPING_ADD_GENDER' | 'SHOPPING_ADD_GTIN' | 'SHOPPING_ADD_MORE_IDENTIFIERS' | 'SHOPPING_ADD_SIZE' | 'SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN' | 'SHOPPING_FIX_DISAPPROVED_PRODUCTS' | 'SHOPPING_TARGET_ALL_OFFERS' | 'SHOPPING_FIX_SUSPENDED_MERCHANT_CENTER_ACCOUNT' | 'SHOPPING_FIX_MERCHANT_CENTER_ACCOUNT_SUSPENSION_WARNING' | 'SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX' | 'DYNAMIC_IMAGE_EXTENSION_OPT_IN' | 'RAISE_TARGET_CPA' | 'LOWER_TARGET_ROAS' | 'PERFORMANCE_MAX_OPT_IN' | 'IMPROVE_PERFORMANCE_MAX_AD_STRENGTH' | 'MIGRATE_DYNAMIC_SEARCH_ADS_CAMPAIGN_TO_PERFORMANCE_MAX' | 'FORECASTING_SET_TARGET_CPA' | 'SET_TARGET_CPA' | 'SET_TARGET_ROAS' | 'MAXIMIZE_CONVERSION_VALUE_OPT_IN' | 'IMPROVE_GOOGLE_TAG_COVERAGE' | 'PERFORMANCE_MAX_FINAL_URL_OPT_IN' | 'REFRESH_CUSTOMER_MATCH_LIST' | 'CUSTOM_AUDIENCE_OPT_IN' | 'LEAD_FORM_ASSET' | 'IMPROVE_DEMAND_GEN_AD_STRENGTH': Required. Immutable. The type of recommendation subscribed to.
    - `update` GoogleAdsSearchads360V23ResourcesRecommendationSubscription: Recommendation Subscription resource
      - `createDateTime` string: Output only. Time in seconds when the subscription was first created. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss" format.
      - `modifyDateTime` string: Output only. Contains the time in microseconds, when the Recommendation Subscription was last updated. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format.
      - `resourceName` string: Immutable. The resource name of the recommendation subscription. `customers/{customer_id}/recommendationSubscriptions/{recommendation_type}`
      - `status` 'UNSPECIFIED' | 'UNKNOWN' | 'ENABLED' | 'PAUSED': Required. Status of the subscription, either enabled or paused.
      - `type` 'UNSPECIFIED' | 'UNKNOWN' | 'CAMPAIGN_BUDGET' | 'KEYWORD' | 'TEXT_AD' | 'TARGET_CPA_OPT_IN' | 'MAXIMIZE_CONVERSIONS_OPT_IN' | 'ENHANCED_CPC_OPT_IN' | 'SEARCH_PARTNERS_OPT_IN' | 'MAXIMIZE_CLICKS_OPT_IN' | 'OPTIMIZE_AD_ROTATION' | 'KEYWORD_MATCH_TYPE' | 'MOVE_UNUSED_BUDGET' | 'FORECASTING_CAMPAIGN_BUDGET' | 'TARGET_ROAS_OPT_IN' | 'RESPONSIVE_SEARCH_AD' | 'MARGINAL_ROI_CAMPAIGN_BUDGET' | 'USE_BROAD_MATCH_KEYWORD' | 'RESPONSIVE_SEARCH_AD_ASSET' | 'UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX' | 'RESPONSIVE_SEARCH_AD_IMPROVE_AD_STRENGTH' | 'DISPLAY_EXPANSION_OPT_IN' | 'UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX' | 'RAISE_TARGET_CPA_BID_TOO_LOW' | 'FORECASTING_SET_TARGET_ROAS' | 'CALLOUT_ASSET' | 'SITELINK_ASSET' | 'CALL_ASSET' | 'SHOPPING_ADD_AGE_GROUP' | 'SHOPPING_ADD_COLOR' | 'SHOPPING_ADD_GENDER' | 'SHOPPING_ADD_GTIN' | 'SHOPPING_ADD_MORE_IDENTIFIERS' | 'SHOPPING_ADD_SIZE' | 'SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN' | 'SHOPPING_FIX_DISAPPROVED_PRODUCTS' | 'SHOPPING_TARGET_ALL_OFFERS' | 'SHOPPING_FIX_SUSPENDED_MERCHANT_CENTER_ACCOUNT' | 'SHOPPING_FIX_MERCHANT_CENTER_ACCOUNT_SUSPENSION_WARNING' | 'SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX' | 'DYNAMIC_IMAGE_EXTENSION_OPT_IN' | 'RAISE_TARGET_CPA' | 'LOWER_TARGET_ROAS' | 'PERFORMANCE_MAX_OPT_IN' | 'IMPROVE_PERFORMANCE_MAX_AD_STRENGTH' | 'MIGRATE_DYNAMIC_SEARCH_ADS_CAMPAIGN_TO_PERFORMANCE_MAX' | 'FORECASTING_SET_TARGET_CPA' | 'SET_TARGET_CPA' | 'SET_TARGET_ROAS' | 'MAXIMIZE_CONVERSION_VALUE_OPT_IN' | 'IMPROVE_GOOGLE_TAG_COVERAGE' | 'PERFORMANCE_MAX_FINAL_URL_OPT_IN' | 'REFRESH_CUSTOMER_MATCH_LIST' | 'CUSTOM_AUDIENCE_OPT_IN' | 'LEAD_FORM_ASSET' | 'IMPROVE_DEMAND_GEN_AD_STRENGTH': Required. Immutable. The type of recommendation subscribed to.
    - `updateMask` string, google-fieldmask: Optional. FieldMask that determines which resource fields are modified in an update.
  - `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.
  - `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. The mutable resource will only be returned if the resource has the appropriate response field. For example, MutateCampaignResult.campaign.
  - `validateOnly` boolean: If true, the request is validated but not executed. Only errors are returned, not results.

## Response `200`

Successful response

- GoogleAdsSearchads360V23ServicesMutateRecommendationSubscriptionResponse: Response message for RecommendationSubscriptionService.MutateRecommendationSubscription
  - `partialFailureError` GoogleRpcStatus: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
    - `code` integer: The status code, which should be an enum value of google.rpc.Code.
    - `details` object[]: A list of messages that carry the error details. There is a common set of message types for APIs to use.
    - `message` string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  - `results` GoogleAdsSearchads360V23ServicesMutateRecommendationSubscriptionResult[]: Results, one per operation.
    - `recommendationSubscription` GoogleAdsSearchads360V23ResourcesRecommendationSubscription: Recommendation Subscription resource
      - `createDateTime` string: Output only. Time in seconds when the subscription was first created. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss" format.
      - `modifyDateTime` string: Output only. Contains the time in microseconds, when the Recommendation Subscription was last updated. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format.
      - `resourceName` string: Immutable. The resource name of the recommendation subscription. `customers/{customer_id}/recommendationSubscriptions/{recommendation_type}`
      - `status` 'UNSPECIFIED' | 'UNKNOWN' | 'ENABLED' | 'PAUSED': Required. Status of the subscription, either enabled or paused.
      - `type` 'UNSPECIFIED' | 'UNKNOWN' | 'CAMPAIGN_BUDGET' | 'KEYWORD' | 'TEXT_AD' | 'TARGET_CPA_OPT_IN' | 'MAXIMIZE_CONVERSIONS_OPT_IN' | 'ENHANCED_CPC_OPT_IN' | 'SEARCH_PARTNERS_OPT_IN' | 'MAXIMIZE_CLICKS_OPT_IN' | 'OPTIMIZE_AD_ROTATION' | 'KEYWORD_MATCH_TYPE' | 'MOVE_UNUSED_BUDGET' | 'FORECASTING_CAMPAIGN_BUDGET' | 'TARGET_ROAS_OPT_IN' | 'RESPONSIVE_SEARCH_AD' | 'MARGINAL_ROI_CAMPAIGN_BUDGET' | 'USE_BROAD_MATCH_KEYWORD' | 'RESPONSIVE_SEARCH_AD_ASSET' | 'UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX' | 'RESPONSIVE_SEARCH_AD_IMPROVE_AD_STRENGTH' | 'DISPLAY_EXPANSION_OPT_IN' | 'UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX' | 'RAISE_TARGET_CPA_BID_TOO_LOW' | 'FORECASTING_SET_TARGET_ROAS' | 'CALLOUT_ASSET' | 'SITELINK_ASSET' | 'CALL_ASSET' | 'SHOPPING_ADD_AGE_GROUP' | 'SHOPPING_ADD_COLOR' | 'SHOPPING_ADD_GENDER' | 'SHOPPING_ADD_GTIN' | 'SHOPPING_ADD_MORE_IDENTIFIERS' | 'SHOPPING_ADD_SIZE' | 'SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN' | 'SHOPPING_FIX_DISAPPROVED_PRODUCTS' | 'SHOPPING_TARGET_ALL_OFFERS' | 'SHOPPING_FIX_SUSPENDED_MERCHANT_CENTER_ACCOUNT' | 'SHOPPING_FIX_MERCHANT_CENTER_ACCOUNT_SUSPENSION_WARNING' | 'SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX' | 'DYNAMIC_IMAGE_EXTENSION_OPT_IN' | 'RAISE_TARGET_CPA' | 'LOWER_TARGET_ROAS' | 'PERFORMANCE_MAX_OPT_IN' | 'IMPROVE_PERFORMANCE_MAX_AD_STRENGTH' | 'MIGRATE_DYNAMIC_SEARCH_ADS_CAMPAIGN_TO_PERFORMANCE_MAX' | 'FORECASTING_SET_TARGET_CPA' | 'SET_TARGET_CPA' | 'SET_TARGET_ROAS' | 'MAXIMIZE_CONVERSION_VALUE_OPT_IN' | 'IMPROVE_GOOGLE_TAG_COVERAGE' | 'PERFORMANCE_MAX_FINAL_URL_OPT_IN' | 'REFRESH_CUSTOMER_MATCH_LIST' | 'CUSTOM_AUDIENCE_OPT_IN' | 'LEAD_FORM_ASSET' | 'IMPROVE_DEMAND_GEN_AD_STRENGTH': Required. Immutable. The type of recommendation subscribed to.
    - `resourceName` string: Resource name of the subscription that was modified.

---

[API](https://skmtc.dev/google/apis/searchads360.md) - [All operations](https://skmtc.dev/google/apis/searchads360/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/searchads360/revisions/4a4511f84b18?raw)
