google-ads-ad_manager-v1 0.a → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +154 -8
  5. data/lib/google/ads/ad_manager/v1/ad_unit_service/credentials.rb +44 -0
  6. data/lib/google/ads/ad_manager/v1/ad_unit_service/paths.rb +64 -0
  7. data/lib/google/ads/ad_manager/v1/ad_unit_service/rest/client.rb +644 -0
  8. data/lib/google/ads/ad_manager/v1/ad_unit_service/rest/service_stub.rb +264 -0
  9. data/lib/google/ads/ad_manager/v1/ad_unit_service/rest.rb +52 -0
  10. data/lib/google/ads/ad_manager/v1/ad_unit_service.rb +48 -0
  11. data/lib/google/ads/ad_manager/v1/company_service/credentials.rb +44 -0
  12. data/lib/google/ads/ad_manager/v1/company_service/paths.rb +64 -0
  13. data/lib/google/ads/ad_manager/v1/company_service/rest/client.rb +531 -0
  14. data/lib/google/ads/ad_manager/v1/company_service/rest/service_stub.rb +203 -0
  15. data/lib/google/ads/ad_manager/v1/company_service/rest.rb +52 -0
  16. data/lib/google/ads/ad_manager/v1/company_service.rb +48 -0
  17. data/lib/google/ads/ad_manager/v1/custom_field_service/credentials.rb +44 -0
  18. data/lib/google/ads/ad_manager/v1/custom_field_service/paths.rb +64 -0
  19. data/lib/google/ads/ad_manager/v1/custom_field_service/rest/client.rb +531 -0
  20. data/lib/google/ads/ad_manager/v1/custom_field_service/rest/service_stub.rb +203 -0
  21. data/lib/google/ads/ad_manager/v1/custom_field_service/rest.rb +52 -0
  22. data/lib/google/ads/ad_manager/v1/custom_field_service.rb +48 -0
  23. data/lib/google/ads/ad_manager/v1/custom_targeting_key_service/credentials.rb +44 -0
  24. data/lib/google/ads/ad_manager/v1/custom_targeting_key_service/paths.rb +64 -0
  25. data/lib/google/ads/ad_manager/v1/custom_targeting_key_service/rest/client.rb +532 -0
  26. data/lib/google/ads/ad_manager/v1/custom_targeting_key_service/rest/service_stub.rb +203 -0
  27. data/lib/google/ads/ad_manager/v1/custom_targeting_key_service/rest.rb +52 -0
  28. data/lib/google/ads/ad_manager/v1/custom_targeting_key_service.rb +48 -0
  29. data/lib/google/ads/ad_manager/v1/custom_targeting_value_service/credentials.rb +44 -0
  30. data/lib/google/ads/ad_manager/v1/custom_targeting_value_service/paths.rb +69 -0
  31. data/lib/google/ads/ad_manager/v1/custom_targeting_value_service/rest/client.rb +535 -0
  32. data/lib/google/ads/ad_manager/v1/custom_targeting_value_service/rest/service_stub.rb +203 -0
  33. data/lib/google/ads/ad_manager/v1/custom_targeting_value_service/rest.rb +52 -0
  34. data/lib/google/ads/ad_manager/v1/custom_targeting_value_service.rb +48 -0
  35. data/lib/google/ads/ad_manager/v1/entity_signals_mapping_service/credentials.rb +44 -0
  36. data/lib/google/ads/ad_manager/v1/entity_signals_mapping_service/paths.rb +64 -0
  37. data/lib/google/ads/ad_manager/v1/entity_signals_mapping_service/rest/client.rb +894 -0
  38. data/lib/google/ads/ad_manager/v1/entity_signals_mapping_service/rest/service_stub.rb +451 -0
  39. data/lib/google/ads/ad_manager/v1/entity_signals_mapping_service/rest.rb +52 -0
  40. data/lib/google/ads/ad_manager/v1/entity_signals_mapping_service.rb +48 -0
  41. data/lib/google/ads/ad_manager/v1/network_service/credentials.rb +44 -0
  42. data/lib/google/ads/ad_manager/v1/network_service/paths.rb +47 -0
  43. data/lib/google/ads/ad_manager/v1/network_service/rest/client.rb +495 -0
  44. data/lib/google/ads/ad_manager/v1/network_service/rest/service_stub.rb +201 -0
  45. data/lib/google/ads/ad_manager/v1/network_service/rest.rb +52 -0
  46. data/lib/google/ads/ad_manager/v1/network_service.rb +48 -0
  47. data/lib/google/ads/ad_manager/v1/order_service/credentials.rb +44 -0
  48. data/lib/google/ads/ad_manager/v1/order_service/paths.rb +64 -0
  49. data/lib/google/ads/ad_manager/v1/order_service/rest/client.rb +541 -0
  50. data/lib/google/ads/ad_manager/v1/order_service/rest/service_stub.rb +203 -0
  51. data/lib/google/ads/ad_manager/v1/order_service/rest.rb +52 -0
  52. data/lib/google/ads/ad_manager/v1/order_service.rb +48 -0
  53. data/lib/google/ads/ad_manager/v1/placement_service/credentials.rb +44 -0
  54. data/lib/google/ads/ad_manager/v1/placement_service/paths.rb +64 -0
  55. data/lib/google/ads/ad_manager/v1/placement_service/rest/client.rb +531 -0
  56. data/lib/google/ads/ad_manager/v1/placement_service/rest/service_stub.rb +203 -0
  57. data/lib/google/ads/ad_manager/v1/placement_service/rest.rb +52 -0
  58. data/lib/google/ads/ad_manager/v1/placement_service.rb +48 -0
  59. data/lib/google/ads/ad_manager/v1/report_service/credentials.rb +44 -0
  60. data/lib/google/ads/ad_manager/v1/report_service/paths.rb +64 -0
  61. data/lib/google/ads/ad_manager/v1/report_service/rest/client.rb +923 -0
  62. data/lib/google/ads/ad_manager/v1/report_service/rest/operations.rb +914 -0
  63. data/lib/google/ads/ad_manager/v1/report_service/rest/service_stub.rb +450 -0
  64. data/lib/google/ads/ad_manager/v1/report_service/rest.rb +53 -0
  65. data/lib/google/ads/ad_manager/v1/report_service.rb +48 -0
  66. data/lib/google/ads/ad_manager/v1/rest.rb +49 -0
  67. data/lib/google/ads/ad_manager/v1/role_service/credentials.rb +44 -0
  68. data/lib/google/ads/ad_manager/v1/role_service/paths.rb +64 -0
  69. data/lib/google/ads/ad_manager/v1/role_service/rest/client.rb +530 -0
  70. data/lib/google/ads/ad_manager/v1/role_service/rest/service_stub.rb +203 -0
  71. data/lib/google/ads/ad_manager/v1/role_service/rest.rb +52 -0
  72. data/lib/google/ads/ad_manager/v1/role_service.rb +48 -0
  73. data/lib/google/ads/ad_manager/v1/taxonomy_category_service/credentials.rb +44 -0
  74. data/lib/google/ads/ad_manager/v1/taxonomy_category_service/paths.rb +64 -0
  75. data/lib/google/ads/ad_manager/v1/taxonomy_category_service/rest/client.rb +531 -0
  76. data/lib/google/ads/ad_manager/v1/taxonomy_category_service/rest/service_stub.rb +203 -0
  77. data/lib/google/ads/ad_manager/v1/taxonomy_category_service/rest.rb +52 -0
  78. data/lib/google/ads/ad_manager/v1/taxonomy_category_service.rb +48 -0
  79. data/lib/google/ads/ad_manager/v1/user_service/credentials.rb +44 -0
  80. data/lib/google/ads/ad_manager/v1/user_service/paths.rb +50 -0
  81. data/lib/google/ads/ad_manager/v1/user_service/rest/client.rb +421 -0
  82. data/lib/google/ads/ad_manager/v1/user_service/rest/service_stub.rb +142 -0
  83. data/lib/google/ads/ad_manager/v1/user_service/rest.rb +52 -0
  84. data/lib/google/ads/ad_manager/v1/user_service.rb +48 -0
  85. data/lib/google/ads/ad_manager/v1/version.rb +7 -2
  86. data/lib/google/ads/ad_manager/v1.rb +52 -0
  87. data/lib/google/ads/admanager/v1/ad_unit_enums_pb.rb +47 -0
  88. data/lib/google/ads/admanager/v1/ad_unit_messages_pb.rb +60 -0
  89. data/lib/google/ads/admanager/v1/ad_unit_service_pb.rb +53 -0
  90. data/lib/google/ads/admanager/v1/ad_unit_service_services_pb.rb +49 -0
  91. data/lib/google/ads/admanager/v1/admanager_error_pb.rb +45 -0
  92. data/lib/google/ads/admanager/v1/applied_label_pb.rb +45 -0
  93. data/lib/google/ads/admanager/v1/company_credit_status_enum_pb.rb +43 -0
  94. data/lib/google/ads/admanager/v1/company_messages_pb.rb +51 -0
  95. data/lib/google/ads/admanager/v1/company_service_pb.rb +51 -0
  96. data/lib/google/ads/admanager/v1/company_service_services_pb.rb +47 -0
  97. data/lib/google/ads/admanager/v1/company_type_enum_pb.rb +43 -0
  98. data/lib/google/ads/admanager/v1/contact_messages_pb.rb +45 -0
  99. data/lib/google/ads/admanager/v1/custom_field_enums_pb.rb +49 -0
  100. data/lib/google/ads/admanager/v1/custom_field_messages_pb.rb +47 -0
  101. data/lib/google/ads/admanager/v1/custom_field_service_pb.rb +51 -0
  102. data/lib/google/ads/admanager/v1/custom_field_service_services_pb.rb +47 -0
  103. data/lib/google/ads/admanager/v1/custom_field_value_pb.rb +46 -0
  104. data/lib/google/ads/admanager/v1/custom_targeting_key_enums_pb.rb +47 -0
  105. data/lib/google/ads/admanager/v1/custom_targeting_key_messages_pb.rb +46 -0
  106. data/lib/google/ads/admanager/v1/custom_targeting_key_service_pb.rb +51 -0
  107. data/lib/google/ads/admanager/v1/custom_targeting_key_service_services_pb.rb +47 -0
  108. data/lib/google/ads/admanager/v1/custom_targeting_value_enums_pb.rb +45 -0
  109. data/lib/google/ads/admanager/v1/custom_targeting_value_messages_pb.rb +46 -0
  110. data/lib/google/ads/admanager/v1/custom_targeting_value_service_pb.rb +51 -0
  111. data/lib/google/ads/admanager/v1/custom_targeting_value_service_services_pb.rb +47 -0
  112. data/lib/google/ads/admanager/v1/entity_signals_mapping_messages_pb.rb +45 -0
  113. data/lib/google/ads/admanager/v1/entity_signals_mapping_service_pb.rb +59 -0
  114. data/lib/google/ads/admanager/v1/entity_signals_mapping_service_services_pb.rb +55 -0
  115. data/lib/google/ads/admanager/v1/environment_type_enum_pb.rb +43 -0
  116. data/lib/google/ads/admanager/v1/frequency_cap_pb.rb +44 -0
  117. data/lib/google/ads/admanager/v1/label_messages_pb.rb +45 -0
  118. data/lib/google/ads/admanager/v1/network_messages_pb.rb +45 -0
  119. data/lib/google/ads/admanager/v1/network_service_pb.rb +51 -0
  120. data/lib/google/ads/admanager/v1/network_service_services_pb.rb +47 -0
  121. data/lib/google/ads/admanager/v1/order_enums_pb.rb +43 -0
  122. data/lib/google/ads/admanager/v1/order_messages_pb.rb +52 -0
  123. data/lib/google/ads/admanager/v1/order_service_pb.rb +51 -0
  124. data/lib/google/ads/admanager/v1/order_service_services_pb.rb +52 -0
  125. data/lib/google/ads/admanager/v1/placement_enums_pb.rb +43 -0
  126. data/lib/google/ads/admanager/v1/placement_messages_pb.rb +48 -0
  127. data/lib/google/ads/admanager/v1/placement_service_pb.rb +51 -0
  128. data/lib/google/ads/admanager/v1/placement_service_services_pb.rb +47 -0
  129. data/lib/google/ads/admanager/v1/report_service_pb.rb +97 -0
  130. data/lib/google/ads/admanager/v1/report_service_services_pb.rb +65 -0
  131. data/lib/google/ads/admanager/v1/role_enums_pb.rb +43 -0
  132. data/lib/google/ads/admanager/v1/role_messages_pb.rb +46 -0
  133. data/lib/google/ads/admanager/v1/role_service_pb.rb +51 -0
  134. data/lib/google/ads/admanager/v1/role_service_services_pb.rb +47 -0
  135. data/lib/google/ads/admanager/v1/size_pb.rb +45 -0
  136. data/lib/google/ads/admanager/v1/size_type_enum_pb.rb +43 -0
  137. data/lib/google/ads/admanager/v1/taxonomy_category_messages_pb.rb +46 -0
  138. data/lib/google/ads/admanager/v1/taxonomy_category_service_pb.rb +51 -0
  139. data/lib/google/ads/admanager/v1/taxonomy_category_service_services_pb.rb +47 -0
  140. data/lib/google/ads/admanager/v1/taxonomy_type_enum_pb.rb +43 -0
  141. data/lib/google/ads/admanager/v1/team_messages_pb.rb +45 -0
  142. data/lib/google/ads/admanager/v1/time_unit_enum_pb.rb +43 -0
  143. data/lib/google/ads/admanager/v1/user_messages_pb.rb +45 -0
  144. data/lib/google/ads/admanager/v1/user_service_pb.rb +48 -0
  145. data/lib/google/ads/admanager/v1/user_service_services_pb.rb +48 -0
  146. data/lib/google-ads-ad_manager-v1.rb +21 -0
  147. data/proto_docs/README.md +4 -0
  148. data/proto_docs/google/ads/admanager/v1/ad_unit_enums.rb +91 -0
  149. data/proto_docs/google/ads/admanager/v1/ad_unit_messages.rb +188 -0
  150. data/proto_docs/google/ads/admanager/v1/ad_unit_service.rb +160 -0
  151. data/proto_docs/google/ads/admanager/v1/admanager_error.rb +54 -0
  152. data/proto_docs/google/ads/admanager/v1/applied_label.rb +39 -0
  153. data/proto_docs/google/ads/admanager/v1/company_credit_status_enum.rb +101 -0
  154. data/proto_docs/google/ads/admanager/v1/company_messages.rb +101 -0
  155. data/proto_docs/google/ads/admanager/v1/company_service.rb +99 -0
  156. data/proto_docs/google/ads/admanager/v1/company_type_enum.rb +55 -0
  157. data/proto_docs/google/ads/admanager/v1/contact_messages.rb +43 -0
  158. data/proto_docs/google/ads/admanager/v1/custom_field_enums.rb +123 -0
  159. data/proto_docs/google/ads/admanager/v1/custom_field_messages.rb +78 -0
  160. data/proto_docs/google/ads/admanager/v1/custom_field_service.rb +99 -0
  161. data/proto_docs/google/ads/admanager/v1/custom_field_value.rb +58 -0
  162. data/proto_docs/google/ads/admanager/v1/custom_targeting_key_enums.rb +86 -0
  163. data/proto_docs/google/ads/admanager/v1/custom_targeting_key_messages.rb +59 -0
  164. data/proto_docs/google/ads/admanager/v1/custom_targeting_key_service.rb +100 -0
  165. data/proto_docs/google/ads/admanager/v1/custom_targeting_value_enums.rb +97 -0
  166. data/proto_docs/google/ads/admanager/v1/custom_targeting_value_messages.rb +54 -0
  167. data/proto_docs/google/ads/admanager/v1/custom_targeting_value_service.rb +103 -0
  168. data/proto_docs/google/ads/admanager/v1/entity_signals_mapping_messages.rb +53 -0
  169. data/proto_docs/google/ads/admanager/v1/entity_signals_mapping_service.rb +180 -0
  170. data/proto_docs/google/ads/admanager/v1/environment_type_enum.rb +45 -0
  171. data/proto_docs/google/ads/admanager/v1/frequency_cap.rb +41 -0
  172. data/proto_docs/google/ads/admanager/v1/label_messages.rb +36 -0
  173. data/proto_docs/google/ads/admanager/v1/network_messages.rb +67 -0
  174. data/proto_docs/google/ads/admanager/v1/network_service.rb +51 -0
  175. data/proto_docs/google/ads/admanager/v1/order_enums.rb +63 -0
  176. data/proto_docs/google/ads/admanager/v1/order_messages.rb +149 -0
  177. data/proto_docs/google/ads/admanager/v1/order_service.rb +99 -0
  178. data/proto_docs/google/ads/admanager/v1/placement_enums.rb +48 -0
  179. data/proto_docs/google/ads/admanager/v1/placement_messages.rb +62 -0
  180. data/proto_docs/google/ads/admanager/v1/placement_service.rb +99 -0
  181. data/proto_docs/google/ads/admanager/v1/report_service.rb +3476 -0
  182. data/proto_docs/google/ads/admanager/v1/role_enums.rb +45 -0
  183. data/proto_docs/google/ads/admanager/v1/role_messages.rb +51 -0
  184. data/proto_docs/google/ads/admanager/v1/role_service.rb +97 -0
  185. data/proto_docs/google/ads/admanager/v1/size.rb +48 -0
  186. data/proto_docs/google/ads/admanager/v1/size_type_enum.rb +66 -0
  187. data/proto_docs/google/ads/admanager/v1/taxonomy_category_messages.rb +59 -0
  188. data/proto_docs/google/ads/admanager/v1/taxonomy_category_service.rb +99 -0
  189. data/proto_docs/google/ads/admanager/v1/taxonomy_type_enum.rb +55 -0
  190. data/proto_docs/google/ads/admanager/v1/team_messages.rb +40 -0
  191. data/proto_docs/google/ads/admanager/v1/time_unit_enum.rb +63 -0
  192. data/proto_docs/google/ads/admanager/v1/user_messages.rb +69 -0
  193. data/proto_docs/google/ads/admanager/v1/user_service.rb +36 -0
  194. data/proto_docs/google/api/client.rb +459 -0
  195. data/proto_docs/google/api/field_behavior.rb +85 -0
  196. data/proto_docs/google/api/launch_stage.rb +71 -0
  197. data/proto_docs/google/api/resource.rb +227 -0
  198. data/proto_docs/google/longrunning/operations.rb +169 -0
  199. data/proto_docs/google/protobuf/any.rb +145 -0
  200. data/proto_docs/google/protobuf/duration.rb +98 -0
  201. data/proto_docs/google/protobuf/empty.rb +34 -0
  202. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  203. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  204. data/proto_docs/google/rpc/status.rb +48 -0
  205. data/proto_docs/google/type/date.rb +53 -0
  206. data/proto_docs/google/type/dayofweek.rb +49 -0
  207. data/proto_docs/google/type/timeofday.rb +45 -0
  208. metadata +248 -11
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright 2024 Google LLC
2
4
  #
