google-ads-googleads 1.1.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (819) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog +4 -0
  3. data/README.md +49 -34
  4. data/lib/google/ads/google_ads.rb +2 -2
  5. data/lib/google/ads/google_ads/api_versions.rb +9 -1
  6. data/lib/google/ads/google_ads/errors.rb +59 -0
  7. data/lib/google/ads/google_ads/google_ads_client.rb +2 -15
  8. data/lib/google/ads/google_ads/logging_interceptor.rb +33 -12
  9. data/lib/google/ads/google_ads/utils/v1/path_lookup_util.rb +63 -3
  10. data/lib/google/ads/google_ads/utils/v1/proto_lookup_util.rb +44 -6
  11. data/lib/google/ads/google_ads/v1/common/ad_type_infos_pb.rb +16 -0
  12. data/lib/google/ads/google_ads/v1/common/asset_types_pb.rb +4 -0
  13. data/lib/google/ads/google_ads/v1/common/criteria_pb.rb +9 -0
  14. data/lib/google/ads/google_ads/v1/common/extensions_pb.rb +24 -0
  15. data/lib/google/ads/google_ads/v1/common/final_app_url_pb.rb +18 -0
  16. data/lib/google/ads/google_ads/v1/common/metrics_pb.rb +19 -0
  17. data/lib/google/ads/google_ads/v1/common/policy_pb.rb +8 -0
  18. data/lib/google/ads/google_ads/v1/common/segments_pb.rb +7 -0
  19. data/lib/google/ads/google_ads/v1/common/simulation_pb.rb +54 -0
  20. data/lib/google/ads/google_ads/v1/enums/ad_type_pb.rb +3 -0
  21. data/lib/google/ads/google_ads/v1/enums/advertising_channel_sub_type_pb.rb +1 -0
  22. data/lib/google/ads/google_ads/v1/enums/app_url_operating_system_type_pb.rb +21 -0
  23. data/lib/google/ads/google_ads/v1/enums/asset_type_pb.rb +2 -1
  24. data/lib/google/ads/google_ads/v1/enums/budget_type_pb.rb +1 -0
  25. data/lib/google/ads/google_ads/v1/enums/campaign_experiment_type_pb.rb +22 -0
  26. data/lib/google/ads/google_ads/v1/enums/criterion_type_pb.rb +1 -0
  27. data/lib/google/ads/google_ads/v1/enums/customer_pay_per_conversion_eligibility_failure_reason_pb.rb +26 -0
  28. data/lib/google/ads/google_ads/v1/enums/display_upload_product_type_pb.rb +29 -0
  29. data/lib/google/ads/google_ads/v1/enums/extension_type_pb.rb +2 -0
  30. data/lib/google/ads/google_ads/v1/enums/location_group_radius_units_pb.rb +21 -0
  31. data/lib/google/ads/google_ads/v1/enums/payment_mode_pb.rb +1 -0
  32. data/lib/google/ads/google_ads/v1/enums/policy_topic_entry_type_pb.rb +1 -0
  33. data/lib/google/ads/google_ads/v1/enums/policy_topic_evidence_destination_not_working_device_pb.rb +22 -0
  34. data/lib/google/ads/google_ads/v1/enums/recommendation_type_pb.rb +3 -0
  35. data/lib/google/ads/google_ads/v1/enums/search_engine_results_page_type_pb.rb +22 -0
  36. data/lib/google/ads/google_ads/v1/enums/simulation_modification_method_pb.rb +21 -0
  37. data/lib/google/ads/google_ads/v1/enums/simulation_type_pb.rb +23 -0
  38. data/lib/google/ads/google_ads/v1/errors/ad_error_pb.rb +3 -0
  39. data/lib/google/ads/google_ads/v1/errors/asset_error_pb.rb +1 -0
  40. data/lib/google/ads/google_ads/v1/errors/bidding_strategy_error_pb.rb +1 -0
  41. data/lib/google/ads/google_ads/v1/errors/criterion_error_pb.rb +1 -0
  42. data/lib/google/ads/google_ads/v1/errors/errors_pb.rb +6 -0
  43. data/lib/google/ads/google_ads/v1/errors/feed_item_validation_error_pb.rb +6 -0
  44. data/lib/google/ads/google_ads/v1/errors/media_upload_error_pb.rb +12 -0
  45. data/lib/google/ads/google_ads/v1/errors/query_error_pb.rb +2 -0
  46. data/lib/google/ads/google_ads/v1/errors/size_limit_error_pb.rb +21 -0
  47. data/lib/google/ads/google_ads/v1/errors/youtube_video_registration_error_pb.rb +10 -0
  48. data/lib/google/ads/google_ads/v1/resources/ad_group_criterion_simulation_pb.rb +28 -0
  49. data/lib/google/ads/google_ads/v1/resources/ad_group_simulation_pb.rb +28 -0
  50. data/lib/google/ads/google_ads/v1/resources/ad_pb.rb +4 -0
  51. data/lib/google/ads/google_ads/v1/resources/asset_pb.rb +1 -0
  52. data/lib/google/ads/google_ads/v1/resources/campaign_criterion_pb.rb +1 -0
  53. data/lib/google/ads/google_ads/v1/resources/campaign_criterion_simulation_pb.rb +28 -0
  54. data/lib/google/ads/google_ads/v1/resources/campaign_pb.rb +23 -20
  55. data/lib/google/ads/google_ads/v1/resources/customer_pb.rb +2 -0
  56. data/lib/google/ads/google_ads/v1/resources/expanded_landing_page_view_pb.rb +17 -0
  57. data/lib/google/ads/google_ads/v1/resources/extension_feed_item_pb.rb +6 -0
  58. data/lib/google/ads/google_ads/v1/resources/landing_page_view_pb.rb +17 -0
  59. data/lib/google/ads/google_ads/v1/resources/mutate_job_pb.rb +1 -0
  60. data/lib/google/ads/google_ads/v1/resources/paid_organic_search_term_view_pb.rb +17 -0
  61. data/lib/google/ads/google_ads/v1/resources/recommendation_pb.rb +24 -8
  62. data/lib/google/ads/google_ads/v1/services/account_budget_proposal_service_client.rb +4 -4
  63. data/lib/google/ads/google_ads/v1/services/account_budget_proposal_service_services_pb.rb +2 -0
  64. data/lib/google/ads/google_ads/v1/services/account_budget_service_client.rb +2 -2
  65. data/lib/google/ads/google_ads/v1/services/account_budget_service_services_pb.rb +2 -0
  66. data/lib/google/ads/google_ads/v1/services/ad_group_ad_label_service_client.rb +4 -4
  67. data/lib/google/ads/google_ads/v1/services/ad_group_ad_label_service_services_pb.rb +2 -0
  68. data/lib/google/ads/google_ads/v1/services/ad_group_ad_service_client.rb +4 -4
  69. data/lib/google/ads/google_ads/v1/services/ad_group_ad_service_services_pb.rb +2 -0
  70. data/lib/google/ads/google_ads/v1/services/ad_group_audience_view_service_client.rb +2 -2
  71. data/lib/google/ads/google_ads/v1/services/ad_group_audience_view_service_services_pb.rb +2 -0
  72. data/lib/google/ads/google_ads/v1/services/ad_group_bid_modifier_service_client.rb +4 -4
  73. data/lib/google/ads/google_ads/v1/services/ad_group_bid_modifier_service_services_pb.rb +2 -0
  74. data/lib/google/ads/google_ads/v1/services/ad_group_criterion_label_service_client.rb +4 -4
  75. data/lib/google/ads/google_ads/v1/services/ad_group_criterion_label_service_services_pb.rb +2 -0
  76. data/lib/google/ads/google_ads/v1/services/ad_group_criterion_service_client.rb +4 -4
  77. data/lib/google/ads/google_ads/v1/services/ad_group_criterion_service_services_pb.rb +2 -0
  78. data/lib/google/ads/google_ads/{v0/services/account_budget_service_client.rb → v1/services/ad_group_criterion_simulation_service_client.rb} +37 -39
  79. data/lib/google/ads/google_ads/{v0/services/account_budget_service_client_config.json → v1/services/ad_group_criterion_simulation_service_client_config.json} +2 -2
  80. data/lib/google/ads/google_ads/v1/services/ad_group_criterion_simulation_service_pb.rb +16 -0
  81. data/lib/google/ads/google_ads/{v0/services/ad_group_criterion_service_services_pb.rb → v1/services/ad_group_criterion_simulation_service_services_pb.rb} +11 -11
  82. data/lib/google/ads/google_ads/v1/services/ad_group_extension_setting_service_client.rb +4 -4
  83. data/lib/google/ads/google_ads/v1/services/ad_group_extension_setting_service_services_pb.rb +2 -0
  84. data/lib/google/ads/google_ads/v1/services/ad_group_feed_service_client.rb +4 -4
  85. data/lib/google/ads/google_ads/v1/services/ad_group_feed_service_services_pb.rb +2 -0
  86. data/lib/google/ads/google_ads/v1/services/ad_group_label_service_client.rb +4 -4
  87. data/lib/google/ads/google_ads/v1/services/ad_group_label_service_services_pb.rb +2 -0
  88. data/lib/google/ads/google_ads/v1/services/ad_group_service_client.rb +4 -4
  89. data/lib/google/ads/google_ads/v1/services/ad_group_service_services_pb.rb +2 -0
  90. data/lib/google/ads/google_ads/{v0/services/video_service_client.rb → v1/services/ad_group_simulation_service_client.rb} +37 -37
  91. data/lib/google/ads/google_ads/{v0/services/age_range_view_service_client_config.json → v1/services/ad_group_simulation_service_client_config.json} +2 -2
  92. data/lib/google/ads/google_ads/v1/services/ad_group_simulation_service_pb.rb +16 -0
  93. data/lib/google/ads/google_ads/{v0/services/account_budget_service_services_pb.rb → v1/services/ad_group_simulation_service_services_pb.rb} +10 -10
  94. data/lib/google/ads/google_ads/v1/services/ad_parameter_service_client.rb +4 -4
  95. data/lib/google/ads/google_ads/v1/services/ad_parameter_service_services_pb.rb +2 -0
  96. data/lib/google/ads/google_ads/v1/services/ad_schedule_view_service_client.rb +2 -2
  97. data/lib/google/ads/google_ads/v1/services/ad_schedule_view_service_services_pb.rb +2 -0
  98. data/lib/google/ads/google_ads/v1/services/age_range_view_service_client.rb +2 -2
  99. data/lib/google/ads/google_ads/v1/services/age_range_view_service_services_pb.rb +2 -0
  100. data/lib/google/ads/google_ads/v1/services/asset_service_client.rb +4 -4
  101. data/lib/google/ads/google_ads/v1/services/asset_service_services_pb.rb +2 -0
  102. data/lib/google/ads/google_ads/v1/services/bidding_strategy_service_client.rb +4 -4
  103. data/lib/google/ads/google_ads/v1/services/bidding_strategy_service_services_pb.rb +2 -0
  104. data/lib/google/ads/google_ads/v1/services/billing_setup_service_client.rb +4 -4
  105. data/lib/google/ads/google_ads/v1/services/billing_setup_service_services_pb.rb +2 -0
  106. data/lib/google/ads/google_ads/v1/services/campaign_audience_view_service_client.rb +2 -2
  107. data/lib/google/ads/google_ads/v1/services/campaign_audience_view_service_services_pb.rb +2 -0
  108. data/lib/google/ads/google_ads/v1/services/campaign_bid_modifier_service_client.rb +4 -4
  109. data/lib/google/ads/google_ads/v1/services/campaign_bid_modifier_service_services_pb.rb +2 -0
  110. data/lib/google/ads/google_ads/v1/services/campaign_budget_service_client.rb +4 -4
  111. data/lib/google/ads/google_ads/v1/services/campaign_budget_service_services_pb.rb +2 -0
  112. data/lib/google/ads/google_ads/v1/services/campaign_criterion_service_client.rb +4 -4
  113. data/lib/google/ads/google_ads/v1/services/campaign_criterion_service_services_pb.rb +2 -0
  114. data/lib/google/ads/google_ads/{v0/services/age_range_view_service_client.rb → v1/services/campaign_criterion_simulation_service_client.rb} +37 -37
  115. data/lib/google/ads/google_ads/{v0/services/ad_schedule_view_service_client_config.json → v1/services/campaign_criterion_simulation_service_client_config.json} +2 -2
  116. data/lib/google/ads/google_ads/v1/services/campaign_criterion_simulation_service_pb.rb +16 -0
  117. data/lib/google/ads/google_ads/{v0/services/ad_group_audience_view_service_services_pb.rb → v1/services/campaign_criterion_simulation_service_services_pb.rb} +11 -9
  118. data/lib/google/ads/google_ads/v1/services/campaign_extension_setting_service_client.rb +4 -4
  119. data/lib/google/ads/google_ads/v1/services/campaign_extension_setting_service_services_pb.rb +2 -0
  120. data/lib/google/ads/google_ads/v1/services/campaign_feed_service_client.rb +4 -4
  121. data/lib/google/ads/google_ads/v1/services/campaign_feed_service_services_pb.rb +2 -0
  122. data/lib/google/ads/google_ads/v1/services/campaign_label_service_client.rb +4 -4
  123. data/lib/google/ads/google_ads/v1/services/campaign_label_service_services_pb.rb +2 -0
  124. data/lib/google/ads/google_ads/v1/services/campaign_service_client.rb +4 -4
  125. data/lib/google/ads/google_ads/v1/services/campaign_service_services_pb.rb +2 -0
  126. data/lib/google/ads/google_ads/v1/services/campaign_shared_set_service_client.rb +4 -4
  127. data/lib/google/ads/google_ads/v1/services/campaign_shared_set_service_services_pb.rb +2 -0
  128. data/lib/google/ads/google_ads/v1/services/carrier_constant_service_client.rb +2 -2
  129. data/lib/google/ads/google_ads/v1/services/carrier_constant_service_services_pb.rb +2 -0
  130. data/lib/google/ads/google_ads/v1/services/change_status_service_client.rb +2 -2
  131. data/lib/google/ads/google_ads/v1/services/change_status_service_services_pb.rb +2 -0
  132. data/lib/google/ads/google_ads/v1/services/click_view_service_client.rb +2 -2
  133. data/lib/google/ads/google_ads/v1/services/click_view_service_services_pb.rb +2 -0
  134. data/lib/google/ads/google_ads/v1/services/conversion_action_service_client.rb +4 -4
  135. data/lib/google/ads/google_ads/v1/services/conversion_action_service_services_pb.rb +2 -0
  136. data/lib/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_client.rb +2 -2
  137. data/lib/google/ads/google_ads/v1/services/conversion_upload_service_client.rb +4 -4
  138. data/lib/google/ads/google_ads/v1/services/custom_interest_service_client.rb +4 -4
  139. data/lib/google/ads/google_ads/v1/services/custom_interest_service_services_pb.rb +2 -0
  140. data/lib/google/ads/google_ads/v1/services/customer_client_link_service_client.rb +4 -4
  141. data/lib/google/ads/google_ads/v1/services/customer_client_service_client.rb +2 -2
  142. data/lib/google/ads/google_ads/v1/services/customer_client_service_services_pb.rb +2 -0
  143. data/lib/google/ads/google_ads/v1/services/customer_extension_setting_service_client.rb +4 -4
  144. data/lib/google/ads/google_ads/v1/services/customer_extension_setting_service_services_pb.rb +2 -0
  145. data/lib/google/ads/google_ads/v1/services/customer_feed_service_client.rb +4 -4
  146. data/lib/google/ads/google_ads/v1/services/customer_feed_service_services_pb.rb +2 -0
  147. data/lib/google/ads/google_ads/v1/services/customer_label_service_client.rb +4 -4
  148. data/lib/google/ads/google_ads/v1/services/customer_label_service_services_pb.rb +2 -0
  149. data/lib/google/ads/google_ads/v1/services/customer_manager_link_service_client.rb +4 -4
  150. data/lib/google/ads/google_ads/v1/services/customer_negative_criterion_service_client.rb +4 -4
  151. data/lib/google/ads/google_ads/v1/services/customer_negative_criterion_service_services_pb.rb +2 -0
  152. data/lib/google/ads/google_ads/v1/services/customer_service_client.rb +8 -8
  153. data/lib/google/ads/google_ads/v1/services/customer_service_services_pb.rb +2 -0
  154. data/lib/google/ads/google_ads/v1/services/detail_placement_view_service_client.rb +2 -2
  155. data/lib/google/ads/google_ads/v1/services/detail_placement_view_service_services_pb.rb +2 -0
  156. data/lib/google/ads/google_ads/v1/services/display_keyword_view_service_client.rb +2 -2
  157. data/lib/google/ads/google_ads/v1/services/display_keyword_view_service_services_pb.rb +2 -0
  158. data/lib/google/ads/google_ads/v1/services/domain_category_service_client.rb +2 -2
  159. data/lib/google/ads/google_ads/v1/services/domain_category_service_services_pb.rb +2 -0
  160. data/lib/google/ads/google_ads/v1/services/dynamic_search_ads_search_term_view_service_client.rb +2 -2
  161. data/lib/google/ads/google_ads/v1/services/dynamic_search_ads_search_term_view_service_services_pb.rb +2 -0
  162. data/lib/google/ads/google_ads/{v0/services/change_status_service_client.rb → v1/services/expanded_landing_page_view_service_client.rb} +37 -37
  163. data/lib/google/ads/google_ads/{v0/services/ad_group_audience_view_service_client_config.json → v1/services/expanded_landing_page_view_service_client_config.json} +2 -2
  164. data/lib/google/ads/google_ads/v1/services/expanded_landing_page_view_service_pb.rb +17 -0
  165. data/lib/google/ads/google_ads/{v0/services/parental_status_view_service_services_pb.rb → v1/services/expanded_landing_page_view_service_services_pb.rb} +11 -9
  166. data/lib/google/ads/google_ads/v1/services/extension_feed_item_service_client.rb +4 -4
  167. data/lib/google/ads/google_ads/v1/services/extension_feed_item_service_services_pb.rb +2 -0
  168. data/lib/google/ads/google_ads/v1/services/feed_item_service_client.rb +4 -4
  169. data/lib/google/ads/google_ads/v1/services/feed_item_service_services_pb.rb +2 -0
  170. data/lib/google/ads/google_ads/v1/services/feed_item_target_service_client.rb +4 -4
  171. data/lib/google/ads/google_ads/v1/services/feed_item_target_service_services_pb.rb +2 -0
  172. data/lib/google/ads/google_ads/v1/services/feed_mapping_service_client.rb +4 -4
  173. data/lib/google/ads/google_ads/v1/services/feed_mapping_service_services_pb.rb +2 -0
  174. data/lib/google/ads/google_ads/v1/services/feed_placeholder_view_service_client.rb +2 -2
  175. data/lib/google/ads/google_ads/v1/services/feed_placeholder_view_service_services_pb.rb +2 -0
  176. data/lib/google/ads/google_ads/v1/services/feed_service_client.rb +4 -4
  177. data/lib/google/ads/google_ads/v1/services/feed_service_services_pb.rb +2 -0
  178. data/lib/google/ads/google_ads/v1/services/gender_view_service_client.rb +2 -2
  179. data/lib/google/ads/google_ads/v1/services/gender_view_service_services_pb.rb +2 -0
  180. data/lib/google/ads/google_ads/v1/services/geo_target_constant_service_client.rb +4 -4
  181. data/lib/google/ads/google_ads/v1/services/geo_target_constant_service_services_pb.rb +2 -0
  182. data/lib/google/ads/google_ads/v1/services/geographic_view_service_client.rb +2 -2
  183. data/lib/google/ads/google_ads/v1/services/geographic_view_service_services_pb.rb +2 -0
  184. data/lib/google/ads/google_ads/v1/services/google_ads_field_service_client.rb +5 -5
  185. data/lib/google/ads/google_ads/v1/services/google_ads_field_service_services_pb.rb +2 -0
  186. data/lib/google/ads/google_ads/v1/services/google_ads_service_client.rb +54 -6
  187. data/lib/google/ads/google_ads/v1/services/google_ads_service_pb.rb +16 -0
  188. data/lib/google/ads/google_ads/v1/services/google_ads_service_services_pb.rb +51 -1
  189. data/lib/google/ads/google_ads/v1/services/group_placement_view_service_client.rb +2 -2
  190. data/lib/google/ads/google_ads/v1/services/group_placement_view_service_services_pb.rb +2 -0
  191. data/lib/google/ads/google_ads/v1/services/hotel_group_view_service_client.rb +2 -2
  192. data/lib/google/ads/google_ads/v1/services/hotel_group_view_service_services_pb.rb +2 -0
  193. data/lib/google/ads/google_ads/v1/services/hotel_performance_view_service_client.rb +3 -18
  194. data/lib/google/ads/google_ads/v1/services/hotel_performance_view_service_services_pb.rb +2 -0
  195. data/lib/google/ads/google_ads/v1/services/keyword_plan_ad_group_service_client.rb +4 -4
  196. data/lib/google/ads/google_ads/v1/services/keyword_plan_ad_group_service_services_pb.rb +2 -0
  197. data/lib/google/ads/google_ads/v1/services/keyword_plan_campaign_service_client.rb +4 -4
  198. data/lib/google/ads/google_ads/v1/services/keyword_plan_campaign_service_services_pb.rb +2 -0
  199. data/lib/google/ads/google_ads/v1/services/keyword_plan_idea_service_client.rb +2 -2
  200. data/lib/google/ads/google_ads/v1/services/keyword_plan_idea_service_services_pb.rb +2 -0
  201. data/lib/google/ads/google_ads/v1/services/keyword_plan_keyword_service_client.rb +4 -4
  202. data/lib/google/ads/google_ads/v1/services/keyword_plan_keyword_service_services_pb.rb +2 -0
  203. data/lib/google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_client.rb +4 -4
  204. data/lib/google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_services_pb.rb +2 -0
  205. data/lib/google/ads/google_ads/v1/services/keyword_plan_service_client.rb +8 -8
  206. data/lib/google/ads/google_ads/v1/services/keyword_plan_service_services_pb.rb +2 -0
  207. data/lib/google/ads/google_ads/v1/services/keyword_view_service_client.rb +2 -2
  208. data/lib/google/ads/google_ads/v1/services/keyword_view_service_services_pb.rb +2 -0
  209. data/lib/google/ads/google_ads/v1/services/label_service_client.rb +4 -4
  210. data/lib/google/ads/google_ads/{v0/services/topic_view_service_client.rb → v1/services/landing_page_view_service_client.rb} +37 -37
  211. data/lib/google/ads/google_ads/{v0/services/carrier_constant_service_client_config.json → v1/services/landing_page_view_service_client_config.json} +2 -2
  212. data/lib/google/ads/google_ads/v1/services/landing_page_view_service_pb.rb +17 -0
  213. data/lib/google/ads/google_ads/{v0/services/keyword_plan_idea_service_services_pb.rb → v1/services/landing_page_view_service_services_pb.rb} +11 -9
  214. data/lib/google/ads/google_ads/v1/services/language_constant_service_client.rb +2 -2
  215. data/lib/google/ads/google_ads/v1/services/language_constant_service_services_pb.rb +2 -0
  216. data/lib/google/ads/google_ads/v1/services/location_view_service_client.rb +2 -2
  217. data/lib/google/ads/google_ads/v1/services/location_view_service_services_pb.rb +2 -0
  218. data/lib/google/ads/google_ads/v1/services/managed_placement_view_service_client.rb +2 -2
  219. data/lib/google/ads/google_ads/v1/services/managed_placement_view_service_services_pb.rb +2 -0
  220. data/lib/google/ads/google_ads/v1/services/media_file_service_client.rb +4 -4
  221. data/lib/google/ads/google_ads/v1/services/media_file_service_services_pb.rb +2 -0
  222. data/lib/google/ads/google_ads/v1/services/merchant_center_link_service_client.rb +6 -6
  223. data/lib/google/ads/google_ads/v1/services/merchant_center_link_service_services_pb.rb +2 -0
  224. data/lib/google/ads/google_ads/v1/services/mobile_app_category_constant_service_client.rb +2 -2
  225. data/lib/google/ads/google_ads/v1/services/mobile_device_constant_service_client.rb +2 -2
  226. data/lib/google/ads/google_ads/v1/services/mobile_device_constant_service_services_pb.rb +2 -0
  227. data/lib/google/ads/google_ads/v1/services/mutate_job_service_client.rb +11 -11
  228. data/lib/google/ads/google_ads/v1/services/mutate_job_service_services_pb.rb +2 -0
  229. data/lib/google/ads/google_ads/v1/services/operating_system_version_constant_service_client.rb +2 -2
  230. data/lib/google/ads/google_ads/v1/services/operating_system_version_constant_service_services_pb.rb +2 -0
  231. data/lib/google/ads/google_ads/{v0/services/customer_client_service_client.rb → v1/services/paid_organic_search_term_view_service_client.rb} +37 -37
  232. data/lib/google/ads/google_ads/{v0/services/mobile_app_category_constant_service_client_config.json → v1/services/paid_organic_search_term_view_service_client_config.json} +2 -2
  233. data/lib/google/ads/google_ads/v1/services/paid_organic_search_term_view_service_pb.rb +16 -0
  234. data/lib/google/ads/google_ads/{v0/services/ad_group_ad_service_services_pb.rb → v1/services/paid_organic_search_term_view_service_services_pb.rb} +11 -11
  235. data/lib/google/ads/google_ads/v1/services/parental_status_view_service_client.rb +2 -2
  236. data/lib/google/ads/google_ads/v1/services/parental_status_view_service_services_pb.rb +2 -0
  237. data/lib/google/ads/google_ads/v1/services/payments_account_service_client.rb +2 -2
  238. data/lib/google/ads/google_ads/v1/services/payments_account_service_services_pb.rb +2 -0
  239. data/lib/google/ads/google_ads/v1/services/product_bidding_category_constant_service_client.rb +2 -2
  240. data/lib/google/ads/google_ads/v1/services/product_bidding_category_constant_service_pb.rb +1 -1
  241. data/lib/google/ads/google_ads/v1/services/product_bidding_category_constant_service_services_pb.rb +4 -2
  242. data/lib/google/ads/google_ads/v1/services/product_group_view_service_client.rb +2 -2
  243. data/lib/google/ads/google_ads/v1/services/product_group_view_service_services_pb.rb +2 -0
  244. data/lib/google/ads/google_ads/v1/services/recommendation_service_client.rb +6 -6
  245. data/lib/google/ads/google_ads/v1/services/recommendation_service_client_config.json +3 -3
  246. data/lib/google/ads/google_ads/v1/services/recommendation_service_pb.rb +16 -0
  247. data/lib/google/ads/google_ads/v1/services/recommendation_service_services_pb.rb +2 -0
  248. data/lib/google/ads/google_ads/v1/services/remarketing_action_service_client.rb +4 -4
  249. data/lib/google/ads/google_ads/v1/services/remarketing_action_service_services_pb.rb +2 -0
  250. data/lib/google/ads/google_ads/v1/services/search_term_view_service_client.rb +2 -2
  251. data/lib/google/ads/google_ads/v1/services/search_term_view_service_services_pb.rb +2 -0
  252. data/lib/google/ads/google_ads/v1/services/shared_criterion_service_client.rb +4 -4
  253. data/lib/google/ads/google_ads/v1/services/shared_criterion_service_services_pb.rb +2 -0
  254. data/lib/google/ads/google_ads/v1/services/shared_set_service_client.rb +4 -4
  255. data/lib/google/ads/google_ads/v1/services/shared_set_service_services_pb.rb +2 -0
  256. data/lib/google/ads/google_ads/v1/services/shopping_performance_view_service_client.rb +3 -18
  257. data/lib/google/ads/google_ads/v1/services/shopping_performance_view_service_services_pb.rb +2 -0
  258. data/lib/google/ads/google_ads/v1/services/topic_constant_service_client.rb +2 -2
  259. data/lib/google/ads/google_ads/v1/services/topic_constant_service_services_pb.rb +2 -0
  260. data/lib/google/ads/google_ads/v1/services/topic_view_service_client.rb +2 -2
  261. data/lib/google/ads/google_ads/v1/services/topic_view_service_services_pb.rb +2 -0
  262. data/lib/google/ads/google_ads/v1/services/user_interest_service_client.rb +2 -2
  263. data/lib/google/ads/google_ads/v1/services/user_interest_service_services_pb.rb +2 -0
  264. data/lib/google/ads/google_ads/v1/services/user_list_service_client.rb +4 -4
  265. data/lib/google/ads/google_ads/v1/services/user_list_service_services_pb.rb +2 -0
  266. data/lib/google/ads/google_ads/v1/services/video_service_client.rb +2 -2
  267. data/lib/google/ads/google_ads/v1/services/video_service_services_pb.rb +2 -0
  268. data/lib/google/ads/google_ads/version.rb +1 -1
  269. data/lib/google/ads/google_ads/wrapper_util.rb +4 -0
  270. metadata +44 -569
  271. data/lib/google/ads/google_ads/utils/v0/path_lookup_util.rb +0 -431
  272. data/lib/google/ads/google_ads/utils/v0/proto_lookup_util.rb +0 -620
  273. data/lib/google/ads/google_ads/v0/common/ad_type_infos_pb.rb +0 -127
  274. data/lib/google/ads/google_ads/v0/common/bidding_pb.rb +0 -74
  275. data/lib/google/ads/google_ads/v0/common/criteria_pb.rb +0 -259
  276. data/lib/google/ads/google_ads/v0/common/criterion_category_availability_pb.rb +0 -33
  277. data/lib/google/ads/google_ads/v0/common/custom_parameter_pb.rb +0 -16
  278. data/lib/google/ads/google_ads/v0/common/dates_pb.rb +0 -16
  279. data/lib/google/ads/google_ads/v0/common/explorer_auto_optimizer_setting_pb.rb +0 -15
  280. data/lib/google/ads/google_ads/v0/common/feed_common_pb.rb +0 -16
  281. data/lib/google/ads/google_ads/v0/common/frequency_cap_pb.rb +0 -26
  282. data/lib/google/ads/google_ads/v0/common/keyword_plan_common_pb.rb +0 -17
  283. data/lib/google/ads/google_ads/v0/common/matching_function_pb.rb +0 -15
  284. data/lib/google/ads/google_ads/v0/common/metrics_pb.rb +0 -107
  285. data/lib/google/ads/google_ads/v0/common/policy_pb.rb +0 -77
  286. data/lib/google/ads/google_ads/v0/common/real_time_bidding_setting_pb.rb +0 -15
  287. data/lib/google/ads/google_ads/v0/common/segments_pb.rb +0 -48
  288. data/lib/google/ads/google_ads/v0/common/tag_snippet_pb.rb +0 -20
  289. data/lib/google/ads/google_ads/v0/common/targeting_setting_pb.rb +0 -21
  290. data/lib/google/ads/google_ads/v0/common/user_lists_pb.rb +0 -113
  291. data/lib/google/ads/google_ads/v0/common/value_pb.rb +0 -20
  292. data/lib/google/ads/google_ads/v0/enums/access_reason_pb.rb +0 -23
  293. data/lib/google/ads/google_ads/v0/enums/account_budget_proposal_status_pb.rb +0 -23
  294. data/lib/google/ads/google_ads/v0/enums/account_budget_proposal_type_pb.rb +0 -22
  295. data/lib/google/ads/google_ads/v0/enums/account_budget_status_pb.rb +0 -21
  296. data/lib/google/ads/google_ads/v0/enums/ad_customizer_placeholder_field_pb.rb +0 -22
  297. data/lib/google/ads/google_ads/v0/enums/ad_group_ad_rotation_mode_pb.rb +0 -20
  298. data/lib/google/ads/google_ads/v0/enums/ad_group_ad_status_pb.rb +0 -21
  299. data/lib/google/ads/google_ads/v0/enums/ad_group_criterion_status_pb.rb +0 -21
  300. data/lib/google/ads/google_ads/v0/enums/ad_group_status_pb.rb +0 -21
  301. data/lib/google/ads/google_ads/v0/enums/ad_group_type_pb.rb +0 -28
  302. data/lib/google/ads/google_ads/v0/enums/ad_network_type_pb.rb +0 -24
  303. data/lib/google/ads/google_ads/v0/enums/ad_serving_optimization_status_pb.rb +0 -23
  304. data/lib/google/ads/google_ads/v0/enums/ad_type_pb.rb +0 -30
  305. data/lib/google/ads/google_ads/v0/enums/advertising_channel_sub_type_pb.rb +0 -27
  306. data/lib/google/ads/google_ads/v0/enums/advertising_channel_type_pb.rb +0 -23
  307. data/lib/google/ads/google_ads/v0/enums/affiliate_location_feed_relationship_type_pb.rb +0 -19
  308. data/lib/google/ads/google_ads/v0/enums/age_range_type_pb.rb +0 -25
  309. data/lib/google/ads/google_ads/v0/enums/app_payment_model_type_pb.rb +0 -19
  310. data/lib/google/ads/google_ads/v0/enums/app_placeholder_field_pb.rb +0 -26
  311. data/lib/google/ads/google_ads/v0/enums/attribution_model_pb.rb +0 -25
  312. data/lib/google/ads/google_ads/v0/enums/bid_modifier_source_pb.rb +0 -20
  313. data/lib/google/ads/google_ads/v0/enums/bidding_source_pb.rb +0 -21
  314. data/lib/google/ads/google_ads/v0/enums/bidding_strategy_type_pb.rb +0 -31
  315. data/lib/google/ads/google_ads/v0/enums/billing_setup_status_pb.rb +0 -22
  316. data/lib/google/ads/google_ads/v0/enums/brand_safety_suitability_pb.rb +0 -21
  317. data/lib/google/ads/google_ads/v0/enums/budget_delivery_method_pb.rb +0 -20
  318. data/lib/google/ads/google_ads/v0/enums/budget_period_pb.rb +0 -21
  319. data/lib/google/ads/google_ads/v0/enums/budget_status_pb.rb +0 -20
  320. data/lib/google/ads/google_ads/v0/enums/call_conversion_reporting_state_pb.rb +0 -21
  321. data/lib/google/ads/google_ads/v0/enums/call_placeholder_field_pb.rb +0 -23
  322. data/lib/google/ads/google_ads/v0/enums/callout_placeholder_field_pb.rb +0 -19
  323. data/lib/google/ads/google_ads/v0/enums/campaign_serving_status_pb.rb +0 -23
  324. data/lib/google/ads/google_ads/v0/enums/campaign_shared_set_status_pb.rb +0 -20
  325. data/lib/google/ads/google_ads/v0/enums/campaign_status_pb.rb +0 -21
  326. data/lib/google/ads/google_ads/v0/enums/change_status_operation_pb.rb +0 -21
  327. data/lib/google/ads/google_ads/v0/enums/change_status_resource_type_pb.rb +0 -25
  328. data/lib/google/ads/google_ads/v0/enums/content_label_type_pb.rb +0 -33
  329. data/lib/google/ads/google_ads/v0/enums/conversion_action_category_pb.rb +0 -24
  330. data/lib/google/ads/google_ads/v0/enums/conversion_action_counting_type_pb.rb +0 -20
  331. data/lib/google/ads/google_ads/v0/enums/conversion_action_status_pb.rb +0 -21
  332. data/lib/google/ads/google_ads/v0/enums/conversion_action_type_pb.rb +0 -26
  333. data/lib/google/ads/google_ads/v0/enums/conversion_attribution_event_type_pb.rb +0 -20
  334. data/lib/google/ads/google_ads/v0/enums/criterion_category_channel_availability_mode_pb.rb +0 -21
  335. data/lib/google/ads/google_ads/v0/enums/criterion_category_locale_availability_mode_pb.rb +0 -22
  336. data/lib/google/ads/google_ads/v0/enums/criterion_type_pb.rb +0 -43
  337. data/lib/google/ads/google_ads/v0/enums/custom_placeholder_field_pb.rb +0 -38
  338. data/lib/google/ads/google_ads/v0/enums/customer_match_upload_key_type_pb.rb +0 -21
  339. data/lib/google/ads/google_ads/v0/enums/data_driven_model_status_pb.rb +0 -22
  340. data/lib/google/ads/google_ads/v0/enums/day_of_week_pb.rb +0 -25
  341. data/lib/google/ads/google_ads/v0/enums/device_pb.rb +0 -21
  342. data/lib/google/ads/google_ads/v0/enums/display_ad_format_setting_pb.rb +0 -21
  343. data/lib/google/ads/google_ads/v0/enums/education_placeholder_field_pb.rb +0 -35
  344. data/lib/google/ads/google_ads/v0/enums/feed_attribute_type_pb.rb +0 -31
  345. data/lib/google/ads/google_ads/v0/enums/feed_item_quality_approval_status_pb.rb +0 -20
  346. data/lib/google/ads/google_ads/v0/enums/feed_item_quality_disapproval_reason_pb.rb +0 -36
  347. data/lib/google/ads/google_ads/v0/enums/feed_item_status_pb.rb +0 -20
  348. data/lib/google/ads/google_ads/v0/enums/feed_item_validation_status_pb.rb +0 -21
  349. data/lib/google/ads/google_ads/v0/enums/feed_link_status_pb.rb +0 -20
  350. data/lib/google/ads/google_ads/v0/enums/feed_mapping_criterion_type_pb.rb +0 -20
  351. data/lib/google/ads/google_ads/v0/enums/feed_mapping_status_pb.rb +0 -20
  352. data/lib/google/ads/google_ads/v0/enums/feed_origin_pb.rb +0 -20
  353. data/lib/google/ads/google_ads/v0/enums/feed_status_pb.rb +0 -20
  354. data/lib/google/ads/google_ads/v0/enums/flight_placeholder_field_pb.rb +0 -35
  355. data/lib/google/ads/google_ads/v0/enums/frequency_cap_event_type_pb.rb +0 -20
  356. data/lib/google/ads/google_ads/v0/enums/frequency_cap_level_pb.rb +0 -21
  357. data/lib/google/ads/google_ads/v0/enums/frequency_cap_time_unit_pb.rb +0 -21
  358. data/lib/google/ads/google_ads/v0/enums/gender_type_pb.rb +0 -21
  359. data/lib/google/ads/google_ads/v0/enums/geo_target_constant_status_pb.rb +0 -20
  360. data/lib/google/ads/google_ads/v0/enums/geo_targeting_restriction_pb.rb +0 -19
  361. data/lib/google/ads/google_ads/v0/enums/google_ads_field_category_pb.rb +0 -22
  362. data/lib/google/ads/google_ads/v0/enums/google_ads_field_data_type_pb.rb +0 -28
  363. data/lib/google/ads/google_ads/v0/enums/hotel_date_selection_type_pb.rb +0 -20
  364. data/lib/google/ads/google_ads/v0/enums/hotel_placeholder_field_pb.rb +0 -38
  365. data/lib/google/ads/google_ads/v0/enums/income_range_type_pb.rb +0 -25
  366. data/lib/google/ads/google_ads/v0/enums/interaction_event_type_pb.rb +0 -22
  367. data/lib/google/ads/google_ads/v0/enums/interaction_type_pb.rb +0 -19
  368. data/lib/google/ads/google_ads/v0/enums/job_placeholder_field_pb.rb +0 -35
  369. data/lib/google/ads/google_ads/v0/enums/keyword_match_type_pb.rb +0 -21
  370. data/lib/google/ads/google_ads/v0/enums/keyword_plan_competition_level_pb.rb +0 -21
  371. data/lib/google/ads/google_ads/v0/enums/keyword_plan_forecast_interval_pb.rb +0 -21
  372. data/lib/google/ads/google_ads/v0/enums/keyword_plan_network_pb.rb +0 -20
  373. data/lib/google/ads/google_ads/v0/enums/listing_custom_attribute_index_pb.rb +0 -23
  374. data/lib/google/ads/google_ads/v0/enums/listing_group_type_pb.rb +0 -20
  375. data/lib/google/ads/google_ads/v0/enums/local_placeholder_field_pb.rb +0 -37
  376. data/lib/google/ads/google_ads/v0/enums/manager_link_status_pb.rb +0 -23
  377. data/lib/google/ads/google_ads/v0/enums/media_type_pb.rb +0 -24
  378. data/lib/google/ads/google_ads/v0/enums/message_placeholder_field_pb.rb +0 -23
  379. data/lib/google/ads/google_ads/v0/enums/mime_type_pb.rb +0 -30
  380. data/lib/google/ads/google_ads/v0/enums/minute_of_hour_pb.rb +0 -22
  381. data/lib/google/ads/google_ads/v0/enums/mobile_device_type_pb.rb +0 -20
  382. data/lib/google/ads/google_ads/v0/enums/month_of_year_pb.rb +0 -30
  383. data/lib/google/ads/google_ads/v0/enums/operating_system_version_operator_type_pb.rb +0 -20
  384. data/lib/google/ads/google_ads/v0/enums/page_one_promoted_strategy_goal_pb.rb +0 -20
  385. data/lib/google/ads/google_ads/v0/enums/parental_status_type_pb.rb +0 -21
  386. data/lib/google/ads/google_ads/v0/enums/placeholder_type_pb.rb +0 -37
  387. data/lib/google/ads/google_ads/v0/enums/policy_approval_status_pb.rb +0 -22
  388. data/lib/google/ads/google_ads/v0/enums/policy_review_status_pb.rb +0 -21
  389. data/lib/google/ads/google_ads/v0/enums/policy_topic_entry_type_pb.rb +0 -23
  390. data/lib/google/ads/google_ads/v0/enums/policy_topic_evidence_destination_mismatch_url_type_pb.rb +0 -23
  391. data/lib/google/ads/google_ads/v0/enums/preferred_content_type_pb.rb +0 -19
  392. data/lib/google/ads/google_ads/v0/enums/price_placeholder_field_pb.rb +0 -71
  393. data/lib/google/ads/google_ads/v0/enums/product_channel_exclusivity_pb.rb +0 -20
  394. data/lib/google/ads/google_ads/v0/enums/product_channel_pb.rb +0 -20
  395. data/lib/google/ads/google_ads/v0/enums/product_condition_pb.rb +0 -21
  396. data/lib/google/ads/google_ads/v0/enums/product_type_level_pb.rb +0 -23
  397. data/lib/google/ads/google_ads/v0/enums/promotion_placeholder_field_pb.rb +0 -32
  398. data/lib/google/ads/google_ads/v0/enums/proximity_radius_units_pb.rb +0 -20
  399. data/lib/google/ads/google_ads/v0/enums/quality_score_bucket_pb.rb +0 -21
  400. data/lib/google/ads/google_ads/v0/enums/real_estate_placeholder_field_pb.rb +0 -36
  401. data/lib/google/ads/google_ads/v0/enums/recommendation_type_pb.rb +0 -27
  402. data/lib/google/ads/google_ads/v0/enums/search_term_match_type_pb.rb +0 -23
  403. data/lib/google/ads/google_ads/v0/enums/search_term_targeting_status_pb.rb +0 -22
  404. data/lib/google/ads/google_ads/v0/enums/shared_set_status_pb.rb +0 -20
  405. data/lib/google/ads/google_ads/v0/enums/shared_set_type_pb.rb +0 -20
  406. data/lib/google/ads/google_ads/v0/enums/sitelink_placeholder_field_pb.rb +0 -25
  407. data/lib/google/ads/google_ads/v0/enums/slot_pb.rb +0 -25
  408. data/lib/google/ads/google_ads/v0/enums/spending_limit_type_pb.rb +0 -19
  409. data/lib/google/ads/google_ads/v0/enums/structured_snippet_placeholder_field_pb.rb +0 -20
  410. data/lib/google/ads/google_ads/v0/enums/target_cpa_opt_in_recommendation_goal_pb.rb +0 -22
  411. data/lib/google/ads/google_ads/v0/enums/targeting_dimension_pb.rb +0 -26
  412. data/lib/google/ads/google_ads/v0/enums/time_type_pb.rb +0 -20
  413. data/lib/google/ads/google_ads/v0/enums/tracking_code_page_format_pb.rb +0 -20
  414. data/lib/google/ads/google_ads/v0/enums/tracking_code_type_pb.rb +0 -21
  415. data/lib/google/ads/google_ads/v0/enums/travel_placeholder_field_pb.rb +0 -38
  416. data/lib/google/ads/google_ads/v0/enums/user_interest_taxonomy_type_pb.rb +0 -23
  417. data/lib/google/ads/google_ads/v0/enums/user_list_access_status_pb.rb +0 -20
  418. data/lib/google/ads/google_ads/v0/enums/user_list_closing_reason_pb.rb +0 -19
  419. data/lib/google/ads/google_ads/v0/enums/user_list_combined_rule_operator_pb.rb +0 -20
  420. data/lib/google/ads/google_ads/v0/enums/user_list_crm_data_source_type_pb.rb +0 -21
  421. data/lib/google/ads/google_ads/v0/enums/user_list_date_rule_item_operator_pb.rb +0 -22
  422. data/lib/google/ads/google_ads/v0/enums/user_list_logical_rule_operator_pb.rb +0 -21
  423. data/lib/google/ads/google_ads/v0/enums/user_list_membership_status_pb.rb +0 -20
  424. data/lib/google/ads/google_ads/v0/enums/user_list_number_rule_item_operator_pb.rb +0 -24
  425. data/lib/google/ads/google_ads/v0/enums/user_list_prepopulation_status_pb.rb +0 -21
  426. data/lib/google/ads/google_ads/v0/enums/user_list_rule_type_pb.rb +0 -20
  427. data/lib/google/ads/google_ads/v0/enums/user_list_size_range_pb.rb +0 -34
  428. data/lib/google/ads/google_ads/v0/enums/user_list_string_rule_item_operator_pb.rb +0 -26
  429. data/lib/google/ads/google_ads/v0/enums/user_list_type_pb.rb +0 -24
  430. data/lib/google/ads/google_ads/v0/enums/vanity_pharma_display_url_mode_pb.rb +0 -20
  431. data/lib/google/ads/google_ads/v0/enums/vanity_pharma_text_pb.rb +0 -30
  432. data/lib/google/ads/google_ads/v0/enums/webpage_condition_operand_pb.rb +0 -23
  433. data/lib/google/ads/google_ads/v0/enums/webpage_condition_operator_pb.rb +0 -20
  434. data/lib/google/ads/google_ads/v0/errors/account_budget_proposal_error_pb.rb +0 -40
  435. data/lib/google/ads/google_ads/v0/errors/ad_customizer_error_pb.rb +0 -23
  436. data/lib/google/ads/google_ads/v0/errors/ad_error_pb.rb +0 -147
  437. data/lib/google/ads/google_ads/v0/errors/ad_group_ad_error_pb.rb +0 -26
  438. data/lib/google/ads/google_ads/v0/errors/ad_group_bid_modifier_error_pb.rb +0 -20
  439. data/lib/google/ads/google_ads/v0/errors/ad_group_criterion_error_pb.rb +0 -55
  440. data/lib/google/ads/google_ads/v0/errors/ad_group_error_pb.rb +0 -30
  441. data/lib/google/ads/google_ads/v0/errors/ad_group_feed_error_pb.rb +0 -25
  442. data/lib/google/ads/google_ads/v0/errors/ad_parameter_error_pb.rb +0 -20
  443. data/lib/google/ads/google_ads/v0/errors/ad_sharing_error_pb.rb +0 -21
  444. data/lib/google/ads/google_ads/v0/errors/adx_error_pb.rb +0 -19
  445. data/lib/google/ads/google_ads/v0/errors/authentication_error_pb.rb +0 -36
  446. data/lib/google/ads/google_ads/v0/errors/authorization_error_pb.rb +0 -25
  447. data/lib/google/ads/google_ads/v0/errors/bidding_error_pb.rb +0 -39
  448. data/lib/google/ads/google_ads/v0/errors/bidding_strategy_error_pb.rb +0 -22
  449. data/lib/google/ads/google_ads/v0/errors/billing_setup_error_pb.rb +0 -33
  450. data/lib/google/ads/google_ads/v0/errors/campaign_budget_error_pb.rb +0 -33
  451. data/lib/google/ads/google_ads/v0/errors/campaign_criterion_error_pb.rb +0 -29
  452. data/lib/google/ads/google_ads/v0/errors/campaign_error_pb.rb +0 -54
  453. data/lib/google/ads/google_ads/v0/errors/campaign_feed_error_pb.rb +0 -24
  454. data/lib/google/ads/google_ads/v0/errors/campaign_shared_set_error_pb.rb +0 -19
  455. data/lib/google/ads/google_ads/v0/errors/change_status_error_pb.rb +0 -19
  456. data/lib/google/ads/google_ads/v0/errors/collection_size_error_pb.rb +0 -20
  457. data/lib/google/ads/google_ads/v0/errors/context_error_pb.rb +0 -20
  458. data/lib/google/ads/google_ads/v0/errors/conversion_action_error_pb.rb +0 -26
  459. data/lib/google/ads/google_ads/v0/errors/criterion_error_pb.rb +0 -112
  460. data/lib/google/ads/google_ads/v0/errors/customer_client_link_error_pb.rb +0 -25
  461. data/lib/google/ads/google_ads/v0/errors/customer_error_pb.rb +0 -20
  462. data/lib/google/ads/google_ads/v0/errors/customer_feed_error_pb.rb +0 -25
  463. data/lib/google/ads/google_ads/v0/errors/customer_manager_link_error_pb.rb +0 -26
  464. data/lib/google/ads/google_ads/v0/errors/database_error_pb.rb +0 -19
  465. data/lib/google/ads/google_ads/v0/errors/date_error_pb.rb +0 -27
  466. data/lib/google/ads/google_ads/v0/errors/date_range_error_pb.rb +0 -23
  467. data/lib/google/ads/google_ads/v0/errors/distinct_error_pb.rb +0 -20
  468. data/lib/google/ads/google_ads/v0/errors/enum_error_pb.rb +0 -19
  469. data/lib/google/ads/google_ads/v0/errors/errors_pb.rb +0 -222
  470. data/lib/google/ads/google_ads/v0/errors/extension_setting_error_pb.rb +0 -81
  471. data/lib/google/ads/google_ads/v0/errors/feed_attribute_reference_error_pb.rb +0 -21
  472. data/lib/google/ads/google_ads/v0/errors/feed_error_pb.rb +0 -37
  473. data/lib/google/ads/google_ads/v0/errors/feed_item_error_pb.rb +0 -27
  474. data/lib/google/ads/google_ads/v0/errors/feed_item_validation_error_pb.rb +0 -107
  475. data/lib/google/ads/google_ads/v0/errors/feed_mapping_error_pb.rb +0 -34
  476. data/lib/google/ads/google_ads/v0/errors/field_error_pb.rb +0 -24
  477. data/lib/google/ads/google_ads/v0/errors/field_mask_error_pb.rb +0 -22
  478. data/lib/google/ads/google_ads/v0/errors/function_error_pb.rb +0 -34
  479. data/lib/google/ads/google_ads/v0/errors/function_parsing_error_pb.rb +0 -29
  480. data/lib/google/ads/google_ads/v0/errors/geo_target_constant_suggestion_error_pb.rb +0 -22
  481. data/lib/google/ads/google_ads/v0/errors/header_error_pb.rb +0 -19
  482. data/lib/google/ads/google_ads/v0/errors/id_error_pb.rb +0 -19
  483. data/lib/google/ads/google_ads/v0/errors/image_error_pb.rb +0 -55
  484. data/lib/google/ads/google_ads/v0/errors/internal_error_pb.rb +0 -21
  485. data/lib/google/ads/google_ads/v0/errors/keyword_plan_ad_group_error_pb.rb +0 -20
  486. data/lib/google/ads/google_ads/v0/errors/keyword_plan_campaign_error_pb.rb +0 -23
  487. data/lib/google/ads/google_ads/v0/errors/keyword_plan_error_pb.rb +0 -32
  488. data/lib/google/ads/google_ads/v0/errors/keyword_plan_idea_error_pb.rb +0 -20
  489. data/lib/google/ads/google_ads/v0/errors/keyword_plan_keyword_error_pb.rb +0 -24
  490. data/lib/google/ads/google_ads/v0/errors/keyword_plan_negative_keyword_error_pb.rb +0 -18
  491. data/lib/google/ads/google_ads/v0/errors/list_operation_error_pb.rb +0 -20
  492. data/lib/google/ads/google_ads/v0/errors/media_bundle_error_pb.rb +0 -40
  493. data/lib/google/ads/google_ads/v0/errors/media_file_error_pb.rb +0 -41
  494. data/lib/google/ads/google_ads/v0/errors/multiplier_error_pb.rb +0 -30
  495. data/lib/google/ads/google_ads/v0/errors/mutate_error_pb.rb +0 -23
  496. data/lib/google/ads/google_ads/v0/errors/new_resource_creation_error_pb.rb +0 -21
  497. data/lib/google/ads/google_ads/v0/errors/not_empty_error_pb.rb +0 -19
  498. data/lib/google/ads/google_ads/v0/errors/null_error_pb.rb +0 -19
  499. data/lib/google/ads/google_ads/v0/errors/operation_access_denied_error_pb.rb +0 -28
  500. data/lib/google/ads/google_ads/v0/errors/operator_error_pb.rb +0 -19
  501. data/lib/google/ads/google_ads/v0/errors/policy_finding_error_pb.rb +0 -20
  502. data/lib/google/ads/google_ads/v0/errors/policy_violation_error_pb.rb +0 -19
  503. data/lib/google/ads/google_ads/v0/errors/query_error_pb.rb +0 -68
  504. data/lib/google/ads/google_ads/v0/errors/quota_error_pb.rb +0 -21
  505. data/lib/google/ads/google_ads/v0/errors/range_error_pb.rb +0 -20
  506. data/lib/google/ads/google_ads/v0/errors/recommendation_error_pb.rb +0 -31
  507. data/lib/google/ads/google_ads/v0/errors/region_code_error_pb.rb +0 -19
  508. data/lib/google/ads/google_ads/v0/errors/request_error_pb.rb +0 -35
  509. data/lib/google/ads/google_ads/v0/errors/resource_access_denied_error_pb.rb +0 -19
  510. data/lib/google/ads/google_ads/v0/errors/resource_count_limit_exceeded_error_pb.rb +0 -26
  511. data/lib/google/ads/google_ads/v0/errors/setting_error_pb.rb +0 -35
  512. data/lib/google/ads/google_ads/v0/errors/shared_criterion_error_pb.rb +0 -19
  513. data/lib/google/ads/google_ads/v0/errors/shared_set_error_pb.rb +0 -22
  514. data/lib/google/ads/google_ads/v0/errors/string_format_error_pb.rb +0 -20
  515. data/lib/google/ads/google_ads/v0/errors/string_length_error_pb.rb +0 -20
  516. data/lib/google/ads/google_ads/v0/errors/url_field_error_pb.rb +0 -69
  517. data/lib/google/ads/google_ads/v0/errors/user_list_error_pb.rb +0 -44
  518. data/lib/google/ads/google_ads/v0/resources/account_budget_pb.rb +0 -68
  519. data/lib/google/ads/google_ads/v0/resources/account_budget_proposal_pb.rb +0 -50
  520. data/lib/google/ads/google_ads/v0/resources/ad_group_ad_pb.rb +0 -30
  521. data/lib/google/ads/google_ads/v0/resources/ad_group_audience_view_pb.rb +0 -14
  522. data/lib/google/ads/google_ads/v0/resources/ad_group_bid_modifier_pb.rb +0 -30
  523. data/lib/google/ads/google_ads/v0/resources/ad_group_criterion_pb.rb +0 -76
  524. data/lib/google/ads/google_ads/v0/resources/ad_group_feed_pb.rb +0 -23
  525. data/lib/google/ads/google_ads/v0/resources/ad_group_pb.rb +0 -46
  526. data/lib/google/ads/google_ads/v0/resources/ad_parameter_pb.rb +0 -18
  527. data/lib/google/ads/google_ads/v0/resources/ad_pb.rb +0 -42
  528. data/lib/google/ads/google_ads/v0/resources/ad_schedule_view_pb.rb +0 -14
  529. data/lib/google/ads/google_ads/v0/resources/age_range_view_pb.rb +0 -14
  530. data/lib/google/ads/google_ads/v0/resources/bidding_strategy_pb.rb +0 -28
  531. data/lib/google/ads/google_ads/v0/resources/billing_setup_pb.rb +0 -37
  532. data/lib/google/ads/google_ads/v0/resources/campaign_audience_view_pb.rb +0 -14
  533. data/lib/google/ads/google_ads/v0/resources/campaign_bid_modifier_pb.rb +0 -22
  534. data/lib/google/ads/google_ads/v0/resources/campaign_budget_pb.rb +0 -33
  535. data/lib/google/ads/google_ads/v0/resources/campaign_criterion_pb.rb +0 -47
  536. data/lib/google/ads/google_ads/v0/resources/campaign_feed_pb.rb +0 -23
  537. data/lib/google/ads/google_ads/v0/resources/campaign_pb.rb +0 -105
  538. data/lib/google/ads/google_ads/v0/resources/campaign_shared_set_pb.rb +0 -19
  539. data/lib/google/ads/google_ads/v0/resources/carrier_constant_pb.rb +0 -18
  540. data/lib/google/ads/google_ads/v0/resources/change_status_pb.rb +0 -27
  541. data/lib/google/ads/google_ads/v0/resources/conversion_action_pb.rb +0 -48
  542. data/lib/google/ads/google_ads/v0/resources/customer_client_link_pb.rb +0 -20
  543. data/lib/google/ads/google_ads/v0/resources/customer_client_pb.rb +0 -18
  544. data/lib/google/ads/google_ads/v0/resources/customer_feed_pb.rb +0 -22
  545. data/lib/google/ads/google_ads/v0/resources/customer_manager_link_pb.rb +0 -19
  546. data/lib/google/ads/google_ads/v0/resources/customer_pb.rb +0 -38
  547. data/lib/google/ads/google_ads/v0/resources/display_keyword_view_pb.rb +0 -14
  548. data/lib/google/ads/google_ads/v0/resources/feed_item_pb.rb +0 -67
  549. data/lib/google/ads/google_ads/v0/resources/feed_mapping_pb.rb +0 -66
  550. data/lib/google/ads/google_ads/v0/resources/feed_pb.rb +0 -67
  551. data/lib/google/ads/google_ads/v0/resources/gender_view_pb.rb +0 -14
  552. data/lib/google/ads/google_ads/v0/resources/geo_target_constant_pb.rb +0 -22
  553. data/lib/google/ads/google_ads/v0/resources/google_ads_field_pb.rb +0 -30
  554. data/lib/google/ads/google_ads/v0/resources/hotel_group_view_pb.rb +0 -14
  555. data/lib/google/ads/google_ads/v0/resources/hotel_performance_view_pb.rb +0 -14
  556. data/lib/google/ads/google_ads/v0/resources/keyword_plan_ad_group_pb.rb +0 -19
  557. data/lib/google/ads/google_ads/v0/resources/keyword_plan_campaign_pb.rb +0 -27
  558. data/lib/google/ads/google_ads/v0/resources/keyword_plan_keyword_pb.rb +0 -21
  559. data/lib/google/ads/google_ads/v0/resources/keyword_plan_negative_keyword_pb.rb +0 -20
  560. data/lib/google/ads/google_ads/v0/resources/keyword_plan_pb.rb +0 -27
  561. data/lib/google/ads/google_ads/v0/resources/keyword_view_pb.rb +0 -14
  562. data/lib/google/ads/google_ads/v0/resources/language_constant_pb.rb +0 -18
  563. data/lib/google/ads/google_ads/v0/resources/managed_placement_view_pb.rb +0 -14
  564. data/lib/google/ads/google_ads/v0/resources/media_file_pb.rb +0 -48
  565. data/lib/google/ads/google_ads/v0/resources/mobile_app_category_constant_pb.rb +0 -17
  566. data/lib/google/ads/google_ads/v0/resources/mobile_device_constant_pb.rb +0 -21
  567. data/lib/google/ads/google_ads/v0/resources/operating_system_version_constant_pb.rb +0 -21
  568. data/lib/google/ads/google_ads/v0/resources/parental_status_view_pb.rb +0 -14
  569. data/lib/google/ads/google_ads/v0/resources/payments_account_pb.rb +0 -20
  570. data/lib/google/ads/google_ads/v0/resources/product_group_view_pb.rb +0 -14
  571. data/lib/google/ads/google_ads/v0/resources/recommendation_pb.rb +0 -100
  572. data/lib/google/ads/google_ads/v0/resources/remarketing_action_pb.rb +0 -19
  573. data/lib/google/ads/google_ads/v0/resources/search_term_view_pb.rb +0 -19
  574. data/lib/google/ads/google_ads/v0/resources/shared_criterion_pb.rb +0 -27
  575. data/lib/google/ads/google_ads/v0/resources/shared_set_pb.rb +0 -23
  576. data/lib/google/ads/google_ads/v0/resources/topic_constant_pb.rb +0 -18
  577. data/lib/google/ads/google_ads/v0/resources/topic_view_pb.rb +0 -14
  578. data/lib/google/ads/google_ads/v0/resources/user_interest_pb.rb +0 -23
  579. data/lib/google/ads/google_ads/v0/resources/user_list_pb.rb +0 -46
  580. data/lib/google/ads/google_ads/v0/resources/video_pb.rb +0 -19
  581. data/lib/google/ads/google_ads/v0/services/account_budget_proposal_service_client.rb +0 -280
  582. data/lib/google/ads/google_ads/v0/services/account_budget_proposal_service_client_config.json +0 -36
  583. data/lib/google/ads/google_ads/v0/services/account_budget_proposal_service_pb.rb +0 -38
  584. data/lib/google/ads/google_ads/v0/services/account_budget_proposal_service_services_pb.rb +0 -55
  585. data/lib/google/ads/google_ads/v0/services/account_budget_service_pb.rb +0 -16
  586. data/lib/google/ads/google_ads/v0/services/ad_group_ad_service_client.rb +0 -279
  587. data/lib/google/ads/google_ads/v0/services/ad_group_ad_service_client_config.json +0 -36
  588. data/lib/google/ads/google_ads/v0/services/ad_group_ad_service_pb.rb +0 -46
  589. data/lib/google/ads/google_ads/v0/services/ad_group_audience_view_service_client.rb +0 -221
  590. data/lib/google/ads/google_ads/v0/services/ad_group_audience_view_service_pb.rb +0 -16
  591. data/lib/google/ads/google_ads/v0/services/ad_group_bid_modifier_service_client.rb +0 -280
  592. data/lib/google/ads/google_ads/v0/services/ad_group_bid_modifier_service_client_config.json +0 -36
  593. data/lib/google/ads/google_ads/v0/services/ad_group_bid_modifier_service_pb.rb +0 -44
  594. data/lib/google/ads/google_ads/v0/services/ad_group_bid_modifier_service_services_pb.rb +0 -43
  595. data/lib/google/ads/google_ads/v0/services/ad_group_criterion_service_client.rb +0 -279
  596. data/lib/google/ads/google_ads/v0/services/ad_group_criterion_service_client_config.json +0 -36
  597. data/lib/google/ads/google_ads/v0/services/ad_group_criterion_service_pb.rb +0 -44
  598. data/lib/google/ads/google_ads/v0/services/ad_group_feed_service_client.rb +0 -280
  599. data/lib/google/ads/google_ads/v0/services/ad_group_feed_service_client_config.json +0 -36
  600. data/lib/google/ads/google_ads/v0/services/ad_group_feed_service_pb.rb +0 -44
  601. data/lib/google/ads/google_ads/v0/services/ad_group_feed_service_services_pb.rb +0 -43
  602. data/lib/google/ads/google_ads/v0/services/ad_group_service_client.rb +0 -279
  603. data/lib/google/ads/google_ads/v0/services/ad_group_service_client_config.json +0 -36
  604. data/lib/google/ads/google_ads/v0/services/ad_group_service_pb.rb +0 -44
  605. data/lib/google/ads/google_ads/v0/services/ad_group_service_services_pb.rb +0 -42
  606. data/lib/google/ads/google_ads/v0/services/ad_parameter_service_client.rb +0 -280
  607. data/lib/google/ads/google_ads/v0/services/ad_parameter_service_client_config.json +0 -36
  608. data/lib/google/ads/google_ads/v0/services/ad_parameter_service_pb.rb +0 -44
  609. data/lib/google/ads/google_ads/v0/services/ad_parameter_service_services_pb.rb +0 -43
  610. data/lib/google/ads/google_ads/v0/services/ad_schedule_view_service_client.rb +0 -221
  611. data/lib/google/ads/google_ads/v0/services/ad_schedule_view_service_pb.rb +0 -16
  612. data/lib/google/ads/google_ads/v0/services/ad_schedule_view_service_services_pb.rb +0 -40
  613. data/lib/google/ads/google_ads/v0/services/age_range_view_service_pb.rb +0 -16
  614. data/lib/google/ads/google_ads/v0/services/age_range_view_service_services_pb.rb +0 -40
  615. data/lib/google/ads/google_ads/v0/services/bidding_strategy_service_client.rb +0 -280
  616. data/lib/google/ads/google_ads/v0/services/bidding_strategy_service_client_config.json +0 -36
  617. data/lib/google/ads/google_ads/v0/services/bidding_strategy_service_pb.rb +0 -44
  618. data/lib/google/ads/google_ads/v0/services/bidding_strategy_service_services_pb.rb +0 -43
  619. data/lib/google/ads/google_ads/v0/services/billing_setup_service_client.rb +0 -275
  620. data/lib/google/ads/google_ads/v0/services/billing_setup_service_client_config.json +0 -36
  621. data/lib/google/ads/google_ads/v0/services/billing_setup_service_pb.rb +0 -36
  622. data/lib/google/ads/google_ads/v0/services/billing_setup_service_services_pb.rb +0 -50
  623. data/lib/google/ads/google_ads/v0/services/campaign_audience_view_service_client.rb +0 -221
  624. data/lib/google/ads/google_ads/v0/services/campaign_audience_view_service_client_config.json +0 -31
  625. data/lib/google/ads/google_ads/v0/services/campaign_audience_view_service_pb.rb +0 -16
  626. data/lib/google/ads/google_ads/v0/services/campaign_audience_view_service_services_pb.rb +0 -40
  627. data/lib/google/ads/google_ads/v0/services/campaign_bid_modifier_service_client.rb +0 -280
  628. data/lib/google/ads/google_ads/v0/services/campaign_bid_modifier_service_client_config.json +0 -36
  629. data/lib/google/ads/google_ads/v0/services/campaign_bid_modifier_service_pb.rb +0 -44
  630. data/lib/google/ads/google_ads/v0/services/campaign_bid_modifier_service_services_pb.rb +0 -43
  631. data/lib/google/ads/google_ads/v0/services/campaign_budget_service_client.rb +0 -280
  632. data/lib/google/ads/google_ads/v0/services/campaign_budget_service_client_config.json +0 -36
  633. data/lib/google/ads/google_ads/v0/services/campaign_budget_service_pb.rb +0 -44
  634. data/lib/google/ads/google_ads/v0/services/campaign_budget_service_services_pb.rb +0 -43
  635. data/lib/google/ads/google_ads/v0/services/campaign_criterion_service_client.rb +0 -279
  636. data/lib/google/ads/google_ads/v0/services/campaign_criterion_service_client_config.json +0 -36
  637. data/lib/google/ads/google_ads/v0/services/campaign_criterion_service_pb.rb +0 -44
  638. data/lib/google/ads/google_ads/v0/services/campaign_criterion_service_services_pb.rb +0 -42
  639. data/lib/google/ads/google_ads/v0/services/campaign_feed_service_client.rb +0 -280
  640. data/lib/google/ads/google_ads/v0/services/campaign_feed_service_client_config.json +0 -36
  641. data/lib/google/ads/google_ads/v0/services/campaign_feed_service_pb.rb +0 -44
  642. data/lib/google/ads/google_ads/v0/services/campaign_feed_service_services_pb.rb +0 -43
  643. data/lib/google/ads/google_ads/v0/services/campaign_service_client.rb +0 -279
  644. data/lib/google/ads/google_ads/v0/services/campaign_service_client_config.json +0 -36
  645. data/lib/google/ads/google_ads/v0/services/campaign_service_pb.rb +0 -44
  646. data/lib/google/ads/google_ads/v0/services/campaign_service_services_pb.rb +0 -42
  647. data/lib/google/ads/google_ads/v0/services/campaign_shared_set_service_client.rb +0 -279
  648. data/lib/google/ads/google_ads/v0/services/campaign_shared_set_service_client_config.json +0 -36
  649. data/lib/google/ads/google_ads/v0/services/campaign_shared_set_service_pb.rb +0 -41
  650. data/lib/google/ads/google_ads/v0/services/campaign_shared_set_service_services_pb.rb +0 -42
  651. data/lib/google/ads/google_ads/v0/services/carrier_constant_service_client.rb +0 -219
  652. data/lib/google/ads/google_ads/v0/services/carrier_constant_service_pb.rb +0 -16
  653. data/lib/google/ads/google_ads/v0/services/carrier_constant_service_services_pb.rb +0 -40
  654. data/lib/google/ads/google_ads/v0/services/change_status_service_client_config.json +0 -31
  655. data/lib/google/ads/google_ads/v0/services/change_status_service_pb.rb +0 -16
  656. data/lib/google/ads/google_ads/v0/services/change_status_service_services_pb.rb +0 -40
  657. data/lib/google/ads/google_ads/v0/services/conversion_action_service_client.rb +0 -280
  658. data/lib/google/ads/google_ads/v0/services/conversion_action_service_client_config.json +0 -36
  659. data/lib/google/ads/google_ads/v0/services/conversion_action_service_pb.rb +0 -44
  660. data/lib/google/ads/google_ads/v0/services/conversion_action_service_services_pb.rb +0 -43
  661. data/lib/google/ads/google_ads/v0/services/credentials.rb +0 -41
  662. data/lib/google/ads/google_ads/v0/services/customer_client_link_service_client.rb +0 -267
  663. data/lib/google/ads/google_ads/v0/services/customer_client_link_service_client_config.json +0 -36
  664. data/lib/google/ads/google_ads/v0/services/customer_client_link_service_pb.rb +0 -39
  665. data/lib/google/ads/google_ads/v0/services/customer_client_link_service_services_pb.rb +0 -42
  666. data/lib/google/ads/google_ads/v0/services/customer_client_service_client_config.json +0 -31
  667. data/lib/google/ads/google_ads/v0/services/customer_client_service_pb.rb +0 -16
  668. data/lib/google/ads/google_ads/v0/services/customer_client_service_services_pb.rb +0 -40
  669. data/lib/google/ads/google_ads/v0/services/customer_feed_service_client.rb +0 -280
  670. data/lib/google/ads/google_ads/v0/services/customer_feed_service_client_config.json +0 -36
  671. data/lib/google/ads/google_ads/v0/services/customer_feed_service_pb.rb +0 -44
  672. data/lib/google/ads/google_ads/v0/services/customer_feed_service_services_pb.rb +0 -43
  673. data/lib/google/ads/google_ads/v0/services/customer_manager_link_service_client.rb +0 -267
  674. data/lib/google/ads/google_ads/v0/services/customer_manager_link_service_client_config.json +0 -36
  675. data/lib/google/ads/google_ads/v0/services/customer_manager_link_service_pb.rb +0 -37
  676. data/lib/google/ads/google_ads/v0/services/customer_manager_link_service_services_pb.rb +0 -42
  677. data/lib/google/ads/google_ads/v0/services/customer_service_client.rb +0 -344
  678. data/lib/google/ads/google_ads/v0/services/customer_service_client_config.json +0 -46
  679. data/lib/google/ads/google_ads/v0/services/customer_service_pb.rb +0 -53
  680. data/lib/google/ads/google_ads/v0/services/customer_service_services_pb.rb +0 -47
  681. data/lib/google/ads/google_ads/v0/services/display_keyword_view_service_client.rb +0 -221
  682. data/lib/google/ads/google_ads/v0/services/display_keyword_view_service_client_config.json +0 -31
  683. data/lib/google/ads/google_ads/v0/services/display_keyword_view_service_pb.rb +0 -16
  684. data/lib/google/ads/google_ads/v0/services/display_keyword_view_service_services_pb.rb +0 -40
  685. data/lib/google/ads/google_ads/v0/services/feed_item_service_client.rb +0 -280
  686. data/lib/google/ads/google_ads/v0/services/feed_item_service_client_config.json +0 -36
  687. data/lib/google/ads/google_ads/v0/services/feed_item_service_pb.rb +0 -44
  688. data/lib/google/ads/google_ads/v0/services/feed_item_service_services_pb.rb +0 -43
  689. data/lib/google/ads/google_ads/v0/services/feed_mapping_service_client.rb +0 -280
  690. data/lib/google/ads/google_ads/v0/services/feed_mapping_service_client_config.json +0 -36
  691. data/lib/google/ads/google_ads/v0/services/feed_mapping_service_pb.rb +0 -41
  692. data/lib/google/ads/google_ads/v0/services/feed_mapping_service_services_pb.rb +0 -43
  693. data/lib/google/ads/google_ads/v0/services/feed_service_client.rb +0 -280
  694. data/lib/google/ads/google_ads/v0/services/feed_service_client_config.json +0 -36
  695. data/lib/google/ads/google_ads/v0/services/feed_service_pb.rb +0 -44
  696. data/lib/google/ads/google_ads/v0/services/feed_service_services_pb.rb +0 -43
  697. data/lib/google/ads/google_ads/v0/services/gender_view_service_client.rb +0 -221
  698. data/lib/google/ads/google_ads/v0/services/gender_view_service_client_config.json +0 -31
  699. data/lib/google/ads/google_ads/v0/services/gender_view_service_pb.rb +0 -16
  700. data/lib/google/ads/google_ads/v0/services/gender_view_service_services_pb.rb +0 -40
  701. data/lib/google/ads/google_ads/v0/services/geo_target_constant_service_client.rb +0 -281
  702. data/lib/google/ads/google_ads/v0/services/geo_target_constant_service_client_config.json +0 -36
  703. data/lib/google/ads/google_ads/v0/services/geo_target_constant_service_pb.rb +0 -46
  704. data/lib/google/ads/google_ads/v0/services/geo_target_constant_service_services_pb.rb +0 -42
  705. data/lib/google/ads/google_ads/v0/services/google_ads_field_service_client.rb +0 -290
  706. data/lib/google/ads/google_ads/v0/services/google_ads_field_service_client_config.json +0 -36
  707. data/lib/google/ads/google_ads/v0/services/google_ads_field_service_pb.rb +0 -28
  708. data/lib/google/ads/google_ads/v0/services/google_ads_field_service_services_pb.rb +0 -42
  709. data/lib/google/ads/google_ads/v0/services/google_ads_service_client.rb +0 -309
  710. data/lib/google/ads/google_ads/v0/services/google_ads_service_client_config.json +0 -36
  711. data/lib/google/ads/google_ads/v0/services/google_ads_service_pb.rb +0 -217
  712. data/lib/google/ads/google_ads/v0/services/google_ads_service_services_pb.rb +0 -42
  713. data/lib/google/ads/google_ads/v0/services/hotel_group_view_service_client.rb +0 -221
  714. data/lib/google/ads/google_ads/v0/services/hotel_group_view_service_client_config.json +0 -31
  715. data/lib/google/ads/google_ads/v0/services/hotel_group_view_service_pb.rb +0 -16
  716. data/lib/google/ads/google_ads/v0/services/hotel_group_view_service_services_pb.rb +0 -40
  717. data/lib/google/ads/google_ads/v0/services/hotel_performance_view_service_client.rb +0 -234
  718. data/lib/google/ads/google_ads/v0/services/hotel_performance_view_service_client_config.json +0 -31
  719. data/lib/google/ads/google_ads/v0/services/hotel_performance_view_service_pb.rb +0 -16
  720. data/lib/google/ads/google_ads/v0/services/hotel_performance_view_service_services_pb.rb +0 -40
  721. data/lib/google/ads/google_ads/v0/services/keyword_plan_ad_group_service_client.rb +0 -280
  722. data/lib/google/ads/google_ads/v0/services/keyword_plan_ad_group_service_client_config.json +0 -36
  723. data/lib/google/ads/google_ads/v0/services/keyword_plan_ad_group_service_pb.rb +0 -44
  724. data/lib/google/ads/google_ads/v0/services/keyword_plan_ad_group_service_services_pb.rb +0 -43
  725. data/lib/google/ads/google_ads/v0/services/keyword_plan_campaign_service_client.rb +0 -280
  726. data/lib/google/ads/google_ads/v0/services/keyword_plan_campaign_service_client_config.json +0 -36
  727. data/lib/google/ads/google_ads/v0/services/keyword_plan_campaign_service_pb.rb +0 -44
  728. data/lib/google/ads/google_ads/v0/services/keyword_plan_campaign_service_services_pb.rb +0 -43
  729. data/lib/google/ads/google_ads/v0/services/keyword_plan_idea_service_client.rb +0 -252
  730. data/lib/google/ads/google_ads/v0/services/keyword_plan_idea_service_client_config.json +0 -31
  731. data/lib/google/ads/google_ads/v0/services/keyword_plan_idea_service_pb.rb +0 -48
  732. data/lib/google/ads/google_ads/v0/services/keyword_plan_keyword_service_client.rb +0 -280
  733. data/lib/google/ads/google_ads/v0/services/keyword_plan_keyword_service_client_config.json +0 -36
  734. data/lib/google/ads/google_ads/v0/services/keyword_plan_keyword_service_pb.rb +0 -44
  735. data/lib/google/ads/google_ads/v0/services/keyword_plan_keyword_service_services_pb.rb +0 -43
  736. data/lib/google/ads/google_ads/v0/services/keyword_plan_negative_keyword_service_client.rb +0 -281
  737. data/lib/google/ads/google_ads/v0/services/keyword_plan_negative_keyword_service_client_config.json +0 -36
  738. data/lib/google/ads/google_ads/v0/services/keyword_plan_negative_keyword_service_pb.rb +0 -44
  739. data/lib/google/ads/google_ads/v0/services/keyword_plan_negative_keyword_service_services_pb.rb +0 -43
  740. data/lib/google/ads/google_ads/v0/services/keyword_plan_service_client.rb +0 -351
  741. data/lib/google/ads/google_ads/v0/services/keyword_plan_service_client_config.json +0 -46
  742. data/lib/google/ads/google_ads/v0/services/keyword_plan_service_pb.rb +0 -91
  743. data/lib/google/ads/google_ads/v0/services/keyword_plan_service_services_pb.rb +0 -47
  744. data/lib/google/ads/google_ads/v0/services/keyword_view_service_client.rb +0 -221
  745. data/lib/google/ads/google_ads/v0/services/keyword_view_service_client_config.json +0 -31
  746. data/lib/google/ads/google_ads/v0/services/keyword_view_service_pb.rb +0 -16
  747. data/lib/google/ads/google_ads/v0/services/keyword_view_service_services_pb.rb +0 -40
  748. data/lib/google/ads/google_ads/v0/services/language_constant_service_client.rb +0 -219
  749. data/lib/google/ads/google_ads/v0/services/language_constant_service_client_config.json +0 -31
  750. data/lib/google/ads/google_ads/v0/services/language_constant_service_pb.rb +0 -16
  751. data/lib/google/ads/google_ads/v0/services/language_constant_service_services_pb.rb +0 -40
  752. data/lib/google/ads/google_ads/v0/services/managed_placement_view_service_client.rb +0 -221
  753. data/lib/google/ads/google_ads/v0/services/managed_placement_view_service_client_config.json +0 -31
  754. data/lib/google/ads/google_ads/v0/services/managed_placement_view_service_pb.rb +0 -16
  755. data/lib/google/ads/google_ads/v0/services/managed_placement_view_service_services_pb.rb +0 -40
  756. data/lib/google/ads/google_ads/v0/services/media_file_service_client.rb +0 -279
  757. data/lib/google/ads/google_ads/v0/services/media_file_service_client_config.json +0 -36
  758. data/lib/google/ads/google_ads/v0/services/media_file_service_pb.rb +0 -40
  759. data/lib/google/ads/google_ads/v0/services/media_file_service_services_pb.rb +0 -42
  760. data/lib/google/ads/google_ads/v0/services/mobile_app_category_constant_service_client.rb +0 -219
  761. data/lib/google/ads/google_ads/v0/services/mobile_app_category_constant_service_pb.rb +0 -16
  762. data/lib/google/ads/google_ads/v0/services/mobile_app_category_constant_service_services_pb.rb +0 -40
  763. data/lib/google/ads/google_ads/v0/services/mobile_device_constant_service_client.rb +0 -219
  764. data/lib/google/ads/google_ads/v0/services/mobile_device_constant_service_client_config.json +0 -31
  765. data/lib/google/ads/google_ads/v0/services/mobile_device_constant_service_pb.rb +0 -16
  766. data/lib/google/ads/google_ads/v0/services/mobile_device_constant_service_services_pb.rb +0 -40
  767. data/lib/google/ads/google_ads/v0/services/operating_system_version_constant_service_client.rb +0 -219
  768. data/lib/google/ads/google_ads/v0/services/operating_system_version_constant_service_client_config.json +0 -31
  769. data/lib/google/ads/google_ads/v0/services/operating_system_version_constant_service_pb.rb +0 -16
  770. data/lib/google/ads/google_ads/v0/services/operating_system_version_constant_service_services_pb.rb +0 -40
  771. data/lib/google/ads/google_ads/v0/services/parental_status_view_service_client.rb +0 -221
  772. data/lib/google/ads/google_ads/v0/services/parental_status_view_service_client_config.json +0 -31
  773. data/lib/google/ads/google_ads/v0/services/parental_status_view_service_pb.rb +0 -16
  774. data/lib/google/ads/google_ads/v0/services/payments_account_service_client.rb +0 -209
  775. data/lib/google/ads/google_ads/v0/services/payments_account_service_client_config.json +0 -31
  776. data/lib/google/ads/google_ads/v0/services/payments_account_service_pb.rb +0 -20
  777. data/lib/google/ads/google_ads/v0/services/payments_account_service_services_pb.rb +0 -43
  778. data/lib/google/ads/google_ads/v0/services/product_group_view_service_client.rb +0 -221
  779. data/lib/google/ads/google_ads/v0/services/product_group_view_service_client_config.json +0 -31
  780. data/lib/google/ads/google_ads/v0/services/product_group_view_service_pb.rb +0 -16
  781. data/lib/google/ads/google_ads/v0/services/product_group_view_service_services_pb.rb +0 -40
  782. data/lib/google/ads/google_ads/v0/services/recommendation_service_client.rb +0 -331
  783. data/lib/google/ads/google_ads/v0/services/recommendation_service_client_config.json +0 -41
  784. data/lib/google/ads/google_ads/v0/services/recommendation_service_pb.rb +0 -83
  785. data/lib/google/ads/google_ads/v0/services/recommendation_service_services_pb.rb +0 -44
  786. data/lib/google/ads/google_ads/v0/services/remarketing_action_service_client.rb +0 -279
  787. data/lib/google/ads/google_ads/v0/services/remarketing_action_service_client_config.json +0 -36
  788. data/lib/google/ads/google_ads/v0/services/remarketing_action_service_pb.rb +0 -43
  789. data/lib/google/ads/google_ads/v0/services/remarketing_action_service_services_pb.rb +0 -42
  790. data/lib/google/ads/google_ads/v0/services/search_term_view_service_client.rb +0 -221
  791. data/lib/google/ads/google_ads/v0/services/search_term_view_service_client_config.json +0 -31
  792. data/lib/google/ads/google_ads/v0/services/search_term_view_service_pb.rb +0 -16
  793. data/lib/google/ads/google_ads/v0/services/search_term_view_service_services_pb.rb +0 -40
  794. data/lib/google/ads/google_ads/v0/services/shared_criterion_service_client.rb +0 -279
  795. data/lib/google/ads/google_ads/v0/services/shared_criterion_service_client_config.json +0 -36
  796. data/lib/google/ads/google_ads/v0/services/shared_criterion_service_pb.rb +0 -41
  797. data/lib/google/ads/google_ads/v0/services/shared_criterion_service_services_pb.rb +0 -42
  798. data/lib/google/ads/google_ads/v0/services/shared_set_service_client.rb +0 -279
  799. data/lib/google/ads/google_ads/v0/services/shared_set_service_client_config.json +0 -36
  800. data/lib/google/ads/google_ads/v0/services/shared_set_service_pb.rb +0 -44
  801. data/lib/google/ads/google_ads/v0/services/shared_set_service_services_pb.rb +0 -42
  802. data/lib/google/ads/google_ads/v0/services/topic_constant_service_client.rb +0 -219
  803. data/lib/google/ads/google_ads/v0/services/topic_constant_service_client_config.json +0 -31
  804. data/lib/google/ads/google_ads/v0/services/topic_constant_service_pb.rb +0 -16
  805. data/lib/google/ads/google_ads/v0/services/topic_constant_service_services_pb.rb +0 -40
  806. data/lib/google/ads/google_ads/v0/services/topic_view_service_client_config.json +0 -31
  807. data/lib/google/ads/google_ads/v0/services/topic_view_service_pb.rb +0 -16
  808. data/lib/google/ads/google_ads/v0/services/topic_view_service_services_pb.rb +0 -40
  809. data/lib/google/ads/google_ads/v0/services/user_interest_service_client.rb +0 -221
  810. data/lib/google/ads/google_ads/v0/services/user_interest_service_client_config.json +0 -31
  811. data/lib/google/ads/google_ads/v0/services/user_interest_service_pb.rb +0 -16
  812. data/lib/google/ads/google_ads/v0/services/user_interest_service_services_pb.rb +0 -40
  813. data/lib/google/ads/google_ads/v0/services/user_list_service_client.rb +0 -279
  814. data/lib/google/ads/google_ads/v0/services/user_list_service_client_config.json +0 -36
  815. data/lib/google/ads/google_ads/v0/services/user_list_service_pb.rb +0 -44
  816. data/lib/google/ads/google_ads/v0/services/user_list_service_services_pb.rb +0 -42
  817. data/lib/google/ads/google_ads/v0/services/video_service_client_config.json +0 -31
  818. data/lib/google/ads/google_ads/v0/services/video_service_pb.rb +0 -16
  819. data/lib/google/ads/google_ads/v0/services/video_service_services_pb.rb +0 -40
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d909d1d6d9386d5ce00534af05b6ce762f3f981a4242aa501f3a884ed8f82695
4
- data.tar.gz: 88cef4570b6123d494d04d13ac64c42abc540e87fbf1426186982480c29f8109
3
+ metadata.gz: 62470f63d1da981ede9c67986dbd4b2fc78efcf236bc0540a1f673a12b52c224
4
+ data.tar.gz: 4a46da47d63f825e98030c88b51b3513393311ff3a1050eac62f0d86680b1cb6
5
5
  SHA512:
