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,897 @@
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/contact_service_pb"
21
+ require "google/ads/ad_manager/v1/contact_service/rest/service_stub"
22
+
23
+ module Google
24
+ module Ads
25
+ module AdManager
26
+ module V1
27
+ module ContactService
28
+ module Rest
29
+ ##
30
+ # REST client for the ContactService service.
31
+ #
32
+ # Provides methods for handling `Contact` 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 :contact_service_stub
45
+
46
+ ##
47
+ # Configure the ContactService Client class.
48
+ #
49
+ # See {::Google::Ads::AdManager::V1::ContactService::Rest::Client::Configuration}
50
+ # for a description of the configuration fields.
51
+ #
52
+ # @example
53
+ #
54
+ # # Modify the configuration for all ContactService clients
55
+ # ::Google::Ads::AdManager::V1::ContactService::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 ContactService 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::ContactService::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
+ @contact_service_stub.universe_domain
108
+ end
109
+
110
+ ##
111
+ # Create a new ContactService REST client object.
112
+ #
113
+ # @example
114
+ #
115
+ # # Create a client using the default configuration
116
+ # client = ::Google::Ads::AdManager::V1::ContactService::Rest::Client.new
117
+ #
118
+ # # Create a client using a custom configuration
119
+ # client = ::Google::Ads::AdManager::V1::ContactService::Rest::Client.new do |config|
120
+ # config.timeout = 10.0
121
+ # end
122
+ #
123
+ # @yield [config] Configure the ContactService 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
+ @contact_service_stub = ::Google::Ads::AdManager::V1::ContactService::Rest::ServiceStub.new(
150
+ endpoint: @config.endpoint,
151
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
152
+ universe_domain: @config.universe_domain,
153
+ credentials: credentials,
154
+ logger: @config.logger
155
+ )
156
+
157
+ @contact_service_stub.logger(stub: true)&.info do |entry|
158
+ entry.set_system_name
159
+ entry.set_service
160
+ entry.message = "Created client for #{entry.service}"
161
+ entry.set_credentials_fields credentials
162
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
163
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
164
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
165
+ end
166
+ end
167
+
168
+ ##
169
+ # The logger used for request/response debug logging.
170
+ #
171
+ # @return [Logger]
172
+ #
173
+ def logger
174
+ @contact_service_stub.logger
175
+ end
176
+
177
+ # Service calls
178
+
179
+ ##
180
+ # API to retrieve a `Contact` object.
181
+ #
182
+ # @overload get_contact(request, options = nil)
183
+ # Pass arguments to `get_contact` via a request object, either of type
184
+ # {::Google::Ads::AdManager::V1::GetContactRequest} or an equivalent Hash.
185
+ #
186
+ # @param request [::Google::Ads::AdManager::V1::GetContactRequest, ::Hash]
187
+ # A request object representing the call parameters. Required. To specify no
188
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
189
+ # @param options [::Gapic::CallOptions, ::Hash]
190
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
191
+ #
192
+ # @overload get_contact(name: nil)
193
+ # Pass arguments to `get_contact` via keyword arguments. Note that at
194
+ # least one keyword argument is required. To specify no parameters, or to keep all
195
+ # the default parameter values, pass an empty Hash as a request object (see above).
196
+ #
197
+ # @param name [::String]
198
+ # Required. The resource name of the Contact.
199
+ # Format: `networks/{network_code}/contacts/{contact_id}`
200
+ # @yield [result, operation] Access the result along with the TransportOperation object
201
+ # @yieldparam result [::Google::Ads::AdManager::V1::Contact]
202
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
203
+ #
204
+ # @return [::Google::Ads::AdManager::V1::Contact]
205
+ #
206
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
207
+ #
208
+ # @example Basic example
209
+ # require "google/ads/ad_manager/v1"
210
+ #
211
+ # # Create a client object. The client can be reused for multiple calls.
212
+ # client = Google::Ads::AdManager::V1::ContactService::Rest::Client.new
213
+ #
214
+ # # Create a request. To set request fields, pass in keyword arguments.
215
+ # request = Google::Ads::AdManager::V1::GetContactRequest.new
216
+ #
217
+ # # Call the get_contact method.
218
+ # result = client.get_contact request
219
+ #
220
+ # # The returned object is of type Google::Ads::AdManager::V1::Contact.
221
+ # p result
222
+ #
223
+ def get_contact request, options = nil
224
+ raise ::ArgumentError, "request must be provided" if request.nil?
225
+
226
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::GetContactRequest
227
+
228
+ # Converts hash and nil to an options object
229
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
230
+
231
+ # Customize the options with defaults
232
+ call_metadata = @config.rpcs.get_contact.metadata.to_h
233
+
234
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
235
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
236
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
237
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
238
+ transports_version_send: [:rest]
239
+
240
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
241
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
242
+
243
+ options.apply_defaults timeout: @config.rpcs.get_contact.timeout,
244
+ metadata: call_metadata,
245
+ retry_policy: @config.rpcs.get_contact.retry_policy
246
+
247
+ options.apply_defaults timeout: @config.timeout,
248
+ metadata: @config.metadata,
249
+ retry_policy: @config.retry_policy
250
+
251
+ @contact_service_stub.get_contact request, options do |result, operation|
252
+ yield result, operation if block_given?
253
+ end
254
+ rescue ::Gapic::Rest::Error => e
255
+ raise ::Google::Cloud::Error.from_error(e)
256
+ end
257
+
258
+ ##
259
+ # API to retrieve a list of `Contact` objects.
260
+ #
261
+ # @overload list_contacts(request, options = nil)
262
+ # Pass arguments to `list_contacts` via a request object, either of type
263
+ # {::Google::Ads::AdManager::V1::ListContactsRequest} or an equivalent Hash.
264
+ #
265
+ # @param request [::Google::Ads::AdManager::V1::ListContactsRequest, ::Hash]
266
+ # A request object representing the call parameters. Required. To specify no
267
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
268
+ # @param options [::Gapic::CallOptions, ::Hash]
269
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
270
+ #
271
+ # @overload list_contacts(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, skip: nil)
272
+ # Pass arguments to `list_contacts` via keyword arguments. Note that at
273
+ # least one keyword argument is required. To specify no parameters, or to keep all
274
+ # the default parameter values, pass an empty Hash as a request object (see above).
275
+ #
276
+ # @param parent [::String]
277
+ # Required. The parent, which owns this collection of Contacts.
278
+ # Format: `networks/{network_code}`
279
+ # @param page_size [::Integer]
280
+ # Optional. The maximum number of `Contacts` to return. The service may
281
+ # return fewer than this value. If unspecified, at most 50 `Contacts` will be
282
+ # returned. The maximum value is 1000; values greater than 1000 will be
283
+ # coerced to 1000.
284
+ # @param page_token [::String]
285
+ # Optional. A page token, received from a previous `ListContacts` call.
286
+ # Provide this to retrieve the subsequent page.
287
+ #
288
+ # When paginating, all other parameters provided to `ListContacts` must match
289
+ # the call that provided the page token.
290
+ # @param filter [::String]
291
+ # Optional. Expression to filter the response.
292
+ # See syntax details at
293
+ # https://developers.google.com/ad-manager/api/beta/filters
294
+ # @param order_by [::String]
295
+ # Optional. Expression to specify sorting order.
296
+ # See syntax details at
297
+ # https://developers.google.com/ad-manager/api/beta/filters#order
298
+ # @param skip [::Integer]
299
+ # Optional. Number of individual resources to skip while paginating.
300
+ # @yield [result, operation] Access the result along with the TransportOperation object
301
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::Contact>]
302
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
303
+ #
304
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::Contact>]
305
+ #
306
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
307
+ #
308
+ # @example Basic example
309
+ # require "google/ads/ad_manager/v1"
310
+ #
311
+ # # Create a client object. The client can be reused for multiple calls.
312
+ # client = Google::Ads::AdManager::V1::ContactService::Rest::Client.new
313
+ #
314
+ # # Create a request. To set request fields, pass in keyword arguments.
315
+ # request = Google::Ads::AdManager::V1::ListContactsRequest.new
316
+ #
317
+ # # Call the list_contacts method.
318
+ # result = client.list_contacts request
319
+ #
320
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
321
+ # # over elements, and API calls will be issued to fetch pages as needed.
322
+ # result.each do |item|
323
+ # # Each element is of type ::Google::Ads::AdManager::V1::Contact.
324
+ # p item
325
+ # end
326
+ #
327
+ def list_contacts request, options = nil
328
+ raise ::ArgumentError, "request must be provided" if request.nil?
329
+
330
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::ListContactsRequest
331
+
332
+ # Converts hash and nil to an options object
333
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
334
+
335
+ # Customize the options with defaults
336
+ call_metadata = @config.rpcs.list_contacts.metadata.to_h
337
+
338
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
339
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
340
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
341
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
342
+ transports_version_send: [:rest]
343
+
344
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
345
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
346
+
347
+ options.apply_defaults timeout: @config.rpcs.list_contacts.timeout,
348
+ metadata: call_metadata,
349
+ retry_policy: @config.rpcs.list_contacts.retry_policy
350
+
351
+ options.apply_defaults timeout: @config.timeout,
352
+ metadata: @config.metadata,
353
+ retry_policy: @config.retry_policy
354
+
355
+ @contact_service_stub.list_contacts request, options do |result, operation|
356
+ result = ::Gapic::Rest::PagedEnumerable.new @contact_service_stub, :list_contacts, "contacts", request, result, options
357
+ yield result, operation if block_given?
358
+ throw :response, result
359
+ end
360
+ rescue ::Gapic::Rest::Error => e
361
+ raise ::Google::Cloud::Error.from_error(e)
362
+ end
363
+
364
+ ##
365
+ # API to create a `Contact` object.
366
+ #
367
+ # @overload create_contact(request, options = nil)
368
+ # Pass arguments to `create_contact` via a request object, either of type
369
+ # {::Google::Ads::AdManager::V1::CreateContactRequest} or an equivalent Hash.
370
+ #
371
+ # @param request [::Google::Ads::AdManager::V1::CreateContactRequest, ::Hash]
372
+ # A request object representing the call parameters. Required. To specify no
373
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
374
+ # @param options [::Gapic::CallOptions, ::Hash]
375
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
376
+ #
377
+ # @overload create_contact(parent: nil, contact: nil)
378
+ # Pass arguments to `create_contact` via keyword arguments. Note that at
379
+ # least one keyword argument is required. To specify no parameters, or to keep all
380
+ # the default parameter values, pass an empty Hash as a request object (see above).
381
+ #
382
+ # @param parent [::String]
383
+ # Required. The parent resource where this `Contact` will be created.
384
+ # Format: `networks/{network_code}`
385
+ # @param contact [::Google::Ads::AdManager::V1::Contact, ::Hash]
386
+ # Required. The `Contact` to create.
387
+ # @yield [result, operation] Access the result along with the TransportOperation object
388
+ # @yieldparam result [::Google::Ads::AdManager::V1::Contact]
389
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
390
+ #
391
+ # @return [::Google::Ads::AdManager::V1::Contact]
392
+ #
393
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
394
+ #
395
+ # @example Basic example
396
+ # require "google/ads/ad_manager/v1"
397
+ #
398
+ # # Create a client object. The client can be reused for multiple calls.
399
+ # client = Google::Ads::AdManager::V1::ContactService::Rest::Client.new
400
+ #
401
+ # # Create a request. To set request fields, pass in keyword arguments.
402
+ # request = Google::Ads::AdManager::V1::CreateContactRequest.new
403
+ #
404
+ # # Call the create_contact method.
405
+ # result = client.create_contact request
406
+ #
407
+ # # The returned object is of type Google::Ads::AdManager::V1::Contact.
408
+ # p result
409
+ #
410
+ def create_contact request, options = nil
411
+ raise ::ArgumentError, "request must be provided" if request.nil?
412
+
413
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::CreateContactRequest
414
+
415
+ # Converts hash and nil to an options object
416
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
417
+
418
+ # Customize the options with defaults
419
+ call_metadata = @config.rpcs.create_contact.metadata.to_h
420
+
421
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
422
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
423
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
424
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
425
+ transports_version_send: [:rest]
426
+
427
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
428
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
429
+
430
+ options.apply_defaults timeout: @config.rpcs.create_contact.timeout,
431
+ metadata: call_metadata,
432
+ retry_policy: @config.rpcs.create_contact.retry_policy
433
+
434
+ options.apply_defaults timeout: @config.timeout,
435
+ metadata: @config.metadata,
436
+ retry_policy: @config.retry_policy
437
+
438
+ @contact_service_stub.create_contact request, options do |result, operation|
439
+ yield result, operation if block_given?
440
+ end
441
+ rescue ::Gapic::Rest::Error => e
442
+ raise ::Google::Cloud::Error.from_error(e)
443
+ end
444
+
445
+ ##
446
+ # API to batch create `Contact` objects.
447
+ #
448
+ # @overload batch_create_contacts(request, options = nil)
449
+ # Pass arguments to `batch_create_contacts` via a request object, either of type
450
+ # {::Google::Ads::AdManager::V1::BatchCreateContactsRequest} or an equivalent Hash.
451
+ #
452
+ # @param request [::Google::Ads::AdManager::V1::BatchCreateContactsRequest, ::Hash]
453
+ # A request object representing the call parameters. Required. To specify no
454
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
455
+ # @param options [::Gapic::CallOptions, ::Hash]
456
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
457
+ #
458
+ # @overload batch_create_contacts(parent: nil, requests: nil)
459
+ # Pass arguments to `batch_create_contacts` via keyword arguments. Note that at
460
+ # least one keyword argument is required. To specify no parameters, or to keep all
461
+ # the default parameter values, pass an empty Hash as a request object (see above).
462
+ #
463
+ # @param parent [::String]
464
+ # Required. The parent resource where `Contacts` will be created.
465
+ # Format: `networks/{network_code}`
466
+ # The parent field in the CreateContactRequest must match this
467
+ # field.
468
+ # @param requests [::Array<::Google::Ads::AdManager::V1::CreateContactRequest, ::Hash>]
469
+ # Required. The `Contact` objects to create.
470
+ # A maximum of 100 objects can be created in a batch.
471
+ # @yield [result, operation] Access the result along with the TransportOperation object
472
+ # @yieldparam result [::Google::Ads::AdManager::V1::BatchCreateContactsResponse]
473
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
474
+ #
475
+ # @return [::Google::Ads::AdManager::V1::BatchCreateContactsResponse]
476
+ #
477
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
478
+ #
479
+ # @example Basic example
480
+ # require "google/ads/ad_manager/v1"
481
+ #
482
+ # # Create a client object. The client can be reused for multiple calls.
483
+ # client = Google::Ads::AdManager::V1::ContactService::Rest::Client.new
484
+ #
485
+ # # Create a request. To set request fields, pass in keyword arguments.
486
+ # request = Google::Ads::AdManager::V1::BatchCreateContactsRequest.new
487
+ #
488
+ # # Call the batch_create_contacts method.
489
+ # result = client.batch_create_contacts request
490
+ #
491
+ # # The returned object is of type Google::Ads::AdManager::V1::BatchCreateContactsResponse.
492
+ # p result
493
+ #
494
+ def batch_create_contacts request, options = nil
495
+ raise ::ArgumentError, "request must be provided" if request.nil?
496
+
497
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchCreateContactsRequest
498
+
499
+ # Converts hash and nil to an options object
500
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
501
+
502
+ # Customize the options with defaults
503
+ call_metadata = @config.rpcs.batch_create_contacts.metadata.to_h
504
+
505
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
506
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
507
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
508
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
509
+ transports_version_send: [:rest]
510
+
511
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
512
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
513
+
514
+ options.apply_defaults timeout: @config.rpcs.batch_create_contacts.timeout,
515
+ metadata: call_metadata,
516
+ retry_policy: @config.rpcs.batch_create_contacts.retry_policy
517
+
518
+ options.apply_defaults timeout: @config.timeout,
519
+ metadata: @config.metadata,
520
+ retry_policy: @config.retry_policy
521
+
522
+ @contact_service_stub.batch_create_contacts request, options do |result, operation|
523
+ yield result, operation if block_given?
524
+ end
525
+ rescue ::Gapic::Rest::Error => e
526
+ raise ::Google::Cloud::Error.from_error(e)
527
+ end
528
+
529
+ ##
530
+ # API to update a `Contact` object.
531
+ #
532
+ # @overload update_contact(request, options = nil)
533
+ # Pass arguments to `update_contact` via a request object, either of type
534
+ # {::Google::Ads::AdManager::V1::UpdateContactRequest} or an equivalent Hash.
535
+ #
536
+ # @param request [::Google::Ads::AdManager::V1::UpdateContactRequest, ::Hash]
537
+ # A request object representing the call parameters. Required. To specify no
538
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
539
+ # @param options [::Gapic::CallOptions, ::Hash]
540
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
541
+ #
542
+ # @overload update_contact(contact: nil, update_mask: nil)
543
+ # Pass arguments to `update_contact` via keyword arguments. Note that at
544
+ # least one keyword argument is required. To specify no parameters, or to keep all
545
+ # the default parameter values, pass an empty Hash as a request object (see above).
546
+ #
547
+ # @param contact [::Google::Ads::AdManager::V1::Contact, ::Hash]
548
+ # Required. The `Contact` to update.
549
+ #
550
+ # The `Contact`'s `name` is used to identify the `Contact` to update.
551
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
552
+ # Required. The list of fields to update.
553
+ # @yield [result, operation] Access the result along with the TransportOperation object
554
+ # @yieldparam result [::Google::Ads::AdManager::V1::Contact]
555
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
556
+ #
557
+ # @return [::Google::Ads::AdManager::V1::Contact]
558
+ #
559
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
560
+ #
561
+ # @example Basic example
562
+ # require "google/ads/ad_manager/v1"
563
+ #
564
+ # # Create a client object. The client can be reused for multiple calls.
565
+ # client = Google::Ads::AdManager::V1::ContactService::Rest::Client.new
566
+ #
567
+ # # Create a request. To set request fields, pass in keyword arguments.
568
+ # request = Google::Ads::AdManager::V1::UpdateContactRequest.new
569
+ #
570
+ # # Call the update_contact method.
571
+ # result = client.update_contact request
572
+ #
573
+ # # The returned object is of type Google::Ads::AdManager::V1::Contact.
574
+ # p result
575
+ #
576
+ def update_contact request, options = nil
577
+ raise ::ArgumentError, "request must be provided" if request.nil?
578
+
579
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::UpdateContactRequest
580
+
581
+ # Converts hash and nil to an options object
582
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
583
+
584
+ # Customize the options with defaults
585
+ call_metadata = @config.rpcs.update_contact.metadata.to_h
586
+
587
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
588
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
589
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
590
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
591
+ transports_version_send: [:rest]
592
+
593
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
594
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
595
+
596
+ options.apply_defaults timeout: @config.rpcs.update_contact.timeout,
597
+ metadata: call_metadata,
598
+ retry_policy: @config.rpcs.update_contact.retry_policy
599
+
600
+ options.apply_defaults timeout: @config.timeout,
601
+ metadata: @config.metadata,
602
+ retry_policy: @config.retry_policy
603
+
604
+ @contact_service_stub.update_contact request, options do |result, operation|
605
+ yield result, operation if block_given?
606
+ end
607
+ rescue ::Gapic::Rest::Error => e
608
+ raise ::Google::Cloud::Error.from_error(e)
609
+ end
610
+
611
+ ##
612
+ # API to batch update `Contact` objects.
613
+ #
614
+ # @overload batch_update_contacts(request, options = nil)
615
+ # Pass arguments to `batch_update_contacts` via a request object, either of type
616
+ # {::Google::Ads::AdManager::V1::BatchUpdateContactsRequest} or an equivalent Hash.
617
+ #
618
+ # @param request [::Google::Ads::AdManager::V1::BatchUpdateContactsRequest, ::Hash]
619
+ # A request object representing the call parameters. Required. To specify no
620
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
621
+ # @param options [::Gapic::CallOptions, ::Hash]
622
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
623
+ #
624
+ # @overload batch_update_contacts(parent: nil, requests: nil)
625
+ # Pass arguments to `batch_update_contacts` via keyword arguments. Note that at
626
+ # least one keyword argument is required. To specify no parameters, or to keep all
627
+ # the default parameter values, pass an empty Hash as a request object (see above).
628
+ #
629
+ # @param parent [::String]
630
+ # Required. The parent resource where `Contacts` will be updated.
631
+ # Format: `networks/{network_code}`
632
+ # The parent field in the UpdateContactRequest must match this
633
+ # field.
634
+ # @param requests [::Array<::Google::Ads::AdManager::V1::UpdateContactRequest, ::Hash>]
635
+ # Required. The `Contact` objects to update.
636
+ # A maximum of 100 objects can be updated in a batch.
637
+ # @yield [result, operation] Access the result along with the TransportOperation object
638
+ # @yieldparam result [::Google::Ads::AdManager::V1::BatchUpdateContactsResponse]
639
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
640
+ #
641
+ # @return [::Google::Ads::AdManager::V1::BatchUpdateContactsResponse]
642
+ #
643
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
644
+ #
645
+ # @example Basic example
646
+ # require "google/ads/ad_manager/v1"
647
+ #
648
+ # # Create a client object. The client can be reused for multiple calls.
649
+ # client = Google::Ads::AdManager::V1::ContactService::Rest::Client.new
650
+ #
651
+ # # Create a request. To set request fields, pass in keyword arguments.
652
+ # request = Google::Ads::AdManager::V1::BatchUpdateContactsRequest.new
653
+ #
654
+ # # Call the batch_update_contacts method.
655
+ # result = client.batch_update_contacts request
656
+ #
657
+ # # The returned object is of type Google::Ads::AdManager::V1::BatchUpdateContactsResponse.
658
+ # p result
659
+ #
660
+ def batch_update_contacts request, options = nil
661
+ raise ::ArgumentError, "request must be provided" if request.nil?
662
+
663
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchUpdateContactsRequest
664
+
665
+ # Converts hash and nil to an options object
666
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
667
+
668
+ # Customize the options with defaults
669
+ call_metadata = @config.rpcs.batch_update_contacts.metadata.to_h
670
+
671
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
672
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
673
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
674
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
675
+ transports_version_send: [:rest]
676
+
677
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
678
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
679
+
680
+ options.apply_defaults timeout: @config.rpcs.batch_update_contacts.timeout,
681
+ metadata: call_metadata,
682
+ retry_policy: @config.rpcs.batch_update_contacts.retry_policy
683
+
684
+ options.apply_defaults timeout: @config.timeout,
685
+ metadata: @config.metadata,
686
+ retry_policy: @config.retry_policy
687
+
688
+ @contact_service_stub.batch_update_contacts request, options do |result, operation|
689
+ yield result, operation if block_given?
690
+ end
691
+ rescue ::Gapic::Rest::Error => e
692
+ raise ::Google::Cloud::Error.from_error(e)
693
+ end
694
+
695
+ ##
696
+ # Configuration class for the ContactService REST API.
697
+ #
698
+ # This class represents the configuration for ContactService REST,
699
+ # providing control over timeouts, retry behavior, logging, transport
700
+ # parameters, and other low-level controls. Certain parameters can also be
701
+ # applied individually to specific RPCs. See
702
+ # {::Google::Ads::AdManager::V1::ContactService::Rest::Client::Configuration::Rpcs}
703
+ # for a list of RPCs that can be configured independently.
704
+ #
705
+ # Configuration can be applied globally to all clients, or to a single client
706
+ # on construction.
707
+ #
708
+ # @example
709
+ #
710
+ # # Modify the global config, setting the timeout for
711
+ # # get_contact to 20 seconds,
712
+ # # and all remaining timeouts to 10 seconds.
713
+ # ::Google::Ads::AdManager::V1::ContactService::Rest::Client.configure do |config|
714
+ # config.timeout = 10.0
715
+ # config.rpcs.get_contact.timeout = 20.0
716
+ # end
717
+ #
718
+ # # Apply the above configuration only to a new client.
719
+ # client = ::Google::Ads::AdManager::V1::ContactService::Rest::Client.new do |config|
720
+ # config.timeout = 10.0
721
+ # config.rpcs.get_contact.timeout = 20.0
722
+ # end
723
+ #
724
+ # @!attribute [rw] endpoint
725
+ # A custom service endpoint, as a hostname or hostname:port. The default is
726
+ # nil, indicating to use the default endpoint in the current universe domain.
727
+ # @return [::String,nil]
728
+ # @!attribute [rw] credentials
729
+ # Credentials to send with calls. You may provide any of the following types:
730
+ # * (`String`) The path to a service account key file in JSON format
731
+ # * (`Hash`) A service account key as a Hash
732
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
733
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
734
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
735
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
736
+ # * (`nil`) indicating no credentials
737
+ #
738
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
739
+ # external source for authentication to Google Cloud, you must validate it before
740
+ # providing it to a Google API client library. Providing an unvalidated credential
741
+ # configuration to Google APIs can compromise the security of your systems and data.
742
+ # For more information, refer to [Validate credential configurations from external
743
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
744
+ # @return [::Object]
745
+ # @!attribute [rw] scope
746
+ # The OAuth scopes
747
+ # @return [::Array<::String>]
748
+ # @!attribute [rw] lib_name
749
+ # The library name as recorded in instrumentation and logging
750
+ # @return [::String]
751
+ # @!attribute [rw] lib_version
752
+ # The library version as recorded in instrumentation and logging
753
+ # @return [::String]
754
+ # @!attribute [rw] timeout
755
+ # The call timeout in seconds.
756
+ # @return [::Numeric]
757
+ # @!attribute [rw] metadata
758
+ # Additional headers to be sent with the call.
759
+ # @return [::Hash{::Symbol=>::String}]
760
+ # @!attribute [rw] retry_policy
761
+ # The retry policy. The value is a hash with the following keys:
762
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
763
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
764
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
765
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
766
+ # trigger a retry.
767
+ # @return [::Hash]
768
+ # @!attribute [rw] quota_project
769
+ # A separate project against which to charge quota.
770
+ # @return [::String]
771
+ # @!attribute [rw] universe_domain
772
+ # The universe domain within which to make requests. This determines the
773
+ # default endpoint URL. The default value of nil uses the environment
774
+ # universe (usually the default "googleapis.com" universe).
775
+ # @return [::String,nil]
776
+ # @!attribute [rw] logger
777
+ # A custom logger to use for request/response debug logging, or the value
778
+ # `:default` (the default) to construct a default logger, or `nil` to
779
+ # explicitly disable logging.
780
+ # @return [::Logger,:default,nil]
781
+ #
782
+ class Configuration
783
+ extend ::Gapic::Config
784
+
785
+ # @private
786
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
787
+ DEFAULT_ENDPOINT = "admanager.googleapis.com"
788
+
789
+ config_attr :endpoint, nil, ::String, nil
790
+ config_attr :credentials, nil do |value|
791
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
792
+ allowed.any? { |klass| klass === value }
793
+ end
794
+ config_attr :scope, nil, ::String, ::Array, nil
795
+ config_attr :lib_name, nil, ::String, nil
796
+ config_attr :lib_version, nil, ::String, nil
797
+ config_attr :timeout, nil, ::Numeric, nil
798
+ config_attr :metadata, nil, ::Hash, nil
799
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
800
+ config_attr :quota_project, nil, ::String, nil
801
+ config_attr :universe_domain, nil, ::String, nil
802
+ config_attr :logger, :default, ::Logger, nil, :default
803
+
804
+ # @private
805
+ def initialize parent_config = nil
806
+ @parent_config = parent_config unless parent_config.nil?
807
+
808
+ yield self if block_given?
809
+ end
810
+
811
+ ##
812
+ # Configurations for individual RPCs
813
+ # @return [Rpcs]
814
+ #
815
+ def rpcs
816
+ @rpcs ||= begin
817
+ parent_rpcs = nil
818
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
819
+ Rpcs.new parent_rpcs
820
+ end
821
+ end
822
+
823
+ ##
824
+ # Configuration RPC class for the ContactService API.
825
+ #
826
+ # Includes fields providing the configuration for each RPC in this service.
827
+ # Each configuration object is of type `Gapic::Config::Method` and includes
828
+ # the following configuration fields:
829
+ #
830
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
831
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
832
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
833
+ # include the following keys:
834
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
835
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
836
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
837
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
838
+ # trigger a retry.
839
+ #
840
+ class Rpcs
841
+ ##
842
+ # RPC-specific configuration for `get_contact`
843
+ # @return [::Gapic::Config::Method]
844
+ #
845
+ attr_reader :get_contact
846
+ ##
847
+ # RPC-specific configuration for `list_contacts`
848
+ # @return [::Gapic::Config::Method]
849
+ #
850
+ attr_reader :list_contacts
851
+ ##
852
+ # RPC-specific configuration for `create_contact`
853
+ # @return [::Gapic::Config::Method]
854
+ #
855
+ attr_reader :create_contact
856
+ ##
857
+ # RPC-specific configuration for `batch_create_contacts`
858
+ # @return [::Gapic::Config::Method]
859
+ #
860
+ attr_reader :batch_create_contacts
861
+ ##
862
+ # RPC-specific configuration for `update_contact`
863
+ # @return [::Gapic::Config::Method]
864
+ #
865
+ attr_reader :update_contact
866
+ ##
867
+ # RPC-specific configuration for `batch_update_contacts`
868
+ # @return [::Gapic::Config::Method]
869
+ #
870
+ attr_reader :batch_update_contacts
871
+
872
+ # @private
873
+ def initialize parent_rpcs = nil
874
+ get_contact_config = parent_rpcs.get_contact if parent_rpcs.respond_to? :get_contact
875
+ @get_contact = ::Gapic::Config::Method.new get_contact_config
876
+ list_contacts_config = parent_rpcs.list_contacts if parent_rpcs.respond_to? :list_contacts
877
+ @list_contacts = ::Gapic::Config::Method.new list_contacts_config
878
+ create_contact_config = parent_rpcs.create_contact if parent_rpcs.respond_to? :create_contact
879
+ @create_contact = ::Gapic::Config::Method.new create_contact_config
880
+ batch_create_contacts_config = parent_rpcs.batch_create_contacts if parent_rpcs.respond_to? :batch_create_contacts
881
+ @batch_create_contacts = ::Gapic::Config::Method.new batch_create_contacts_config
882
+ update_contact_config = parent_rpcs.update_contact if parent_rpcs.respond_to? :update_contact
883
+ @update_contact = ::Gapic::Config::Method.new update_contact_config
884
+ batch_update_contacts_config = parent_rpcs.batch_update_contacts if parent_rpcs.respond_to? :batch_update_contacts
885
+ @batch_update_contacts = ::Gapic::Config::Method.new batch_update_contacts_config
886
+
887
+ yield self if block_given?
888
+ end
889
+ end
890
+ end
891
+ end
892
+ end
893
+ end
894
+ end
895
+ end
896
+ end
897
+ end