google-ads-ad_manager-v1 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/ads/ad_manager/v1/ad_review_center_ad_service/credentials.rb +47 -0
  4. data/lib/google/ads/ad_manager/v1/ad_review_center_ad_service/paths.rb +69 -0
  5. data/lib/google/ads/ad_manager/v1/ad_review_center_ad_service/rest/client.rb +711 -0
  6. data/lib/google/ads/ad_manager/v1/ad_review_center_ad_service/rest/operations.rb +925 -0
  7. data/lib/google/ads/ad_manager/v1/ad_review_center_ad_service/rest/service_stub.rb +266 -0
  8. data/lib/google/ads/ad_manager/v1/ad_review_center_ad_service/rest.rb +53 -0
  9. data/lib/google/ads/ad_manager/v1/ad_review_center_ad_service.rb +48 -0
  10. data/lib/google/ads/ad_manager/v1/ad_unit_service/rest/client.rb +4 -4
  11. data/lib/google/ads/ad_manager/v1/application_service/credentials.rb +47 -0
  12. data/lib/google/ads/ad_manager/v1/application_service/paths.rb +64 -0
  13. data/lib/google/ads/ad_manager/v1/application_service/rest/client.rb +538 -0
  14. data/lib/google/ads/ad_manager/v1/application_service/rest/service_stub.rb +203 -0
  15. data/lib/google/ads/ad_manager/v1/application_service/rest.rb +52 -0
  16. data/lib/google/ads/ad_manager/v1/application_service.rb +48 -0
  17. data/lib/google/ads/ad_manager/v1/audience_segment_service/credentials.rb +47 -0
  18. data/lib/google/ads/ad_manager/v1/audience_segment_service/paths.rb +64 -0
  19. data/lib/google/ads/ad_manager/v1/audience_segment_service/rest/client.rb +538 -0
  20. data/lib/google/ads/ad_manager/v1/audience_segment_service/rest/service_stub.rb +203 -0
  21. data/lib/google/ads/ad_manager/v1/audience_segment_service/rest.rb +52 -0
  22. data/lib/google/ads/ad_manager/v1/audience_segment_service.rb +48 -0
  23. data/lib/google/ads/ad_manager/v1/bandwidth_group_service/rest/client.rb +2 -2
  24. data/lib/google/ads/ad_manager/v1/browser_language_service/credentials.rb +47 -0
  25. data/lib/google/ads/ad_manager/v1/browser_language_service/paths.rb +64 -0
  26. data/lib/google/ads/ad_manager/v1/browser_language_service/rest/client.rb +538 -0
  27. data/lib/google/ads/ad_manager/v1/browser_language_service/rest/service_stub.rb +203 -0
  28. data/lib/google/ads/ad_manager/v1/browser_language_service/rest.rb +52 -0
  29. data/lib/google/ads/ad_manager/v1/browser_language_service.rb +48 -0
  30. data/lib/google/ads/ad_manager/v1/browser_service/credentials.rb +47 -0
  31. data/lib/google/ads/ad_manager/v1/browser_service/paths.rb +64 -0
  32. data/lib/google/ads/ad_manager/v1/browser_service/rest/client.rb +538 -0
  33. data/lib/google/ads/ad_manager/v1/browser_service/rest/service_stub.rb +203 -0
  34. data/lib/google/ads/ad_manager/v1/browser_service/rest.rb +52 -0
  35. data/lib/google/ads/ad_manager/v1/browser_service.rb +48 -0
  36. data/lib/google/ads/ad_manager/v1/cms_metadata_key_service/credentials.rb +47 -0
  37. data/lib/google/ads/ad_manager/v1/cms_metadata_key_service/paths.rb +64 -0
  38. data/lib/google/ads/ad_manager/v1/cms_metadata_key_service/rest/client.rb +538 -0
  39. data/lib/google/ads/ad_manager/v1/cms_metadata_key_service/rest/service_stub.rb +203 -0
  40. data/lib/google/ads/ad_manager/v1/cms_metadata_key_service/rest.rb +52 -0
  41. data/lib/google/ads/ad_manager/v1/cms_metadata_key_service.rb +48 -0
  42. data/lib/google/ads/ad_manager/v1/cms_metadata_value_service/credentials.rb +47 -0
  43. data/lib/google/ads/ad_manager/v1/cms_metadata_value_service/paths.rb +64 -0
  44. data/lib/google/ads/ad_manager/v1/cms_metadata_value_service/rest/client.rb +538 -0
  45. data/lib/google/ads/ad_manager/v1/cms_metadata_value_service/rest/service_stub.rb +203 -0
  46. data/lib/google/ads/ad_manager/v1/cms_metadata_value_service/rest.rb +52 -0
  47. data/lib/google/ads/ad_manager/v1/cms_metadata_value_service.rb +48 -0
  48. data/lib/google/ads/ad_manager/v1/company_service/rest/client.rb +2 -2
  49. data/lib/google/ads/ad_manager/v1/contact_service/credentials.rb +47 -0
  50. data/lib/google/ads/ad_manager/v1/contact_service/paths.rb +81 -0
  51. data/lib/google/ads/ad_manager/v1/contact_service/rest/client.rb +897 -0
  52. data/lib/google/ads/ad_manager/v1/contact_service/rest/service_stub.rb +451 -0
  53. data/lib/google/ads/ad_manager/v1/contact_service/rest.rb +52 -0
  54. data/lib/google/ads/ad_manager/v1/contact_service.rb +48 -0
  55. data/lib/google/ads/ad_manager/v1/content_bundle_service/credentials.rb +47 -0
  56. data/lib/google/ads/ad_manager/v1/content_bundle_service/paths.rb +64 -0
  57. data/lib/google/ads/ad_manager/v1/content_bundle_service/rest/client.rb +538 -0
  58. data/lib/google/ads/ad_manager/v1/content_bundle_service/rest/service_stub.rb +203 -0
  59. data/lib/google/ads/ad_manager/v1/content_bundle_service/rest.rb +52 -0
  60. data/lib/google/ads/ad_manager/v1/content_bundle_service.rb +48 -0
  61. data/lib/google/ads/ad_manager/v1/content_label_service/credentials.rb +47 -0
  62. data/lib/google/ads/ad_manager/v1/content_label_service/paths.rb +64 -0
  63. data/lib/google/ads/ad_manager/v1/content_label_service/rest/client.rb +538 -0
  64. data/lib/google/ads/ad_manager/v1/content_label_service/rest/service_stub.rb +203 -0
  65. data/lib/google/ads/ad_manager/v1/content_label_service/rest.rb +52 -0
  66. data/lib/google/ads/ad_manager/v1/content_label_service.rb +48 -0
  67. data/lib/google/ads/ad_manager/v1/content_service/credentials.rb +47 -0
  68. data/lib/google/ads/ad_manager/v1/content_service/paths.rb +64 -0
  69. data/lib/google/ads/ad_manager/v1/content_service/rest/client.rb +538 -0
  70. data/lib/google/ads/ad_manager/v1/content_service/rest/service_stub.rb +203 -0
  71. data/lib/google/ads/ad_manager/v1/content_service/rest.rb +52 -0
  72. data/lib/google/ads/ad_manager/v1/content_service.rb +48 -0
  73. data/lib/google/ads/ad_manager/v1/creative_template_service/credentials.rb +47 -0
  74. data/lib/google/ads/ad_manager/v1/creative_template_service/paths.rb +64 -0
  75. data/lib/google/ads/ad_manager/v1/creative_template_service/rest/client.rb +538 -0
  76. data/lib/google/ads/ad_manager/v1/creative_template_service/rest/service_stub.rb +203 -0
  77. data/lib/google/ads/ad_manager/v1/creative_template_service/rest.rb +52 -0
  78. data/lib/google/ads/ad_manager/v1/creative_template_service.rb +48 -0
  79. data/lib/google/ads/ad_manager/v1/custom_field_service/rest/client.rb +537 -2
  80. data/lib/google/ads/ad_manager/v1/custom_field_service/rest/service_stub.rb +372 -0
  81. data/lib/google/ads/ad_manager/v1/device_capability_service/credentials.rb +47 -0
  82. data/lib/google/ads/ad_manager/v1/device_capability_service/paths.rb +64 -0
  83. data/lib/google/ads/ad_manager/v1/device_capability_service/rest/client.rb +538 -0
  84. data/lib/google/ads/ad_manager/v1/device_capability_service/rest/service_stub.rb +203 -0
  85. data/lib/google/ads/ad_manager/v1/device_capability_service/rest.rb +52 -0
  86. data/lib/google/ads/ad_manager/v1/device_capability_service.rb +48 -0
  87. data/lib/google/ads/ad_manager/v1/device_category_service/rest/client.rb +1 -1
  88. data/lib/google/ads/ad_manager/v1/device_manufacturer_service/credentials.rb +47 -0
  89. data/lib/google/ads/ad_manager/v1/device_manufacturer_service/paths.rb +64 -0
  90. data/lib/google/ads/ad_manager/v1/device_manufacturer_service/rest/client.rb +539 -0
  91. data/lib/google/ads/ad_manager/v1/device_manufacturer_service/rest/service_stub.rb +203 -0
  92. data/lib/google/ads/ad_manager/v1/device_manufacturer_service/rest.rb +52 -0
  93. data/lib/google/ads/ad_manager/v1/device_manufacturer_service.rb +48 -0
  94. data/lib/google/ads/ad_manager/v1/geo_target_service/rest/client.rb +2 -2
  95. data/lib/google/ads/ad_manager/v1/mobile_carrier_service/credentials.rb +47 -0
  96. data/lib/google/ads/ad_manager/v1/mobile_carrier_service/paths.rb +64 -0
  97. data/lib/google/ads/ad_manager/v1/mobile_carrier_service/rest/client.rb +538 -0
  98. data/lib/google/ads/ad_manager/v1/mobile_carrier_service/rest/service_stub.rb +203 -0
  99. data/lib/google/ads/ad_manager/v1/mobile_carrier_service/rest.rb +52 -0
  100. data/lib/google/ads/ad_manager/v1/mobile_carrier_service.rb +48 -0
  101. data/lib/google/ads/ad_manager/v1/mobile_device_service/credentials.rb +47 -0
  102. data/lib/google/ads/ad_manager/v1/mobile_device_service/paths.rb +64 -0
  103. data/lib/google/ads/ad_manager/v1/mobile_device_service/rest/client.rb +538 -0
  104. data/lib/google/ads/ad_manager/v1/mobile_device_service/rest/service_stub.rb +203 -0
  105. data/lib/google/ads/ad_manager/v1/mobile_device_service/rest.rb +52 -0
  106. data/lib/google/ads/ad_manager/v1/mobile_device_service.rb +48 -0
  107. data/lib/google/ads/ad_manager/v1/mobile_device_submodel_service/credentials.rb +47 -0
  108. data/lib/google/ads/ad_manager/v1/mobile_device_submodel_service/paths.rb +64 -0
  109. data/lib/google/ads/ad_manager/v1/mobile_device_submodel_service/rest/client.rb +541 -0
  110. data/lib/google/ads/ad_manager/v1/mobile_device_submodel_service/rest/service_stub.rb +203 -0
  111. data/lib/google/ads/ad_manager/v1/mobile_device_submodel_service/rest.rb +52 -0
  112. data/lib/google/ads/ad_manager/v1/mobile_device_submodel_service.rb +48 -0
  113. data/lib/google/ads/ad_manager/v1/operating_system_service/rest/client.rb +1 -1
  114. data/lib/google/ads/ad_manager/v1/operating_system_version_service/rest/client.rb +1 -1
  115. data/lib/google/ads/ad_manager/v1/order_service/rest/client.rb +2 -2
  116. data/lib/google/ads/ad_manager/v1/placement_service/paths.rb +17 -0
  117. data/lib/google/ads/ad_manager/v1/placement_service/rest/client.rb +627 -2
  118. data/lib/google/ads/ad_manager/v1/placement_service/rest/service_stub.rb +434 -0
  119. data/lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb +204 -0
  120. data/lib/google/ads/ad_manager/v1/private_auction_deal_service/rest/client.rb +1 -1
  121. data/lib/google/ads/ad_manager/v1/private_auction_service/rest/client.rb +1 -1
  122. data/lib/google/ads/ad_manager/v1/report_service/rest/client.rb +8 -7
  123. data/lib/google/ads/ad_manager/v1/rest.rb +19 -0
  124. data/lib/google/ads/ad_manager/v1/role_service/rest/client.rb +2 -1
  125. data/lib/google/ads/ad_manager/v1/site_service/credentials.rb +47 -0
  126. data/lib/google/ads/ad_manager/v1/site_service/paths.rb +64 -0
  127. data/lib/google/ads/ad_manager/v1/site_service/rest/client.rb +1071 -0
  128. data/lib/google/ads/ad_manager/v1/site_service/rest/service_stub.rb +575 -0
  129. data/lib/google/ads/ad_manager/v1/site_service/rest.rb +52 -0
  130. data/lib/google/ads/ad_manager/v1/site_service.rb +48 -0
  131. data/lib/google/ads/ad_manager/v1/team_service/credentials.rb +47 -0
  132. data/lib/google/ads/ad_manager/v1/team_service/paths.rb +64 -0
  133. data/lib/google/ads/ad_manager/v1/team_service/rest/client.rb +1073 -0
  134. data/lib/google/ads/ad_manager/v1/team_service/rest/service_stub.rb +575 -0
  135. data/lib/google/ads/ad_manager/v1/team_service/rest.rb +52 -0
  136. data/lib/google/ads/ad_manager/v1/team_service.rb +48 -0
  137. data/lib/google/ads/ad_manager/v1/version.rb +1 -1
  138. data/lib/google/ads/ad_manager/v1.rb +19 -0
  139. data/lib/google/ads/admanager/v1/ad_review_center_ad_enums_pb.rb +43 -0
  140. data/lib/google/ads/admanager/v1/ad_review_center_ad_messages_pb.rb +47 -0
  141. data/lib/google/ads/admanager/v1/ad_review_center_ad_service_pb.rb +61 -0
  142. data/lib/google/ads/admanager/v1/ad_review_center_ad_service_services_pb.rb +55 -0
  143. data/lib/google/ads/admanager/v1/ad_unit_messages_pb.rb +1 -1
  144. data/lib/google/ads/admanager/v1/application_messages_pb.rb +45 -0
  145. data/lib/google/ads/admanager/v1/application_service_pb.rb +51 -0
  146. data/lib/google/ads/admanager/v1/application_service_services_pb.rb +47 -0
  147. data/lib/google/ads/admanager/v1/audience_segment_messages_pb.rb +45 -0
  148. data/lib/google/ads/admanager/v1/audience_segment_service_pb.rb +51 -0
  149. data/lib/google/ads/admanager/v1/audience_segment_service_services_pb.rb +47 -0
  150. data/lib/google/ads/admanager/v1/browser_language_messages_pb.rb +45 -0
  151. data/lib/google/ads/admanager/v1/browser_language_service_pb.rb +51 -0
  152. data/lib/google/ads/admanager/v1/browser_language_service_services_pb.rb +47 -0
  153. data/lib/google/ads/admanager/v1/browser_messages_pb.rb +45 -0
  154. data/lib/google/ads/admanager/v1/browser_service_pb.rb +51 -0
  155. data/lib/google/ads/admanager/v1/browser_service_services_pb.rb +47 -0
  156. data/lib/google/ads/admanager/v1/cms_metadata_key_enums_pb.rb +43 -0
  157. data/lib/google/ads/admanager/v1/cms_metadata_key_messages_pb.rb +46 -0
  158. data/lib/google/ads/admanager/v1/cms_metadata_key_service_pb.rb +51 -0
  159. data/lib/google/ads/admanager/v1/cms_metadata_key_service_services_pb.rb +47 -0
  160. data/lib/google/ads/admanager/v1/cms_metadata_value_enums_pb.rb +43 -0
  161. data/lib/google/ads/admanager/v1/cms_metadata_value_messages_pb.rb +46 -0
  162. data/lib/google/ads/admanager/v1/cms_metadata_value_service_pb.rb +51 -0
  163. data/lib/google/ads/admanager/v1/cms_metadata_value_service_services_pb.rb +47 -0
  164. data/lib/google/ads/admanager/v1/company_messages_pb.rb +1 -1
  165. data/lib/google/ads/admanager/v1/contact_enums_pb.rb +43 -0
  166. data/lib/google/ads/admanager/v1/contact_messages_pb.rb +2 -1
  167. data/lib/google/ads/admanager/v1/contact_service_pb.rb +59 -0
  168. data/lib/google/ads/admanager/v1/contact_service_services_pb.rb +55 -0
  169. data/lib/google/ads/admanager/v1/content_bundle_messages_pb.rb +45 -0
  170. data/lib/google/ads/admanager/v1/content_bundle_service_pb.rb +51 -0
  171. data/lib/google/ads/admanager/v1/content_bundle_service_services_pb.rb +47 -0
  172. data/lib/google/ads/admanager/v1/content_label_messages_pb.rb +45 -0
  173. data/lib/google/ads/admanager/v1/content_label_service_pb.rb +51 -0
  174. data/lib/google/ads/admanager/v1/content_label_service_services_pb.rb +47 -0
  175. data/lib/google/ads/admanager/v1/content_messages_pb.rb +45 -0
  176. data/lib/google/ads/admanager/v1/content_service_pb.rb +51 -0
  177. data/lib/google/ads/admanager/v1/content_service_services_pb.rb +47 -0
  178. data/lib/google/ads/admanager/v1/creative_template_enums_pb.rb +45 -0
  179. data/lib/google/ads/admanager/v1/creative_template_messages_pb.rb +55 -0
  180. data/lib/google/ads/admanager/v1/creative_template_service_pb.rb +51 -0
  181. data/lib/google/ads/admanager/v1/creative_template_service_services_pb.rb +47 -0
  182. data/lib/google/ads/admanager/v1/creative_template_variable_url_type_enum_pb.rb +43 -0
  183. data/lib/google/ads/admanager/v1/custom_field_messages_pb.rb +1 -1
  184. data/lib/google/ads/admanager/v1/custom_field_service_pb.rb +13 -1
  185. data/lib/google/ads/admanager/v1/custom_field_service_services_pb.rb +12 -0
  186. data/lib/google/ads/admanager/v1/custom_targeting_key_messages_pb.rb +1 -1
  187. data/lib/google/ads/admanager/v1/custom_targeting_value_messages_pb.rb +1 -1
  188. data/lib/google/ads/admanager/v1/device_capability_messages_pb.rb +45 -0
  189. data/lib/google/ads/admanager/v1/device_capability_service_pb.rb +51 -0
  190. data/lib/google/ads/admanager/v1/device_capability_service_services_pb.rb +47 -0
  191. data/lib/google/ads/admanager/v1/device_manufacturer_messages_pb.rb +45 -0
  192. data/lib/google/ads/admanager/v1/device_manufacturer_service_pb.rb +51 -0
  193. data/lib/google/ads/admanager/v1/device_manufacturer_service_services_pb.rb +47 -0
  194. data/lib/google/ads/admanager/v1/exchange_syndication_product_enum_pb.rb +43 -0
  195. data/lib/google/ads/admanager/v1/mobile_carrier_messages_pb.rb +45 -0
  196. data/lib/google/ads/admanager/v1/mobile_carrier_service_pb.rb +51 -0
  197. data/lib/google/ads/admanager/v1/mobile_carrier_service_services_pb.rb +47 -0
  198. data/lib/google/ads/admanager/v1/mobile_device_messages_pb.rb +45 -0
  199. data/lib/google/ads/admanager/v1/mobile_device_service_pb.rb +51 -0
  200. data/lib/google/ads/admanager/v1/mobile_device_service_services_pb.rb +47 -0
  201. data/lib/google/ads/admanager/v1/mobile_device_submodel_messages_pb.rb +45 -0
  202. data/lib/google/ads/admanager/v1/mobile_device_submodel_service_pb.rb +51 -0
  203. data/lib/google/ads/admanager/v1/mobile_device_submodel_service_services_pb.rb +47 -0
  204. data/lib/google/ads/admanager/v1/placement_service_pb.rb +15 -1
  205. data/lib/google/ads/admanager/v1/placement_service_services_pb.rb +14 -0
  206. data/lib/google/ads/admanager/v1/report_definition_pb.rb +65 -0
  207. data/lib/google/ads/admanager/v1/report_messages_pb.rb +12 -29
  208. data/lib/google/ads/admanager/v1/report_service_pb.rb +3 -1
  209. data/lib/google/ads/admanager/v1/report_service_services_pb.rb +1 -1
  210. data/lib/google/ads/admanager/v1/report_value_pb.rb +45 -0
  211. data/lib/google/ads/admanager/v1/site_enums_pb.rb +45 -0
  212. data/lib/google/ads/admanager/v1/site_messages_pb.rb +49 -0
  213. data/lib/google/ads/admanager/v1/site_service_pb.rb +63 -0
  214. data/lib/google/ads/admanager/v1/site_service_services_pb.rb +59 -0
  215. data/lib/google/ads/admanager/v1/targeting_pb.rb +11 -1
  216. data/lib/google/ads/admanager/v1/taxonomy_type_enum_pb.rb +1 -1
  217. data/lib/google/ads/admanager/v1/team_enums_pb.rb +45 -0
  218. data/lib/google/ads/admanager/v1/team_messages_pb.rb +2 -1
  219. data/lib/google/ads/admanager/v1/team_service_pb.rb +63 -0
  220. data/lib/google/ads/admanager/v1/team_service_services_pb.rb +59 -0
  221. data/lib/google/ads/admanager/v1/web_property_pb.rb +46 -0
  222. data/proto_docs/google/ads/admanager/v1/ad_break_service.rb +1 -1
  223. data/proto_docs/google/ads/admanager/v1/ad_review_center_ad_enums.rb +48 -0
  224. data/proto_docs/google/ads/admanager/v1/ad_review_center_ad_messages.rb +53 -0
  225. data/proto_docs/google/ads/admanager/v1/ad_review_center_ad_service.rb +180 -0
  226. data/proto_docs/google/ads/admanager/v1/ad_unit_service.rb +6 -6
  227. data/proto_docs/google/ads/admanager/v1/application_messages.rb +41 -0
  228. data/proto_docs/google/ads/admanager/v1/application_service.rb +99 -0
  229. data/proto_docs/google/ads/admanager/v1/audience_segment_messages.rb +43 -0
  230. data/proto_docs/google/ads/admanager/v1/audience_segment_service.rb +99 -0
  231. data/proto_docs/google/ads/admanager/v1/bandwidth_group_service.rb +3 -3
  232. data/proto_docs/google/ads/admanager/v1/browser_language_messages.rb +39 -0
  233. data/proto_docs/google/ads/admanager/v1/browser_language_service.rb +99 -0
  234. data/proto_docs/google/ads/admanager/v1/browser_messages.rb +45 -0
  235. data/proto_docs/google/ads/admanager/v1/browser_service.rb +99 -0
  236. data/proto_docs/google/ads/admanager/v1/cms_metadata_key_enums.rb +45 -0
  237. data/proto_docs/google/ads/admanager/v1/cms_metadata_key_messages.rb +42 -0
  238. data/proto_docs/google/ads/admanager/v1/cms_metadata_key_service.rb +99 -0
  239. data/proto_docs/google/ads/admanager/v1/cms_metadata_value_enums.rb +48 -0
  240. data/proto_docs/google/ads/admanager/v1/cms_metadata_value_messages.rb +47 -0
  241. data/proto_docs/google/ads/admanager/v1/cms_metadata_value_service.rb +99 -0
  242. data/proto_docs/google/ads/admanager/v1/company_service.rb +3 -3
  243. data/proto_docs/google/ads/admanager/v1/contact_enums.rb +61 -0
  244. data/proto_docs/google/ads/admanager/v1/contact_messages.rb +38 -2
  245. data/proto_docs/google/ads/admanager/v1/contact_service.rb +176 -0
  246. data/proto_docs/google/ads/admanager/v1/content_bundle_messages.rb +47 -0
  247. data/proto_docs/google/ads/admanager/v1/content_bundle_service.rb +99 -0
  248. data/proto_docs/google/ads/admanager/v1/content_label_messages.rb +39 -0
  249. data/proto_docs/google/ads/admanager/v1/content_label_service.rb +99 -0
  250. data/proto_docs/google/ads/admanager/v1/content_messages.rb +39 -0
  251. data/proto_docs/google/ads/admanager/v1/content_service.rb +99 -0
  252. data/proto_docs/google/ads/admanager/v1/creative_template_enums.rb +70 -0
  253. data/proto_docs/google/ads/admanager/v1/creative_template_messages.rb +257 -0
  254. data/proto_docs/google/ads/admanager/v1/creative_template_service.rb +99 -0
  255. data/proto_docs/google/ads/admanager/v1/creative_template_variable_url_type_enum.rb +51 -0
  256. data/proto_docs/google/ads/admanager/v1/custom_field_messages.rb +2 -2
  257. data/proto_docs/google/ads/admanager/v1/custom_field_service.rb +118 -3
  258. data/proto_docs/google/ads/admanager/v1/custom_targeting_key_service.rb +1 -1
  259. data/proto_docs/google/ads/admanager/v1/custom_targeting_value_service.rb +1 -1
  260. data/proto_docs/google/ads/admanager/v1/device_capability_messages.rb +39 -0
  261. data/proto_docs/google/ads/admanager/v1/device_capability_service.rb +99 -0
  262. data/proto_docs/google/ads/admanager/v1/device_category_service.rb +2 -2
  263. data/proto_docs/google/ads/admanager/v1/device_manufacturer_messages.rb +40 -0
  264. data/proto_docs/google/ads/admanager/v1/device_manufacturer_service.rb +100 -0
  265. data/proto_docs/google/ads/admanager/v1/entity_signals_mapping_service.rb +1 -1
  266. data/proto_docs/google/ads/admanager/v1/exchange_syndication_product_enum.rb +51 -0
  267. data/proto_docs/google/ads/admanager/v1/geo_target_service.rb +3 -3
  268. data/proto_docs/google/ads/admanager/v1/mobile_carrier_messages.rb +42 -0
  269. data/proto_docs/google/ads/admanager/v1/mobile_carrier_service.rb +99 -0
  270. data/proto_docs/google/ads/admanager/v1/mobile_device_messages.rb +43 -0
  271. data/proto_docs/google/ads/admanager/v1/mobile_device_service.rb +99 -0
  272. data/proto_docs/google/ads/admanager/v1/mobile_device_submodel_messages.rb +44 -0
  273. data/proto_docs/google/ads/admanager/v1/mobile_device_submodel_service.rb +102 -0
  274. data/proto_docs/google/ads/admanager/v1/operating_system_service.rb +2 -2
  275. data/proto_docs/google/ads/admanager/v1/operating_system_version_service.rb +2 -2
  276. data/proto_docs/google/ads/admanager/v1/order_messages.rb +7 -8
  277. data/proto_docs/google/ads/admanager/v1/order_service.rb +3 -3
  278. data/proto_docs/google/ads/admanager/v1/placement_service.rb +139 -3
  279. data/proto_docs/google/ads/admanager/v1/private_auction_deal_service.rb +2 -2
  280. data/proto_docs/google/ads/admanager/v1/private_auction_service.rb +2 -2
  281. data/proto_docs/google/ads/admanager/v1/programmatic_buyer_service.rb +1 -1
  282. data/proto_docs/google/ads/admanager/v1/report_definition.rb +12498 -0
  283. data/proto_docs/google/ads/admanager/v1/report_messages.rb +139 -3479
  284. data/proto_docs/google/ads/admanager/v1/report_service.rb +8 -7
  285. data/proto_docs/google/ads/admanager/v1/report_value.rb +99 -0
  286. data/proto_docs/google/ads/admanager/v1/role_service.rb +3 -2
  287. data/proto_docs/google/ads/admanager/v1/site_enums.rb +79 -0
  288. data/proto_docs/google/ads/admanager/v1/site_messages.rb +67 -0
  289. data/proto_docs/google/ads/admanager/v1/site_service.rb +211 -0
  290. data/proto_docs/google/ads/admanager/v1/targeting.rb +217 -0
  291. data/proto_docs/google/ads/admanager/v1/taxonomy_category_service.rb +1 -1
  292. data/proto_docs/google/ads/admanager/v1/taxonomy_type_enum.rb +3 -0
  293. data/proto_docs/google/ads/admanager/v1/team_enums.rb +69 -0
  294. data/proto_docs/google/ads/admanager/v1/team_messages.rb +25 -0
  295. data/proto_docs/google/ads/admanager/v1/team_service.rb +213 -0
  296. data/proto_docs/google/ads/admanager/v1/web_property.rb +46 -0
  297. data/proto_docs/google/type/interval.rb +45 -0
  298. metadata +236 -4
