{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-ads/json-schema/google-ads-google-ads-googleads-v25-services-mutate-campaign-asset-sets-request-schema.json",
  "title": "GoogleAdsGoogleadsV25Services__MutateCampaignAssetSetsRequest",
  "description": "Request message for CampaignAssetSetService.MutateCampaignAssetSets.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-ads-customers-campaignassetsets-api-openapi.yml#/components/schemas/GoogleAdsGoogleadsV25Services__MutateCampaignAssetSetsRequest",
  "type": "object",
  "properties": {
    "partialFailure": {
      "type": "boolean",
      "description": "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."
    },
    "validateOnly": {
      "description": "If true, the request is validated but not executed. Only errors are returned, not results.",
      "type": "boolean"
    },
    "responseContentType": {
      "x-enumDescriptions": [
        "Not specified. Will return the resource name only in the response.",
        "The mutate response will be the resource name.",
        "The mutate response will contain the resource name and the resource with mutable fields if possible. Otherwise, only the resource name will be returned."
      ],
      "enum": [
        "UNSPECIFIED",
        "RESOURCE_NAME_ONLY",
        "MUTABLE_RESOURCE"
      ],
      "type": "string",
      "description": "The response content type setting. Determines whether the mutable resource or just the resource name should be returned post mutation."
    },
    "operations": {
      "description": "Required. The list of operations to perform on individual campaign asset sets.",
      "items": {
        "$ref": "#/$defs/GoogleAdsGoogleadsV25Services__CampaignAssetSetOperation"
      },
      "type": "array"
    }
  },
  "$defs": {
    "GoogleAdsGoogleadsV25Resources__CampaignAssetSet": {
      "type": "object",
      "properties": {
        "assetSet": {
          "description": "Immutable. The asset set which is linked to the campaign.",
          "type": "string"
        },
        "resourceName": {
          "type": "string",
          "description": "Immutable. The resource name of the campaign asset set. Asset set asset resource names have the form: `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}`"
        },
        "status": {
          "description": "Output only. The status of the campaign asset set asset. Read-only.",
          "type": "string",
          "enum": [
            "UNSPECIFIED",
            "UNKNOWN",
            "ENABLED",
            "REMOVED"
          ],
          "x-enumDescriptions": [
            "The status has not been specified.",
            "The received value is not known in this version. This is a response-only value.",
            "The linkage between asset set and its container is enabled.",
            "The linkage between asset set and its container is removed."
          ]
        },
        "campaign": {
          "description": "Immutable. The campaign to which this asset set is linked.",
          "type": "string"
        }
      },
      "description": "CampaignAssetSet is the linkage between a campaign and an asset set. Adding a CampaignAssetSet links an asset set with a campaign."
    },
    "GoogleAdsGoogleadsV25Services__CampaignAssetSetOperation": {
      "description": "A single operation (create, remove) on a campaign asset set.",
      "type": "object",
      "properties": {
        "create": {
          "description": "Create operation: No resource name is expected for the new campaign asset set.",
          "$ref": "#/$defs/GoogleAdsGoogleadsV25Resources__CampaignAssetSet"
        },
        "remove": {
          "type": "string",
          "description": "Remove operation: A resource name for the removed campaign asset set is expected, in this format: `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}`"
        }
      }
    }
  }
}