3
5
  # Licensed under the Apache License, Version 2.0 (the "License");
4
6
  # you may not use this file except in compliance with the License.
5
7
  # You may obtain a copy of the License at
6
8
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # https://www.apache.org/licenses/LICENSE-2.0
8
10
  #
9
11
  # Unless required by applicable law or agreed to in writing, software
10
12
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -12,11 +14,14 @@
12
14
  # See the License for the specific language governing permissions and
13
15
  # limitations under the License.
14
16
 
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
15
20
  module Google
16
21
  module Ads
17
22
  module AdManager
18
23
  module V1
19
- VERSION = "0.a"
24
+ VERSION = "0.2.0"
20
25
  end
21
26
  end
22
27
  end
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/ads/ad_manager/v1/ad_unit_service"
20
+ require "google/ads/ad_manager/v1/company_service"
21
+ require "google/ads/ad_manager/v1/custom_field_service"
22
+ require "google/ads/ad_manager/v1/custom_targeting_key_service"
23
+ require "google/ads/ad_manager/v1/custom_targeting_value_service"
24
+ require "google/ads/ad_manager/v1/entity_signals_mapping_service"
25
+ require "google/ads/ad_manager/v1/network_service"
26
+ require "google/ads/ad_manager/v1/order_service"
27
+ require "google/ads/ad_manager/v1/placement_service"
28
+ require "google/ads/ad_manager/v1/report_service"
29
+ require "google/ads/ad_manager/v1/role_service"
30
+ require "google/ads/ad_manager/v1/taxonomy_category_service"
31
+ require "google/ads/ad_manager/v1/user_service"
32
+ require "google/ads/ad_manager/v1/version"
33
+
34
+ module Google
35
+ module Ads
36
+ module AdManager
37
+ ##
38
+ # API client module.
39
+ #
40
+ # @example Load this package, including all its services, and instantiate a REST client
41
+ #
42
+ # require "google/ads/ad_manager/v1"
43
+ # client = ::Google::Ads::AdManager::V1::AdUnitService::Rest::Client.new
44
+ #
45
+ module V1
46
+ end
47
+ end
48
+ end
49
+ end
50
+
51
+ helper_path = ::File.join __dir__, "v1", "_helpers.rb"
52
+ require "google/ads/ad_manager/v1/_helpers" if ::File.file? helper_path
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/ads/admanager/v1/ad_unit_enums.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n+google/ads/admanager/v1/ad_unit_enums.proto\x12\x17google.ads.admanager.v1\"j\n\x10\x41\x64UnitStatusEnum\"V\n\x0c\x41\x64UnitStatus\x12\x1e\n\x1a\x41\x44_UNIT_STATUS_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02\x12\x0c\n\x08\x41RCHIVED\x10\x03\"s\n\x11SmartSizeModeEnum\"^\n\rSmartSizeMode\x12\x1f\n\x1bSMART_SIZE_MODE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x10\n\x0cSMART_BANNER\x10\x02\x12\x10\n\x0c\x44YNAMIC_SIZE\x10\x03\"U\n\x10TargetWindowEnum\"A\n\x0cTargetWindow\x12\x1d\n\x19TARGET_WINDOW_UNSPECIFIED\x10\x00\x12\x07\n\x03TOP\x10\x01\x12\t\n\x05\x42LANK\x10\x02\x42\xc4\x01\n\x1b\x63om.google.ads.admanager.v1B\x10\x41\x64UnitEnumsProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
33
+
34
+ module Google
35
+ module Ads
36
+ module AdManager
37
+ module V1
38
+ AdUnitStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.AdUnitStatusEnum").msgclass
39
+ AdUnitStatusEnum::AdUnitStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus").enummodule
40
+ SmartSizeModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.SmartSizeModeEnum").msgclass
41
+ SmartSizeModeEnum::SmartSizeMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode").enummodule
42
+ TargetWindowEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.TargetWindowEnum").msgclass
43
+ TargetWindowEnum::TargetWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.TargetWindowEnum.TargetWindow").enummodule
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/ads/admanager/v1/ad_unit_messages.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/ads/admanager/v1/ad_unit_enums_pb'
8
+ require 'google/ads/admanager/v1/applied_label_pb'
9
+ require 'google/ads/admanager/v1/environment_type_enum_pb'
10
+ require 'google/ads/admanager/v1/frequency_cap_pb'
11
+ require 'google/ads/admanager/v1/size_pb'
12
+ require 'google/api/field_behavior_pb'
13
+ require 'google/api/resource_pb'
14
+ require 'google/protobuf/duration_pb'
15
+ require 'google/protobuf/timestamp_pb'
16
+
17
+
18
+ descriptor_data = "\n.google/ads/admanager/v1/ad_unit_messages.proto\x12\x17google.ads.admanager.v1\x1a+google/ads/admanager/v1/ad_unit_enums.proto\x1a+google/ads/admanager/v1/applied_label.proto\x1a\x33google/ads/admanager/v1/environment_type_enum.proto\x1a+google/ads/admanager/v1/frequency_cap.proto\x1a\"google/ads/admanager/v1/size.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8b\x0c\n\x06\x41\x64Unit\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x17\n\nad_unit_id\x18\x0f \x01(\x03\x42\x03\xe0\x41\x03\x12\x42\n\x0eparent_ad_unit\x18\n \x01(\tB*\xe0\x41\x02\xe0\x41\x05\xfa\x41!\n\x1f\x61\x64manager.googleapis.com/AdUnit\x12?\n\x0bparent_path\x18\x0b \x03(\x0b\x32%.google.ads.admanager.v1.AdUnitParentB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\t \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x61\x64_unit_code\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12K\n\x06status\x18\r \x01(\x0e\x32\x36.google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatusB\x03\xe0\x41\x03\x12Z\n\x15\x61pplied_target_window\x18, \x01(\x0e\x32\x36.google.ads.admanager.v1.TargetWindowEnum.TargetWindowB\x03\xe0\x41\x01\x12_\n\x17\x65\x66\x66\x65\x63tive_target_window\x18- \x01(\x0e\x32\x36.google.ads.admanager.v1.TargetWindowEnum.TargetWindowB\x06\xe0\x41\x07\xe0\x41\x03\x12<\n\rapplied_teams\x18\x03 \x03(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x61\x64manager.googleapis.com/Team\x12\x34\n\x05teams\x18\x04 \x03(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x61\x64manager.googleapis.com/Team\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12 \n\x13\x65xplicitly_targeted\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12\x19\n\x0chas_children\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\rad_unit_sizes\x18\x0e \x03(\x0b\x32#.google.ads.admanager.v1.AdUnitSizeB\x03\xe0\x41\x01\x12,\n\x1f\x65xternal_set_top_box_channel_id\x18\x11 \x01(\tB\x03\xe0\x41\x01\x12\x35\n\rrefresh_delay\x18\x13 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x42\n\x0e\x61pplied_labels\x18\x15 \x03(\x0b\x32%.google.ads.admanager.v1.AppliedLabelB\x03\xe0\x41\x01\x12L\n\x18\x65\x66\x66\x65\x63tive_applied_labels\x18\x16 \x03(\x0b\x32%.google.ads.admanager.v1.AppliedLabelB\x03\xe0\x41\x03\x12U\n\x1c\x61pplied_label_frequency_caps\x18\x17 \x03(\x0b\x32*.google.ads.admanager.v1.LabelFrequencyCapB\x03\xe0\x41\x01\x12W\n\x1e\x65\x66\x66\x65\x63tive_label_frequency_caps\x18\x18 \x03(\x0b\x32*.google.ads.admanager.v1.LabelFrequencyCapB\x03\xe0\x41\x03\x12V\n\x0fsmart_size_mode\x18\x19 \x01(\x0e\x32\x38.google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeModeB\x03\xe0\x41\x01\x12)\n\x17\x61pplied_adsense_enabled\x18\x1a \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12&\n\x19\x65\x66\x66\x65\x63tive_adsense_enabled\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03:`\xea\x41]\n\x1f\x61\x64manager.googleapis.com/AdUnit\x12)networks/{network_code}/adUnits/{ad_unit}*\x07\x61\x64Units2\x06\x61\x64UnitB\x1a\n\x18_applied_adsense_enabled\"\xce\x01\n\nAdUnitSize\x12\x30\n\x04size\x18\x01 \x01(\x0b\x32\x1d.google.ads.admanager.v1.SizeB\x03\xe0\x41\x02\x12[\n\x10\x65nvironment_type\x18\x02 \x01(\x0e\x32<.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentTypeB\x03\xe0\x41\x02\x12\x31\n\ncompanions\x18\x03 \x03(\x0b\x32\x1d.google.ads.admanager.v1.Size\"\x85\x01\n\x0c\x41\x64UnitParent\x12?\n\x0eparent_ad_unit\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x61\x64manager.googleapis.com/AdUnit\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x61\x64_unit_code\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\x88\x01\n\x11LabelFrequencyCap\x12\x35\n\x05label\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x61\x64manager.googleapis.com/Label\x12<\n\rfrequency_cap\x18\x02 \x01(\x0b\x32%.google.ads.admanager.v1.FrequencyCapB\xc7\x01\n\x1b\x63om.google.ads.admanager.v1B\x13\x41\x64UnitMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3"
19
+
20
+ pool = Google::Protobuf::DescriptorPool.generated_pool
21
+
22
+ begin
23
+ pool.add_serialized_file(descriptor_data)
24
+ rescue TypeError
25
+ # Compatibility code: will be removed in the next major version.
26
+ require 'google/protobuf/descriptor_pb'
27
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
28
+ parsed.clear_dependency
29
+ serialized = parsed.class.encode(parsed)
30
+ file = pool.add_serialized_file(serialized)
31
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
32
+ imports = [
33
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
34
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
35
+ ["google.ads.admanager.v1.AppliedLabel", "google/ads/admanager/v1/applied_label.proto"],
36
+ ["google.ads.admanager.v1.Size", "google/ads/admanager/v1/size.proto"],
37
+ ["google.ads.admanager.v1.FrequencyCap", "google/ads/admanager/v1/frequency_cap.proto"],
38
+ ]
39
+ imports.each do |type_name, expected_filename|
40
+ import_file = pool.lookup(type_name).file_descriptor
41
+ if import_file.name != expected_filename
42
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
43
+ end
44
+ end
45
+ warn "Each proto file must use a consistent fully-qualified name."
46
+ warn "This will become an error in the next major version."
47
+ end
48
+
49
+ module Google
50
+ module Ads
51
+ module AdManager
52
+ module V1
53
+ AdUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.AdUnit").msgclass
54
+ AdUnitSize = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.AdUnitSize").msgclass
55
+ AdUnitParent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.AdUnitParent").msgclass
56
+ LabelFrequencyCap = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.LabelFrequencyCap").msgclass
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/ads/admanager/v1/ad_unit_service.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/ads/admanager/v1/ad_unit_messages_pb'
8
+ require 'google/api/annotations_pb'
9
+ require 'google/api/client_pb'
10
+ require 'google/api/field_behavior_pb'
11
+ require 'google/api/resource_pb'
12
+
13
+
14
+ descriptor_data = "\n-google/ads/admanager/v1/ad_unit_service.proto\x12\x17google.ads.admanager.v1\x1a.google/ads/admanager/v1/ad_unit_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"I\n\x10GetAdUnitRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61\x64manager.googleapis.com/AdUnit\"\xbe\x01\n\x12ListAdUnitsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04skip\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\"u\n\x13ListAdUnitsResponse\x12\x31\n\x08\x61\x64_units\x18\x01 \x03(\x0b\x32\x1f.google.ads.admanager.v1.AdUnit\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"\xc2\x01\n\x16ListAdUnitSizesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04skip\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\"\x82\x01\n\x17ListAdUnitSizesResponse\x12:\n\rad_unit_sizes\x18\x01 \x03(\x0b\x32#.google.ads.admanager.v1.AdUnitSize\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\x32\x80\x04\n\rAdUnitService\x12\x87\x01\n\tGetAdUnit\x12).google.ads.admanager.v1.GetAdUnitRequest\x1a\x1f.google.ads.admanager.v1.AdUnit\".\xda\x41\x04name\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{name=networks/*/adUnits/*}\x12\x9a\x01\n\x0bListAdUnits\x12+.google.ads.admanager.v1.ListAdUnitsRequest\x1a,.google.ads.admanager.v1.ListAdUnitsResponse\"0\xda\x41\x06parent\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{parent=networks/*}/adUnits\x12\xaa\x01\n\x0fListAdUnitSizes\x12/.google.ads.admanager.v1.ListAdUnitSizesRequest\x1a\x30.google.ads.admanager.v1.ListAdUnitSizesResponse\"4\xda\x41\x06parent\x82\xd3\xe4\x93\x02%\x12#/v1/{parent=networks/*}/adUnitSizes\x1a\x1b\xca\x41\x18\x61\x64manager.googleapis.comB\xc6\x01\n\x1b\x63om.google.ads.admanager.v1B\x12\x41\x64UnitServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.ads.admanager.v1.AdUnit", "google/ads/admanager/v1/ad_unit_messages.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
35
+ end
36
+ end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
39
+ end
40
+
41
+ module Google
42
+ module Ads
43
+ module AdManager
44
+ module V1
45
+ GetAdUnitRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.GetAdUnitRequest").msgclass
46
+ ListAdUnitsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListAdUnitsRequest").msgclass
47
+ ListAdUnitsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListAdUnitsResponse").msgclass
48
+ ListAdUnitSizesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListAdUnitSizesRequest").msgclass
49
+ ListAdUnitSizesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListAdUnitSizesResponse").msgclass
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,49 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/ads/admanager/v1/ad_unit_service.proto for package 'Google.Ads.AdManager.V1'
3
+ # Original file comments:
4
+ # Copyright 2024 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/ads/admanager/v1/ad_unit_service_pb'
21
+
22
+ module Google
23
+ module Ads
24
+ module AdManager
25
+ module V1
26
+ module AdUnitService
27
+ # Provides methods for handling AdUnit objects.
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.ads.admanager.v1.AdUnitService'
35
+
36
+ # API to retrieve an AdUnit object.
37
+ rpc :GetAdUnit, ::Google::Ads::AdManager::V1::GetAdUnitRequest, ::Google::Ads::AdManager::V1::AdUnit
38
+ # API to retrieve a list of AdUnit objects.
39
+ rpc :ListAdUnits, ::Google::Ads::AdManager::V1::ListAdUnitsRequest, ::Google::Ads::AdManager::V1::ListAdUnitsResponse
40
+ # API to retrieve a list of AdUnitSize objects.
41
+ rpc :ListAdUnitSizes, ::Google::Ads::AdManager::V1::ListAdUnitSizesRequest, ::Google::Ads::AdManager::V1::ListAdUnitSizesResponse
42
+ end
43
+
44
+ Stub = Service.rpc_stub_class
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/ads/admanager/v1/admanager_error.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/any_pb'
8
+
9
+
10
+ descriptor_data = "\n-google/ads/admanager/v1/admanager_error.proto\x12\x17google.ads.admanager.v1\x1a\x19google/protobuf/any.proto\"\x96\x01\n\x0e\x41\x64ManagerError\x12\x12\n\nerror_code\x18\x01 \x01(\t\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x12\n\nfield_path\x18\x03 \x01(\t\x12\x0f\n\x07trigger\x18\x04 \x01(\t\x12\x13\n\x0bstack_trace\x18\x05 \x01(\t\x12%\n\x07\x64\x65tails\x18\x06 \x03(\x0b\x32\x14.google.protobuf.AnyB\xc7\x01\n\x1b\x63om.google.ads.admanager.v1B\x13\x41\x64ManagerErrorProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Any", "google/protobuf/any.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
+ end
32
+ end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
35
+ end
36
+
37
+ module Google
38
+ module Ads
39
+ module AdManager
40
+ module V1
41
+ AdManagerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.AdManagerError").msgclass
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/ads/admanager/v1/applied_label.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+
10
+
11
+ descriptor_data = "\n+google/ads/admanager/v1/applied_label.proto\x12\x17google.ads.admanager.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"V\n\x0c\x41ppliedLabel\x12\x35\n\x05label\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x61\x64manager.googleapis.com/Label\x12\x0f\n\x07negated\x18\x02 \x01(\x08\x42\xc5\x01\n\x1b\x63om.google.ads.admanager.v1B\x11\x41ppliedLabelProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
+ end
32
+ end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
35
+ end
36
+
37
+ module Google
38
+ module Ads
39
+ module AdManager
40
+ module V1
41
+ AppliedLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.AppliedLabel").msgclass
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/ads/admanager/v1/company_credit_status_enum.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n8google/ads/admanager/v1/company_credit_status_enum.proto\x12\x17google.ads.admanager.v1\"\x95\x01\n\x17\x43ompanyCreditStatusEnum\"z\n\x13\x43ompanyCreditStatus\x12%\n!COMPANY_CREDIT_STATUS_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02\x12\x0b\n\x07ON_HOLD\x10\x03\x12\x08\n\x04STOP\x10\x04\x12\x0b\n\x07\x42LOCKED\x10\x05\x42\xd0\x01\n\x1b\x63om.google.ads.admanager.v1B\x1c\x43ompanyCreditStatusEnumProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
33
+
34
+ module Google
35
+ module Ads
36
+ module AdManager
37
+ module V1
38
+ CompanyCreditStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CompanyCreditStatusEnum").msgclass
39
+ CompanyCreditStatusEnum::CompanyCreditStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus").enummodule
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/ads/admanager/v1/company_messages.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/ads/admanager/v1/applied_label_pb'
8
+ require 'google/ads/admanager/v1/company_credit_status_enum_pb'
9
+ require 'google/ads/admanager/v1/company_type_enum_pb'
10
+ require 'google/api/field_behavior_pb'
11
+ require 'google/api/resource_pb'
12
+ require 'google/protobuf/timestamp_pb'
13
+
14
+
15
+ descriptor_data = "\n.google/ads/admanager/v1/company_messages.proto\x12\x17google.ads.admanager.v1\x1a+google/ads/admanager/v1/applied_label.proto\x1a\x38google/ads/admanager/v1/company_credit_status_enum.proto\x1a/google/ads/admanager/v1/company_type_enum.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9c\x06\n\x07\x43ompany\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x17\n\ncompany_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12G\n\x04type\x18\x04 \x01(\x0e\x32\x34.google.ads.admanager.v1.CompanyTypeEnum.CompanyTypeB\x03\xe0\x41\x02\x12\x14\n\x07\x61\x64\x64ress\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x65mail\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x03\x66\x61x\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05phone\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x65xternal_id\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07\x63omment\x18\n \x01(\tB\x03\xe0\x41\x01\x12`\n\rcredit_status\x18\x0b \x01(\x0e\x32\x44.google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatusB\x03\xe0\x41\x01\x12\x42\n\x0e\x61pplied_labels\x18\x0c \x03(\x0b\x32%.google.ads.admanager.v1.AppliedLabelB\x03\xe0\x41\x01\x12\x46\n\x0fprimary_contact\x18\r \x01(\tB(\xe0\x41\x01\xfa\x41\"\n admanager.googleapis.com/ContactH\x00\x88\x01\x01\x12<\n\rapplied_teams\x18\x0e \x03(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x61\x64manager.googleapis.com/Team\x12\x34\n\x0bupdate_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x16third_party_company_id\x18\x10 \x01(\x03\x42\x03\xe0\x41\x01:f\xea\x41\x63\n admanager.googleapis.com/Company\x12+networks/{network_code}/companies/{company}*\tcompanies2\x07\x63ompanyB\x12\n\x10_primary_contactB\xc8\x01\n\x1b\x63om.google.ads.admanager.v1B\x14\x43ompanyMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3"
16
+
17
+ pool = Google::Protobuf::DescriptorPool.generated_pool
18
+
19
+ begin
20
+ pool.add_serialized_file(descriptor_data)
21
+ rescue TypeError
22
+ # Compatibility code: will be removed in the next major version.
23
+ require 'google/protobuf/descriptor_pb'
24
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
25
+ parsed.clear_dependency
26
+ serialized = parsed.class.encode(parsed)
27
+ file = pool.add_serialized_file(serialized)
28
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
+ imports = [
30
+ ["google.ads.admanager.v1.AppliedLabel", "google/ads/admanager/v1/applied_label.proto"],
31
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
32
+ ]
33
+ imports.each do |type_name, expected_filename|
34
+ import_file = pool.lookup(type_name).file_descriptor
35
+ if import_file.name != expected_filename
36
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
37
+ end
38
+ end
39
+ warn "Each proto file must use a consistent fully-qualified name."
40
+ warn "This will become an error in the next major version."
41
+ end
42
+
43
+ module Google
44
+ module Ads
45
+ module AdManager
46
+ module V1
47
+ Company = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.Company").msgclass
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/ads/admanager/v1/company_service.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/ads/admanager/v1/company_messages_pb'
8
+ require 'google/api/annotations_pb'
9
+ require 'google/api/client_pb'
10
+ require 'google/api/field_behavior_pb'
11
+ require 'google/api/resource_pb'
12
+
13
+
14
+ descriptor_data = "\n-google/ads/admanager/v1/company_service.proto\x12\x17google.ads.admanager.v1\x1a.google/ads/admanager/v1/company_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"K\n\x11GetCompanyRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Company\"\xc0\x01\n\x14ListCompaniesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n admanager.googleapis.com/Network\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04skip\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\"y\n\x15ListCompaniesResponse\x12\x33\n\tcompanies\x18\x01 \x03(\x0b\x32 .google.ads.admanager.v1.Company\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\x32\xe1\x02\n\x0e\x43ompanyService\x12\x8c\x01\n\nGetCompany\x12*.google.ads.admanager.v1.GetCompanyRequest\x1a .google.ads.admanager.v1.Company\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v1/{name=networks/*/companies/*}\x12\xa2\x01\n\rListCompanies\x12-.google.ads.admanager.v1.ListCompaniesRequest\x1a..google.ads.admanager.v1.ListCompaniesResponse\"2\xda\x41\x06parent\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=networks/*}/companies\x1a\x1b\xca\x41\x18\x61\x64manager.googleapis.comB\xc7\x01\n\x1b\x63om.google.ads.admanager.v1B\x13\x43ompanyServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.ads.admanager.v1.Company", "google/ads/admanager/v1/company_messages.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
35
+ end
36
+ end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
39
+ end
40
+
41
+ module Google
42
+ module Ads
43
+ module AdManager
44
+ module V1
45
+ GetCompanyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.GetCompanyRequest").msgclass
46
+ ListCompaniesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListCompaniesRequest").msgclass
47
+ ListCompaniesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.ListCompaniesResponse").msgclass
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,47 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/ads/admanager/v1/company_service.proto for package 'Google.Ads.AdManager.V1'
3
+ # Original file comments:
4
+ # Copyright 2024 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/ads/admanager/v1/company_service_pb'
21
+
22
+ module Google
23
+ module Ads
24
+ module AdManager
25
+ module V1
26
+ module CompanyService
27
+ # Provides methods for handling `Company` objects.
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.ads.admanager.v1.CompanyService'
35
+
36
+ # API to retrieve a `Company` object.
37
+ rpc :GetCompany, ::Google::Ads::AdManager::V1::GetCompanyRequest, ::Google::Ads::AdManager::V1::Company
38
+ # API to retrieve a list of `Company` objects.
39
+ rpc :ListCompanies, ::Google::Ads::AdManager::V1::ListCompaniesRequest, ::Google::Ads::AdManager::V1::ListCompaniesResponse
40
+ end
41
+
42
+ Stub = Service.rpc_stub_class
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/ads/admanager/v1/company_type_enum.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n/google/ads/admanager/v1/company_type_enum.proto\x12\x17google.ads.admanager.v1\"\x92\x01\n\x0f\x43ompanyTypeEnum\"\x7f\n\x0b\x43ompanyType\x12\x1c\n\x18\x43OMPANY_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nADVERTISER\x10\x01\x12\x14\n\x10HOUSE_ADVERTISER\x10\x02\x12\n\n\x06\x41GENCY\x10\x03\x12\x10\n\x0cHOUSE_AGENCY\x10\x04\x12\x0e\n\nAD_NETWORK\x10\x05\x42\xc8\x01\n\x1b\x63om.google.ads.admanager.v1B\x14\x43ompanyTypeEnumProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xaa\x02\x17Google.Ads.AdManager.V1\xca\x02\x17Google\\Ads\\AdManager\\V1\xea\x02\x1aGoogle::Ads::AdManager::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
33
+
34
+ module Google
35
+ module Ads
36
+ module AdManager
37
+ module V1
38
+ CompanyTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CompanyTypeEnum").msgclass
39
+ CompanyTypeEnum::CompanyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.admanager.v1.CompanyTypeEnum.CompanyType").enummodule
40
+ end
41
+ end
42
+ end
43
+ end