xref: /aosp_15_r20/external/googleapis/google/ads/googleads/v16/resources/customer_asset.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
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.googleads.v16.resources;
18
19import "google/ads/googleads/v16/common/asset_policy.proto";
20import "google/ads/googleads/v16/enums/asset_field_type.proto";
21import "google/ads/googleads/v16/enums/asset_link_primary_status.proto";
22import "google/ads/googleads/v16/enums/asset_link_primary_status_reason.proto";
23import "google/ads/googleads/v16/enums/asset_link_status.proto";
24import "google/ads/googleads/v16/enums/asset_source.proto";
25import "google/api/field_behavior.proto";
26import "google/api/resource.proto";
27
28option csharp_namespace = "Google.Ads.GoogleAds.V16.Resources";
29option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v16/resources;resources";
30option java_multiple_files = true;
31option java_outer_classname = "CustomerAssetProto";
32option java_package = "com.google.ads.googleads.v16.resources";
33option objc_class_prefix = "GAA";
34option php_namespace = "Google\\Ads\\GoogleAds\\V16\\Resources";
35option ruby_package = "Google::Ads::GoogleAds::V16::Resources";
36
37// Proto file describing the CustomerAsset resource.
38
39// A link between a customer and an asset.
40message CustomerAsset {
41  option (google.api.resource) = {
42    type: "googleads.googleapis.com/CustomerAsset"
43    pattern: "customers/{customer_id}/customerAssets/{asset_id}~{field_type}"
44  };
45
46  // Immutable. The resource name of the customer asset.
47  // CustomerAsset resource names have the form:
48  //
49  // `customers/{customer_id}/customerAssets/{asset_id}~{field_type}`
50  string resource_name = 1 [
51    (google.api.field_behavior) = IMMUTABLE,
52    (google.api.resource_reference) = {
53      type: "googleads.googleapis.com/CustomerAsset"
54    }
55  ];
56
57  // Required. Immutable. The asset which is linked to the customer.
58  string asset = 2 [
59    (google.api.field_behavior) = REQUIRED,
60    (google.api.field_behavior) = IMMUTABLE,
61    (google.api.resource_reference) = { type: "googleads.googleapis.com/Asset" }
62  ];
63
64  // Required. Immutable. Role that the asset takes for the customer link.
65  google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType field_type =
66      3 [
67        (google.api.field_behavior) = REQUIRED,
68        (google.api.field_behavior) = IMMUTABLE
69      ];
70
71  // Output only. Source of the customer asset link.
72  google.ads.googleads.v16.enums.AssetSourceEnum.AssetSource source = 5
73      [(google.api.field_behavior) = OUTPUT_ONLY];
74
75  // Status of the customer asset.
76  google.ads.googleads.v16.enums.AssetLinkStatusEnum.AssetLinkStatus status = 4;
77
78  // Output only. Provides the PrimaryStatus of this asset link.
79  // Primary status is meant essentially to differentiate between the plain
80  // "status" field, which has advertiser set values of enabled, paused, or
81  // removed.  The primary status takes into account other signals (for assets
82  // its mainly policy and quality approvals) to come up with a more
83  // comprehensive status to indicate its serving state.
84  google.ads.googleads.v16.enums.AssetLinkPrimaryStatusEnum
85      .AssetLinkPrimaryStatus primary_status = 6
86      [(google.api.field_behavior) = OUTPUT_ONLY];
87
88  // Output only. Provides the details of the primary status and its associated
89  // reasons.
90  repeated google.ads.googleads.v16.common.AssetLinkPrimaryStatusDetails
91      primary_status_details = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
92
93  // Output only. Provides a list of reasons for why an asset is not serving or
94  // not serving at full capacity.
95  repeated google.ads.googleads.v16.enums.AssetLinkPrimaryStatusReasonEnum
96      .AssetLinkPrimaryStatusReason primary_status_reasons = 8
97      [(google.api.field_behavior) = OUTPUT_ONLY];
98}
99