targeting_setting.proto 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // Copyright 2022 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. syntax = "proto3";
  15. package google.ads.googleads.v10.common;
  16. import "google/ads/googleads/v10/enums/targeting_dimension.proto";
  17. option csharp_namespace = "Google.Ads.GoogleAds.V10.Common";
  18. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v10/common;common";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "TargetingSettingProto";
  21. option java_package = "com.google.ads.googleads.v10.common";
  22. option objc_class_prefix = "GAA";
  23. option php_namespace = "Google\\Ads\\GoogleAds\\V10\\Common";
  24. option ruby_package = "Google::Ads::GoogleAds::V10::Common";
  25. // Proto file describing TargetingSetting
  26. // Settings for the targeting-related features, at the campaign and ad group
  27. // levels. For more details about the targeting setting, visit
  28. // https://support.google.com/google-ads/answer/7365594
  29. message TargetingSetting {
  30. // The per-targeting-dimension setting to restrict the reach of your campaign
  31. // or ad group.
  32. repeated TargetRestriction target_restrictions = 1;
  33. // The list of operations changing the target restrictions.
  34. //
  35. // Adding a target restriction with a targeting dimension that already exists
  36. // causes the existing target restriction to be replaced with the new value.
  37. repeated TargetRestrictionOperation target_restriction_operations = 2;
  38. }
  39. // The list of per-targeting-dimension targeting settings.
  40. message TargetRestriction {
  41. // The targeting dimension that these settings apply to.
  42. google.ads.googleads.v10.enums.TargetingDimensionEnum.TargetingDimension targeting_dimension = 1;
  43. // Indicates whether to restrict your ads to show only for the criteria you
  44. // have selected for this targeting_dimension, or to target all values for
  45. // this targeting_dimension and show ads based on your targeting in other
  46. // TargetingDimensions. A value of `true` means that these criteria will only
  47. // apply bid modifiers, and not affect targeting. A value of `false` means
  48. // that these criteria will restrict targeting as well as applying bid
  49. // modifiers.
  50. optional bool bid_only = 3;
  51. }
  52. // Operation to be performed on a target restriction list in a mutate.
  53. message TargetRestrictionOperation {
  54. // The operator.
  55. enum Operator {
  56. // Unspecified.
  57. UNSPECIFIED = 0;
  58. // Used for return value only. Represents value unknown in this version.
  59. UNKNOWN = 1;
  60. // Add the restriction to the existing restrictions.
  61. ADD = 2;
  62. // Remove the restriction from the existing restrictions.
  63. REMOVE = 3;
  64. }
  65. // Type of list operation to perform.
  66. Operator operator = 1;
  67. // The target restriction being added to or removed from the list.
  68. TargetRestriction value = 2;
  69. }