6
- metadata.gz: f13b5d6f77f0bb1a9aa061365e9459507a3990301e7d25b5cce1b3ff945b4335c2bbc1f53465aa821b7281e08bac00f987d61d451d120500baf0cfe8f8f92246
7
- data.tar.gz: 73d88a624bfdb3ec1dad7772057c8ac9418cea5459e0ed13786f7bee964f3c94823145fe39931f7350e952eb128b2e7a42cfb014bfad66c58f6f3420888e56d6
6
+ metadata.gz: 75580c687c4c05c0a8e4de4feb771ab8b365e07f3cf355ffa3fdf7c4a9d6bdea14763a041c3a85aacb5d467f0b5ce249aa114af1e7768aa5764bf11a00466e95
7
+ data.tar.gz: ba392c6f51965d2a2ee97addde1be08348461be66ddede838abb1909a11d0a8e118463d7a8f0475ccbadc69669b02a7f0200036ca9acf6e3faa597e314c2f528
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ 2.0.0:
2
+ - Adding support for Google Ads API v1_2.
3
+ - Removing support for Google Ads API v0.
4
+
1
5
  1.1.1:
2
6
  - Add `ExtensionFeedItem` as an operation look up
3
7
  - Fixes various broken resource types
data/README.md CHANGED
@@ -8,58 +8,77 @@ easy-to-use client library for the [Google Ads API][].
8
8
 
