--- v18/resources/asset_group.proto 2024-10-16 17:56:30.000000000 +0000 +++ v19/resources/asset_group.proto 2025-04-16 17:10:13.000000000 +0000 @@ -1,108 +1,159 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; -package google.ads.googleads.v18.resources; +package google.ads.googleads.v19.resources; -import "google/ads/googleads/v18/enums/ad_strength.proto"; -import "google/ads/googleads/v18/enums/asset_group_primary_status.proto"; -import "google/ads/googleads/v18/enums/asset_group_primary_status_reason.proto"; -import "google/ads/googleads/v18/enums/asset_group_status.proto"; +import "google/ads/googleads/v19/enums/ad_strength.proto"; +import "google/ads/googleads/v19/enums/ad_strength_action_item_type.proto"; +import "google/ads/googleads/v19/enums/asset_coverage_video_aspect_ratio_requirement.proto"; +import "google/ads/googleads/v19/enums/asset_field_type.proto"; +import "google/ads/googleads/v19/enums/asset_group_primary_status.proto"; +import "google/ads/googleads/v19/enums/asset_group_primary_status_reason.proto"; +import "google/ads/googleads/v19/enums/asset_group_status.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -option csharp_namespace = "Google.Ads.GoogleAds.V18.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources"; +option csharp_namespace = "Google.Ads.GoogleAds.V19.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v19/resources;resources"; option java_multiple_files = true; option java_outer_classname = "AssetGroupProto"; -option java_package = "com.google.ads.googleads.v18.resources"; +option java_package = "com.google.ads.googleads.v19.resources"; option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V18\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V18::Resources"; +option php_namespace = "Google\\Ads\\GoogleAds\\V19\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V19::Resources"; // An asset group. // AssetGroupAsset is used to link an asset to the asset group. // AssetGroupSignal is used to associate a signal to an asset group. message AssetGroup { option (google.api.resource) = { type: "googleads.googleapis.com/AssetGroup" pattern: "customers/{customer_id}/assetGroups/{asset_group_id}" + plural: "assetGroups" + singular: "assetGroup" }; // Immutable. The resource name of the asset group. // Asset group resource names have the form: // // `customers/{customer_id}/assetGroups/{asset_group_id}` string resource_name = 1 [ (google.api.field_behavior) = IMMUTABLE, (google.api.resource_reference) = { type: "googleads.googleapis.com/AssetGroup" } ]; // Output only. The ID of the asset group. int64 id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; // Immutable. The campaign with which this asset group is associated. // The asset which is linked to the asset group. string campaign = 2 [ (google.api.field_behavior) = IMMUTABLE, (google.api.resource_reference) = { type: "googleads.googleapis.com/Campaign" } ]; // Required. Name of the asset group. Required. It must have a minimum length // of 1 and maximum length of 128. It must be unique under a campaign. string name = 3 [(google.api.field_behavior) = REQUIRED]; // A list of final URLs after all cross domain redirects. In performance max, // by default, the urls are eligible for expansion unless opted out. repeated string final_urls = 4; // A list of final mobile URLs after all cross domain redirects. In // performance max, by default, the urls are eligible for expansion // unless opted out. repeated string final_mobile_urls = 5; // The status of the asset group. - google.ads.googleads.v18.enums.AssetGroupStatusEnum.AssetGroupStatus status = + google.ads.googleads.v19.enums.AssetGroupStatusEnum.AssetGroupStatus status = 6; // Output only. The primary status of the asset group. Provides insights into // why an asset group is not serving or not serving optimally. - google.ads.googleads.v18.enums.AssetGroupPrimaryStatusEnum + google.ads.googleads.v19.enums.AssetGroupPrimaryStatusEnum .AssetGroupPrimaryStatus primary_status = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Provides reasons into why an asset group is not serving or not // serving optimally. It will be empty when the asset group is serving without // issues. - repeated google.ads.googleads.v18.enums.AssetGroupPrimaryStatusReasonEnum + repeated google.ads.googleads.v19.enums.AssetGroupPrimaryStatusReasonEnum .AssetGroupPrimaryStatusReason primary_status_reasons = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // First part of text that may appear appended to the url displayed in // the ad. string path1 = 7; // Second part of text that may appear appended to the url displayed in // the ad. This field can only be set when path1 is set. string path2 = 8; // Output only. Overall ad strength of this asset group. - google.ads.googleads.v18.enums.AdStrengthEnum.AdStrength ad_strength = 10 + google.ads.googleads.v19.enums.AdStrengthEnum.AdStrength ad_strength = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The asset coverage of this asset group. + AssetCoverage asset_coverage = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Information about the asset coverage of an asset group. +message AssetCoverage { + // Output only. A list of action items to improve the ad strength of an asset + // group. + repeated AdStrengthActionItem ad_strength_action_items = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// An action item to improve the ad strength of an asset group. +message AdStrengthActionItem { + // The details of the asset to add. + message AddAssetDetails { + // Output only. The asset field type of the asset(s) to add. + google.ads.googleads.v19.enums.AssetFieldTypeEnum.AssetFieldType + asset_field_type = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of assets to add. + optional int32 asset_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. For video field types, the required aspect ratio of the + // video. When unset and asset_field_type is YOUTUBE_VIDEO, the system + // recommends the advertiser upload any YouTube video, regardless of aspect + // ratio. + optional google.ads.googleads.v19.enums + .AssetCoverageVideoAspectRatioRequirementEnum + .AssetCoverageVideoAspectRatioRequirement + video_aspect_ratio_requirement = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The action item type. + google.ads.googleads.v19.enums.AdStrengthActionItemTypeEnum + .AdStrengthActionItemType action_item_type = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The details of this action item. + oneof action_details { + // Output only. The action item details for action item type ADD_ASSET. + AddAssetDetails add_asset_details = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } }
/resources/asset_group.proto
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[null,null,["最后更新时间 (UTC):2025-08-21。"],[],[],null,["# /resources/asset_group.proto\n\n```python\n--- v18/resources/asset_group.proto 2024-10-16 17:56:30.000000000 +0000\n+++ v19/resources/asset_group.proto 2025-04-16 17:10:13.000000000 +0000\n@@ -1,108 +1,159 @@\n-// Copyright 2024 Google LLC\n+// Copyright 2025 Google LLC\n //\n // Licensed under the Apache License, Version 2.0 (the \"License\");\n // you may not use this file except in compliance with the License.\n // You may obtain a copy of the License at\n //\n // http://www.apache.org/licenses/LICENSE-2.0\n //\n // Unless required by applicable law or agreed to in writing, software\n // distributed under the License is distributed on an \"AS IS\" BASIS,\n // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n // See the License for the specific language governing permissions and\n // limitations under the License.\n\n syntax = \"proto3\";\n\n-package google.ads.googleads.v18.resources;\n+package google.ads.googleads.v19.resources;\n\n-import \"google/ads/googleads/v18/enums/ad_strength.proto\";\n-import \"google/ads/googleads/v18/enums/asset_group_primary_status.proto\";\n-import \"google/ads/googleads/v18/enums/asset_group_primary_status_reason.proto\";\n-import \"google/ads/googleads/v18/enums/asset_group_status.proto\";\n+import \"google/ads/googleads/v19/enums/ad_strength.proto\";\n+import \"google/ads/googleads/v19/enums/ad_strength_action_item_type.proto\";\n+import \"google/ads/googleads/v19/enums/asset_coverage_video_aspect_ratio_requirement.proto\";\n+import \"google/ads/googleads/v19/enums/asset_field_type.proto\";\n+import \"google/ads/googleads/v19/enums/asset_group_primary_status.proto\";\n+import \"google/ads/googleads/v19/enums/asset_group_primary_status_reason.proto\";\n+import \"google/ads/googleads/v19/enums/asset_group_status.proto\";\n import \"google/api/field_behavior.proto\";\n import \"google/api/resource.proto\";\n\n-option csharp_namespace = \"Google.Ads.GoogleAds.V18.Resources\";\n-option go_package = \"google.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\";\n+option csharp_namespace = \"Google.Ads.GoogleAds.V19.Resources\";\n+option go_package = \"google.golang.org/genproto/googleapis/ads/googleads/v19/resources;resources\";\n option java_multiple_files = true;\n option java_outer_classname = \"AssetGroupProto\";\n-option java_package = \"com.google.ads.googleads.v18.resources\";\n+option java_package = \"com.google.ads.googleads.v19.resources\";\n option objc_class_prefix = \"GAA\";\n-option php_namespace = \"Google\\\\Ads\\\\GoogleAds\\\\V18\\\\Resources\";\n-option ruby_package = \"Google::Ads::GoogleAds::V18::Resources\";\n+option php_namespace = \"Google\\\\Ads\\\\GoogleAds\\\\V19\\\\Resources\";\n+option ruby_package = \"Google::Ads::GoogleAds::V19::Resources\";\n\n // An asset group.\n // AssetGroupAsset is used to link an asset to the asset group.\n // AssetGroupSignal is used to associate a signal to an asset group.\n message AssetGroup {\n option (google.api.resource) = {\n type: \"googleads.googleapis.com/AssetGroup\"\n pattern: \"customers/{customer_id}/assetGroups/{asset_group_id}\"\n+ plural: \"assetGroups\"\n+ singular: \"assetGroup\"\n };\n\n // Immutable. The resource name of the asset group.\n // Asset group resource names have the form:\n //\n // `customers/{customer_id}/assetGroups/{asset_group_id}`\n string resource_name = 1 [\n (google.api.field_behavior) = IMMUTABLE,\n (google.api.resource_reference) = {\n type: \"googleads.googleapis.com/AssetGroup\"\n }\n ];\n\n // Output only. The ID of the asset group.\n int64 id = 9 [(google.api.field_behavior) = OUTPUT_ONLY];\n\n // Immutable. The campaign with which this asset group is associated.\n // The asset which is linked to the asset group.\n string campaign = 2 [\n (google.api.field_behavior) = IMMUTABLE,\n (google.api.resource_reference) = {\n type: \"googleads.googleapis.com/Campaign\"\n }\n ];\n\n // Required. Name of the asset group. Required. It must have a minimum length\n // of 1 and maximum length of 128. It must be unique under a campaign.\n string name = 3 [(google.api.field_behavior) = REQUIRED];\n\n // A list of final URLs after all cross domain redirects. In performance max,\n // by default, the urls are eligible for expansion unless opted out.\n repeated string final_urls = 4;\n\n // A list of final mobile URLs after all cross domain redirects. In\n // performance max, by default, the urls are eligible for expansion\n // unless opted out.\n repeated string final_mobile_urls = 5;\n\n // The status of the asset group.\n- google.ads.googleads.v18.enums.AssetGroupStatusEnum.AssetGroupStatus status =\n+ google.ads.googleads.v19.enums.AssetGroupStatusEnum.AssetGroupStatus status =\n 6;\n\n // Output only. The primary status of the asset group. Provides insights into\n // why an asset group is not serving or not serving optimally.\n- google.ads.googleads.v18.enums.AssetGroupPrimaryStatusEnum\n+ google.ads.googleads.v19.enums.AssetGroupPrimaryStatusEnum\n .AssetGroupPrimaryStatus primary_status = 11\n [(google.api.field_behavior) = OUTPUT_ONLY];\n\n // Output only. Provides reasons into why an asset group is not serving or not\n // serving optimally. It will be empty when the asset group is serving without\n // issues.\n- repeated google.ads.googleads.v18.enums.AssetGroupPrimaryStatusReasonEnum\n+ repeated google.ads.googleads.v19.enums.AssetGroupPrimaryStatusReasonEnum\n .AssetGroupPrimaryStatusReason primary_status_reasons = 12\n [(google.api.field_behavior) = OUTPUT_ONLY];\n\n // First part of text that may appear appended to the url displayed in\n // the ad.\n string path1 = 7;\n\n // Second part of text that may appear appended to the url displayed in\n // the ad. This field can only be set when path1 is set.\n string path2 = 8;\n\n // Output only. Overall ad strength of this asset group.\n- google.ads.googleads.v18.enums.AdStrengthEnum.AdStrength ad_strength = 10\n+ google.ads.googleads.v19.enums.AdStrengthEnum.AdStrength ad_strength = 10\n [(google.api.field_behavior) = OUTPUT_ONLY];\n+\n+ // Output only. The asset coverage of this asset group.\n+ AssetCoverage asset_coverage = 13 [(google.api.field_behavior) = OUTPUT_ONLY];\n+}\n+\n+// Information about the asset coverage of an asset group.\n+message AssetCoverage {\n+ // Output only. A list of action items to improve the ad strength of an asset\n+ // group.\n+ repeated AdStrengthActionItem ad_strength_action_items = 1\n+ [(google.api.field_behavior) = OUTPUT_ONLY];\n+}\n+\n+// An action item to improve the ad strength of an asset group.\n+message AdStrengthActionItem {\n+ // The details of the asset to add.\n+ message AddAssetDetails {\n+ // Output only. The asset field type of the asset(s) to add.\n+ google.ads.googleads.v19.enums.AssetFieldTypeEnum.AssetFieldType\n+ asset_field_type = 1 [(google.api.field_behavior) = OUTPUT_ONLY];\n+\n+ // Output only. The number of assets to add.\n+ optional int32 asset_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY];\n+\n+ // Output only. For video field types, the required aspect ratio of the\n+ // video. When unset and asset_field_type is YOUTUBE_VIDEO, the system\n+ // recommends the advertiser upload any YouTube video, regardless of aspect\n+ // ratio.\n+ optional google.ads.googleads.v19.enums\n+ .AssetCoverageVideoAspectRatioRequirementEnum\n+ .AssetCoverageVideoAspectRatioRequirement\n+ video_aspect_ratio_requirement = 3\n+ [(google.api.field_behavior) = OUTPUT_ONLY];\n+ }\n+\n+ // Output only. The action item type.\n+ google.ads.googleads.v19.enums.AdStrengthActionItemTypeEnum\n+ .AdStrengthActionItemType action_item_type = 1\n+ [(google.api.field_behavior) = OUTPUT_ONLY];\n+\n+ // The details of this action item.\n+ oneof action_details {\n+ // Output only. The action item details for action item type ADD_ASSET.\n+ AddAssetDetails add_asset_details = 2\n+ [(google.api.field_behavior) = OUTPUT_ONLY];\n+ }\n }\n```"]]