change_status.proto 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. // Copyright 2021 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.v6.resources;
  16. import "google/ads/googleads/v6/enums/ad_type.proto";
  17. import "google/ads/googleads/v6/enums/advertising_channel_sub_type.proto";
  18. import "google/ads/googleads/v6/enums/advertising_channel_type.proto";
  19. import "google/ads/googleads/v6/enums/change_status_operation.proto";
  20. import "google/ads/googleads/v6/enums/change_status_resource_type.proto";
  21. import "google/ads/googleads/v6/enums/criterion_type.proto";
  22. import "google/ads/googleads/v6/enums/feed_origin.proto";
  23. import "google/api/field_behavior.proto";
  24. import "google/api/resource.proto";
  25. import "google/api/annotations.proto";
  26. option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources";
  27. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources";
  28. option java_multiple_files = true;
  29. option java_outer_classname = "ChangeStatusProto";
  30. option java_package = "com.google.ads.googleads.v6.resources";
  31. option objc_class_prefix = "GAA";
  32. option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources";
  33. option ruby_package = "Google::Ads::GoogleAds::V6::Resources";
  34. // Proto file describing the Change Status resource.
  35. // Describes the status of returned resource. ChangeStatus could have up to 3
  36. // minutes delay to reflect a new change.
  37. message ChangeStatus {
  38. option (google.api.resource) = {
  39. type: "googleads.googleapis.com/ChangeStatus"
  40. pattern: "customers/{customer_id}/changeStatus/{change_status_id}"
  41. };
  42. // Output only. The resource name of the change status.
  43. // Change status resource names have the form:
  44. //
  45. // `customers/{customer_id}/changeStatus/{change_status_id}`
  46. string resource_name = 1 [
  47. (google.api.field_behavior) = OUTPUT_ONLY,
  48. (google.api.resource_reference) = {
  49. type: "googleads.googleapis.com/ChangeStatus"
  50. }
  51. ];
  52. // Output only. Time at which the most recent change has occurred on this resource.
  53. optional string last_change_date_time = 24 [(google.api.field_behavior) = OUTPUT_ONLY];
  54. // Output only. Represents the type of the changed resource. This dictates what fields
  55. // will be set. For example, for AD_GROUP, campaign and ad_group fields will
  56. // be set.
  57. google.ads.googleads.v6.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType resource_type = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  58. // Output only. The Campaign affected by this change.
  59. optional string campaign = 17 [
  60. (google.api.field_behavior) = OUTPUT_ONLY,
  61. (google.api.resource_reference) = {
  62. type: "googleads.googleapis.com/Campaign"
  63. }
  64. ];
  65. // Output only. The AdGroup affected by this change.
  66. optional string ad_group = 18 [
  67. (google.api.field_behavior) = OUTPUT_ONLY,
  68. (google.api.resource_reference) = {
  69. type: "googleads.googleapis.com/AdGroup"
  70. }
  71. ];
  72. // Output only. Represents the status of the changed resource.
  73. google.ads.googleads.v6.enums.ChangeStatusOperationEnum.ChangeStatusOperation resource_status = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  74. // Output only. The AdGroupAd affected by this change.
  75. optional string ad_group_ad = 25 [
  76. (google.api.field_behavior) = OUTPUT_ONLY,
  77. (google.api.resource_reference) = {
  78. type: "googleads.googleapis.com/AdGroupAd"
  79. }
  80. ];
  81. // Output only. The AdGroupCriterion affected by this change.
  82. optional string ad_group_criterion = 26 [
  83. (google.api.field_behavior) = OUTPUT_ONLY,
  84. (google.api.resource_reference) = {
  85. type: "googleads.googleapis.com/AdGroupCriterion"
  86. }
  87. ];
  88. // Output only. The CampaignCriterion affected by this change.
  89. optional string campaign_criterion = 27 [
  90. (google.api.field_behavior) = OUTPUT_ONLY,
  91. (google.api.resource_reference) = {
  92. type: "googleads.googleapis.com/CampaignCriterion"
  93. }
  94. ];
  95. // Output only. The Feed affected by this change.
  96. optional string feed = 28 [
  97. (google.api.field_behavior) = OUTPUT_ONLY,
  98. (google.api.resource_reference) = {
  99. type: "googleads.googleapis.com/Feed"
  100. }
  101. ];
  102. // Output only. The FeedItem affected by this change.
  103. optional string feed_item = 29 [
  104. (google.api.field_behavior) = OUTPUT_ONLY,
  105. (google.api.resource_reference) = {
  106. type: "googleads.googleapis.com/FeedItem"
  107. }
  108. ];
  109. // Output only. The AdGroupFeed affected by this change.
  110. optional string ad_group_feed = 30 [
  111. (google.api.field_behavior) = OUTPUT_ONLY,
  112. (google.api.resource_reference) = {
  113. type: "googleads.googleapis.com/AdGroupFeed"
  114. }
  115. ];
  116. // Output only. The CampaignFeed affected by this change.
  117. optional string campaign_feed = 31 [
  118. (google.api.field_behavior) = OUTPUT_ONLY,
  119. (google.api.resource_reference) = {
  120. type: "googleads.googleapis.com/CampaignFeed"
  121. }
  122. ];
  123. // Output only. The AdGroupBidModifier affected by this change.
  124. optional string ad_group_bid_modifier = 32 [
  125. (google.api.field_behavior) = OUTPUT_ONLY,
  126. (google.api.resource_reference) = {
  127. type: "googleads.googleapis.com/AdGroupBidModifier"
  128. }
  129. ];
  130. }