9
9
  # Documentation for Users
10
10
 
11
+ **For thorough documentation of all features and utilities, visit our
12
+ [Developers site Ruby guide][].**
13
+
14
+ [Developers site Ruby guide]: https://developers.google.com/google-ads/api/docs/client-libs/ruby/
15
+
11
16
  ## Getting started
12
17
 
13
18
  `google-ads-googleads` will allow you to connect to the
14
19
  [Google Ads API][] and access all its methods.
15
20
 
16
- In order to achieve so you need to set up authentication as well as install the
17
- library locally.
18
-
19
21
  ## Installation
20
22
 
21
- Install this library using gem:
23
+ The recommended way to install is using [bundler][].
22
24
 
23
- $ [sudo] gem install google-ads-googleads
25
+ Add a line to your `Gemfile`:
24
26
 
25
- Alternatively, if you prefer not to or can't use the hosted gem on RubyGems, you
26
- can download the gem from the [Releases][] page and install it from the local
27
- file:
27
+ gem "google-ads-googleads", "~> x.y.z"
28
+
29
+ Then run:
30
+
31
+ $ bundle install
32
+
33
+ This will cause bundler to update your `Gemfile.lock` locking to the exact
34
+ version of the gem, and all dependencies of the gem that were installed.
35
+ Using the pessimistic version operator `"~> x.y.z"` will cause `bundle
36
+ update` to only install new versions in the `x.y.*` series, which will
37
+ make it so you must manually opt into new versions.
38
+
39
+ You can then update to a new version of the gem by updating the `Gemfile`.
28
40
 
