--- v18/common/audience_insights_attribute.proto 2024-10-16 17:56:30.000000000 +0000 +++ v19/common/audience_insights_attribute.proto 2025-04-16 17:10:13.000000000 +0000 @@ -1,177 +1,230 @@ -// 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.common; +package google.ads.googleads.v19.common; -import "google/ads/googleads/v18/common/criteria.proto"; -import "google/ads/googleads/v18/enums/audience_insights_dimension.proto"; +import "google/ads/googleads/v19/common/criteria.proto"; +import "google/ads/googleads/v19/enums/audience_insights_dimension.proto"; +import "google/ads/googleads/v19/enums/insights_knowledge_graph_entity_capabilities.proto"; import "google/api/field_behavior.proto"; -option csharp_namespace = "Google.Ads.GoogleAds.V18.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v18/common;common"; +option csharp_namespace = "Google.Ads.GoogleAds.V19.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v19/common;common"; option java_multiple_files = true; option java_outer_classname = "AudienceInsightsAttributeProto"; -option java_package = "com.google.ads.googleads.v18.common"; +option java_package = "com.google.ads.googleads.v19.common"; option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V18\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V18::Common"; +option php_namespace = "Google\\Ads\\GoogleAds\\V19\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V19::Common"; // Proto file describing audience insights attributes. // An audience attribute, with metadata about it, returned in response to a // search. message AudienceInsightsAttributeMetadata { // The type of the attribute. - google.ads.googleads.v18.enums.AudienceInsightsDimensionEnum + google.ads.googleads.v19.enums.AudienceInsightsDimensionEnum .AudienceInsightsDimension dimension = 1; // The attribute itself. AudienceInsightsAttribute attribute = 2; // The human-readable name of the attribute. string display_name = 3; // A string that supplements the display_name to identify the attribute. // If the dimension is TOPIC, this is a brief description of the // Knowledge Graph entity, such as "American singer-songwriter". // If the dimension is CATEGORY, this is the complete path to the category in // The Product & Service taxonomy, for example // "/Apparel/Clothing/Outerwear". string display_info = 4; // An estimate of the number of reachable YouTube users matching this // attribute in the requested location, or zero if that information is not // available for this attribute. This field is not populated in every // response. int64 potential_youtube_reach = 8; // The share of subscribers within this attribute, between and including 0 and // 1. This field is not populated in every response. double subscriber_share = 9; + // The share of viewers within this attribute, between and including 0 and + // 1. This field is not populated in every response. + double viewer_share = 13; + // Metadata specific to the dimension of this attribute. oneof dimension_metadata { // Special metadata for a YouTube channel. YouTubeChannelAttributeMetadata youtube_channel_metadata = 5; + // Special metadata for a YouTube video. + YouTubeVideoAttributeMetadata youtube_video_metadata = 10; + // Special metadata for a YouTube Dynamic Lineup. DynamicLineupAttributeMetadata dynamic_attribute_metadata = 6; // Special metadata for a Location. LocationAttributeMetadata location_attribute_metadata = 7; + + // Special metadata for a User Interest. + UserInterestAttributeMetadata user_interest_attribute_metadata = 11; + + // Special metadata for a Knowledge Graph Entity. + KnowledgeGraphAttributeMetadata knowledge_graph_attribute_metadata = 12; } } // An audience attribute that can be used to request insights about the // audience. message AudienceInsightsAttribute { // An audience attribute. oneof attribute { // An audience attribute defined by an age range. AgeRangeInfo age_range = 1; // An audience attribute defined by a gender. GenderInfo gender = 2; // An audience attribute defined by a geographic location. LocationInfo location = 3; // An Affinity or In-Market audience. UserInterestInfo user_interest = 4; // An audience attribute defined by interest in a topic represented by a // Knowledge Graph entity. AudienceInsightsEntity entity = 5; // An audience attribute defined by interest in a Product & Service // category. AudienceInsightsCategory category = 6; // A YouTube Dynamic Lineup. AudienceInsightsDynamicLineup dynamic_lineup = 7; // A Parental Status value (parent, or not a parent). ParentalStatusInfo parental_status = 8; // A household income percentile range. IncomeRangeInfo income_range = 9; // A YouTube channel. YouTubeChannelInfo youtube_channel = 10; + + // A YouTube video. + YouTubeVideoInfo youtube_video = 11; + } +} + +// An entity or category representing a topic that defines an audience. +message AudienceInsightsTopic { + // An entity or category attribute. + oneof topic { + // A Knowledge Graph entity + AudienceInsightsEntity entity = 1; + + // A Product & Service category + AudienceInsightsCategory category = 2; } } // A Knowledge Graph entity, represented by its machine id. message AudienceInsightsEntity { // Required. The machine ID (mid) of the Knowledge Graph entity. string knowledge_graph_machine_id = 1 [(google.api.field_behavior) = REQUIRED]; } // A Product and Service category. message AudienceInsightsCategory { // Required. The criterion ID of the category. string category_id = 1 [(google.api.field_behavior) = REQUIRED]; } // A YouTube Dynamic Lineup. message AudienceInsightsDynamicLineup { // Required. The numeric ID of the dynamic lineup. string dynamic_lineup_id = 1 [(google.api.field_behavior) = REQUIRED]; } // Metadata associated with a YouTube channel attribute. message YouTubeChannelAttributeMetadata { // The approximate number of subscribers to the YouTube channel. int64 subscriber_count = 1; } +// Metadata for a YouTube video attribute. +message YouTubeVideoAttributeMetadata { + // The URL of the video thumbnail, prefixed by "https://img.youtube.com/". + string thumbnail_url = 1; + + // The URL of the video, prefixed by "https://www.youtube.com/". + string video_url = 2; +} + // Metadata associated with a Dynamic Lineup attribute. message DynamicLineupAttributeMetadata { // A YouTube channel returned as an example of the content in a lineup. message SampleChannel { // A YouTube channel. YouTubeChannelInfo youtube_channel = 1; // The name of the sample channel. string display_name = 2; // Metadata for the sample channel. YouTubeChannelAttributeMetadata youtube_channel_metadata = 3; } // The national market associated with the lineup. LocationInfo inventory_country = 1; // The median number of impressions per month on this lineup. optional int64 median_monthly_inventory = 2; // The lower end of a range containing the number of channels in the lineup. optional int64 channel_count_lower_bound = 3; // The upper end of a range containing the number of channels in the lineup. optional int64 channel_count_upper_bound = 4; // Examples of channels that are included in the lineup. repeated SampleChannel sample_channels = 5; } // Metadata associated with a Location attribute. message LocationAttributeMetadata { // The country location that this attribute’s sub country location is located // in. LocationInfo country_location = 1; } + +// Metadata associated with a User Interest attribute. +message UserInterestAttributeMetadata { + // English language text description of the user interest category (200 + // characters max). + string user_interest_description = 1; +} + +// Metadata associated with a Knowledge Graph Entity attribute. +message KnowledgeGraphAttributeMetadata { + // The capabilities of the entity used in [ContentCreatorInsightsService][]. + repeated google.ads.googleads.v19.enums + .InsightsKnowledgeGraphEntityCapabilitiesEnum + .InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1; +}
/common/audience_insights_attribute.proto
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[null,null,["最后更新时间 (UTC):2025-08-21。"],[],[],null,["# /common/audience_insights_attribute.proto\n\n```python\n--- v18/common/audience_insights_attribute.proto 2024-10-16 17:56:30.000000000 +0000\n+++ v19/common/audience_insights_attribute.proto 2025-04-16 17:10:13.000000000 +0000\n@@ -1,177 +1,230 @@\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.common;\n+package google.ads.googleads.v19.common;\n\n-import \"google/ads/googleads/v18/common/criteria.proto\";\n-import \"google/ads/googleads/v18/enums/audience_insights_dimension.proto\";\n+import \"google/ads/googleads/v19/common/criteria.proto\";\n+import \"google/ads/googleads/v19/enums/audience_insights_dimension.proto\";\n+import \"google/ads/googleads/v19/enums/insights_knowledge_graph_entity_capabilities.proto\";\n import \"google/api/field_behavior.proto\";\n\n-option csharp_namespace = \"Google.Ads.GoogleAds.V18.Common\";\n-option go_package = \"google.golang.org/genproto/googleapis/ads/googleads/v18/common;common\";\n+option csharp_namespace = \"Google.Ads.GoogleAds.V19.Common\";\n+option go_package = \"google.golang.org/genproto/googleapis/ads/googleads/v19/common;common\";\n option java_multiple_files = true;\n option java_outer_classname = \"AudienceInsightsAttributeProto\";\n-option java_package = \"com.google.ads.googleads.v18.common\";\n+option java_package = \"com.google.ads.googleads.v19.common\";\n option objc_class_prefix = \"GAA\";\n-option php_namespace = \"Google\\\\Ads\\\\GoogleAds\\\\V18\\\\Common\";\n-option ruby_package = \"Google::Ads::GoogleAds::V18::Common\";\n+option php_namespace = \"Google\\\\Ads\\\\GoogleAds\\\\V19\\\\Common\";\n+option ruby_package = \"Google::Ads::GoogleAds::V19::Common\";\n\n // Proto file describing audience insights attributes.\n\n // An audience attribute, with metadata about it, returned in response to a\n // search.\n message AudienceInsightsAttributeMetadata {\n // The type of the attribute.\n- google.ads.googleads.v18.enums.AudienceInsightsDimensionEnum\n+ google.ads.googleads.v19.enums.AudienceInsightsDimensionEnum\n .AudienceInsightsDimension dimension = 1;\n\n // The attribute itself.\n AudienceInsightsAttribute attribute = 2;\n\n // The human-readable name of the attribute.\n string display_name = 3;\n\n // A string that supplements the display_name to identify the attribute.\n // If the dimension is TOPIC, this is a brief description of the\n // Knowledge Graph entity, such as \"American singer-songwriter\".\n // If the dimension is CATEGORY, this is the complete path to the category in\n // The Product & Service taxonomy, for example\n // \"/Apparel/Clothing/Outerwear\".\n string display_info = 4;\n\n // An estimate of the number of reachable YouTube users matching this\n // attribute in the requested location, or zero if that information is not\n // available for this attribute. This field is not populated in every\n // response.\n int64 potential_youtube_reach = 8;\n\n // The share of subscribers within this attribute, between and including 0 and\n // 1. This field is not populated in every response.\n double subscriber_share = 9;\n\n+ // The share of viewers within this attribute, between and including 0 and\n+ // 1. This field is not populated in every response.\n+ double viewer_share = 13;\n+\n // Metadata specific to the dimension of this attribute.\n oneof dimension_metadata {\n // Special metadata for a YouTube channel.\n YouTubeChannelAttributeMetadata youtube_channel_metadata = 5;\n\n+ // Special metadata for a YouTube video.\n+ YouTubeVideoAttributeMetadata youtube_video_metadata = 10;\n+\n // Special metadata for a YouTube Dynamic Lineup.\n DynamicLineupAttributeMetadata dynamic_attribute_metadata = 6;\n\n // Special metadata for a Location.\n LocationAttributeMetadata location_attribute_metadata = 7;\n+\n+ // Special metadata for a User Interest.\n+ UserInterestAttributeMetadata user_interest_attribute_metadata = 11;\n+\n+ // Special metadata for a Knowledge Graph Entity.\n+ KnowledgeGraphAttributeMetadata knowledge_graph_attribute_metadata = 12;\n }\n }\n\n // An audience attribute that can be used to request insights about the\n // audience.\n message AudienceInsightsAttribute {\n // An audience attribute.\n oneof attribute {\n // An audience attribute defined by an age range.\n AgeRangeInfo age_range = 1;\n\n // An audience attribute defined by a gender.\n GenderInfo gender = 2;\n\n // An audience attribute defined by a geographic location.\n LocationInfo location = 3;\n\n // An Affinity or In-Market audience.\n UserInterestInfo user_interest = 4;\n\n // An audience attribute defined by interest in a topic represented by a\n // Knowledge Graph entity.\n AudienceInsightsEntity entity = 5;\n\n // An audience attribute defined by interest in a Product & Service\n // category.\n AudienceInsightsCategory category = 6;\n\n // A YouTube Dynamic Lineup.\n AudienceInsightsDynamicLineup dynamic_lineup = 7;\n\n // A Parental Status value (parent, or not a parent).\n ParentalStatusInfo parental_status = 8;\n\n // A household income percentile range.\n IncomeRangeInfo income_range = 9;\n\n // A YouTube channel.\n YouTubeChannelInfo youtube_channel = 10;\n+\n+ // A YouTube video.\n+ YouTubeVideoInfo youtube_video = 11;\n+ }\n+}\n+\n+// An entity or category representing a topic that defines an audience.\n+message AudienceInsightsTopic {\n+ // An entity or category attribute.\n+ oneof topic {\n+ // A Knowledge Graph entity\n+ AudienceInsightsEntity entity = 1;\n+\n+ // A Product & Service category\n+ AudienceInsightsCategory category = 2;\n }\n }\n\n // A Knowledge Graph entity, represented by its machine id.\n message AudienceInsightsEntity {\n // Required. The machine ID (mid) of the Knowledge Graph entity.\n string knowledge_graph_machine_id = 1\n [(google.api.field_behavior) = REQUIRED];\n }\n\n // A Product and Service category.\n message AudienceInsightsCategory {\n // Required. The criterion ID of the category.\n string category_id = 1 [(google.api.field_behavior) = REQUIRED];\n }\n\n // A YouTube Dynamic Lineup.\n message AudienceInsightsDynamicLineup {\n // Required. The numeric ID of the dynamic lineup.\n string dynamic_lineup_id = 1 [(google.api.field_behavior) = REQUIRED];\n }\n\n // Metadata associated with a YouTube channel attribute.\n message YouTubeChannelAttributeMetadata {\n // The approximate number of subscribers to the YouTube channel.\n int64 subscriber_count = 1;\n }\n\n+// Metadata for a YouTube video attribute.\n+message YouTubeVideoAttributeMetadata {\n+ // The URL of the video thumbnail, prefixed by \"https://img.youtube.com/\".\n+ string thumbnail_url = 1;\n+\n+ // The URL of the video, prefixed by \"https://www.youtube.com/\".\n+ string video_url = 2;\n+}\n+\n // Metadata associated with a Dynamic Lineup attribute.\n message DynamicLineupAttributeMetadata {\n // A YouTube channel returned as an example of the content in a lineup.\n message SampleChannel {\n // A YouTube channel.\n YouTubeChannelInfo youtube_channel = 1;\n\n // The name of the sample channel.\n string display_name = 2;\n\n // Metadata for the sample channel.\n YouTubeChannelAttributeMetadata youtube_channel_metadata = 3;\n }\n\n // The national market associated with the lineup.\n LocationInfo inventory_country = 1;\n\n // The median number of impressions per month on this lineup.\n optional int64 median_monthly_inventory = 2;\n\n // The lower end of a range containing the number of channels in the lineup.\n optional int64 channel_count_lower_bound = 3;\n\n // The upper end of a range containing the number of channels in the lineup.\n optional int64 channel_count_upper_bound = 4;\n\n // Examples of channels that are included in the lineup.\n repeated SampleChannel sample_channels = 5;\n }\n\n // Metadata associated with a Location attribute.\n message LocationAttributeMetadata {\n // The country location that this attribute's sub country location is located\n // in.\n LocationInfo country_location = 1;\n }\n+\n+// Metadata associated with a User Interest attribute.\n+message UserInterestAttributeMetadata {\n+ // English language text description of the user interest category (200\n+ // characters max).\n+ string user_interest_description = 1;\n+}\n+\n+// Metadata associated with a Knowledge Graph Entity attribute.\n+message KnowledgeGraphAttributeMetadata {\n+ // The capabilities of the entity used in [ContentCreatorInsightsService][].\n+ repeated google.ads.googleads.v19.enums\n+ .InsightsKnowledgeGraphEntityCapabilitiesEnum\n+ .InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;\n+}\n```"]]