1// Copyright 2023 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17package google.ads.searchads360.v0.resources; 18 19import "google/ads/searchads360/v0/enums/asset_field_type.proto"; 20import "google/ads/searchads360/v0/enums/asset_link_status.proto"; 21import "google/api/field_behavior.proto"; 22import "google/api/resource.proto"; 23 24option csharp_namespace = "Google.Ads.SearchAds360.V0.Resources"; 25option go_package = "google.golang.org/genproto/googleapis/ads/searchads360/v0/resources;resources"; 26option java_multiple_files = true; 27option java_outer_classname = "AssetGroupAssetProto"; 28option java_package = "com.google.ads.searchads360.v0.resources"; 29option objc_class_prefix = "GASA360"; 30option php_namespace = "Google\\Ads\\SearchAds360\\V0\\Resources"; 31option ruby_package = "Google::Ads::SearchAds360::V0::Resources"; 32 33// AssetGroupAsset is the link between an asset and an asset group. 34// Adding an AssetGroupAsset links an asset with an asset group. 35message AssetGroupAsset { 36 option (google.api.resource) = { 37 type: "searchads360.googleapis.com/AssetGroupAsset" 38 pattern: "customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}" 39 }; 40 41 // Immutable. The resource name of the asset group asset. 42 // Asset group asset resource name have the form: 43 // 44 // `customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}` 45 string resource_name = 1 [ 46 (google.api.field_behavior) = IMMUTABLE, 47 (google.api.resource_reference) = { 48 type: "searchads360.googleapis.com/AssetGroupAsset" 49 } 50 ]; 51 52 // Immutable. The asset group which this asset group asset is linking. 53 string asset_group = 2 [ 54 (google.api.field_behavior) = IMMUTABLE, 55 (google.api.resource_reference) = { 56 type: "searchads360.googleapis.com/AssetGroup" 57 } 58 ]; 59 60 // Immutable. The asset which this asset group asset is linking. 61 string asset = 3 [ 62 (google.api.field_behavior) = IMMUTABLE, 63 (google.api.resource_reference) = { 64 type: "searchads360.googleapis.com/Asset" 65 } 66 ]; 67 68 // The description of the placement of the asset within the asset group. For 69 // example: HEADLINE, YOUTUBE_VIDEO etc 70 google.ads.searchads360.v0.enums.AssetFieldTypeEnum.AssetFieldType 71 field_type = 4; 72 73 // The status of the link between an asset and asset group. 74 google.ads.searchads360.v0.enums.AssetLinkStatusEnum.AssetLinkStatus status = 75 5; 76} 77