29
- $ [sudo] gem install google-ads-googleads-[version].gem
41
+ ### Other Installation Options
30
42
 
31
- Or you can build it yourself from the source. After cloning the GitHub repo,
32
- navigate to the `google-ads-ruby` folder and run:
43
+ If you are not using bundler, you can use one of these options.
33
44
 
34
- $ rake build
35
- $ gem install pkg/google-ads-googleads-[version].gem
45
+ 1. Install this library using gem:
46
+
47
+ $ [sudo] gem install google-ads-googleads
48
+
49
+ 1. Download the gem from the [Releases][] page and install it from the local
50
+ file:
51
+
52
+ $ [sudo] gem install google-ads-googleads-[version].gem
36
53
 
37
54
  [Releases]: https://github.com/googleads/google-ads-ruby/releases
55
+ [bundler]: https://bundler.io/
38
56
 
39
57
  ## Set Up Authentication
40
58
 
41
59
  To authenticate your API calls, you need to specify your client ID, client
42
- secret, refresh token, and developer token to the library in one of a few ways.
60
+ secret, refresh token, and developer token to the library.
43
61
 
44
- If you don't have a client ID or client secret yet, please see the
45
- [Authorization guide][] to get those set up. Once you have those, the Ruby
46
- library can help you use those to generate a refresh token.
62
+ 1. See the [Developer token guide][] to obtain your developer token, if you
63
+ don't already have one.
47
64
 