@@ -0,0 +1,711 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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/cloud/errors"
20
+ require "google/ads/admanager/v1/ad_review_center_ad_service_pb"
21
+ require "google/ads/ad_manager/v1/ad_review_center_ad_service/rest/service_stub"
22
+
23
+ module Google
24
+ module Ads
25
+ module AdManager
26
+ module V1
27
+ module AdReviewCenterAdService
28
+ module Rest
29
+ ##
30
+ # REST client for the AdReviewCenterAdService service.
31
+ #
32
+ # Provides methods for handling AdReviewCenterAd objects.
33
+ #
34
+ class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
38
+ # @private
39
+ DEFAULT_ENDPOINT_TEMPLATE = "admanager.$UNIVERSE_DOMAIN$"
40
+
41
+ include Paths
42
+
43
+ # @private
44
+ attr_reader :ad_review_center_ad_service_stub
45
+
46
+ ##
47
+ # Configure the AdReviewCenterAdService Client class.
48
+ #
49
+ # See {::Google::Ads::AdManager::V1::AdReviewCenterAdService::Rest::Client::Configuration}
50
+ # for a description of the configuration fields.
51
+ #
52
+ # @example
53
+ #
54
+ # # Modify the configuration for all AdReviewCenterAdService clients
55
+ # ::Google::Ads::AdManager::V1::AdReviewCenterAdService::Rest::Client.configure do |config|
56
+ # config.timeout = 10.0
57
+ # end
58
+ #
59
+ # @yield [config] Configure the Client client.
60
+ # @yieldparam config [Client::Configuration]
61
+ #
62
+ # @return [Client::Configuration]
63
+ #
64
+ def self.configure
65
+ @configure ||= begin
66
+ namespace = ["Google", "Ads", "AdManager", "V1"]
67
+ parent_config = while namespace.any?
68
+ parent_name = namespace.join "::"
69
+ parent_const = const_get parent_name
70
+ break parent_const.configure if parent_const.respond_to? :configure
71
+ namespace.pop
72
+ end
73
+ default_config = Client::Configuration.new parent_config
74
+
75
+ default_config
76
+ end
77
+ yield @configure if block_given?
78
+ @configure
79
+ end
80
+
81
+ ##
82
+ # Configure the AdReviewCenterAdService Client instance.
83
+ #
84
+ # The configuration is set to the derived mode, meaning that values can be changed,
85
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
86
+ # should be made on {Client.configure}.
87
+ #
88
+ # See {::Google::Ads::AdManager::V1::AdReviewCenterAdService::Rest::Client::Configuration}
89
+ # for a description of the configuration fields.
90
+ #
91
+ # @yield [config] Configure the Client client.
92
+ # @yieldparam config [Client::Configuration]
93
+ #
94
+ # @return [Client::Configuration]
95
+ #
96
+ def configure
97
+ yield @config if block_given?
98
+ @config
99
+ end
100
+
101
+ ##
102
+ # The effective universe domain
103
+ #
104
+ # @return [String]
105
+ #
106
+ def universe_domain
107
+ @ad_review_center_ad_service_stub.universe_domain
108
+ end
109
+
110
+ ##
111
+ # Create a new AdReviewCenterAdService REST client object.
112
+ #
113
+ # @example
114
+ #
115
+ # # Create a client using the default configuration
116
+ # client = ::Google::Ads::AdManager::V1::AdReviewCenterAdService::Rest::Client.new
117
+ #
118
+ # # Create a client using a custom configuration
119
+ # client = ::Google::Ads::AdManager::V1::AdReviewCenterAdService::Rest::Client.new do |config|
120
+ # config.timeout = 10.0
121
+ # end
122
+ #
123
+ # @yield [config] Configure the AdReviewCenterAdService client.
124
+ # @yieldparam config [Client::Configuration]
125
+ #
126
+ def initialize
127
+ # Create the configuration object
128
+ @config = Configuration.new Client.configure
129
+
130
+ # Yield the configuration if needed
131
+ yield @config if block_given?
132
+
133
+ # Create credentials
134
+ credentials = @config.credentials
135
+ # Use self-signed JWT if the endpoint is unchanged from default,
136
+ # but only if the default endpoint does not have a region prefix.
137
+ enable_self_signed_jwt = @config.endpoint.nil? ||
138
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
139
+ !@config.endpoint.split(".").first.include?("-"))
140
+ credentials ||= Credentials.default scope: @config.scope,
141
+ enable_self_signed_jwt: enable_self_signed_jwt
142
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
143
+ credentials = Credentials.new credentials, scope: @config.scope
144
+ end
145
+
146
+ @quota_project_id = @config.quota_project
147
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
148
+
149
+ @operations_client = ::Google::Ads::AdManager::V1::AdReviewCenterAdService::Rest::Operations.new do |config|
150
+ config.credentials = credentials
151
+ config.quota_project = @quota_project_id
152
+ config.endpoint = @config.endpoint
153
+ config.universe_domain = @config.universe_domain
154
+ end
155
+
156
+ @ad_review_center_ad_service_stub = ::Google::Ads::AdManager::V1::AdReviewCenterAdService::Rest::ServiceStub.new(
157
+ endpoint: @config.endpoint,
158
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
159
+ universe_domain: @config.universe_domain,
160
+ credentials: credentials,
161
+ logger: @config.logger
162
+ )
163
+
164
+ @ad_review_center_ad_service_stub.logger(stub: true)&.info do |entry|
165
+ entry.set_system_name
166
+ entry.set_service
167
+ entry.message = "Created client for #{entry.service}"
168
+ entry.set_credentials_fields credentials
169
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
170
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
171
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
172
+ end
173
+ end
174
+
175
+ ##
176
+ # Get the associated client for long-running operations.
177
+ #
178
+ # @return [::Google::Ads::AdManager::V1::AdReviewCenterAdService::Rest::Operations]
179
+ #
180
+ attr_reader :operations_client
181
+
182
+ ##
183
+ # The logger used for request/response debug logging.
184
+ #
185
+ # @return [Logger]
186
+ #
187
+ def logger
188
+ @ad_review_center_ad_service_stub.logger
189
+ end
190
+
191
+ # Service calls
192
+
193
+ ##
194
+ # API to search for AdReviewCenterAds.
195
+ #
196
+ # @overload search_ad_review_center_ads(request, options = nil)
197
+ # Pass arguments to `search_ad_review_center_ads` via a request object, either of type
198
+ # {::Google::Ads::AdManager::V1::SearchAdReviewCenterAdsRequest} or an equivalent Hash.
199
+ #
200
+ # @param request [::Google::Ads::AdManager::V1::SearchAdReviewCenterAdsRequest, ::Hash]
201
+ # A request object representing the call parameters. Required. To specify no
202
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
203
+ # @param options [::Gapic::CallOptions, ::Hash]
204
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
205
+ #
206
+ # @overload search_ad_review_center_ads(parent: nil, page_size: nil, page_token: nil, status: nil, ad_review_center_ad_id: nil, date_time_range: nil, search_text: nil, buyer_account_id: nil)
207
+ # Pass arguments to `search_ad_review_center_ads` via keyword arguments. Note that at
208
+ # least one keyword argument is required. To specify no parameters, or to keep all
209
+ # the default parameter values, pass an empty Hash as a request object (see above).
210
+ #
211
+ # @param parent [::String]
212
+ # Required. The parent, which owns this collection of AdReviewCenterAds.
213
+ # Format: networks/\\{network_code}/webProperties/\\{web_property_code}
214
+ #
215
+ # Since a network can only have a single web property of each
216
+ # `ExchangeSyndicationProduct`, you can use the
217
+ # `ExchangeSyndicationProduct` as an alias for the web property code:
218
+ #
219
+ # `networks/{network_code}/webProperties/display`
220
+ #
221
+ # `networks/{network_code}/webProperties/videoAndAudio`
222
+ #
223
+ # `networks/{network_code}/webProperties/mobileApp`
224
+ #
225
+ # `networks/{network_code}/webProperties/games`
226
+ # @param page_size [::Integer]
227
+ # Optional. The maximum number of AdReviewCenterAds to return. The service
228
+ # may return fewer than this value. If unspecified, at most 50
229
+ # AdReviewCenterAds will be returned. The maximum value is 1000; values
230
+ # greater than 1000 will be coerced to 1000.
231
+ # @param page_token [::String]
232
+ # Optional. The page token to fetch the next page of AdReviewCenterAds. This
233
+ # is the value returned from a previous Search request, or empty.
234
+ # @param status [::Google::Ads::AdManager::V1::AdReviewCenterAdStatusEnum::AdReviewCenterAdStatus]
235
+ # Required. Only return ads with the given status.
236
+ # @param ad_review_center_ad_id [::Array<::String>]
237
+ # Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
238
+ # @param date_time_range [::Google::Type::Interval, ::Hash]
239
+ # Optional. If provided, only return ads that served within the given date
240
+ # range (inclusive). The date range must be within the last 30 days. If not
241
+ # provided, the date range will be the last 30 days.
242
+ # @param search_text [::Array<::String>]
243
+ # Optional. If provided, restrict the search to AdReviewCenterAds associated
244
+ # with the text (including any text on the ad or in the destination URL). If
245
+ # more than one value is provided, the search will combine them in a logical
246
+ # AND. For example, ['car', 'blue'] will match ads that contain both "car"
247
+ # and "blue", but not an ad that only contains "car".
248
+ # @param buyer_account_id [::Array<::Integer>]
249
+ # Optional. If provided, restrict the search to creatives belonging to one of
250
+ # the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
251
+ # buyer account IDs can be found via the ProgrammaticBuyerService.
252
+ # @yield [result, operation] Access the result along with the TransportOperation object
253
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::AdReviewCenterAd>]
254
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
255
+ #
256
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::AdReviewCenterAd>]
257
+ #
258
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
259
+ #
260
+ # @example Basic example
261
+ # require "google/ads/ad_manager/v1"
262
+ #
263
+ # # Create a client object. The client can be reused for multiple calls.
264
+ # client = Google::Ads::AdManager::V1::AdReviewCenterAdService::Rest::Client.new
265
+ #
266
+ # # Create a request. To set request fields, pass in keyword arguments.
267
+ # request = Google::Ads::AdManager::V1::SearchAdReviewCenterAdsRequest.new
268
+ #
269
+ # # Call the search_ad_review_center_ads method.
270
+ # result = client.search_ad_review_center_ads request
271
+ #
272
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
273
+ # # over elements, and API calls will be issued to fetch pages as needed.
274
+ # result.each do |item|
275
+ # # Each element is of type ::Google::Ads::AdManager::V1::AdReviewCenterAd.
276
+ # p item
277
+ # end
278
+ #
279
+ def search_ad_review_center_ads request, options = nil
280
+ raise ::ArgumentError, "request must be provided" if request.nil?
281
+
282
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::SearchAdReviewCenterAdsRequest
283
+
284
+ # Converts hash and nil to an options object
285
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
286
+
287
+ # Customize the options with defaults
288
+ call_metadata = @config.rpcs.search_ad_review_center_ads.metadata.to_h
289
+
290
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
293
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
294
+ transports_version_send: [:rest]
295
+
296
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
297
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
298
+
299
+ options.apply_defaults timeout: @config.rpcs.search_ad_review_center_ads.timeout,
300
+ metadata: call_metadata,
301
+ retry_policy: @config.rpcs.search_ad_review_center_ads.retry_policy
302
+
303
+ options.apply_defaults timeout: @config.timeout,
304
+ metadata: @config.metadata,
305
+ retry_policy: @config.retry_policy
306
+
307
+ @ad_review_center_ad_service_stub.search_ad_review_center_ads request, options do |result, operation|
308
+ result = ::Gapic::Rest::PagedEnumerable.new @ad_review_center_ad_service_stub, :search_ad_review_center_ads, "ad_review_center_ads", request, result, options
309
+ yield result, operation if block_given?
310
+ throw :response, result
311
+ end
312
+ rescue ::Gapic::Rest::Error => e
313
+ raise ::Google::Cloud::Error.from_error(e)
314
+ end
315
+
316
+ ##
317
+ # API to batch allow AdReviewCenterAds.
318
+ # This method supports partial success. Some operations may succeed while
319
+ # others fail. Callers should check the failedRequests field in the response
320
+ # to determine which operations failed.
321
+ #
322
+ # @overload batch_allow_ad_review_center_ads(request, options = nil)
323
+ # Pass arguments to `batch_allow_ad_review_center_ads` via a request object, either of type
324
+ # {::Google::Ads::AdManager::V1::BatchAllowAdReviewCenterAdsRequest} or an equivalent Hash.
325
+ #
326
+ # @param request [::Google::Ads::AdManager::V1::BatchAllowAdReviewCenterAdsRequest, ::Hash]
327
+ # A request object representing the call parameters. Required. To specify no
328
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
329
+ # @param options [::Gapic::CallOptions, ::Hash]
330
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
331
+ #
332
+ # @overload batch_allow_ad_review_center_ads(parent: nil, names: nil)
333
+ # Pass arguments to `batch_allow_ad_review_center_ads` via keyword arguments. Note that at
334
+ # least one keyword argument is required. To specify no parameters, or to keep all
335
+ # the default parameter values, pass an empty Hash as a request object (see above).
336
+ #
337
+ # @param parent [::String]
338
+ # Required. The parent, which owns this collection of AdReviewCenterAds.
339
+ # Format: networks/\\{network_code}/webProperties/\\{web_property_code}
340
+ #
341
+ # Since a network can only have a single web property of each
342
+ # `ExchangeSyndicationProduct`, you can use the
343
+ # `ExchangeSyndicationProduct` as an alias for the web property code:
344
+ #
345
+ # `networks/{network_code}/webProperties/display`
346
+ #
347
+ # `networks/{network_code}/webProperties/videoAndAudio`
348
+ #
349
+ # `networks/{network_code}/webProperties/mobileApp`
350
+ #
351
+ # `networks/{network_code}/webProperties/games`
352
+ # @param names [::Array<::String>]
353
+ # Required. The resource names of the `AdReviewCenterAd`s to allow.
354
+ # Format:
355
+ # `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
356
+ # @yield [result, operation] Access the result along with the TransportOperation object
357
+ # @yieldparam result [::Gapic::Operation]
358
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
359
+ #
360
+ # @return [::Gapic::Operation]
361
+ #
362
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
363
+ #
364
+ # @example Basic example
365
+ # require "google/ads/ad_manager/v1"
366
+ #
367
+ # # Create a client object. The client can be reused for multiple calls.
368
+ # client = Google::Ads::AdManager::V1::AdReviewCenterAdService::Rest::Client.new
369
+ #
370
+ # # Create a request. To set request fields, pass in keyword arguments.
371
+ # request = Google::Ads::AdManager::V1::BatchAllowAdReviewCenterAdsRequest.new
372
+ #
373
+ # # Call the batch_allow_ad_review_center_ads method.
374
+ # result = client.batch_allow_ad_review_center_ads request
375
+ #
376
+ # # The returned object is of type Gapic::Operation. You can use it to
377
+ # # check the status of an operation, cancel it, or wait for results.
378
+ # # Here is how to wait for a response.
379
+ # result.wait_until_done! timeout: 60
380
+ # if result.response?
381
+ # p result.response
382
+ # else
383
+ # puts "No response received."
384
+ # end
385
+ #
386
+ def batch_allow_ad_review_center_ads request, options = nil
387
+ raise ::ArgumentError, "request must be provided" if request.nil?
388
+
389
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchAllowAdReviewCenterAdsRequest
390
+
391
+ # Converts hash and nil to an options object
392
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
393
+
394
+ # Customize the options with defaults
395
+ call_metadata = @config.rpcs.batch_allow_ad_review_center_ads.metadata.to_h
396
+
397
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
398
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
399
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
400
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
401
+ transports_version_send: [:rest]
402
+
403
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
404
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
405
+
406
+ options.apply_defaults timeout: @config.rpcs.batch_allow_ad_review_center_ads.timeout,
407
+ metadata: call_metadata,
408
+ retry_policy: @config.rpcs.batch_allow_ad_review_center_ads.retry_policy
409
+
410
+ options.apply_defaults timeout: @config.timeout,
411
+ metadata: @config.metadata,
412
+ retry_policy: @config.retry_policy
413
+
414
+ @ad_review_center_ad_service_stub.batch_allow_ad_review_center_ads request, options do |result, operation|
415
+ result = ::Gapic::Operation.new result, @operations_client, options: options
416
+ yield result, operation if block_given?
417
+ throw :response, result
418
+ end
419
+ rescue ::Gapic::Rest::Error => e
420
+ raise ::Google::Cloud::Error.from_error(e)
421
+ end
422
+
423
+ ##
424
+ # API to batch block AdReviewCenterAds.
425
+ # This method supports partial success. Some operations may succeed while
426
+ # others fail. Callers should check the failedRequests field in the response
427
+ # to determine which operations failed.
428
+ #
429
+ # @overload batch_block_ad_review_center_ads(request, options = nil)
430
+ # Pass arguments to `batch_block_ad_review_center_ads` via a request object, either of type
431
+ # {::Google::Ads::AdManager::V1::BatchBlockAdReviewCenterAdsRequest} or an equivalent Hash.
432
+ #
433
+ # @param request [::Google::Ads::AdManager::V1::BatchBlockAdReviewCenterAdsRequest, ::Hash]
434
+ # A request object representing the call parameters. Required. To specify no
435
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
436
+ # @param options [::Gapic::CallOptions, ::Hash]
437
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
438
+ #
439
+ # @overload batch_block_ad_review_center_ads(parent: nil, names: nil)
440
+ # Pass arguments to `batch_block_ad_review_center_ads` via keyword arguments. Note that at
441
+ # least one keyword argument is required. To specify no parameters, or to keep all
442
+ # the default parameter values, pass an empty Hash as a request object (see above).
443
+ #
444
+ # @param parent [::String]
445
+ # Required. The parent, which owns this collection of AdReviewCenterAds.
446
+ # Format: networks/\\{network_code}/webProperties/\\{web_property_code}
447
+ #
448
+ # Since a network can only have a single web property of each
449
+ # `ExchangeSyndicationProduct`, you can use the
450
+ # `ExchangeSyndicationProduct` as an alias for the web property code:
451
+ #
452
+ # `networks/{network_code}/webProperties/display`
453
+ #
454
+ # `networks/{network_code}/webProperties/videoAndAudio`
455
+ #
456
+ # `networks/{network_code}/webProperties/mobileApp`
457
+ #
458
+ # `networks/{network_code}/webProperties/games`
459
+ # @param names [::Array<::String>]
460
+ # Required. The resource names of the `AdReviewCenterAd`s to block.
461
+ # Format:
462
+ # `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
463
+ # @yield [result, operation] Access the result along with the TransportOperation object
464
+ # @yieldparam result [::Gapic::Operation]
465
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
466
+ #
467
+ # @return [::Gapic::Operation]
468
+ #
469
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
470
+ #
471
+ # @example Basic example
472
+ # require "google/ads/ad_manager/v1"
473
+ #
474
+ # # Create a client object. The client can be reused for multiple calls.
475
+ # client = Google::Ads::AdManager::V1::AdReviewCenterAdService::Rest::Client.new
476
+ #
477
+ # # Create a request. To set request fields, pass in keyword arguments.
478
+ # request = Google::Ads::AdManager::V1::BatchBlockAdReviewCenterAdsRequest.new
479
+ #
480
+ # # Call the batch_block_ad_review_center_ads method.
481
+ # result = client.batch_block_ad_review_center_ads request
482
+ #
483
+ # # The returned object is of type Gapic::Operation. You can use it to
484
+ # # check the status of an operation, cancel it, or wait for results.
485
+ # # Here is how to wait for a response.
486
+ # result.wait_until_done! timeout: 60
487
+ # if result.response?
488
+ # p result.response
489
+ # else
490
+ # puts "No response received."
491
+ # end
492
+ #
493
+ def batch_block_ad_review_center_ads request, options = nil
494
+ raise ::ArgumentError, "request must be provided" if request.nil?
495
+
496
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchBlockAdReviewCenterAdsRequest
497
+
498
+ # Converts hash and nil to an options object
499
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
500
+
501
+ # Customize the options with defaults
502
+ call_metadata = @config.rpcs.batch_block_ad_review_center_ads.metadata.to_h
503
+
504
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
505
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
506
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
507
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
508
+ transports_version_send: [:rest]
509
+
510
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
511
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
512
+
513
+ options.apply_defaults timeout: @config.rpcs.batch_block_ad_review_center_ads.timeout,
514
+ metadata: call_metadata,
515
+ retry_policy: @config.rpcs.batch_block_ad_review_center_ads.retry_policy
516
+
517
+ options.apply_defaults timeout: @config.timeout,
518
+ metadata: @config.metadata,
519
+ retry_policy: @config.retry_policy
520
+
521
+ @ad_review_center_ad_service_stub.batch_block_ad_review_center_ads request, options do |result, operation|
522
+ result = ::Gapic::Operation.new result, @operations_client, options: options
523
+ yield result, operation if block_given?
524
+ throw :response, result
525
+ end
526
+ rescue ::Gapic::Rest::Error => e
527
+ raise ::Google::Cloud::Error.from_error(e)
528
+ end
529
+
530
+ ##
531
+ # Configuration class for the AdReviewCenterAdService REST API.
532
+ #
533
+ # This class represents the configuration for AdReviewCenterAdService REST,
534
+ # providing control over timeouts, retry behavior, logging, transport
535
+ # parameters, and other low-level controls. Certain parameters can also be
536
+ # applied individually to specific RPCs. See
537
+ # {::Google::Ads::AdManager::V1::AdReviewCenterAdService::Rest::Client::Configuration::Rpcs}
538
+ # for a list of RPCs that can be configured independently.
539
+ #
540
+ # Configuration can be applied globally to all clients, or to a single client
541
+ # on construction.
542
+ #
543
+ # @example
544
+ #
545
+ # # Modify the global config, setting the timeout for
546
+ # # search_ad_review_center_ads to 20 seconds,
547
+ # # and all remaining timeouts to 10 seconds.
548
+ # ::Google::Ads::AdManager::V1::AdReviewCenterAdService::Rest::Client.configure do |config|
549
+ # config.timeout = 10.0
550
+ # config.rpcs.search_ad_review_center_ads.timeout = 20.0
551
+ # end
552
+ #
553
+ # # Apply the above configuration only to a new client.
554
+ # client = ::Google::Ads::AdManager::V1::AdReviewCenterAdService::Rest::Client.new do |config|
555
+ # config.timeout = 10.0
556
+ # config.rpcs.search_ad_review_center_ads.timeout = 20.0
557
+ # end
558
+ #
559
+ # @!attribute [rw] endpoint
560
+ # A custom service endpoint, as a hostname or hostname:port. The default is
561
+ # nil, indicating to use the default endpoint in the current universe domain.
562
+ # @return [::String,nil]
563
+ # @!attribute [rw] credentials
564
+ # Credentials to send with calls. You may provide any of the following types:
565
+ # * (`String`) The path to a service account key file in JSON format
566
+ # * (`Hash`) A service account key as a Hash
567
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
568
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
569
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
570
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
571
+ # * (`nil`) indicating no credentials
572
+ #
573
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
574
+ # external source for authentication to Google Cloud, you must validate it before
575
+ # providing it to a Google API client library. Providing an unvalidated credential
576
+ # configuration to Google APIs can compromise the security of your systems and data.
577
+ # For more information, refer to [Validate credential configurations from external
578
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
579
+ # @return [::Object]
580
+ # @!attribute [rw] scope
581
+ # The OAuth scopes
582
+ # @return [::Array<::String>]
583
+ # @!attribute [rw] lib_name
584
+ # The library name as recorded in instrumentation and logging
585
+ # @return [::String]
586
+ # @!attribute [rw] lib_version
587
+ # The library version as recorded in instrumentation and logging
588
+ # @return [::String]
589
+ # @!attribute [rw] timeout
590
+ # The call timeout in seconds.
591
+ # @return [::Numeric]
592
+ # @!attribute [rw] metadata
593
+ # Additional headers to be sent with the call.
594
+ # @return [::Hash{::Symbol=>::String}]
595
+ # @!attribute [rw] retry_policy
596
+ # The retry policy. The value is a hash with the following keys:
597
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
598
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
599
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
600
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
601
+ # trigger a retry.
602
+ # @return [::Hash]
603
+ # @!attribute [rw] quota_project
604
+ # A separate project against which to charge quota.
605
+ # @return [::String]
606
+ # @!attribute [rw] universe_domain
607
+ # The universe domain within which to make requests. This determines the
608
+ # default endpoint URL. The default value of nil uses the environment
609
+ # universe (usually the default "googleapis.com" universe).
610
+ # @return [::String,nil]
611
+ # @!attribute [rw] logger
612
+ # A custom logger to use for request/response debug logging, or the value
613
+ # `:default` (the default) to construct a default logger, or `nil` to
614
+ # explicitly disable logging.
615
+ # @return [::Logger,:default,nil]
616
+ #
617
+ class Configuration
618
+ extend ::Gapic::Config
619
+
620
+ # @private
621
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
622
+ DEFAULT_ENDPOINT = "admanager.googleapis.com"
623
+
624
+ config_attr :endpoint, nil, ::String, nil
625
+ config_attr :credentials, nil do |value|
626
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
627
+ allowed.any? { |klass| klass === value }
628
+ end
629
+ config_attr :scope, nil, ::String, ::Array, nil
630
+ config_attr :lib_name, nil, ::String, nil
631
+ config_attr :lib_version, nil, ::String, nil
632
+ config_attr :timeout, nil, ::Numeric, nil
633
+ config_attr :metadata, nil, ::Hash, nil
634
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
635
+ config_attr :quota_project, nil, ::String, nil
636
+ config_attr :universe_domain, nil, ::String, nil
637
+ config_attr :logger, :default, ::Logger, nil, :default
638
+
639
+ # @private
640
+ def initialize parent_config = nil
641
+ @parent_config = parent_config unless parent_config.nil?
642
+
643
+ yield self if block_given?
644
+ end
645
+
646
+ ##
647
+ # Configurations for individual RPCs
648
+ # @return [Rpcs]
649
+ #
650
+ def rpcs
651
+ @rpcs ||= begin
652
+ parent_rpcs = nil
653
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
654
+ Rpcs.new parent_rpcs
655
+ end
656
+ end
657
+
658
+ ##
659
+ # Configuration RPC class for the AdReviewCenterAdService API.
660
+ #
661
+ # Includes fields providing the configuration for each RPC in this service.
662
+ # Each configuration object is of type `Gapic::Config::Method` and includes
663
+ # the following configuration fields:
664
+ #
665
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
666
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
667
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
668
+ # include the following keys:
669
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
670
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
671
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
672
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
673
+ # trigger a retry.
674
+ #
675
+ class Rpcs
676
+ ##
677
+ # RPC-specific configuration for `search_ad_review_center_ads`
678
+ # @return [::Gapic::Config::Method]
679
+ #
680
+ attr_reader :search_ad_review_center_ads
681
+ ##
682
+ # RPC-specific configuration for `batch_allow_ad_review_center_ads`
683
+ # @return [::Gapic::Config::Method]
684
+ #
685
+ attr_reader :batch_allow_ad_review_center_ads
686
+ ##
687
+ # RPC-specific configuration for `batch_block_ad_review_center_ads`
688
+ # @return [::Gapic::Config::Method]
689
+ #
690
+ attr_reader :batch_block_ad_review_center_ads
691
+
692
+ # @private
693
+ def initialize parent_rpcs = nil
694
+ search_ad_review_center_ads_config = parent_rpcs.search_ad_review_center_ads if parent_rpcs.respond_to? :search_ad_review_center_ads
695
+ @search_ad_review_center_ads = ::Gapic::Config::Method.new search_ad_review_center_ads_config
696
+ batch_allow_ad_review_center_ads_config = parent_rpcs.batch_allow_ad_review_center_ads if parent_rpcs.respond_to? :batch_allow_ad_review_center_ads
697
+ @batch_allow_ad_review_center_ads = ::Gapic::Config::Method.new batch_allow_ad_review_center_ads_config
698
+ batch_block_ad_review_center_ads_config = parent_rpcs.batch_block_ad_review_center_ads if parent_rpcs.respond_to? :batch_block_ad_review_center_ads
699
+ @batch_block_ad_review_center_ads = ::Gapic::Config::Method.new batch_block_ad_review_center_ads_config
700
+
701
+ yield self if block_given?
702
+ end
703
+ end
704
+ end
705
+ end
706
+ end
707
+ end
708
+ end
709
+ end
710
+ end
711
+ end