// Copyright 2021 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.v9.resources; import "google/ads/googleads/v9/enums/advertising_channel_type.proto"; import "google/ads/googleads/v9/enums/device.proto"; import "google/ads/googleads/v9/enums/seasonality_event_scope.proto"; import "google/ads/googleads/v9/enums/seasonality_event_status.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/api/annotations.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V9.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v9/resources;resources"; option java_multiple_files = true; option java_outer_classname = "BiddingDataExclusionProto"; option java_package = "com.google.ads.googleads.v9.resources"; option objc_class_prefix = "GAA"; option php_namespace = "Google\\Ads\\GoogleAds\\V9\\Resources"; option ruby_package = "Google::Ads::GoogleAds::V9::Resources"; // Represents a bidding data exclusion. // // See "About data exclusions" at // https://support.google.com/google-ads/answer/10370710. message BiddingDataExclusion { option (google.api.resource) = { type: "googleads.googleapis.com/BiddingDataExclusion" pattern: "customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}" }; // Immutable. The resource name of the data exclusion. // Data exclusion resource names have the form: // // `customers/{customer_id}/biddingDataExclusions/{data_exclusion_id}` string resource_name = 1 [ (google.api.field_behavior) = IMMUTABLE, (google.api.resource_reference) = { type: "googleads.googleapis.com/BiddingDataExclusion" } ]; // Output only. The ID of the data exclusion. int64 data_exclusion_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // The scope of the data exclusion. google.ads.googleads.v9.enums.SeasonalityEventScopeEnum.SeasonalityEventScope scope = 3; // Output only. The status of the data exclusion. google.ads.googleads.v9.enums.SeasonalityEventStatusEnum.SeasonalityEventStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The inclusive start time of the data exclusion in yyyy-MM-dd HH:mm:ss // format. // // A data exclusion is backward looking and should be used for events that // start in the past and end either in the past or future. string start_date_time = 5 [(google.api.field_behavior) = REQUIRED]; // Required. The exclusive end time of the data exclusion in yyyy-MM-dd HH:mm:ss format. // // The length of [start_date_time, end_date_time) interval must be // within (0, 14 days]. string end_date_time = 6 [(google.api.field_behavior) = REQUIRED]; // The name of the data exclusion. The name can be at most 255 // characters. string name = 7; // The description of the data exclusion. The description can be at // most 2048 characters. string description = 8; // If not specified, all devices will be included in this exclusion. // Otherwise, only the specified targeted devices will be included in this // exclusion. repeated google.ads.googleads.v9.enums.DeviceEnum.Device devices = 9; // The data exclusion will apply to the campaigns listed when the scope of // this exclusion is CAMPAIGN. The maximum number of campaigns per event is // 2000. // Note: a data exclusion with both advertising_channel_types and // campaign_ids is not supported. repeated string campaigns = 10 [(google.api.resource_reference) = { type: "googleads.googleapis.com/Campaign" }]; // The data_exclusion will apply to all the campaigns under the listed // channels retroactively as well as going forward when the scope of this // exclusion is CHANNEL. // The supported advertising channel types are DISPLAY, SEARCH and SHOPPING. // Note: a data exclusion with both advertising_channel_types and // campaign_ids is not supported. repeated google.ads.googleads.v9.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_types = 11; }