48
- See and run the [Authentication example][] to generate your refresh token.
49
- Once this is generated, you can provide it to the library in a few different
50
- ways.
65
+ 1. See the [Authorization guide][] to generate a client ID and client secret,
66
+ if you don't already have them.
51
67
 
52
- The simplest is to copy the [google_ads_config.rb][] to your home directory and
53
- simply modify it to include the client ID, client secret, and refresh token.
54
- The library will automatically read it from the home directory if instantiated
68
+ 1. Run the [Authentication example][] to generate your refresh token.
69
+
70
+ 1. Copy [google_ads_config.rb][] to your home directory and modify it to include
71
+ the client ID, client secret, and refresh token.
72
+
73
+ The client will automatically read it from the home directory if instantiated
55
74
  with no arguments:
56
75
 
57
76
  client = Google::Ads::GoogleAds::GoogleAdsClient.new
58
77
 
59
78
  Alternatively, if you prefer to keep the file elsewhere, you can instantiate the
60
- library by passing the path to where you keep this file:
79
+ client by passing the path to where you keep this file:
61
80
 
62
- client = Google::Ads::GoogleAds::GoogleAdsClient.new('path/to/file.rb')
81
+ client = Google::Ads::GoogleAds::GoogleAdsClient.new('path/to/google_ads_config.rb')
63
82
 
