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/matching_function.proto"; 20import "google/ads/googleads/v16/enums/feed_link_status.proto"; 21import "google/ads/googleads/v16/enums/placeholder_type.proto"; 22import "google/api/field_behavior.proto"; 23import "google/api/resource.proto"; 24 25option csharp_namespace = "Google.Ads.GoogleAds.V16.Resources"; 26option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v16/resources;resources"; 27option java_multiple_files = true; 28option java_outer_classname = "AdGroupFeedProto"; 29option java_package = "com.google.ads.googleads.v16.resources"; 30option objc_class_prefix = "GAA"; 31option php_namespace = "Google\\Ads\\GoogleAds\\V16\\Resources"; 32option ruby_package = "Google::Ads::GoogleAds::V16::Resources"; 33 34// Proto file describing the AdGroupFeed resource. 35 36// An ad group feed. 37message AdGroupFeed { 38 option (google.api.resource) = { 39 type: "googleads.googleapis.com/AdGroupFeed" 40 pattern: "customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}" 41 }; 42 43 // Immutable. The resource name of the ad group feed. 44 // Ad group feed resource names have the form: 45 // 46 // `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id} 47 string resource_name = 1 [ 48 (google.api.field_behavior) = IMMUTABLE, 49 (google.api.resource_reference) = { 50 type: "googleads.googleapis.com/AdGroupFeed" 51 } 52 ]; 53 54 // Immutable. The feed being linked to the ad group. 55 optional string feed = 7 [ 56 (google.api.field_behavior) = IMMUTABLE, 57 (google.api.resource_reference) = { type: "googleads.googleapis.com/Feed" } 58 ]; 59 60 // Immutable. The ad group being linked to the feed. 61 optional string ad_group = 8 [ 62 (google.api.field_behavior) = IMMUTABLE, 63 (google.api.resource_reference) = { 64 type: "googleads.googleapis.com/AdGroup" 65 } 66 ]; 67 68 // Indicates which placeholder types the feed may populate under the connected 69 // ad group. Required. 70 repeated google.ads.googleads.v16.enums.PlaceholderTypeEnum.PlaceholderType 71 placeholder_types = 4; 72 73 // Matching function associated with the AdGroupFeed. 74 // The matching function is used to filter the set of feed items selected. 75 // Required. 76 google.ads.googleads.v16.common.MatchingFunction matching_function = 5; 77 78 // Output only. Status of the ad group feed. 79 // This field is read-only. 80 google.ads.googleads.v16.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 81 [(google.api.field_behavior) = OUTPUT_ONLY]; 82} 83