64
83
  If you prefer not to store this information in a file at all, and would rather
65
84
  pass the information programmatically at runtime, you can accomplish that this
@@ -72,12 +91,13 @@ way:
72
91
  config.developer_token = 'INSERT_DEVELOPER_TOKEN_HERE'
73
92
  end
74
93
 
75
- You can also modify these properties after instantiation by using the
76
- `configure` method on the `GoogleAdsClient`, using the same structure as above.
94
+ Find out more at the [Configuration guide][].
77
95
 
96
+ [Developer token guide]: https://developers.google.com/google-ads/api/docs/first-call/dev-token
78
97
  [Authorization guide]: https://developers.google.com/google-ads/api/docs/oauth/overview
79
98
  [Authentication example]: https://github.com/googleads/google-ads-ruby/blob/master/examples/authentication/authenticate_in_standalone_application.rb
80
99
  [google_ads_config.rb]: https://github.com/googleads/google-ads-ruby/blob/master/google_ads_config.rb
100
+ [Configuration guide]: https://developers.google.com/google-ads/api/docs/client-libs/ruby/configuration
81
101
 
82
102
  ## Usage
83
103
 
@@ -97,14 +117,9 @@ library.
97
117
 
98
118
  ## Logging
99
119
 
100
- See the instructions in
101
- [google_ads_config.rb](https://github.com/googleads/google-ads-ruby/blob/master/google_ads_config.rb)
102
- for complete setup.
103
-
104
- Logging is set up via the Config object, accessed via `client.config` or specified
105
- in your default config loaded when instantiating a `GoogleAdsClient`.
120
+ See the [Logging guide][].
106
121
 
107
- You can also specify your own logger by setting `client.logger`.
122
+ [Logging guide]: https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging
108
123
 
109
124
  # Authors
110
125
 
@@ -15,14 +15,14 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
 
18
- require 'google/ads/google_ads/google_ads_client'
19
18
  require 'google/ads/google_ads/api_versions'
19
+ require 'google/ads/google_ads/google_ads_client'
20
20
 
21
21
  module Google
22
22
  module Ads
23
23
  module GoogleAds
24
24
  def self.valid_version?(version)
25
- KNOWN_API_VERSIONS.include?(version)
25
+ known_api_versions.include?(version)
26
26
  end
27
27
  end
28
28
  end
@@ -1,8 +1,16 @@
1
1
  module Google
2
2
  module Ads
3
3
  module GoogleAds
4
- KNOWN_API_VERSIONS = [:V0, :V1]
4
+ KNOWN_API_VERSIONS = [:V1]
5
5
  DEFAULT_API_VERSION = :V1
6
+
7
+ def self.default_api_version
8
+ DEFAULT_API_VERSION
9
+ end
10
+
11
+ def self.known_api_versions
12
+ KNOWN_API_VERSIONS
13
+ end
6
14
  end
7
15
  end
8
16
  end
@@ -34,6 +34,65 @@ module Google
34
34
  @failure = failure
35
35
  end
36
36
  end
37
+
38
+ def self.namespaces
39
+ ERROR_NAMESPACES.values
40
+ end
41
+
42
+ # takes a Google::Ads::GoogleAds::VX::Errors::GoogleAdsError error
43
+ # and extracts its index in the list of mutations
44
+ #
45
+ # Return nil if not found
46
+ # Return Integer: index of the error
47
+ def self.index(error)
48
+ path = error.location.field_path_elements.find {|elt| elt.field_name == OPERATIONS }
49
+ if path
50
+ path.index.value
51
+ else
52
+ nil
53
+ end
54
+ end
55
+
56
+ # takes a Google::Ads::GoogleAds::VX::Errors::GoogleAdsError error
57
+ # and extracts a full error message based on the message and the different paths
58
+ # describing the source of the error
59
+ #
60
+ # Returns a string describing the error
61
+ def self.message(error)
62
+ error.location.field_path_elements.inject(error.message) do |string, path|
63
+ unless MEANINGLESS_PATHS.include?(path.field_name)
64
+ string = "#{path.field_name} - #{string}"
65
+ end
66
+ string
67
+ end
68
+ end
69
+
70
+ # takes a Google::Ads::GoogleAds::VX::Errors::GoogleAdsError error
71
+ # and extracts error code in the form of a hash
72
+ #
73
+ # Returns a Hash { name:, value:}
74
+ def self.code(error, version = Google::Ads::GoogleAds.default_api_version)
75
+ mapping = ERROR_CODES_MAPPING.fetch(version)
76
+ match = mapping.find do |error_name|
77
+ error.error_code.send(error_name) != :UNSPECIFIED
78
+ end
79
+ if match
80
+ { name: match, value: error.error_code.send(match) }
81
+ else
82
+ { }
83
+ end
84
+ end
85
+
86
+ ERROR_NAMESPACES = Google::Ads::GoogleAds.known_api_versions.each_with_object({}) do |v, h|
87
+ require "google/ads/google_ads/#{v.downcase}/errors/errors_pb"
88
+ h[v] = const_get("Google::Ads::GoogleAds::#{v}::Errors")
89
+ end
90
+
91
+ ERROR_CODES_MAPPING = ERROR_NAMESPACES.each_with_object({}) do |(version, klass), hash|
92
+ hash[version] = klass.const_get(:ErrorCode).descriptor.lookup_oneof('error_code').map(&:name)
93
+ end
94
+ MEANINGLESS_PATHS = %w(operations create update remove)
95
+ OPERATIONS = "operations"
37
96
  end
38
97
  end
39
98
  end
@@ -22,18 +22,6 @@
22
22
  module Google
23
23
  module Ads
24
24
  module GoogleAds
25
- module V0
26
- module Common
27
- end
28
- module Enums
29
- end
30
- module Errors
31
- end
32
- module Resources
33
- end
34
- module Services
35
- end
36
- end
37
25
  module V1
38
26
  module Common
39
27
  end
@@ -60,7 +48,6 @@ require 'google/ads/google_ads/wrapper_util'
60
48
  require 'google/ads/google_ads/logging_interceptor'
61
49
 
62
50
  require 'google/ads/google_ads/errors'
63
- require 'google/ads/google_ads/v0/errors/errors_pb'
64
51
 
65
52
  require 'google/gax'
66
53
 
@@ -220,7 +207,7 @@ module Google
220
207
  gax_error.status_details.each do |detail|
221
208
  # If there is an underlying GoogleAdsFailure, throw that one.
222
209
  if detail.is_a?(
223
- Google::Ads::GoogleAds::V0::Errors::GoogleAdsFailure)
210
+ Google::Ads::GoogleAds::V1::Errors::GoogleAdsFailure)
224
211
  raise Google::Ads::GoogleAds::Errors::GoogleAdsError.new(
225
212
  detail)
226
213
  end
@@ -272,7 +259,7 @@ module Google
272
259
  end
273
260
 
274
261
  def default_api_version
275
- Google::Ads::GoogleAds::DEFAULT_API_VERSION
262
+ Google::Ads::GoogleAds.default_api_version
276
263
  end
277
264
  end
278
265
  end
@@ -25,10 +25,6 @@ module Google
25
25
  module Ads
26
26
  module GoogleAds
27
27
  class LoggingInterceptor < GRPC::ClientInterceptor
28
- INTERESTING_ERROR_CLASSES = ::Google::Ads::GoogleAds::KNOWN_API_VERSIONS.map { |v|
29
- require "google/ads/google_ads/#{v.downcase}/errors/errors_pb"
30
- const_get("Google::Ads::GoogleAds::#{v}::Errors::GoogleAdsFailure")
31
- }
32
28
 
33
29
  def initialize(logger)
34
30
  # Don't propagate args, parens are necessary
@@ -40,17 +36,17 @@ module Google
40
36
  begin
41
37
  response = yield
42
38
 
43
- @logger.info(build_summary_message(request, call, method, false))
44
- @logger.debug(build_request_message(metadata, request))
45
- @logger.debug(build_success_response_message(response))
39
+ @logger.info { build_summary_message(request, call, method, false) }
40
+ @logger.debug { build_request_message(metadata, request) }
41
+ @logger.debug { build_success_response_message(response) }
46
42
  if response.respond_to?(:partial_failure_error) && response.partial_failure_error
47
- @logger.debug(build_partial_failure_message(response))
43
+ @logger.debug { build_partial_failure_message(response) }
48
44
  end
49
45
  response
50
46
  rescue Exception
51
- @logger.warn(build_summary_message(request, call, method, true))
52
- @logger.info(build_request_message(metadata, request))
53
- @logger.info(build_error_response_message)
47
+ @logger.warn { build_summary_message(request, call, method, true) }
48
+ @logger.info { build_request_message(metadata, request) }
49
+ @logger.info { build_error_response_message }
54
50
  raise
55
51
  end
56
52
  end
@@ -83,7 +79,7 @@ module Google
83
79
  most_recent_error.status_details
84
80
  when Array
85
81
  most_recent_error.status_details.select { |detail|
86
- INTERESTING_ERROR_CLASSES.include?(detail.class)
82
+ interesting_error_classes.include?(detail.class)
87
83
  }.map { |detail|
88
84
  response_error_from_detail(detail)
89
85
  }.join("\n")
@@ -139,13 +135,38 @@ module Google
139
135
  end
140
136
 
141
137
  def use_bytes_inspect?(request)
138
+ @cycle_finder = CycleFinder.new
142
139
  contains_bytes_field?(request.class.descriptor)
143
140
  end
144
141
 
145
142
  def contains_bytes_field?(descriptor)
146
143
  return false if descriptor.nil?
144
+ return false if @cycle_finder.is_cycle?(descriptor)
145
+
146
+ @cycle_finder.add_object(descriptor)
147
+
147
148
  descriptor.map { |x| x.type == :bytes || (x.type == :message && contains_bytes_field?(x.subtype)) }.any?
148
149
  end
150
+
151
+ def interesting_error_classes
152
+ @interesting_error_classes ||= Google::Ads::GoogleAds::Errors.namespaces.map do |namespace|
153
+ namespace.const_get(:GoogleAdsFailure)
154
+ end
155
+ end
156
+
157
+ class CycleFinder
158
+ def initialize
159
+ @objects_seen = Set.new
160
+ end
161
+
162
+ def is_cycle?(object)
163
+ @objects_seen.include?(object.object_id)
164
+ end
165
+
166
+ def add_object(object)
167
+ @objects_seen.add(object.object_id)
168
+ end
169
+ end
149
170
  end
150
171
  end
151
172
  end
@@ -87,6 +87,23 @@ module Google
87
87
  )
88
88
  end
89
89
 
90
+ def ad_group_criterion_simulation(customer_id, ad_group_id,
91
+ criterion_id, type, modification_method, start_date, end_date)
92
+ @proto_lookup_util.service(:AdGroupCriterionSimulation).
93
+ ad_group_criterion_simulation_path(
94
+ customer_id.to_s,
95
+ sprintf(
96
+ '%s~%s~%s~%s~%s~%s',
97
+ ad_group_id.to_s,
98
+ criterion_id.to_s,
99
+ type.to_s,
100
+ modification_method.to_s,
101
+ start_date.to_s,
102
+ end_date.to_s,
103
+ )
104
+ )
105
+ end
106
+
90
107
  def ad_group_extension_setting(customer_id, ad_group_id,
91
108
  extension_type)
92
109
  @proto_lookup_util.service(:AdGroupExtensionSetting).
@@ -115,6 +132,22 @@ module Google
115
132
  customer_id.to_s, ad_group_id.to_s)
116
133
  end
117
134
 
135
+ def ad_group_simulation(customer_id, ad_group_id, type,
136
+ modification_method, start_date, end_date)
137
+ @proto_lookup_util.service(:AdGroupSimulation).
138
+ ad_group_simulation_path(
139
+ customer_id.to_s,
140
+ sprintf(
141
+ '%s~%s~%s~%s~%s',
142
+ ad_group_id.to_s,
143
+ type.to_s,
144
+ modification_method.to_s,
145
+ start_date.to_s,
146
+ end_date.to_s,
147
+ )
148
+ )
149
+ end
150
+
118
151
  def ad_parameter(customer_id, ad_group_id, criterion_id,
119
152
  parameter_index)
120
153
  @proto_lookup_util.service(:AdParameter).ad_parameter_path(
@@ -184,6 +217,23 @@ module Google
184
217
  )
185
218
  end
186
219
 
220
+ def campaign_criterion_simulation(customer_id, campaign_id, criterion_id,
221
+ type, modification_method, start_date, end_date)
222
+ @proto_lookup_util.service(:CampaignCriterionSimulation).
223
+ campaign_criterion_simulation_path(
224
+ customer_id.to_s,
225
+ sprintf(
226
+ '%s~%s~%s~%s~%s~%s',
227
+ campaign_id.to_s,
228
+ criterion_id.to_s,
229
+ type.to_s,
230
+ modification_method.to_s,
231
+ start_date.to_s,
232
+ end_date.to_s,
233
+ )
234
+ )
235
+ end
236
+
187
237
  def campaign_extension_setting(customer_id, campaign_id,
188
238
  extension_type)
189
239
  @proto_lookup_util.service(:CampaignExtensionSetting).
@@ -207,10 +257,12 @@ module Google
207
257
  )
208
258
  end
209
259
 
210
- def campaign_shared_set(customer_id, campaign_shared_set_id)
260
+ def campaign_shared_set(customer_id, campaign_id, shared_set_id)
211
261
  @proto_lookup_util.service(:CampaignSharedSet).
212
- campaign_shared_set_path(customer_id.to_s,
213
- campaign_shared_set_id.to_s)
262
+ campaign_shared_set_path(
263
+ customer_id.to_s,
264
+ sprintf('%s~%s', campaign_id.to_s, shared_set_id.to_s)
265
+ )
214
266
  end
215
267
 
216
268
  def campaign(customer_id, campaign_id)
@@ -349,6 +401,14 @@ module Google
349
401
  )
350
402
  end
351
403
 
404
+ def expanded_landing_page_view(customer_id, expanded_final_url_fingerprint)
405
+ @proto_lookup_util.service(:ExpandedLandingPageView).
406
+ expanded_landing_page_view_path(
407
+ customer_id.to_s,
408
+ expanded_final_url_fingerprint.to_s,
409
+ )
410
+ end
411
+
352
412
  def extension_feed_item(customer_id, feed_item_id)
353
413
  @proto_lookup_util.service(:ExtensionFeedItem).
354
414
  extension_feed_item_path(