google-ads-googleads 2.4.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1087) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog +29 -0
  3. data/google_ads_config.rb +3 -0
  4. data/lib/google/ads/google_ads/api_versions.rb +2 -2
  5. data/lib/google/ads/google_ads/autoboxing_fields.rb +55 -49
  6. data/lib/google/ads/google_ads/autoboxing_mappings.rb +53 -0
  7. data/lib/google/ads/google_ads/config.rb +15 -0
  8. data/lib/google/ads/google_ads/factories.rb +49 -0
  9. data/lib/google/ads/google_ads/factories/v1/enums.rb +1174 -1174
  10. data/lib/google/ads/google_ads/factories/v1/operations.rb +1291 -1431
  11. data/lib/google/ads/google_ads/factories/v1/resources.rb +2371 -2371
  12. data/lib/google/ads/google_ads/factories/v1/services.rb +297 -357
  13. data/lib/google/ads/google_ads/factories/v2/enums.rb +2507 -0
  14. data/lib/google/ads/google_ads/factories/v2/operations.rb +3679 -0
  15. data/lib/google/ads/google_ads/factories/v2/resources.rb +5575 -0
  16. data/lib/google/ads/google_ads/factories/v2/services.rb +2113 -0
  17. data/lib/google/ads/google_ads/field_mask_util.rb +3 -3
  18. data/lib/google/ads/google_ads/google_ads_client.rb +19 -33
  19. data/lib/google/ads/google_ads/lookup_util.rb +1 -54
  20. data/lib/google/ads/google_ads/service_lookup.rb +21 -57
  21. data/lib/google/ads/google_ads/utils/v1/path_lookup_util.rb +238 -98
  22. data/lib/google/ads/google_ads/utils/v2/path_lookup_util.rb +870 -0
  23. data/lib/google/ads/google_ads/v1/resources/campaign_pb.rb +14 -14
  24. data/lib/google/ads/google_ads/v1/resources/recommendation_pb.rb +17 -17
  25. data/lib/google/ads/google_ads/v1/services/account_budget_proposal_service_client.rb +10 -3
  26. data/lib/google/ads/google_ads/v1/services/account_budget_proposal_service_pb.rb +1 -0
  27. data/lib/google/ads/google_ads/v1/services/account_budget_proposal_service_services_pb.rb +2 -1
  28. data/lib/google/ads/google_ads/v1/services/account_budget_service_client.rb +4 -1
  29. data/lib/google/ads/google_ads/v1/services/account_budget_service_pb.rb +1 -0
  30. data/lib/google/ads/google_ads/v1/services/ad_group_ad_label_service_client.rb +8 -2
  31. data/lib/google/ads/google_ads/v1/services/ad_group_ad_label_service_pb.rb +1 -1
  32. data/lib/google/ads/google_ads/v1/services/ad_group_ad_service_client.rb +8 -2
  33. data/lib/google/ads/google_ads/v1/services/ad_group_ad_service_pb.rb +1 -1
  34. data/lib/google/ads/google_ads/v1/services/ad_group_audience_view_service_client.rb +4 -1
  35. data/lib/google/ads/google_ads/v1/services/ad_group_audience_view_service_pb.rb +1 -0
  36. data/lib/google/ads/google_ads/v1/services/ad_group_bid_modifier_service_client.rb +8 -2
  37. data/lib/google/ads/google_ads/v1/services/ad_group_bid_modifier_service_pb.rb +1 -1
  38. data/lib/google/ads/google_ads/v1/services/ad_group_criterion_label_service_client.rb +8 -2
  39. data/lib/google/ads/google_ads/v1/services/ad_group_criterion_label_service_pb.rb +1 -1
  40. data/lib/google/ads/google_ads/v1/services/ad_group_criterion_service_client.rb +8 -2
  41. data/lib/google/ads/google_ads/v1/services/ad_group_criterion_service_pb.rb +1 -1
  42. data/lib/google/ads/google_ads/v1/services/ad_group_criterion_simulation_service_client.rb +4 -1
  43. data/lib/google/ads/google_ads/v1/services/ad_group_criterion_simulation_service_pb.rb +1 -0
  44. data/lib/google/ads/google_ads/v1/services/ad_group_extension_setting_service_client.rb +8 -2
  45. data/lib/google/ads/google_ads/v1/services/ad_group_extension_setting_service_pb.rb +1 -1
  46. data/lib/google/ads/google_ads/v1/services/ad_group_feed_service_client.rb +8 -2
  47. data/lib/google/ads/google_ads/v1/services/ad_group_feed_service_pb.rb +1 -1
  48. data/lib/google/ads/google_ads/v1/services/ad_group_label_service_client.rb +8 -2
  49. data/lib/google/ads/google_ads/v1/services/ad_group_label_service_pb.rb +1 -1
  50. data/lib/google/ads/google_ads/v1/services/ad_group_service_client.rb +8 -2
  51. data/lib/google/ads/google_ads/v1/services/ad_group_service_pb.rb +1 -1
  52. data/lib/google/ads/google_ads/v1/services/ad_group_simulation_service_client.rb +4 -1
  53. data/lib/google/ads/google_ads/v1/services/ad_group_simulation_service_pb.rb +1 -0
  54. data/lib/google/ads/google_ads/v1/services/ad_parameter_service_client.rb +8 -2
  55. data/lib/google/ads/google_ads/v1/services/ad_parameter_service_pb.rb +1 -1
  56. data/lib/google/ads/google_ads/v1/services/ad_schedule_view_service_client.rb +4 -1
  57. data/lib/google/ads/google_ads/v1/services/ad_schedule_view_service_pb.rb +1 -0
  58. data/lib/google/ads/google_ads/v1/services/age_range_view_service_client.rb +4 -1
  59. data/lib/google/ads/google_ads/v1/services/age_range_view_service_pb.rb +1 -0
  60. data/lib/google/ads/google_ads/v1/services/asset_service_client.rb +8 -2
  61. data/lib/google/ads/google_ads/v1/services/asset_service_pb.rb +1 -0
  62. data/lib/google/ads/google_ads/v1/services/bidding_strategy_service_client.rb +8 -2
  63. data/lib/google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb +1 -1
  64. data/lib/google/ads/google_ads/v1/services/billing_setup_service_client.rb +8 -2
  65. data/lib/google/ads/google_ads/v1/services/billing_setup_service_pb.rb +1 -0
  66. data/lib/google/ads/google_ads/v1/services/campaign_audience_view_service_client.rb +4 -1
  67. data/lib/google/ads/google_ads/v1/services/campaign_audience_view_service_pb.rb +1 -0
  68. data/lib/google/ads/google_ads/v1/services/campaign_bid_modifier_service_client.rb +8 -2
  69. data/lib/google/ads/google_ads/v1/services/campaign_bid_modifier_service_pb.rb +1 -1
  70. data/lib/google/ads/google_ads/v1/services/campaign_budget_service_client.rb +8 -2
  71. data/lib/google/ads/google_ads/v1/services/campaign_budget_service_pb.rb +1 -1
  72. data/lib/google/ads/google_ads/v1/services/campaign_criterion_service_client.rb +8 -2
  73. data/lib/google/ads/google_ads/v1/services/campaign_criterion_service_pb.rb +1 -1
  74. data/lib/google/ads/google_ads/v1/services/campaign_criterion_simulation_service_client.rb +4 -1
  75. data/lib/google/ads/google_ads/v1/services/campaign_criterion_simulation_service_pb.rb +1 -0
  76. data/lib/google/ads/google_ads/v1/services/campaign_draft_service_client.rb +17 -4
  77. data/lib/google/ads/google_ads/v1/services/campaign_draft_service_pb.rb +1 -1
  78. data/lib/google/ads/google_ads/v1/services/campaign_experiment_service_client.rb +29 -7
  79. data/lib/google/ads/google_ads/v1/services/campaign_experiment_service_pb.rb +1 -1
  80. data/lib/google/ads/google_ads/v1/services/campaign_extension_setting_service_client.rb +8 -2
  81. data/lib/google/ads/google_ads/v1/services/campaign_extension_setting_service_pb.rb +1 -1
  82. data/lib/google/ads/google_ads/v1/services/campaign_feed_service_client.rb +8 -2
  83. data/lib/google/ads/google_ads/v1/services/campaign_feed_service_pb.rb +1 -1
  84. data/lib/google/ads/google_ads/v1/services/campaign_label_service_client.rb +8 -2
  85. data/lib/google/ads/google_ads/v1/services/campaign_label_service_pb.rb +1 -1
  86. data/lib/google/ads/google_ads/v1/services/campaign_service_client.rb +9 -2
  87. data/lib/google/ads/google_ads/v1/services/campaign_service_pb.rb +1 -1
  88. data/lib/google/ads/google_ads/v1/services/campaign_shared_set_service_client.rb +8 -2
  89. data/lib/google/ads/google_ads/v1/services/campaign_shared_set_service_pb.rb +1 -1
  90. data/lib/google/ads/google_ads/v1/services/carrier_constant_service_client.rb +4 -1
  91. data/lib/google/ads/google_ads/v1/services/carrier_constant_service_pb.rb +1 -0
  92. data/lib/google/ads/google_ads/v1/services/change_status_service_client.rb +4 -1
  93. data/lib/google/ads/google_ads/v1/services/change_status_service_pb.rb +1 -0
  94. data/lib/google/ads/google_ads/v1/services/click_view_service_client.rb +4 -1
  95. data/lib/google/ads/google_ads/v1/services/click_view_service_pb.rb +1 -0
  96. data/lib/google/ads/google_ads/v1/services/conversion_action_service_client.rb +8 -2
  97. data/lib/google/ads/google_ads/v1/services/conversion_action_service_pb.rb +1 -1
  98. data/lib/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_client.rb +4 -1
  99. data/lib/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_pb.rb +1 -0
  100. data/lib/google/ads/google_ads/v1/services/conversion_upload_service_client.rb +8 -2
  101. data/lib/google/ads/google_ads/v1/services/conversion_upload_service_pb.rb +1 -0
  102. data/lib/google/ads/google_ads/v1/services/custom_interest_service_client.rb +8 -2
  103. data/lib/google/ads/google_ads/v1/services/custom_interest_service_pb.rb +1 -1
  104. data/lib/google/ads/google_ads/v1/services/customer_client_link_service_client.rb +8 -2
  105. data/lib/google/ads/google_ads/v1/services/customer_client_link_service_pb.rb +1 -1
  106. data/lib/google/ads/google_ads/v1/services/customer_client_service_client.rb +4 -1
  107. data/lib/google/ads/google_ads/v1/services/customer_client_service_pb.rb +1 -0
  108. data/lib/google/ads/google_ads/v1/services/customer_extension_setting_service_client.rb +8 -2
  109. data/lib/google/ads/google_ads/v1/services/customer_extension_setting_service_pb.rb +1 -1
  110. data/lib/google/ads/google_ads/v1/services/customer_feed_service_client.rb +8 -2
  111. data/lib/google/ads/google_ads/v1/services/customer_feed_service_pb.rb +1 -1
  112. data/lib/google/ads/google_ads/v1/services/customer_label_service_client.rb +8 -2
  113. data/lib/google/ads/google_ads/v1/services/customer_label_service_pb.rb +1 -1
  114. data/lib/google/ads/google_ads/v1/services/customer_manager_link_service_client.rb +8 -2
  115. data/lib/google/ads/google_ads/v1/services/customer_manager_link_service_pb.rb +1 -0
  116. data/lib/google/ads/google_ads/v1/services/customer_negative_criterion_service_client.rb +8 -2
  117. data/lib/google/ads/google_ads/v1/services/customer_negative_criterion_service_pb.rb +1 -1
  118. data/lib/google/ads/google_ads/v1/services/customer_service_client.rb +12 -3
  119. data/lib/google/ads/google_ads/v1/services/customer_service_pb.rb +1 -0
  120. data/lib/google/ads/google_ads/v1/services/detail_placement_view_service_client.rb +4 -1
  121. data/lib/google/ads/google_ads/v1/services/detail_placement_view_service_pb.rb +1 -0
  122. data/lib/google/ads/google_ads/v1/services/display_keyword_view_service_client.rb +4 -1
  123. data/lib/google/ads/google_ads/v1/services/display_keyword_view_service_pb.rb +1 -0
  124. data/lib/google/ads/google_ads/v1/services/domain_category_service_client.rb +4 -1
  125. data/lib/google/ads/google_ads/v1/services/domain_category_service_pb.rb +1 -0
  126. data/lib/google/ads/google_ads/v1/services/dynamic_search_ads_search_term_view_service_client.rb +4 -1
  127. data/lib/google/ads/google_ads/v1/services/dynamic_search_ads_search_term_view_service_pb.rb +1 -0
  128. data/lib/google/ads/google_ads/v1/services/expanded_landing_page_view_service_client.rb +4 -1
  129. data/lib/google/ads/google_ads/v1/services/expanded_landing_page_view_service_pb.rb +1 -1
  130. data/lib/google/ads/google_ads/v1/services/extension_feed_item_service_client.rb +8 -2
  131. data/lib/google/ads/google_ads/v1/services/extension_feed_item_service_pb.rb +1 -1
  132. data/lib/google/ads/google_ads/v1/services/feed_item_service_client.rb +8 -2
  133. data/lib/google/ads/google_ads/v1/services/feed_item_service_pb.rb +1 -1
  134. data/lib/google/ads/google_ads/v1/services/feed_item_target_service_client.rb +8 -2
  135. data/lib/google/ads/google_ads/v1/services/feed_item_target_service_pb.rb +1 -0
  136. data/lib/google/ads/google_ads/v1/services/feed_mapping_service_client.rb +8 -2
  137. data/lib/google/ads/google_ads/v1/services/feed_mapping_service_pb.rb +1 -1
  138. data/lib/google/ads/google_ads/v1/services/feed_placeholder_view_service_client.rb +4 -1
  139. data/lib/google/ads/google_ads/v1/services/feed_placeholder_view_service_pb.rb +1 -0
  140. data/lib/google/ads/google_ads/v1/services/feed_service_client.rb +8 -2
  141. data/lib/google/ads/google_ads/v1/services/feed_service_pb.rb +1 -1
  142. data/lib/google/ads/google_ads/v1/services/gender_view_service_client.rb +4 -1
  143. data/lib/google/ads/google_ads/v1/services/gender_view_service_pb.rb +1 -0
  144. data/lib/google/ads/google_ads/v1/services/geo_target_constant_service_client.rb +4 -1
  145. data/lib/google/ads/google_ads/v1/services/geo_target_constant_service_pb.rb +1 -0
  146. data/lib/google/ads/google_ads/v1/services/geographic_view_service_client.rb +4 -1
  147. data/lib/google/ads/google_ads/v1/services/geographic_view_service_pb.rb +1 -0
  148. data/lib/google/ads/google_ads/v1/services/google_ads_field_service_client.rb +4 -1
  149. data/lib/google/ads/google_ads/v1/services/google_ads_field_service_pb.rb +1 -0
  150. data/lib/google/ads/google_ads/v1/services/google_ads_service_client.rb +14 -6
  151. data/lib/google/ads/google_ads/v1/services/google_ads_service_pb.rb +1 -0
  152. data/lib/google/ads/google_ads/v1/services/google_ads_service_services_pb.rb +6 -4
  153. data/lib/google/ads/google_ads/v1/services/group_placement_view_service_client.rb +4 -1
  154. data/lib/google/ads/google_ads/v1/services/group_placement_view_service_pb.rb +1 -0
  155. data/lib/google/ads/google_ads/v1/services/hotel_group_view_service_client.rb +4 -1
  156. data/lib/google/ads/google_ads/v1/services/hotel_group_view_service_pb.rb +1 -0
  157. data/lib/google/ads/google_ads/v1/services/hotel_performance_view_service_client.rb +4 -1
  158. data/lib/google/ads/google_ads/v1/services/hotel_performance_view_service_pb.rb +1 -0
  159. data/lib/google/ads/google_ads/v1/services/keyword_plan_ad_group_service_client.rb +8 -2
  160. data/lib/google/ads/google_ads/v1/services/keyword_plan_ad_group_service_pb.rb +1 -1
  161. data/lib/google/ads/google_ads/v1/services/keyword_plan_campaign_service_client.rb +8 -2
  162. data/lib/google/ads/google_ads/v1/services/keyword_plan_campaign_service_pb.rb +1 -1
  163. data/lib/google/ads/google_ads/v1/services/keyword_plan_idea_service_client.rb +4 -1
  164. data/lib/google/ads/google_ads/v1/services/keyword_plan_idea_service_pb.rb +1 -0
  165. data/lib/google/ads/google_ads/v1/services/keyword_plan_keyword_service_client.rb +8 -2
  166. data/lib/google/ads/google_ads/v1/services/keyword_plan_keyword_service_pb.rb +1 -1
  167. data/lib/google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_client.rb +8 -2
  168. data/lib/google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_pb.rb +1 -1
  169. data/lib/google/ads/google_ads/v1/services/keyword_plan_service_client.rb +16 -4
  170. data/lib/google/ads/google_ads/v1/services/keyword_plan_service_pb.rb +1 -0
  171. data/lib/google/ads/google_ads/v1/services/keyword_view_service_client.rb +4 -1
  172. data/lib/google/ads/google_ads/v1/services/keyword_view_service_pb.rb +1 -0
  173. data/lib/google/ads/google_ads/v1/services/label_service_client.rb +8 -2
  174. data/lib/google/ads/google_ads/v1/services/label_service_pb.rb +1 -0
  175. data/lib/google/ads/google_ads/v1/services/landing_page_view_service_client.rb +4 -1
  176. data/lib/google/ads/google_ads/v1/services/landing_page_view_service_pb.rb +1 -1
  177. data/lib/google/ads/google_ads/v1/services/language_constant_service_client.rb +4 -1
  178. data/lib/google/ads/google_ads/v1/services/language_constant_service_pb.rb +1 -0
  179. data/lib/google/ads/google_ads/v1/services/location_view_service_client.rb +4 -1
  180. data/lib/google/ads/google_ads/v1/services/location_view_service_pb.rb +1 -0
  181. data/lib/google/ads/google_ads/v1/services/managed_placement_view_service_client.rb +4 -1
  182. data/lib/google/ads/google_ads/v1/services/managed_placement_view_service_pb.rb +1 -0
  183. data/lib/google/ads/google_ads/v1/services/media_file_service_client.rb +8 -2
  184. data/lib/google/ads/google_ads/v1/services/media_file_service_pb.rb +1 -0
  185. data/lib/google/ads/google_ads/v1/services/merchant_center_link_service_client.rb +12 -3
  186. data/lib/google/ads/google_ads/v1/services/merchant_center_link_service_pb.rb +1 -0
  187. data/lib/google/ads/google_ads/v1/services/mobile_app_category_constant_service_client.rb +4 -1
  188. data/lib/google/ads/google_ads/v1/services/mobile_app_category_constant_service_pb.rb +1 -0
  189. data/lib/google/ads/google_ads/v1/services/mobile_device_constant_service_client.rb +4 -1
  190. data/lib/google/ads/google_ads/v1/services/mobile_device_constant_service_pb.rb +1 -0
  191. data/lib/google/ads/google_ads/v1/services/mutate_job_service_client.rb +21 -5
  192. data/lib/google/ads/google_ads/v1/services/mutate_job_service_pb.rb +1 -0
  193. data/lib/google/ads/google_ads/v1/services/operating_system_version_constant_service_client.rb +4 -1
  194. data/lib/google/ads/google_ads/v1/services/operating_system_version_constant_service_pb.rb +1 -0
  195. data/lib/google/ads/google_ads/v1/services/paid_organic_search_term_view_service_client.rb +4 -1
  196. data/lib/google/ads/google_ads/v1/services/paid_organic_search_term_view_service_pb.rb +1 -0
  197. data/lib/google/ads/google_ads/v1/services/parental_status_view_service_client.rb +4 -1
  198. data/lib/google/ads/google_ads/v1/services/parental_status_view_service_pb.rb +1 -0
  199. data/lib/google/ads/google_ads/v1/services/payments_account_service_client.rb +4 -1
  200. data/lib/google/ads/google_ads/v1/services/payments_account_service_pb.rb +1 -0
  201. data/lib/google/ads/google_ads/v1/services/product_bidding_category_constant_service_client.rb +4 -1
  202. data/lib/google/ads/google_ads/v1/services/product_bidding_category_constant_service_pb.rb +1 -0
  203. data/lib/google/ads/google_ads/v1/services/product_group_view_service_client.rb +4 -1
  204. data/lib/google/ads/google_ads/v1/services/product_group_view_service_pb.rb +1 -0
  205. data/lib/google/ads/google_ads/v1/services/recommendation_service_client.rb +12 -3
  206. data/lib/google/ads/google_ads/v1/services/recommendation_service_pb.rb +1 -0
  207. data/lib/google/ads/google_ads/v1/services/remarketing_action_service_client.rb +8 -2
  208. data/lib/google/ads/google_ads/v1/services/remarketing_action_service_pb.rb +1 -0
  209. data/lib/google/ads/google_ads/v1/services/search_term_view_service_client.rb +4 -1
  210. data/lib/google/ads/google_ads/v1/services/search_term_view_service_pb.rb +1 -0
  211. data/lib/google/ads/google_ads/v1/services/shared_criterion_service_client.rb +8 -2
  212. data/lib/google/ads/google_ads/v1/services/shared_criterion_service_pb.rb +1 -0
  213. data/lib/google/ads/google_ads/v1/services/shared_set_service_client.rb +8 -2
  214. data/lib/google/ads/google_ads/v1/services/shared_set_service_pb.rb +1 -0
  215. data/lib/google/ads/google_ads/v1/services/shopping_performance_view_service_client.rb +4 -1
  216. data/lib/google/ads/google_ads/v1/services/shopping_performance_view_service_pb.rb +1 -0
  217. data/lib/google/ads/google_ads/v1/services/topic_constant_service_client.rb +4 -1
  218. data/lib/google/ads/google_ads/v1/services/topic_constant_service_pb.rb +1 -0
  219. data/lib/google/ads/google_ads/v1/services/topic_view_service_client.rb +4 -1
  220. data/lib/google/ads/google_ads/v1/services/topic_view_service_pb.rb +1 -0
  221. data/lib/google/ads/google_ads/v1/services/user_interest_service_client.rb +4 -1
  222. data/lib/google/ads/google_ads/v1/services/user_interest_service_pb.rb +1 -0
  223. data/lib/google/ads/google_ads/v1/services/user_list_service_client.rb +8 -2
  224. data/lib/google/ads/google_ads/v1/services/user_list_service_pb.rb +1 -0
  225. data/lib/google/ads/google_ads/v1/services/video_service_client.rb +4 -1
  226. data/lib/google/ads/google_ads/v1/services/video_service_pb.rb +1 -0
  227. data/lib/google/ads/google_ads/v2/common/ad_asset_pb.rb +30 -0
  228. data/lib/google/ads/google_ads/v2/common/ad_type_infos_pb.rb +220 -0
  229. data/lib/google/ads/google_ads/v2/common/asset_types_pb.rb +38 -0
  230. data/lib/google/ads/google_ads/v2/common/bidding_pb.rb +86 -0
  231. data/lib/google/ads/google_ads/v2/common/click_location_pb.rb +20 -0
  232. data/lib/google/ads/google_ads/v2/common/criteria_pb.rb +297 -0
  233. data/lib/google/ads/google_ads/v2/common/criterion_category_availability_pb.rb +34 -0
  234. data/lib/google/ads/google_ads/v2/common/custom_parameter_pb.rb +17 -0
  235. data/lib/google/ads/google_ads/v2/common/dates_pb.rb +17 -0
  236. data/lib/google/ads/google_ads/v2/common/explorer_auto_optimizer_setting_pb.rb +16 -0
  237. data/lib/google/ads/google_ads/v2/common/extensions_pb.rb +133 -0
  238. data/lib/google/ads/google_ads/v2/common/feed_common_pb.rb +17 -0
  239. data/lib/google/ads/google_ads/v2/common/final_app_url_pb.rb +18 -0
  240. data/lib/google/ads/google_ads/v2/common/frequency_cap_pb.rb +27 -0
  241. data/lib/google/ads/google_ads/v2/common/keyword_plan_common_pb.rb +18 -0
  242. data/lib/google/ads/google_ads/v2/common/matching_function_pb.rb +52 -0
  243. data/lib/google/ads/google_ads/v2/common/metrics_pb.rb +127 -0
  244. data/lib/google/ads/google_ads/v2/common/policy_pb.rb +91 -0
  245. data/lib/google/ads/google_ads/v2/common/real_time_bidding_setting_pb.rb +16 -0
  246. data/lib/google/ads/google_ads/v2/common/segments_pb.rb +117 -0
  247. data/lib/google/ads/google_ads/v2/common/simulation_pb.rb +72 -0
  248. data/lib/google/ads/google_ads/v2/common/tag_snippet_pb.rb +21 -0
  249. data/lib/google/ads/google_ads/v2/common/targeting_setting_pb.rb +22 -0
  250. data/lib/google/ads/google_ads/v2/common/text_label_pb.rb +17 -0
  251. data/lib/google/ads/google_ads/v2/common/url_collection_pb.rb +19 -0
  252. data/lib/google/ads/google_ads/v2/common/user_lists_pb.rb +114 -0
  253. data/lib/google/ads/google_ads/v2/common/value_pb.rb +21 -0
  254. data/lib/google/ads/google_ads/v2/enums/access_reason_pb.rb +24 -0
  255. data/lib/google/ads/google_ads/v2/enums/access_role_pb.rb +22 -0
  256. data/lib/google/ads/google_ads/v2/enums/account_budget_proposal_status_pb.rb +24 -0
  257. data/lib/google/ads/google_ads/v2/enums/account_budget_proposal_type_pb.rb +23 -0
  258. data/lib/google/ads/google_ads/v2/enums/account_budget_status_pb.rb +22 -0
  259. data/lib/google/ads/google_ads/v2/enums/ad_customizer_placeholder_field_pb.rb +23 -0
  260. data/lib/google/ads/google_ads/v2/enums/ad_group_ad_rotation_mode_pb.rb +21 -0
  261. data/lib/google/ads/google_ads/v2/enums/ad_group_ad_status_pb.rb +22 -0
  262. data/lib/google/ads/google_ads/v2/enums/ad_group_criterion_approval_status_pb.rb +23 -0
  263. data/lib/google/ads/google_ads/v2/enums/ad_group_criterion_status_pb.rb +22 -0
  264. data/lib/google/ads/google_ads/v2/enums/ad_group_status_pb.rb +22 -0
  265. data/lib/google/ads/google_ads/v2/enums/ad_group_type_pb.rb +31 -0
  266. data/lib/google/ads/google_ads/v2/enums/ad_network_type_pb.rb +25 -0
  267. data/lib/google/ads/google_ads/v2/enums/ad_serving_optimization_status_pb.rb +24 -0
  268. data/lib/google/ads/google_ads/v2/enums/ad_strength_pb.rb +25 -0
  269. data/lib/google/ads/google_ads/v2/enums/ad_type_pb.rb +38 -0
  270. data/lib/google/ads/google_ads/v2/enums/advertising_channel_sub_type_pb.rb +32 -0
  271. data/lib/google/ads/google_ads/v2/enums/advertising_channel_type_pb.rb +25 -0
  272. data/lib/google/ads/google_ads/v2/enums/affiliate_location_feed_relationship_type_pb.rb +20 -0
  273. data/lib/google/ads/google_ads/v2/enums/affiliate_location_placeholder_field_pb.rb +30 -0
  274. data/lib/google/ads/google_ads/v2/enums/age_range_type_pb.rb +26 -0
  275. data/lib/google/ads/google_ads/v2/enums/app_campaign_app_store_pb.rb +21 -0
  276. data/lib/google/ads/google_ads/v2/enums/app_campaign_bidding_strategy_goal_type_pb.rb +23 -0
  277. data/lib/google/ads/google_ads/v2/enums/app_payment_model_type_pb.rb +20 -0
  278. data/lib/google/ads/google_ads/v2/enums/app_placeholder_field_pb.rb +27 -0
  279. data/lib/google/ads/google_ads/v2/enums/app_store_pb.rb +21 -0
  280. data/lib/google/ads/google_ads/v2/enums/app_url_operating_system_type_pb.rb +21 -0
  281. data/lib/google/ads/google_ads/v2/enums/asset_field_type_pb.rb +25 -0
  282. data/lib/google/ads/google_ads/v2/enums/asset_performance_label_pb.rb +24 -0
  283. data/lib/google/ads/google_ads/v2/enums/asset_type_pb.rb +23 -0
  284. data/lib/google/ads/google_ads/v2/enums/attribution_model_pb.rb +26 -0
  285. data/lib/google/ads/google_ads/v2/enums/bid_modifier_source_pb.rb +21 -0
  286. data/lib/google/ads/google_ads/v2/enums/bidding_source_pb.rb +22 -0
  287. data/lib/google/ads/google_ads/v2/enums/bidding_strategy_status_pb.rb +21 -0
  288. data/lib/google/ads/google_ads/v2/enums/bidding_strategy_type_pb.rb +34 -0
  289. data/lib/google/ads/google_ads/v2/enums/billing_setup_status_pb.rb +23 -0
  290. data/lib/google/ads/google_ads/v2/enums/brand_safety_suitability_pb.rb +22 -0
  291. data/lib/google/ads/google_ads/v2/enums/budget_delivery_method_pb.rb +21 -0
  292. data/lib/google/ads/google_ads/v2/enums/budget_period_pb.rb +22 -0
  293. data/lib/google/ads/google_ads/v2/enums/budget_status_pb.rb +21 -0
  294. data/lib/google/ads/google_ads/v2/enums/budget_type_pb.rb +22 -0
  295. data/lib/google/ads/google_ads/v2/enums/call_conversion_reporting_state_pb.rb +22 -0
  296. data/lib/google/ads/google_ads/v2/enums/call_placeholder_field_pb.rb +24 -0
  297. data/lib/google/ads/google_ads/v2/enums/callout_placeholder_field_pb.rb +20 -0
  298. data/lib/google/ads/google_ads/v2/enums/campaign_criterion_status_pb.rb +22 -0
  299. data/lib/google/ads/google_ads/v2/enums/campaign_draft_status_pb.rb +24 -0
  300. data/lib/google/ads/google_ads/v2/enums/campaign_experiment_status_pb.rb +28 -0
  301. data/lib/google/ads/google_ads/v2/enums/campaign_experiment_traffic_split_type_pb.rb +21 -0
  302. data/lib/google/ads/google_ads/v2/enums/campaign_experiment_type_pb.rb +22 -0
  303. data/lib/google/ads/google_ads/v2/enums/campaign_serving_status_pb.rb +24 -0
  304. data/lib/google/ads/google_ads/v2/enums/campaign_shared_set_status_pb.rb +21 -0
  305. data/lib/google/ads/google_ads/v2/enums/campaign_status_pb.rb +22 -0
  306. data/lib/google/ads/google_ads/v2/enums/change_status_operation_pb.rb +22 -0
  307. data/lib/google/ads/google_ads/v2/enums/change_status_resource_type_pb.rb +29 -0
  308. data/lib/google/ads/google_ads/v2/enums/click_type_pb.rb +72 -0
  309. data/lib/google/ads/google_ads/v2/enums/content_label_type_pb.rb +35 -0
  310. data/lib/google/ads/google_ads/v2/enums/conversion_action_category_pb.rb +25 -0
  311. data/lib/google/ads/google_ads/v2/enums/conversion_action_counting_type_pb.rb +21 -0
  312. data/lib/google/ads/google_ads/v2/enums/conversion_action_status_pb.rb +22 -0
  313. data/lib/google/ads/google_ads/v2/enums/conversion_action_type_pb.rb +27 -0
  314. data/lib/google/ads/google_ads/v2/enums/conversion_adjustment_type_pb.rb +21 -0
  315. data/lib/google/ads/google_ads/v2/enums/conversion_attribution_event_type_pb.rb +21 -0
  316. data/lib/google/ads/google_ads/v2/enums/conversion_lag_bucket_pb.rb +38 -0
  317. data/lib/google/ads/google_ads/v2/enums/conversion_or_adjustment_lag_bucket_pb.rb +60 -0
  318. data/lib/google/ads/google_ads/v2/enums/criterion_category_channel_availability_mode_pb.rb +22 -0
  319. data/lib/google/ads/google_ads/v2/enums/criterion_category_locale_availability_mode_pb.rb +23 -0
  320. data/lib/google/ads/google_ads/v2/enums/criterion_system_serving_status_pb.rb +21 -0
  321. data/lib/google/ads/google_ads/v2/enums/criterion_type_pb.rb +49 -0
  322. data/lib/google/ads/google_ads/v2/enums/custom_interest_member_type_pb.rb +21 -0
  323. data/lib/google/ads/google_ads/v2/enums/custom_interest_status_pb.rb +21 -0
  324. data/lib/google/ads/google_ads/v2/enums/custom_interest_type_pb.rb +21 -0
  325. data/lib/google/ads/google_ads/v2/enums/custom_placeholder_field_pb.rb +39 -0
  326. data/lib/google/ads/google_ads/v2/enums/customer_match_upload_key_type_pb.rb +22 -0
  327. data/lib/google/ads/google_ads/v2/enums/customer_pay_per_conversion_eligibility_failure_reason_pb.rb +26 -0
  328. data/lib/google/ads/google_ads/v2/enums/data_driven_model_status_pb.rb +23 -0
  329. data/lib/google/ads/google_ads/v2/enums/day_of_week_pb.rb +26 -0
  330. data/lib/google/ads/google_ads/v2/enums/device_pb.rb +24 -0
  331. data/lib/google/ads/google_ads/v2/enums/display_ad_format_setting_pb.rb +22 -0
  332. data/lib/google/ads/google_ads/v2/enums/display_upload_product_type_pb.rb +29 -0
  333. data/lib/google/ads/google_ads/v2/enums/distance_bucket_pb.rb +46 -0
  334. data/lib/google/ads/google_ads/v2/enums/dsa_page_feed_criterion_field_pb.rb +21 -0
  335. data/lib/google/ads/google_ads/v2/enums/education_placeholder_field_pb.rb +36 -0
  336. data/lib/google/ads/google_ads/v2/enums/extension_setting_device_pb.rb +21 -0
  337. data/lib/google/ads/google_ads/v2/enums/extension_type_pb.rb +30 -0
  338. data/lib/google/ads/google_ads/v2/enums/external_conversion_source_pb.rb +40 -0
  339. data/lib/google/ads/google_ads/v2/enums/feed_attribute_type_pb.rb +32 -0
  340. data/lib/google/ads/google_ads/v2/enums/feed_item_quality_approval_status_pb.rb +21 -0
  341. data/lib/google/ads/google_ads/v2/enums/feed_item_quality_disapproval_reason_pb.rb +37 -0
  342. data/lib/google/ads/google_ads/v2/enums/feed_item_status_pb.rb +21 -0
  343. data/lib/google/ads/google_ads/v2/enums/feed_item_target_device_pb.rb +20 -0
  344. data/lib/google/ads/google_ads/v2/enums/feed_item_target_type_pb.rb +22 -0
  345. data/lib/google/ads/google_ads/v2/enums/feed_item_validation_status_pb.rb +22 -0
  346. data/lib/google/ads/google_ads/v2/enums/feed_link_status_pb.rb +21 -0
  347. data/lib/google/ads/google_ads/v2/enums/feed_mapping_criterion_type_pb.rb +21 -0
  348. data/lib/google/ads/google_ads/v2/enums/feed_mapping_status_pb.rb +21 -0
  349. data/lib/google/ads/google_ads/v2/enums/feed_origin_pb.rb +21 -0
  350. data/lib/google/ads/google_ads/v2/enums/feed_status_pb.rb +21 -0
  351. data/lib/google/ads/google_ads/v2/enums/flight_placeholder_field_pb.rb +36 -0
  352. data/lib/google/ads/google_ads/v2/enums/frequency_cap_event_type_pb.rb +21 -0
  353. data/lib/google/ads/google_ads/v2/enums/frequency_cap_level_pb.rb +22 -0
  354. data/lib/google/ads/google_ads/v2/enums/frequency_cap_time_unit_pb.rb +22 -0
  355. data/lib/google/ads/google_ads/v2/enums/gender_type_pb.rb +22 -0
  356. data/lib/google/ads/google_ads/v2/enums/geo_target_constant_status_pb.rb +21 -0
  357. data/lib/google/ads/google_ads/v2/enums/geo_targeting_restriction_pb.rb +20 -0
  358. data/lib/google/ads/google_ads/v2/enums/geo_targeting_type_pb.rb +21 -0
  359. data/lib/google/ads/google_ads/v2/enums/google_ads_field_category_pb.rb +23 -0
  360. data/lib/google/ads/google_ads/v2/enums/google_ads_field_data_type_pb.rb +30 -0
  361. data/lib/google/ads/google_ads/v2/enums/hotel_date_selection_type_pb.rb +21 -0
  362. data/lib/google/ads/google_ads/v2/enums/hotel_placeholder_field_pb.rb +39 -0
  363. data/lib/google/ads/google_ads/v2/enums/hotel_rate_type_pb.rb +23 -0
  364. data/lib/google/ads/google_ads/v2/enums/income_range_type_pb.rb +26 -0
  365. data/lib/google/ads/google_ads/v2/enums/interaction_event_type_pb.rb +23 -0
  366. data/lib/google/ads/google_ads/v2/enums/interaction_type_pb.rb +20 -0
  367. data/lib/google/ads/google_ads/v2/enums/job_placeholder_field_pb.rb +36 -0
  368. data/lib/google/ads/google_ads/v2/enums/keyword_match_type_pb.rb +22 -0
  369. data/lib/google/ads/google_ads/v2/enums/keyword_plan_competition_level_pb.rb +22 -0
  370. data/lib/google/ads/google_ads/v2/enums/keyword_plan_forecast_interval_pb.rb +22 -0
  371. data/lib/google/ads/google_ads/v2/enums/keyword_plan_network_pb.rb +21 -0
  372. data/lib/google/ads/google_ads/v2/enums/label_status_pb.rb +21 -0
  373. data/lib/google/ads/google_ads/v2/enums/legacy_app_install_ad_app_store_pb.rb +24 -0
  374. data/lib/google/ads/google_ads/v2/enums/listing_custom_attribute_index_pb.rb +24 -0
  375. data/lib/google/ads/google_ads/v2/enums/listing_group_type_pb.rb +21 -0
  376. data/lib/google/ads/google_ads/v2/enums/local_placeholder_field_pb.rb +38 -0
  377. data/lib/google/ads/google_ads/v2/enums/location_extension_targeting_criterion_field_pb.rb +25 -0
  378. data/lib/google/ads/google_ads/v2/enums/location_group_radius_units_pb.rb +21 -0
  379. data/lib/google/ads/google_ads/v2/enums/location_placeholder_field_pb.rb +27 -0
  380. data/lib/google/ads/google_ads/v2/enums/manager_link_status_pb.rb +24 -0
  381. data/lib/google/ads/google_ads/v2/enums/matching_function_context_type_pb.rb +21 -0
  382. data/lib/google/ads/google_ads/v2/enums/matching_function_operator_pb.rb +24 -0
  383. data/lib/google/ads/google_ads/v2/enums/media_type_pb.rb +25 -0
  384. data/lib/google/ads/google_ads/v2/enums/merchant_center_link_status_pb.rb +21 -0
  385. data/lib/google/ads/google_ads/v2/enums/message_placeholder_field_pb.rb +24 -0
  386. data/lib/google/ads/google_ads/v2/enums/mime_type_pb.rb +31 -0
  387. data/lib/google/ads/google_ads/v2/enums/minute_of_hour_pb.rb +23 -0
  388. data/lib/google/ads/google_ads/v2/enums/mobile_device_type_pb.rb +21 -0
  389. data/lib/google/ads/google_ads/v2/enums/month_of_year_pb.rb +31 -0
  390. data/lib/google/ads/google_ads/v2/enums/mutate_job_status_pb.rb +22 -0
  391. data/lib/google/ads/google_ads/v2/enums/negative_geo_target_type_pb.rb +21 -0
  392. data/lib/google/ads/google_ads/v2/enums/operating_system_version_operator_type_pb.rb +21 -0
  393. data/lib/google/ads/google_ads/v2/enums/page_one_promoted_strategy_goal_pb.rb +21 -0
  394. data/lib/google/ads/google_ads/v2/enums/parental_status_type_pb.rb +22 -0
  395. data/lib/google/ads/google_ads/v2/enums/payment_mode_pb.rb +22 -0
  396. data/lib/google/ads/google_ads/v2/enums/placeholder_type_pb.rb +38 -0
  397. data/lib/google/ads/google_ads/v2/enums/placement_type_pb.rb +24 -0
  398. data/lib/google/ads/google_ads/v2/enums/policy_approval_status_pb.rb +23 -0
  399. data/lib/google/ads/google_ads/v2/enums/policy_review_status_pb.rb +22 -0
  400. data/lib/google/ads/google_ads/v2/enums/policy_topic_entry_type_pb.rb +25 -0
  401. data/lib/google/ads/google_ads/v2/enums/policy_topic_evidence_destination_mismatch_url_type_pb.rb +24 -0
  402. data/lib/google/ads/google_ads/v2/enums/policy_topic_evidence_destination_not_working_device_pb.rb +22 -0
  403. data/lib/google/ads/google_ads/v2/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb.rb +21 -0
  404. data/lib/google/ads/google_ads/v2/enums/positive_geo_target_type_pb.rb +22 -0
  405. data/lib/google/ads/google_ads/v2/enums/preferred_content_type_pb.rb +20 -0
  406. data/lib/google/ads/google_ads/v2/enums/price_extension_price_qualifier_pb.rb +22 -0
  407. data/lib/google/ads/google_ads/v2/enums/price_extension_price_unit_pb.rb +25 -0
  408. data/lib/google/ads/google_ads/v2/enums/price_extension_type_pb.rb +28 -0
  409. data/lib/google/ads/google_ads/v2/enums/price_placeholder_field_pb.rb +72 -0
  410. data/lib/google/ads/google_ads/v2/enums/product_bidding_category_level_pb.rb +24 -0
  411. data/lib/google/ads/google_ads/v2/enums/product_bidding_category_status_pb.rb +21 -0
  412. data/lib/google/ads/google_ads/v2/enums/product_channel_exclusivity_pb.rb +21 -0
  413. data/lib/google/ads/google_ads/v2/enums/product_channel_pb.rb +21 -0
  414. data/lib/google/ads/google_ads/v2/enums/product_condition_pb.rb +22 -0
  415. data/lib/google/ads/google_ads/v2/enums/product_type_level_pb.rb +24 -0
  416. data/lib/google/ads/google_ads/v2/enums/promotion_extension_discount_modifier_pb.rb +20 -0
  417. data/lib/google/ads/google_ads/v2/enums/promotion_extension_occasion_pb.rb +56 -0
  418. data/lib/google/ads/google_ads/v2/enums/promotion_placeholder_field_pb.rb +33 -0
  419. data/lib/google/ads/google_ads/v2/enums/proximity_radius_units_pb.rb +21 -0
  420. data/lib/google/ads/google_ads/v2/enums/quality_score_bucket_pb.rb +22 -0
  421. data/lib/google/ads/google_ads/v2/enums/real_estate_placeholder_field_pb.rb +37 -0
  422. data/lib/google/ads/google_ads/v2/enums/recommendation_type_pb.rb +33 -0
  423. data/lib/google/ads/google_ads/v2/enums/search_engine_results_page_type_pb.rb +22 -0
  424. data/lib/google/ads/google_ads/v2/enums/search_term_match_type_pb.rb +24 -0
  425. data/lib/google/ads/google_ads/v2/enums/search_term_targeting_status_pb.rb +23 -0
  426. data/lib/google/ads/google_ads/v2/enums/served_asset_field_type_pb.rb +24 -0
  427. data/lib/google/ads/google_ads/v2/enums/shared_set_status_pb.rb +21 -0
  428. data/lib/google/ads/google_ads/v2/enums/shared_set_type_pb.rb +21 -0
  429. data/lib/google/ads/google_ads/v2/enums/simulation_modification_method_pb.rb +21 -0
  430. data/lib/google/ads/google_ads/v2/enums/simulation_type_pb.rb +23 -0
  431. data/lib/google/ads/google_ads/v2/enums/sitelink_placeholder_field_pb.rb +26 -0
  432. data/lib/google/ads/google_ads/v2/enums/slot_pb.rb +26 -0
  433. data/lib/google/ads/google_ads/v2/enums/spending_limit_type_pb.rb +20 -0
  434. data/lib/google/ads/google_ads/v2/enums/structured_snippet_placeholder_field_pb.rb +21 -0
  435. data/lib/google/ads/google_ads/v2/enums/system_managed_entity_source_pb.rb +20 -0
  436. data/lib/google/ads/google_ads/v2/enums/target_cpa_opt_in_recommendation_goal_pb.rb +23 -0
  437. data/lib/google/ads/google_ads/v2/enums/target_impression_share_location_pb.rb +22 -0
  438. data/lib/google/ads/google_ads/v2/enums/targeting_dimension_pb.rb +27 -0
  439. data/lib/google/ads/google_ads/v2/enums/time_type_pb.rb +21 -0
  440. data/lib/google/ads/google_ads/v2/enums/tracking_code_page_format_pb.rb +21 -0
  441. data/lib/google/ads/google_ads/v2/enums/tracking_code_type_pb.rb +23 -0
  442. data/lib/google/ads/google_ads/v2/enums/travel_placeholder_field_pb.rb +39 -0
  443. data/lib/google/ads/google_ads/v2/enums/user_interest_taxonomy_type_pb.rb +24 -0
  444. data/lib/google/ads/google_ads/v2/enums/user_list_access_status_pb.rb +21 -0
  445. data/lib/google/ads/google_ads/v2/enums/user_list_closing_reason_pb.rb +20 -0
  446. data/lib/google/ads/google_ads/v2/enums/user_list_combined_rule_operator_pb.rb +21 -0
  447. data/lib/google/ads/google_ads/v2/enums/user_list_crm_data_source_type_pb.rb +22 -0
  448. data/lib/google/ads/google_ads/v2/enums/user_list_date_rule_item_operator_pb.rb +23 -0
  449. data/lib/google/ads/google_ads/v2/enums/user_list_logical_rule_operator_pb.rb +22 -0
  450. data/lib/google/ads/google_ads/v2/enums/user_list_membership_status_pb.rb +21 -0
  451. data/lib/google/ads/google_ads/v2/enums/user_list_number_rule_item_operator_pb.rb +25 -0
  452. data/lib/google/ads/google_ads/v2/enums/user_list_prepopulation_status_pb.rb +22 -0
  453. data/lib/google/ads/google_ads/v2/enums/user_list_rule_type_pb.rb +21 -0
  454. data/lib/google/ads/google_ads/v2/enums/user_list_size_range_pb.rb +35 -0
  455. data/lib/google/ads/google_ads/v2/enums/user_list_string_rule_item_operator_pb.rb +27 -0
  456. data/lib/google/ads/google_ads/v2/enums/user_list_type_pb.rb +25 -0
  457. data/lib/google/ads/google_ads/v2/enums/vanity_pharma_display_url_mode_pb.rb +21 -0
  458. data/lib/google/ads/google_ads/v2/enums/vanity_pharma_text_pb.rb +31 -0
  459. data/lib/google/ads/google_ads/v2/enums/webpage_condition_operand_pb.rb +24 -0
  460. data/lib/google/ads/google_ads/v2/enums/webpage_condition_operator_pb.rb +21 -0
  461. data/lib/google/ads/google_ads/v2/errors/access_invitation_error_pb.rb +21 -0
  462. data/lib/google/ads/google_ads/v2/errors/account_budget_proposal_error_pb.rb +41 -0
  463. data/lib/google/ads/google_ads/v2/errors/ad_customizer_error_pb.rb +24 -0
  464. data/lib/google/ads/google_ads/v2/errors/ad_error_pb.rb +148 -0
  465. data/lib/google/ads/google_ads/v2/errors/ad_group_ad_error_pb.rb +27 -0
  466. data/lib/google/ads/google_ads/v2/errors/ad_group_bid_modifier_error_pb.rb +21 -0
  467. data/lib/google/ads/google_ads/v2/errors/ad_group_criterion_error_pb.rb +56 -0
  468. data/lib/google/ads/google_ads/v2/errors/ad_group_error_pb.rb +31 -0
  469. data/lib/google/ads/google_ads/v2/errors/ad_group_feed_error_pb.rb +26 -0
  470. data/lib/google/ads/google_ads/v2/errors/ad_parameter_error_pb.rb +21 -0
  471. data/lib/google/ads/google_ads/v2/errors/ad_sharing_error_pb.rb +22 -0
  472. data/lib/google/ads/google_ads/v2/errors/adx_error_pb.rb +20 -0
  473. data/lib/google/ads/google_ads/v2/errors/asset_error_pb.rb +24 -0
  474. data/lib/google/ads/google_ads/v2/errors/authentication_error_pb.rb +37 -0
  475. data/lib/google/ads/google_ads/v2/errors/authorization_error_pb.rb +29 -0
  476. data/lib/google/ads/google_ads/v2/errors/bidding_error_pb.rb +42 -0
  477. data/lib/google/ads/google_ads/v2/errors/bidding_strategy_error_pb.rb +24 -0
  478. data/lib/google/ads/google_ads/v2/errors/billing_setup_error_pb.rb +34 -0
  479. data/lib/google/ads/google_ads/v2/errors/campaign_budget_error_pb.rb +34 -0
  480. data/lib/google/ads/google_ads/v2/errors/campaign_criterion_error_pb.rb +30 -0
  481. data/lib/google/ads/google_ads/v2/errors/campaign_draft_error_pb.rb +29 -0
  482. data/lib/google/ads/google_ads/v2/errors/campaign_error_pb.rb +59 -0
  483. data/lib/google/ads/google_ads/v2/errors/campaign_experiment_error_pb.rb +29 -0
  484. data/lib/google/ads/google_ads/v2/errors/campaign_feed_error_pb.rb +25 -0
  485. data/lib/google/ads/google_ads/v2/errors/campaign_shared_set_error_pb.rb +20 -0
  486. data/lib/google/ads/google_ads/v2/errors/change_status_error_pb.rb +20 -0
  487. data/lib/google/ads/google_ads/v2/errors/collection_size_error_pb.rb +21 -0
  488. data/lib/google/ads/google_ads/v2/errors/context_error_pb.rb +21 -0
  489. data/lib/google/ads/google_ads/v2/errors/conversion_action_error_pb.rb +27 -0
  490. data/lib/google/ads/google_ads/v2/errors/conversion_adjustment_upload_error_pb.rb +28 -0
  491. data/lib/google/ads/google_ads/v2/errors/conversion_upload_error_pb.rb +40 -0
  492. data/lib/google/ads/google_ads/v2/errors/country_code_error_pb.rb +20 -0
  493. data/lib/google/ads/google_ads/v2/errors/criterion_error_pb.rb +116 -0
  494. data/lib/google/ads/google_ads/v2/errors/currency_code_error_pb.rb +20 -0
  495. data/lib/google/ads/google_ads/v2/errors/custom_interest_error_pb.rb +26 -0
  496. data/lib/google/ads/google_ads/v2/errors/customer_client_link_error_pb.rb +26 -0
  497. data/lib/google/ads/google_ads/v2/errors/customer_error_pb.rb +21 -0
  498. data/lib/google/ads/google_ads/v2/errors/customer_feed_error_pb.rb +26 -0
  499. data/lib/google/ads/google_ads/v2/errors/customer_manager_link_error_pb.rb +27 -0
  500. data/lib/google/ads/google_ads/v2/errors/database_error_pb.rb +21 -0
  501. data/lib/google/ads/google_ads/v2/errors/date_error_pb.rb +29 -0
  502. data/lib/google/ads/google_ads/v2/errors/date_range_error_pb.rb +24 -0
  503. data/lib/google/ads/google_ads/v2/errors/distinct_error_pb.rb +21 -0
  504. data/lib/google/ads/google_ads/v2/errors/enum_error_pb.rb +20 -0
  505. data/lib/google/ads/google_ads/v2/errors/errors_pb.rb +265 -0
  506. data/lib/google/ads/google_ads/v2/errors/extension_feed_item_error_pb.rb +62 -0
  507. data/lib/google/ads/google_ads/v2/errors/extension_setting_error_pb.rb +83 -0
  508. data/lib/google/ads/google_ads/v2/errors/feed_attribute_reference_error_pb.rb +22 -0
  509. data/lib/google/ads/google_ads/v2/errors/feed_error_pb.rb +39 -0
  510. data/lib/google/ads/google_ads/v2/errors/feed_item_error_pb.rb +28 -0
  511. data/lib/google/ads/google_ads/v2/errors/feed_item_target_error_pb.rb +27 -0
  512. data/lib/google/ads/google_ads/v2/errors/feed_item_validation_error_pb.rb +114 -0
  513. data/lib/google/ads/google_ads/v2/errors/feed_mapping_error_pb.rb +35 -0
  514. data/lib/google/ads/google_ads/v2/errors/field_error_pb.rb +26 -0
  515. data/lib/google/ads/google_ads/v2/errors/field_mask_error_pb.rb +23 -0
  516. data/lib/google/ads/google_ads/v2/errors/function_error_pb.rb +35 -0
  517. data/lib/google/ads/google_ads/v2/errors/function_parsing_error_pb.rb +30 -0
  518. data/lib/google/ads/google_ads/v2/errors/geo_target_constant_suggestion_error_pb.rb +23 -0
  519. data/lib/google/ads/google_ads/v2/errors/header_error_pb.rb +20 -0
  520. data/lib/google/ads/google_ads/v2/errors/id_error_pb.rb +20 -0
  521. data/lib/google/ads/google_ads/v2/errors/image_error_pb.rb +56 -0
  522. data/lib/google/ads/google_ads/v2/errors/internal_error_pb.rb +22 -0
  523. data/lib/google/ads/google_ads/v2/errors/keyword_plan_ad_group_error_pb.rb +21 -0
  524. data/lib/google/ads/google_ads/v2/errors/keyword_plan_campaign_error_pb.rb +24 -0
  525. data/lib/google/ads/google_ads/v2/errors/keyword_plan_error_pb.rb +33 -0
  526. data/lib/google/ads/google_ads/v2/errors/keyword_plan_idea_error_pb.rb +21 -0
  527. data/lib/google/ads/google_ads/v2/errors/keyword_plan_keyword_error_pb.rb +25 -0
  528. data/lib/google/ads/google_ads/v2/errors/keyword_plan_negative_keyword_error_pb.rb +19 -0
  529. data/lib/google/ads/google_ads/v2/errors/label_error_pb.rb +28 -0
  530. data/lib/google/ads/google_ads/v2/errors/language_code_error_pb.rb +21 -0
  531. data/lib/google/ads/google_ads/v2/errors/list_operation_error_pb.rb +21 -0
  532. data/lib/google/ads/google_ads/v2/errors/manager_link_error_pb.rb +33 -0
  533. data/lib/google/ads/google_ads/v2/errors/media_bundle_error_pb.rb +41 -0
  534. data/lib/google/ads/google_ads/v2/errors/media_file_error_pb.rb +42 -0
  535. data/lib/google/ads/google_ads/v2/errors/media_upload_error_pb.rb +23 -0
  536. data/lib/google/ads/google_ads/v2/errors/multiplier_error_pb.rb +31 -0
  537. data/lib/google/ads/google_ads/v2/errors/mutate_error_pb.rb +25 -0
  538. data/lib/google/ads/google_ads/v2/errors/mutate_job_error_pb.rb +24 -0
  539. data/lib/google/ads/google_ads/v2/errors/new_resource_creation_error_pb.rb +22 -0
  540. data/lib/google/ads/google_ads/v2/errors/not_empty_error_pb.rb +20 -0
  541. data/lib/google/ads/google_ads/v2/errors/not_whitelisted_error_pb.rb +20 -0
  542. data/lib/google/ads/google_ads/v2/errors/null_error_pb.rb +20 -0
  543. data/lib/google/ads/google_ads/v2/errors/operation_access_denied_error_pb.rb +29 -0
  544. data/lib/google/ads/google_ads/v2/errors/operator_error_pb.rb +20 -0
  545. data/lib/google/ads/google_ads/v2/errors/partial_failure_error_pb.rb +20 -0
  546. data/lib/google/ads/google_ads/v2/errors/policy_finding_error_pb.rb +21 -0
  547. data/lib/google/ads/google_ads/v2/errors/policy_validation_parameter_error_pb.rb +22 -0
  548. data/lib/google/ads/google_ads/v2/errors/policy_violation_error_pb.rb +20 -0
  549. data/lib/google/ads/google_ads/v2/errors/query_error_pb.rb +72 -0
  550. data/lib/google/ads/google_ads/v2/errors/quota_error_pb.rb +22 -0
  551. data/lib/google/ads/google_ads/v2/errors/range_error_pb.rb +21 -0
  552. data/lib/google/ads/google_ads/v2/errors/recommendation_error_pb.rb +33 -0
  553. data/lib/google/ads/google_ads/v2/errors/region_code_error_pb.rb +20 -0
  554. data/lib/google/ads/google_ads/v2/errors/request_error_pb.rb +40 -0
  555. data/lib/google/ads/google_ads/v2/errors/resource_access_denied_error_pb.rb +20 -0
  556. data/lib/google/ads/google_ads/v2/errors/resource_count_limit_exceeded_error_pb.rb +28 -0
  557. data/lib/google/ads/google_ads/v2/errors/setting_error_pb.rb +36 -0
  558. data/lib/google/ads/google_ads/v2/errors/shared_criterion_error_pb.rb +20 -0
  559. data/lib/google/ads/google_ads/v2/errors/shared_set_error_pb.rb +23 -0
  560. data/lib/google/ads/google_ads/v2/errors/size_limit_error_pb.rb +21 -0
  561. data/lib/google/ads/google_ads/v2/errors/string_format_error_pb.rb +21 -0
  562. data/lib/google/ads/google_ads/v2/errors/string_length_error_pb.rb +21 -0
  563. data/lib/google/ads/google_ads/v2/errors/url_field_error_pb.rb +71 -0
  564. data/lib/google/ads/google_ads/v2/errors/user_list_error_pb.rb +45 -0
  565. data/lib/google/ads/google_ads/v2/errors/youtube_video_registration_error_pb.rb +21 -0
  566. data/lib/google/ads/google_ads/v2/resources/account_budget_pb.rb +69 -0
  567. data/lib/google/ads/google_ads/v2/resources/account_budget_proposal_pb.rb +51 -0
  568. data/lib/google/ads/google_ads/v2/resources/ad_group_ad_asset_view_pb.rb +32 -0
  569. data/lib/google/ads/google_ads/v2/resources/ad_group_ad_label_pb.rb +18 -0
  570. data/lib/google/ads/google_ads/v2/resources/ad_group_ad_pb.rb +33 -0
  571. data/lib/google/ads/google_ads/v2/resources/ad_group_audience_view_pb.rb +15 -0
  572. data/lib/google/ads/google_ads/v2/resources/ad_group_bid_modifier_pb.rb +31 -0
  573. data/lib/google/ads/google_ads/v2/resources/ad_group_criterion_label_pb.rb +18 -0
  574. data/lib/google/ads/google_ads/v2/resources/ad_group_criterion_pb.rb +86 -0
  575. data/lib/google/ads/google_ads/v2/resources/ad_group_criterion_simulation_pb.rb +28 -0
  576. data/lib/google/ads/google_ads/v2/resources/ad_group_extension_setting_pb.rb +22 -0
  577. data/lib/google/ads/google_ads/v2/resources/ad_group_feed_pb.rb +24 -0
  578. data/lib/google/ads/google_ads/v2/resources/ad_group_label_pb.rb +18 -0
  579. data/lib/google/ads/google_ads/v2/resources/ad_group_pb.rb +49 -0
  580. data/lib/google/ads/google_ads/v2/resources/ad_group_simulation_pb.rb +29 -0
  581. data/lib/google/ads/google_ads/v2/resources/ad_parameter_pb.rb +19 -0
  582. data/lib/google/ads/google_ads/v2/resources/ad_pb.rb +56 -0
  583. data/lib/google/ads/google_ads/v2/resources/ad_schedule_view_pb.rb +15 -0
  584. data/lib/google/ads/google_ads/v2/resources/age_range_view_pb.rb +15 -0
  585. data/lib/google/ads/google_ads/v2/resources/asset_pb.rb +27 -0
  586. data/lib/google/ads/google_ads/v2/resources/bidding_strategy_pb.rb +34 -0
  587. data/lib/google/ads/google_ads/v2/resources/billing_setup_pb.rb +38 -0
  588. data/lib/google/ads/google_ads/v2/resources/campaign_audience_view_pb.rb +15 -0
  589. data/lib/google/ads/google_ads/v2/resources/campaign_bid_modifier_pb.rb +23 -0
  590. data/lib/google/ads/google_ads/v2/resources/campaign_budget_pb.rb +36 -0
  591. data/lib/google/ads/google_ads/v2/resources/campaign_criterion_pb.rb +53 -0
  592. data/lib/google/ads/google_ads/v2/resources/campaign_criterion_simulation_pb.rb +28 -0
  593. data/lib/google/ads/google_ads/v2/resources/campaign_draft_pb.rb +24 -0
  594. data/lib/google/ads/google_ads/v2/resources/campaign_experiment_pb.rb +29 -0
  595. data/lib/google/ads/google_ads/v2/resources/campaign_extension_setting_pb.rb +22 -0
  596. data/lib/google/ads/google_ads/v2/resources/campaign_feed_pb.rb +24 -0
  597. data/lib/google/ads/google_ads/v2/resources/campaign_label_pb.rb +18 -0
  598. data/lib/google/ads/google_ads/v2/resources/campaign_pb.rb +131 -0
  599. data/lib/google/ads/google_ads/v2/resources/campaign_shared_set_pb.rb +20 -0
  600. data/lib/google/ads/google_ads/v2/resources/carrier_constant_pb.rb +19 -0
  601. data/lib/google/ads/google_ads/v2/resources/change_status_pb.rb +31 -0
  602. data/lib/google/ads/google_ads/v2/resources/click_view_pb.rb +22 -0
  603. data/lib/google/ads/google_ads/v2/resources/conversion_action_pb.rb +49 -0
  604. data/lib/google/ads/google_ads/v2/resources/custom_interest_pb.rb +30 -0
  605. data/lib/google/ads/google_ads/v2/resources/customer_client_link_pb.rb +21 -0
  606. data/lib/google/ads/google_ads/v2/resources/customer_client_pb.rb +19 -0
  607. data/lib/google/ads/google_ads/v2/resources/customer_extension_setting_pb.rb +21 -0
  608. data/lib/google/ads/google_ads/v2/resources/customer_feed_pb.rb +23 -0
  609. data/lib/google/ads/google_ads/v2/resources/customer_label_pb.rb +18 -0
  610. data/lib/google/ads/google_ads/v2/resources/customer_manager_link_pb.rb +20 -0
  611. data/lib/google/ads/google_ads/v2/resources/customer_negative_criterion_pb.rb +28 -0
  612. data/lib/google/ads/google_ads/v2/resources/customer_pb.rb +46 -0
  613. data/lib/google/ads/google_ads/v2/resources/detail_placement_view_pb.rb +22 -0
  614. data/lib/google/ads/google_ads/v2/resources/display_keyword_view_pb.rb +15 -0
  615. data/lib/google/ads/google_ads/v2/resources/distance_view_pb.rb +19 -0
  616. data/lib/google/ads/google_ads/v2/resources/domain_category_pb.rb +24 -0
  617. data/lib/google/ads/google_ads/v2/resources/dynamic_search_ads_search_term_view_pb.rb +20 -0
  618. data/lib/google/ads/google_ads/v2/resources/expanded_landing_page_view_pb.rb +17 -0
  619. data/lib/google/ads/google_ads/v2/resources/extension_feed_item_pb.rb +45 -0
  620. data/lib/google/ads/google_ads/v2/resources/feed_item_pb.rb +69 -0
  621. data/lib/google/ads/google_ads/v2/resources/feed_item_target_pb.rb +30 -0
  622. data/lib/google/ads/google_ads/v2/resources/feed_mapping_pb.rb +75 -0
  623. data/lib/google/ads/google_ads/v2/resources/feed_pb.rb +68 -0
  624. data/lib/google/ads/google_ads/v2/resources/feed_placeholder_view_pb.rb +17 -0
  625. data/lib/google/ads/google_ads/v2/resources/gender_view_pb.rb +15 -0
  626. data/lib/google/ads/google_ads/v2/resources/geo_target_constant_pb.rb +23 -0
  627. data/lib/google/ads/google_ads/v2/resources/geographic_view_pb.rb +19 -0
  628. data/lib/google/ads/google_ads/v2/resources/google_ads_field_pb.rb +31 -0
  629. data/lib/google/ads/google_ads/v2/resources/group_placement_view_pb.rb +21 -0
  630. data/lib/google/ads/google_ads/v2/resources/hotel_group_view_pb.rb +15 -0
  631. data/lib/google/ads/google_ads/v2/resources/hotel_performance_view_pb.rb +15 -0
  632. data/lib/google/ads/google_ads/v2/resources/keyword_plan_ad_group_pb.rb +20 -0
  633. data/lib/google/ads/google_ads/v2/resources/keyword_plan_campaign_pb.rb +28 -0
  634. data/lib/google/ads/google_ads/v2/resources/keyword_plan_keyword_pb.rb +22 -0
  635. data/lib/google/ads/google_ads/v2/resources/keyword_plan_negative_keyword_pb.rb +21 -0
  636. data/lib/google/ads/google_ads/v2/resources/keyword_plan_pb.rb +28 -0
  637. data/lib/google/ads/google_ads/v2/resources/keyword_view_pb.rb +15 -0
  638. data/lib/google/ads/google_ads/v2/resources/label_pb.rb +22 -0
  639. data/lib/google/ads/google_ads/v2/resources/landing_page_view_pb.rb +17 -0
  640. data/lib/google/ads/google_ads/v2/resources/language_constant_pb.rb +20 -0
  641. data/lib/google/ads/google_ads/v2/resources/location_view_pb.rb +15 -0
  642. data/lib/google/ads/google_ads/v2/resources/managed_placement_view_pb.rb +15 -0
  643. data/lib/google/ads/google_ads/v2/resources/media_file_pb.rb +49 -0
  644. data/lib/google/ads/google_ads/v2/resources/merchant_center_link_pb.rb +20 -0
  645. data/lib/google/ads/google_ads/v2/resources/mobile_app_category_constant_pb.rb +18 -0
  646. data/lib/google/ads/google_ads/v2/resources/mobile_device_constant_pb.rb +22 -0
  647. data/lib/google/ads/google_ads/v2/resources/mutate_job_pb.rb +30 -0
  648. data/lib/google/ads/google_ads/v2/resources/operating_system_version_constant_pb.rb +22 -0
  649. data/lib/google/ads/google_ads/v2/resources/paid_organic_search_term_view_pb.rb +17 -0
  650. data/lib/google/ads/google_ads/v2/resources/parental_status_view_pb.rb +15 -0
  651. data/lib/google/ads/google_ads/v2/resources/payments_account_pb.rb +21 -0
  652. data/lib/google/ads/google_ads/v2/resources/product_bidding_category_constant_pb.rb +25 -0
  653. data/lib/google/ads/google_ads/v2/resources/product_group_view_pb.rb +15 -0
  654. data/lib/google/ads/google_ads/v2/resources/recommendation_pb.rb +130 -0
  655. data/lib/google/ads/google_ads/v2/resources/remarketing_action_pb.rb +20 -0
  656. data/lib/google/ads/google_ads/v2/resources/search_term_view_pb.rb +20 -0
  657. data/lib/google/ads/google_ads/v2/resources/shared_criterion_pb.rb +29 -0
  658. data/lib/google/ads/google_ads/v2/resources/shared_set_pb.rb +24 -0
  659. data/lib/google/ads/google_ads/v2/resources/shopping_performance_view_pb.rb +15 -0
  660. data/lib/google/ads/google_ads/v2/resources/topic_constant_pb.rb +19 -0
  661. data/lib/google/ads/google_ads/v2/resources/topic_view_pb.rb +15 -0
  662. data/lib/google/ads/google_ads/v2/resources/user_interest_pb.rb +24 -0
  663. data/lib/google/ads/google_ads/v2/resources/user_list_pb.rb +47 -0
  664. data/lib/google/ads/google_ads/v2/resources/user_location_view_pb.rb +18 -0
  665. data/lib/google/ads/google_ads/v2/resources/video_pb.rb +20 -0
  666. data/lib/google/ads/google_ads/v2/services/account_budget_proposal_service_client.rb +292 -0
  667. data/lib/google/ads/google_ads/v2/services/account_budget_proposal_service_client_config.json +36 -0
  668. data/lib/google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb +40 -0
  669. data/lib/google/ads/google_ads/v2/services/account_budget_proposal_service_services_pb.rb +58 -0
  670. data/lib/google/ads/google_ads/v2/services/account_budget_service_client.rb +226 -0
  671. data/lib/google/ads/google_ads/v2/services/account_budget_service_client_config.json +31 -0
  672. data/lib/google/ads/google_ads/v2/services/account_budget_service_pb.rb +17 -0
  673. data/lib/google/ads/google_ads/v2/services/account_budget_service_services_pb.rb +44 -0
  674. data/lib/google/ads/google_ads/v2/services/ad_group_ad_asset_view_service_client.rb +224 -0
  675. data/lib/google/ads/google_ads/v2/services/ad_group_ad_asset_view_service_client_config.json +31 -0
  676. data/lib/google/ads/google_ads/v2/services/ad_group_ad_asset_view_service_pb.rb +17 -0
  677. data/lib/google/ads/google_ads/v2/services/ad_group_ad_asset_view_service_services_pb.rb +42 -0
  678. data/lib/google/ads/google_ads/v2/services/ad_group_ad_label_service_client.rb +286 -0
  679. data/lib/google/ads/google_ads/v2/services/ad_group_ad_label_service_client_config.json +36 -0
  680. data/lib/google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb +41 -0
  681. data/lib/google/ads/google_ads/v2/services/ad_group_ad_label_service_services_pb.rb +45 -0
  682. data/lib/google/ads/google_ads/v2/services/ad_group_ad_service_client.rb +285 -0
  683. data/lib/google/ads/google_ads/v2/services/ad_group_ad_service_client_config.json +36 -0
  684. data/lib/google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb +46 -0
  685. data/lib/google/ads/google_ads/v2/services/ad_group_ad_service_services_pb.rb +44 -0
  686. data/lib/google/ads/google_ads/v2/services/ad_group_audience_view_service_client.rb +224 -0
  687. data/lib/google/ads/google_ads/v2/services/ad_group_audience_view_service_client_config.json +31 -0
  688. data/lib/google/ads/google_ads/v2/services/ad_group_audience_view_service_pb.rb +17 -0
  689. data/lib/google/ads/google_ads/v2/services/ad_group_audience_view_service_services_pb.rb +42 -0
  690. data/lib/google/ads/google_ads/v2/services/ad_group_bid_modifier_service_client.rb +286 -0
  691. data/lib/google/ads/google_ads/v2/services/ad_group_bid_modifier_service_client_config.json +36 -0
  692. data/lib/google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb +44 -0
  693. data/lib/google/ads/google_ads/v2/services/ad_group_bid_modifier_service_services_pb.rb +45 -0
  694. data/lib/google/ads/google_ads/v2/services/ad_group_criterion_label_service_client.rb +286 -0
  695. data/lib/google/ads/google_ads/v2/services/ad_group_criterion_label_service_client_config.json +36 -0
  696. data/lib/google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb +41 -0
  697. data/lib/google/ads/google_ads/v2/services/ad_group_criterion_label_service_services_pb.rb +45 -0
  698. data/lib/google/ads/google_ads/v2/services/ad_group_criterion_service_client.rb +285 -0
  699. data/lib/google/ads/google_ads/v2/services/ad_group_criterion_service_client_config.json +36 -0
  700. data/lib/google/ads/google_ads/v2/services/ad_group_criterion_service_pb.rb +46 -0
  701. data/lib/google/ads/google_ads/v2/services/ad_group_criterion_service_services_pb.rb +44 -0
  702. data/lib/google/ads/google_ads/v2/services/ad_group_criterion_simulation_service_client.rb +224 -0
  703. data/lib/google/ads/google_ads/v2/services/ad_group_criterion_simulation_service_client_config.json +31 -0
  704. data/lib/google/ads/google_ads/v2/services/ad_group_criterion_simulation_service_pb.rb +17 -0
  705. data/lib/google/ads/google_ads/v2/services/ad_group_criterion_simulation_service_services_pb.rb +42 -0
  706. data/lib/google/ads/google_ads/v2/services/ad_group_extension_setting_service_client.rb +288 -0
  707. data/lib/google/ads/google_ads/v2/services/ad_group_extension_setting_service_client_config.json +36 -0
  708. data/lib/google/ads/google_ads/v2/services/ad_group_extension_setting_service_pb.rb +44 -0
  709. data/lib/google/ads/google_ads/v2/services/ad_group_extension_setting_service_services_pb.rb +45 -0
  710. data/lib/google/ads/google_ads/v2/services/ad_group_feed_service_client.rb +286 -0
  711. data/lib/google/ads/google_ads/v2/services/ad_group_feed_service_client_config.json +36 -0
  712. data/lib/google/ads/google_ads/v2/services/ad_group_feed_service_pb.rb +44 -0
  713. data/lib/google/ads/google_ads/v2/services/ad_group_feed_service_services_pb.rb +45 -0
  714. data/lib/google/ads/google_ads/v2/services/ad_group_label_service_client.rb +286 -0
  715. data/lib/google/ads/google_ads/v2/services/ad_group_label_service_client_config.json +36 -0
  716. data/lib/google/ads/google_ads/v2/services/ad_group_label_service_pb.rb +41 -0
  717. data/lib/google/ads/google_ads/v2/services/ad_group_label_service_services_pb.rb +45 -0
  718. data/lib/google/ads/google_ads/v2/services/ad_group_service_client.rb +285 -0
  719. data/lib/google/ads/google_ads/v2/services/ad_group_service_client_config.json +36 -0
  720. data/lib/google/ads/google_ads/v2/services/ad_group_service_pb.rb +44 -0
  721. data/lib/google/ads/google_ads/v2/services/ad_group_service_services_pb.rb +44 -0
  722. data/lib/google/ads/google_ads/v2/services/ad_group_simulation_service_client.rb +224 -0
  723. data/lib/google/ads/google_ads/v2/services/ad_group_simulation_service_client_config.json +31 -0
  724. data/lib/google/ads/google_ads/v2/services/ad_group_simulation_service_pb.rb +17 -0
  725. data/lib/google/ads/google_ads/v2/services/ad_group_simulation_service_services_pb.rb +42 -0
  726. data/lib/google/ads/google_ads/v2/services/ad_parameter_service_client.rb +286 -0
  727. data/lib/google/ads/google_ads/v2/services/ad_parameter_service_client_config.json +36 -0
  728. data/lib/google/ads/google_ads/v2/services/ad_parameter_service_pb.rb +44 -0
  729. data/lib/google/ads/google_ads/v2/services/ad_parameter_service_services_pb.rb +45 -0
  730. data/lib/google/ads/google_ads/v2/services/ad_schedule_view_service_client.rb +224 -0
  731. data/lib/google/ads/google_ads/v2/services/ad_schedule_view_service_client_config.json +31 -0
  732. data/lib/google/ads/google_ads/v2/services/ad_schedule_view_service_pb.rb +17 -0
  733. data/lib/google/ads/google_ads/v2/services/ad_schedule_view_service_services_pb.rb +42 -0
  734. data/lib/google/ads/google_ads/v2/services/ad_service_client.rb +273 -0
  735. data/lib/google/ads/google_ads/v2/services/ad_service_client_config.json +36 -0
  736. data/lib/google/ads/google_ads/v2/services/ad_service_pb.rb +38 -0
  737. data/lib/google/ads/google_ads/v2/services/ad_service_services_pb.rb +44 -0
  738. data/lib/google/ads/google_ads/v2/services/age_range_view_service_client.rb +224 -0
  739. data/lib/google/ads/google_ads/v2/services/age_range_view_service_client_config.json +31 -0
  740. data/lib/google/ads/google_ads/v2/services/age_range_view_service_pb.rb +17 -0
  741. data/lib/google/ads/google_ads/v2/services/age_range_view_service_services_pb.rb +42 -0
  742. data/lib/google/ads/google_ads/v2/services/asset_service_client.rb +275 -0
  743. data/lib/google/ads/google_ads/v2/services/asset_service_client_config.json +36 -0
  744. data/lib/google/ads/google_ads/v2/services/asset_service_pb.rb +36 -0
  745. data/lib/google/ads/google_ads/v2/services/asset_service_services_pb.rb +46 -0
  746. data/lib/google/ads/google_ads/v2/services/bidding_strategy_service_client.rb +286 -0
  747. data/lib/google/ads/google_ads/v2/services/bidding_strategy_service_client_config.json +36 -0
  748. data/lib/google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb +44 -0
  749. data/lib/google/ads/google_ads/v2/services/bidding_strategy_service_services_pb.rb +45 -0
  750. data/lib/google/ads/google_ads/v2/services/billing_setup_service_client.rb +281 -0
  751. data/lib/google/ads/google_ads/v2/services/billing_setup_service_client_config.json +36 -0
  752. data/lib/google/ads/google_ads/v2/services/billing_setup_service_pb.rb +37 -0
  753. data/lib/google/ads/google_ads/v2/services/billing_setup_service_services_pb.rb +52 -0
  754. data/lib/google/ads/google_ads/v2/services/campaign_audience_view_service_client.rb +224 -0
  755. data/lib/google/ads/google_ads/v2/services/campaign_audience_view_service_client_config.json +31 -0
  756. data/lib/google/ads/google_ads/v2/services/campaign_audience_view_service_pb.rb +17 -0
  757. data/lib/google/ads/google_ads/v2/services/campaign_audience_view_service_services_pb.rb +42 -0
  758. data/lib/google/ads/google_ads/v2/services/campaign_bid_modifier_service_client.rb +286 -0
  759. data/lib/google/ads/google_ads/v2/services/campaign_bid_modifier_service_client_config.json +36 -0
  760. data/lib/google/ads/google_ads/v2/services/campaign_bid_modifier_service_pb.rb +44 -0
  761. data/lib/google/ads/google_ads/v2/services/campaign_bid_modifier_service_services_pb.rb +45 -0
  762. data/lib/google/ads/google_ads/v2/services/campaign_budget_service_client.rb +286 -0
  763. data/lib/google/ads/google_ads/v2/services/campaign_budget_service_client_config.json +36 -0
  764. data/lib/google/ads/google_ads/v2/services/campaign_budget_service_pb.rb +44 -0
  765. data/lib/google/ads/google_ads/v2/services/campaign_budget_service_services_pb.rb +45 -0
  766. data/lib/google/ads/google_ads/v2/services/campaign_criterion_service_client.rb +285 -0
  767. data/lib/google/ads/google_ads/v2/services/campaign_criterion_service_client_config.json +36 -0
  768. data/lib/google/ads/google_ads/v2/services/campaign_criterion_service_pb.rb +44 -0
  769. data/lib/google/ads/google_ads/v2/services/campaign_criterion_service_services_pb.rb +44 -0
  770. data/lib/google/ads/google_ads/v2/services/campaign_criterion_simulation_service_client.rb +224 -0
  771. data/lib/google/ads/google_ads/v2/services/campaign_criterion_simulation_service_client_config.json +31 -0
  772. data/lib/google/ads/google_ads/v2/services/campaign_criterion_simulation_service_pb.rb +17 -0
  773. data/lib/google/ads/google_ads/v2/services/campaign_criterion_simulation_service_services_pb.rb +42 -0
  774. data/lib/google/ads/google_ads/v2/services/campaign_draft_service_client.rb +452 -0
  775. data/lib/google/ads/google_ads/v2/services/campaign_draft_service_client_config.json +46 -0
  776. data/lib/google/ads/google_ads/v2/services/campaign_draft_service_pb.rb +60 -0
  777. data/lib/google/ads/google_ads/v2/services/campaign_draft_service_services_pb.rb +59 -0
  778. data/lib/google/ads/google_ads/v2/services/campaign_experiment_service_client.rb +638 -0
  779. data/lib/google/ads/google_ads/v2/services/campaign_experiment_service_client_config.json +61 -0
  780. data/lib/google/ads/google_ads/v2/services/campaign_experiment_service_pb.rb +83 -0
  781. data/lib/google/ads/google_ads/v2/services/campaign_experiment_service_services_pb.rb +82 -0
  782. data/lib/google/ads/google_ads/v2/services/campaign_extension_setting_service_client.rb +288 -0
  783. data/lib/google/ads/google_ads/v2/services/campaign_extension_setting_service_client_config.json +36 -0
  784. data/lib/google/ads/google_ads/v2/services/campaign_extension_setting_service_pb.rb +44 -0
  785. data/lib/google/ads/google_ads/v2/services/campaign_extension_setting_service_services_pb.rb +45 -0
  786. data/lib/google/ads/google_ads/v2/services/campaign_feed_service_client.rb +286 -0
  787. data/lib/google/ads/google_ads/v2/services/campaign_feed_service_client_config.json +36 -0
  788. data/lib/google/ads/google_ads/v2/services/campaign_feed_service_pb.rb +44 -0
  789. data/lib/google/ads/google_ads/v2/services/campaign_feed_service_services_pb.rb +45 -0
  790. data/lib/google/ads/google_ads/v2/services/campaign_label_service_client.rb +286 -0
  791. data/lib/google/ads/google_ads/v2/services/campaign_label_service_client_config.json +36 -0
  792. data/lib/google/ads/google_ads/v2/services/campaign_label_service_pb.rb +41 -0
  793. data/lib/google/ads/google_ads/v2/services/campaign_label_service_services_pb.rb +45 -0
  794. data/lib/google/ads/google_ads/v2/services/campaign_service_client.rb +285 -0
  795. data/lib/google/ads/google_ads/v2/services/campaign_service_client_config.json +36 -0
  796. data/lib/google/ads/google_ads/v2/services/campaign_service_pb.rb +44 -0
  797. data/lib/google/ads/google_ads/v2/services/campaign_service_services_pb.rb +44 -0
  798. data/lib/google/ads/google_ads/v2/services/campaign_shared_set_service_client.rb +285 -0
  799. data/lib/google/ads/google_ads/v2/services/campaign_shared_set_service_client_config.json +36 -0
  800. data/lib/google/ads/google_ads/v2/services/campaign_shared_set_service_pb.rb +41 -0
  801. data/lib/google/ads/google_ads/v2/services/campaign_shared_set_service_services_pb.rb +44 -0
  802. data/lib/google/ads/google_ads/v2/services/carrier_constant_service_client.rb +222 -0
  803. data/lib/google/ads/google_ads/v2/services/carrier_constant_service_client_config.json +31 -0
  804. data/lib/google/ads/google_ads/v2/services/carrier_constant_service_pb.rb +17 -0
  805. data/lib/google/ads/google_ads/v2/services/carrier_constant_service_services_pb.rb +42 -0
  806. data/lib/google/ads/google_ads/v2/services/change_status_service_client.rb +224 -0
  807. data/lib/google/ads/google_ads/v2/services/change_status_service_client_config.json +31 -0
  808. data/lib/google/ads/google_ads/v2/services/change_status_service_pb.rb +17 -0
  809. data/lib/google/ads/google_ads/v2/services/change_status_service_services_pb.rb +42 -0
  810. data/lib/google/ads/google_ads/v2/services/click_view_service_client.rb +224 -0
  811. data/lib/google/ads/google_ads/v2/services/click_view_service_client_config.json +31 -0
  812. data/lib/google/ads/google_ads/v2/services/click_view_service_pb.rb +17 -0
  813. data/lib/google/ads/google_ads/v2/services/click_view_service_services_pb.rb +42 -0
  814. data/lib/google/ads/google_ads/v2/services/conversion_action_service_client.rb +286 -0
  815. data/lib/google/ads/google_ads/v2/services/conversion_action_service_client_config.json +36 -0
  816. data/lib/google/ads/google_ads/v2/services/conversion_action_service_pb.rb +44 -0
  817. data/lib/google/ads/google_ads/v2/services/conversion_action_service_services_pb.rb +45 -0
  818. data/lib/google/ads/google_ads/v2/services/conversion_adjustment_upload_service_client.rb +230 -0
  819. data/lib/google/ads/google_ads/v2/services/conversion_adjustment_upload_service_client_config.json +31 -0
  820. data/lib/google/ads/google_ads/v2/services/conversion_adjustment_upload_service_pb.rb +58 -0
  821. data/lib/google/ads/google_ads/v2/services/conversion_adjustment_upload_service_services_pb.rb +40 -0
  822. data/lib/google/ads/google_ads/v2/services/conversion_upload_service_client.rb +291 -0
  823. data/lib/google/ads/google_ads/v2/services/conversion_upload_service_client_config.json +36 -0
  824. data/lib/google/ads/google_ads/v2/services/conversion_upload_service_pb.rb +75 -0
  825. data/lib/google/ads/google_ads/v2/services/conversion_upload_service_services_pb.rb +42 -0
  826. data/lib/google/ads/google_ads/v2/services/credentials.rb +41 -0
  827. data/lib/google/ads/google_ads/v2/services/custom_interest_service_client.rb +278 -0
  828. data/lib/google/ads/google_ads/v2/services/custom_interest_service_client_config.json +36 -0
  829. data/lib/google/ads/google_ads/v2/services/custom_interest_service_pb.rb +40 -0
  830. data/lib/google/ads/google_ads/v2/services/custom_interest_service_services_pb.rb +44 -0
  831. data/lib/google/ads/google_ads/v2/services/customer_client_link_service_client.rb +273 -0
  832. data/lib/google/ads/google_ads/v2/services/customer_client_link_service_client_config.json +36 -0
  833. data/lib/google/ads/google_ads/v2/services/customer_client_link_service_pb.rb +39 -0
  834. data/lib/google/ads/google_ads/v2/services/customer_client_link_service_services_pb.rb +42 -0
  835. data/lib/google/ads/google_ads/v2/services/customer_client_service_client.rb +224 -0
  836. data/lib/google/ads/google_ads/v2/services/customer_client_service_client_config.json +31 -0
  837. data/lib/google/ads/google_ads/v2/services/customer_client_service_pb.rb +17 -0
  838. data/lib/google/ads/google_ads/v2/services/customer_client_service_services_pb.rb +42 -0
  839. data/lib/google/ads/google_ads/v2/services/customer_extension_setting_service_client.rb +288 -0
  840. data/lib/google/ads/google_ads/v2/services/customer_extension_setting_service_client_config.json +36 -0
  841. data/lib/google/ads/google_ads/v2/services/customer_extension_setting_service_pb.rb +44 -0
  842. data/lib/google/ads/google_ads/v2/services/customer_extension_setting_service_services_pb.rb +45 -0
  843. data/lib/google/ads/google_ads/v2/services/customer_feed_service_client.rb +286 -0
  844. data/lib/google/ads/google_ads/v2/services/customer_feed_service_client_config.json +36 -0
  845. data/lib/google/ads/google_ads/v2/services/customer_feed_service_pb.rb +44 -0
  846. data/lib/google/ads/google_ads/v2/services/customer_feed_service_services_pb.rb +45 -0
  847. data/lib/google/ads/google_ads/v2/services/customer_label_service_client.rb +286 -0
  848. data/lib/google/ads/google_ads/v2/services/customer_label_service_client_config.json +36 -0
  849. data/lib/google/ads/google_ads/v2/services/customer_label_service_pb.rb +41 -0
  850. data/lib/google/ads/google_ads/v2/services/customer_label_service_services_pb.rb +45 -0
  851. data/lib/google/ads/google_ads/v2/services/customer_manager_link_service_client.rb +273 -0
  852. data/lib/google/ads/google_ads/v2/services/customer_manager_link_service_client_config.json +36 -0
  853. data/lib/google/ads/google_ads/v2/services/customer_manager_link_service_pb.rb +38 -0
  854. data/lib/google/ads/google_ads/v2/services/customer_manager_link_service_services_pb.rb +42 -0
  855. data/lib/google/ads/google_ads/v2/services/customer_negative_criterion_service_client.rb +285 -0
  856. data/lib/google/ads/google_ads/v2/services/customer_negative_criterion_service_client_config.json +36 -0
  857. data/lib/google/ads/google_ads/v2/services/customer_negative_criterion_service_pb.rb +41 -0
  858. data/lib/google/ads/google_ads/v2/services/customer_negative_criterion_service_services_pb.rb +44 -0
  859. data/lib/google/ads/google_ads/v2/services/customer_service_client.rb +365 -0
  860. data/lib/google/ads/google_ads/v2/services/customer_service_client_config.json +46 -0
  861. data/lib/google/ads/google_ads/v2/services/customer_service_pb.rb +57 -0
  862. data/lib/google/ads/google_ads/v2/services/customer_service_services_pb.rb +49 -0
  863. data/lib/google/ads/google_ads/v2/services/detail_placement_view_service_client.rb +224 -0
  864. data/lib/google/ads/google_ads/v2/services/detail_placement_view_service_client_config.json +31 -0
  865. data/lib/google/ads/google_ads/v2/services/detail_placement_view_service_pb.rb +17 -0
  866. data/lib/google/ads/google_ads/v2/services/detail_placement_view_service_services_pb.rb +42 -0
  867. data/lib/google/ads/google_ads/v2/services/display_keyword_view_service_client.rb +224 -0
  868. data/lib/google/ads/google_ads/v2/services/display_keyword_view_service_client_config.json +31 -0
  869. data/lib/google/ads/google_ads/v2/services/display_keyword_view_service_pb.rb +17 -0
  870. data/lib/google/ads/google_ads/v2/services/display_keyword_view_service_services_pb.rb +42 -0
  871. data/lib/google/ads/google_ads/v2/services/distance_view_service_client.rb +224 -0
  872. data/lib/google/ads/google_ads/v2/services/distance_view_service_client_config.json +31 -0
  873. data/lib/google/ads/google_ads/v2/services/distance_view_service_pb.rb +17 -0
  874. data/lib/google/ads/google_ads/v2/services/distance_view_service_services_pb.rb +42 -0
  875. data/lib/google/ads/google_ads/v2/services/domain_category_service_client.rb +224 -0
  876. data/lib/google/ads/google_ads/v2/services/domain_category_service_client_config.json +31 -0
  877. data/lib/google/ads/google_ads/v2/services/domain_category_service_pb.rb +17 -0
  878. data/lib/google/ads/google_ads/v2/services/domain_category_service_services_pb.rb +42 -0
  879. data/lib/google/ads/google_ads/v2/services/dynamic_search_ads_search_term_view_service_client.rb +224 -0
  880. data/lib/google/ads/google_ads/v2/services/dynamic_search_ads_search_term_view_service_client_config.json +31 -0
  881. data/lib/google/ads/google_ads/v2/services/dynamic_search_ads_search_term_view_service_pb.rb +17 -0
  882. data/lib/google/ads/google_ads/v2/services/dynamic_search_ads_search_term_view_service_services_pb.rb +42 -0
  883. data/lib/google/ads/google_ads/v2/services/expanded_landing_page_view_service_client.rb +224 -0
  884. data/lib/google/ads/google_ads/v2/services/expanded_landing_page_view_service_client_config.json +31 -0
  885. data/lib/google/ads/google_ads/v2/services/expanded_landing_page_view_service_pb.rb +17 -0
  886. data/lib/google/ads/google_ads/v2/services/expanded_landing_page_view_service_services_pb.rb +42 -0
  887. data/lib/google/ads/google_ads/v2/services/extension_feed_item_service_client.rb +287 -0
  888. data/lib/google/ads/google_ads/v2/services/extension_feed_item_service_client_config.json +36 -0
  889. data/lib/google/ads/google_ads/v2/services/extension_feed_item_service_pb.rb +44 -0
  890. data/lib/google/ads/google_ads/v2/services/extension_feed_item_service_services_pb.rb +45 -0
  891. data/lib/google/ads/google_ads/v2/services/feed_item_service_client.rb +286 -0
  892. data/lib/google/ads/google_ads/v2/services/feed_item_service_client_config.json +36 -0
  893. data/lib/google/ads/google_ads/v2/services/feed_item_service_pb.rb +44 -0
  894. data/lib/google/ads/google_ads/v2/services/feed_item_service_services_pb.rb +45 -0
  895. data/lib/google/ads/google_ads/v2/services/feed_item_target_service_client.rb +273 -0
  896. data/lib/google/ads/google_ads/v2/services/feed_item_target_service_client_config.json +36 -0
  897. data/lib/google/ads/google_ads/v2/services/feed_item_target_service_pb.rb +37 -0
  898. data/lib/google/ads/google_ads/v2/services/feed_item_target_service_services_pb.rb +44 -0
  899. data/lib/google/ads/google_ads/v2/services/feed_mapping_service_client.rb +286 -0
  900. data/lib/google/ads/google_ads/v2/services/feed_mapping_service_client_config.json +36 -0
  901. data/lib/google/ads/google_ads/v2/services/feed_mapping_service_pb.rb +41 -0
  902. data/lib/google/ads/google_ads/v2/services/feed_mapping_service_services_pb.rb +45 -0
  903. data/lib/google/ads/google_ads/v2/services/feed_placeholder_view_service_client.rb +224 -0
  904. data/lib/google/ads/google_ads/v2/services/feed_placeholder_view_service_client_config.json +31 -0
  905. data/lib/google/ads/google_ads/v2/services/feed_placeholder_view_service_pb.rb +17 -0
  906. data/lib/google/ads/google_ads/v2/services/feed_placeholder_view_service_services_pb.rb +42 -0
  907. data/lib/google/ads/google_ads/v2/services/feed_service_client.rb +286 -0
  908. data/lib/google/ads/google_ads/v2/services/feed_service_client_config.json +36 -0
  909. data/lib/google/ads/google_ads/v2/services/feed_service_pb.rb +44 -0
  910. data/lib/google/ads/google_ads/v2/services/feed_service_services_pb.rb +45 -0
  911. data/lib/google/ads/google_ads/v2/services/gender_view_service_client.rb +224 -0
  912. data/lib/google/ads/google_ads/v2/services/gender_view_service_client_config.json +31 -0
  913. data/lib/google/ads/google_ads/v2/services/gender_view_service_pb.rb +17 -0
  914. data/lib/google/ads/google_ads/v2/services/gender_view_service_services_pb.rb +42 -0
  915. data/lib/google/ads/google_ads/v2/services/geo_target_constant_service_client.rb +284 -0
  916. data/lib/google/ads/google_ads/v2/services/geo_target_constant_service_client_config.json +36 -0
  917. data/lib/google/ads/google_ads/v2/services/geo_target_constant_service_pb.rb +47 -0
  918. data/lib/google/ads/google_ads/v2/services/geo_target_constant_service_services_pb.rb +44 -0
  919. data/lib/google/ads/google_ads/v2/services/geographic_view_service_client.rb +224 -0
  920. data/lib/google/ads/google_ads/v2/services/geographic_view_service_client_config.json +31 -0
  921. data/lib/google/ads/google_ads/v2/services/geographic_view_service_pb.rb +17 -0
  922. data/lib/google/ads/google_ads/v2/services/geographic_view_service_services_pb.rb +42 -0
  923. data/lib/google/ads/google_ads/v2/services/google_ads_field_service_client.rb +293 -0
  924. data/lib/google/ads/google_ads/v2/services/google_ads_field_service_client_config.json +36 -0
  925. data/lib/google/ads/google_ads/v2/services/google_ads_field_service_pb.rb +29 -0
  926. data/lib/google/ads/google_ads/v2/services/google_ads_field_service_services_pb.rb +44 -0
  927. data/lib/google/ads/google_ads/v2/services/google_ads_service_client.rb +370 -0
  928. data/lib/google/ads/google_ads/v2/services/google_ads_service_client_config.json +36 -0
  929. data/lib/google/ads/google_ads/v2/services/google_ads_service_pb.rb +369 -0
  930. data/lib/google/ads/google_ads/v2/services/google_ads_service_services_pb.rb +94 -0
  931. data/lib/google/ads/google_ads/v2/services/group_placement_view_service_client.rb +224 -0
  932. data/lib/google/ads/google_ads/v2/services/group_placement_view_service_client_config.json +31 -0
  933. data/lib/google/ads/google_ads/v2/services/group_placement_view_service_pb.rb +17 -0
  934. data/lib/google/ads/google_ads/v2/services/group_placement_view_service_services_pb.rb +42 -0
  935. data/lib/google/ads/google_ads/v2/services/hotel_group_view_service_client.rb +224 -0
  936. data/lib/google/ads/google_ads/v2/services/hotel_group_view_service_client_config.json +31 -0
  937. data/lib/google/ads/google_ads/v2/services/hotel_group_view_service_pb.rb +17 -0
  938. data/lib/google/ads/google_ads/v2/services/hotel_group_view_service_services_pb.rb +42 -0
  939. data/lib/google/ads/google_ads/v2/services/hotel_performance_view_service_client.rb +222 -0
  940. data/lib/google/ads/google_ads/v2/services/hotel_performance_view_service_client_config.json +31 -0
  941. data/lib/google/ads/google_ads/v2/services/hotel_performance_view_service_pb.rb +17 -0
  942. data/lib/google/ads/google_ads/v2/services/hotel_performance_view_service_services_pb.rb +42 -0
  943. data/lib/google/ads/google_ads/v2/services/keyword_plan_ad_group_service_client.rb +286 -0
  944. data/lib/google/ads/google_ads/v2/services/keyword_plan_ad_group_service_client_config.json +36 -0
  945. data/lib/google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb +44 -0
  946. data/lib/google/ads/google_ads/v2/services/keyword_plan_ad_group_service_services_pb.rb +45 -0
  947. data/lib/google/ads/google_ads/v2/services/keyword_plan_campaign_service_client.rb +286 -0
  948. data/lib/google/ads/google_ads/v2/services/keyword_plan_campaign_service_client_config.json +36 -0
  949. data/lib/google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb +44 -0
  950. data/lib/google/ads/google_ads/v2/services/keyword_plan_campaign_service_services_pb.rb +45 -0
  951. data/lib/google/ads/google_ads/v2/services/keyword_plan_idea_service_client.rb +255 -0
  952. data/lib/google/ads/google_ads/v2/services/keyword_plan_idea_service_client_config.json +31 -0
  953. data/lib/google/ads/google_ads/v2/services/keyword_plan_idea_service_pb.rb +49 -0
  954. data/lib/google/ads/google_ads/v2/services/keyword_plan_idea_service_services_pb.rb +42 -0
  955. data/lib/google/ads/google_ads/v2/services/keyword_plan_keyword_service_client.rb +286 -0
  956. data/lib/google/ads/google_ads/v2/services/keyword_plan_keyword_service_client_config.json +36 -0
  957. data/lib/google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb +44 -0
  958. data/lib/google/ads/google_ads/v2/services/keyword_plan_keyword_service_services_pb.rb +45 -0
  959. data/lib/google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_client.rb +287 -0
  960. data/lib/google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_client_config.json +36 -0
  961. data/lib/google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb +44 -0
  962. data/lib/google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_services_pb.rb +45 -0
  963. data/lib/google/ads/google_ads/v2/services/keyword_plan_service_client.rb +363 -0
  964. data/lib/google/ads/google_ads/v2/services/keyword_plan_service_client_config.json +46 -0
  965. data/lib/google/ads/google_ads/v2/services/keyword_plan_service_pb.rb +92 -0
  966. data/lib/google/ads/google_ads/v2/services/keyword_plan_service_services_pb.rb +49 -0
  967. data/lib/google/ads/google_ads/v2/services/keyword_view_service_client.rb +224 -0
  968. data/lib/google/ads/google_ads/v2/services/keyword_view_service_client_config.json +31 -0
  969. data/lib/google/ads/google_ads/v2/services/keyword_view_service_pb.rb +17 -0
  970. data/lib/google/ads/google_ads/v2/services/keyword_view_service_services_pb.rb +42 -0
  971. data/lib/google/ads/google_ads/v2/services/label_service_client.rb +285 -0
  972. data/lib/google/ads/google_ads/v2/services/label_service_client_config.json +36 -0
  973. data/lib/google/ads/google_ads/v2/services/label_service_pb.rb +45 -0
  974. data/lib/google/ads/google_ads/v2/services/label_service_services_pb.rb +42 -0
  975. data/lib/google/ads/google_ads/v2/services/landing_page_view_service_client.rb +224 -0
  976. data/lib/google/ads/google_ads/v2/services/landing_page_view_service_client_config.json +31 -0
  977. data/lib/google/ads/google_ads/v2/services/landing_page_view_service_pb.rb +17 -0
  978. data/lib/google/ads/google_ads/v2/services/landing_page_view_service_services_pb.rb +42 -0
  979. data/lib/google/ads/google_ads/v2/services/language_constant_service_client.rb +222 -0
  980. data/lib/google/ads/google_ads/v2/services/language_constant_service_client_config.json +31 -0
  981. data/lib/google/ads/google_ads/v2/services/language_constant_service_pb.rb +17 -0
  982. data/lib/google/ads/google_ads/v2/services/language_constant_service_services_pb.rb +42 -0
  983. data/lib/google/ads/google_ads/v2/services/location_view_service_client.rb +224 -0
  984. data/lib/google/ads/google_ads/v2/services/location_view_service_client_config.json +31 -0
  985. data/lib/google/ads/google_ads/v2/services/location_view_service_pb.rb +17 -0
  986. data/lib/google/ads/google_ads/v2/services/location_view_service_services_pb.rb +42 -0
  987. data/lib/google/ads/google_ads/v2/services/managed_placement_view_service_client.rb +224 -0
  988. data/lib/google/ads/google_ads/v2/services/managed_placement_view_service_client_config.json +31 -0
  989. data/lib/google/ads/google_ads/v2/services/managed_placement_view_service_pb.rb +17 -0
  990. data/lib/google/ads/google_ads/v2/services/managed_placement_view_service_services_pb.rb +42 -0
  991. data/lib/google/ads/google_ads/v2/services/media_file_service_client.rb +285 -0
  992. data/lib/google/ads/google_ads/v2/services/media_file_service_client_config.json +36 -0
  993. data/lib/google/ads/google_ads/v2/services/media_file_service_pb.rb +41 -0
  994. data/lib/google/ads/google_ads/v2/services/media_file_service_services_pb.rb +44 -0
  995. data/lib/google/ads/google_ads/v2/services/merchant_center_link_service_client.rb +315 -0
  996. data/lib/google/ads/google_ads/v2/services/merchant_center_link_service_client_config.json +41 -0
  997. data/lib/google/ads/google_ads/v2/services/merchant_center_link_service_pb.rb +47 -0
  998. data/lib/google/ads/google_ads/v2/services/merchant_center_link_service_services_pb.rb +47 -0
  999. data/lib/google/ads/google_ads/v2/services/mobile_app_category_constant_service_client.rb +222 -0
  1000. data/lib/google/ads/google_ads/v2/services/mobile_app_category_constant_service_client_config.json +31 -0
  1001. data/lib/google/ads/google_ads/v2/services/mobile_app_category_constant_service_pb.rb +17 -0
  1002. data/lib/google/ads/google_ads/v2/services/mobile_app_category_constant_service_services_pb.rb +40 -0
  1003. data/lib/google/ads/google_ads/v2/services/mobile_device_constant_service_client.rb +222 -0
  1004. data/lib/google/ads/google_ads/v2/services/mobile_device_constant_service_client_config.json +31 -0
  1005. data/lib/google/ads/google_ads/v2/services/mobile_device_constant_service_pb.rb +17 -0
  1006. data/lib/google/ads/google_ads/v2/services/mobile_device_constant_service_services_pb.rb +42 -0
  1007. data/lib/google/ads/google_ads/v2/services/mutate_job_service_client.rb +492 -0
  1008. data/lib/google/ads/google_ads/v2/services/mutate_job_service_client_config.json +51 -0
  1009. data/lib/google/ads/google_ads/v2/services/mutate_job_service_pb.rb +60 -0
  1010. data/lib/google/ads/google_ads/v2/services/mutate_job_service_services_pb.rb +55 -0
  1011. data/lib/google/ads/google_ads/v2/services/operating_system_version_constant_service_client.rb +222 -0
  1012. data/lib/google/ads/google_ads/v2/services/operating_system_version_constant_service_client_config.json +31 -0
  1013. data/lib/google/ads/google_ads/v2/services/operating_system_version_constant_service_pb.rb +17 -0
  1014. data/lib/google/ads/google_ads/v2/services/operating_system_version_constant_service_services_pb.rb +42 -0
  1015. data/lib/google/ads/google_ads/v2/services/paid_organic_search_term_view_service_client.rb +224 -0
  1016. data/lib/google/ads/google_ads/v2/services/paid_organic_search_term_view_service_client_config.json +31 -0
  1017. data/lib/google/ads/google_ads/v2/services/paid_organic_search_term_view_service_pb.rb +17 -0
  1018. data/lib/google/ads/google_ads/v2/services/paid_organic_search_term_view_service_services_pb.rb +42 -0
  1019. data/lib/google/ads/google_ads/v2/services/parental_status_view_service_client.rb +224 -0
  1020. data/lib/google/ads/google_ads/v2/services/parental_status_view_service_client_config.json +31 -0
  1021. data/lib/google/ads/google_ads/v2/services/parental_status_view_service_pb.rb +17 -0
  1022. data/lib/google/ads/google_ads/v2/services/parental_status_view_service_services_pb.rb +42 -0
  1023. data/lib/google/ads/google_ads/v2/services/payments_account_service_client.rb +212 -0
  1024. data/lib/google/ads/google_ads/v2/services/payments_account_service_client_config.json +31 -0
  1025. data/lib/google/ads/google_ads/v2/services/payments_account_service_pb.rb +21 -0
  1026. data/lib/google/ads/google_ads/v2/services/payments_account_service_services_pb.rb +45 -0
  1027. data/lib/google/ads/google_ads/v2/services/product_bidding_category_constant_service_client.rb +222 -0
  1028. data/lib/google/ads/google_ads/v2/services/product_bidding_category_constant_service_client_config.json +31 -0
  1029. data/lib/google/ads/google_ads/v2/services/product_bidding_category_constant_service_pb.rb +17 -0
  1030. data/lib/google/ads/google_ads/v2/services/product_bidding_category_constant_service_services_pb.rb +42 -0
  1031. data/lib/google/ads/google_ads/v2/services/product_group_view_service_client.rb +224 -0
  1032. data/lib/google/ads/google_ads/v2/services/product_group_view_service_client_config.json +31 -0
  1033. data/lib/google/ads/google_ads/v2/services/product_group_view_service_pb.rb +17 -0
  1034. data/lib/google/ads/google_ads/v2/services/product_group_view_service_services_pb.rb +42 -0
  1035. data/lib/google/ads/google_ads/v2/services/recommendation_service_client.rb +340 -0
  1036. data/lib/google/ads/google_ads/v2/services/recommendation_service_client_config.json +41 -0
  1037. data/lib/google/ads/google_ads/v2/services/recommendation_service_pb.rb +105 -0
  1038. data/lib/google/ads/google_ads/v2/services/recommendation_service_services_pb.rb +46 -0
  1039. data/lib/google/ads/google_ads/v2/services/remarketing_action_service_client.rb +285 -0
  1040. data/lib/google/ads/google_ads/v2/services/remarketing_action_service_client_config.json +36 -0
  1041. data/lib/google/ads/google_ads/v2/services/remarketing_action_service_pb.rb +44 -0
  1042. data/lib/google/ads/google_ads/v2/services/remarketing_action_service_services_pb.rb +44 -0
  1043. data/lib/google/ads/google_ads/v2/services/search_term_view_service_client.rb +224 -0
  1044. data/lib/google/ads/google_ads/v2/services/search_term_view_service_client_config.json +31 -0
  1045. data/lib/google/ads/google_ads/v2/services/search_term_view_service_pb.rb +17 -0
  1046. data/lib/google/ads/google_ads/v2/services/search_term_view_service_services_pb.rb +42 -0
  1047. data/lib/google/ads/google_ads/v2/services/shared_criterion_service_client.rb +285 -0
  1048. data/lib/google/ads/google_ads/v2/services/shared_criterion_service_client_config.json +36 -0
  1049. data/lib/google/ads/google_ads/v2/services/shared_criterion_service_pb.rb +42 -0
  1050. data/lib/google/ads/google_ads/v2/services/shared_criterion_service_services_pb.rb +44 -0
  1051. data/lib/google/ads/google_ads/v2/services/shared_set_service_client.rb +285 -0
  1052. data/lib/google/ads/google_ads/v2/services/shared_set_service_client_config.json +36 -0
  1053. data/lib/google/ads/google_ads/v2/services/shared_set_service_pb.rb +45 -0
  1054. data/lib/google/ads/google_ads/v2/services/shared_set_service_services_pb.rb +44 -0
  1055. data/lib/google/ads/google_ads/v2/services/shopping_performance_view_service_client.rb +222 -0
  1056. data/lib/google/ads/google_ads/v2/services/shopping_performance_view_service_client_config.json +31 -0
  1057. data/lib/google/ads/google_ads/v2/services/shopping_performance_view_service_pb.rb +17 -0
  1058. data/lib/google/ads/google_ads/v2/services/shopping_performance_view_service_services_pb.rb +42 -0
  1059. data/lib/google/ads/google_ads/v2/services/topic_constant_service_client.rb +222 -0
  1060. data/lib/google/ads/google_ads/v2/services/topic_constant_service_client_config.json +31 -0
  1061. data/lib/google/ads/google_ads/v2/services/topic_constant_service_pb.rb +17 -0
  1062. data/lib/google/ads/google_ads/v2/services/topic_constant_service_services_pb.rb +42 -0
  1063. data/lib/google/ads/google_ads/v2/services/topic_view_service_client.rb +224 -0
  1064. data/lib/google/ads/google_ads/v2/services/topic_view_service_client_config.json +31 -0
  1065. data/lib/google/ads/google_ads/v2/services/topic_view_service_pb.rb +17 -0
  1066. data/lib/google/ads/google_ads/v2/services/topic_view_service_services_pb.rb +42 -0
  1067. data/lib/google/ads/google_ads/v2/services/user_interest_service_client.rb +224 -0
  1068. data/lib/google/ads/google_ads/v2/services/user_interest_service_client_config.json +31 -0
  1069. data/lib/google/ads/google_ads/v2/services/user_interest_service_pb.rb +17 -0
  1070. data/lib/google/ads/google_ads/v2/services/user_interest_service_services_pb.rb +42 -0
  1071. data/lib/google/ads/google_ads/v2/services/user_list_service_client.rb +285 -0
  1072. data/lib/google/ads/google_ads/v2/services/user_list_service_client_config.json +36 -0
  1073. data/lib/google/ads/google_ads/v2/services/user_list_service_pb.rb +45 -0
  1074. data/lib/google/ads/google_ads/v2/services/user_list_service_services_pb.rb +44 -0
  1075. data/lib/google/ads/google_ads/v2/services/user_location_view_service_client.rb +224 -0
  1076. data/lib/google/ads/google_ads/v2/services/user_location_view_service_client_config.json +31 -0
  1077. data/lib/google/ads/google_ads/v2/services/user_location_view_service_pb.rb +17 -0
  1078. data/lib/google/ads/google_ads/v2/services/user_location_view_service_services_pb.rb +42 -0
  1079. data/lib/google/ads/google_ads/v2/services/video_service_client.rb +224 -0
  1080. data/lib/google/ads/google_ads/v2/services/video_service_client_config.json +31 -0
  1081. data/lib/google/ads/google_ads/v2/services/video_service_pb.rb +17 -0
  1082. data/lib/google/ads/google_ads/v2/services/video_service_services_pb.rb +42 -0
  1083. data/lib/google/ads/google_ads/version.rb +1 -1
  1084. data/lib/google/ads/google_ads/version_alternate.rb +18 -0
  1085. metadata +870 -9
  1086. data/lib/google/ads/google_ads/patch_lro_headers.rb +0 -92
  1087. data/lib/google/ads/google_ads/utils/v1/proto_lookup_util.rb +0 -844
@@ -0,0 +1,3679 @@
1
+ module Google
2
+ module Ads
3
+ module GoogleAds
4
+ module Factories
5
+ module V2
6
+ module Operations
7
+ # Create a new FeedAttributeOperation
8
+ #
9
+ # @return [Google::Ads::GoogleAds::V2::Resources::FeedAttributeOperation] the operation
10
+ def self.feed_attribute
11
+ require "google/ads/google_ads/v2/resources/feed_pb.rb"
12
+ Google::Ads::GoogleAds::V2::Resources::FeedAttributeOperation.new
13
+ end
14
+
15
+ # Create a new CustomInterestOperation
16
+ #
17
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] the operation
18
+ def self.custom_interest
19
+ require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
20
+ Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
21
+ end
22
+
23
+ # Create a new RemarketingActionOperation
24
+ #
25
+ # @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] the operation
26
+ def self.remarketing_action
27
+ require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
28
+ Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
29
+ end
30
+
31
+ # Create a new KeywordPlanCampaignOperation
32
+ #
33
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] the operation
34
+ def self.keyword_plan_campaign
35
+ require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
36
+ Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
37
+ end
38
+
39
+ # Create a new AdGroupAdLabelOperation
40
+ #
41
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation] the operation
42
+ def self.ad_group_ad_label
43
+ require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
44
+ Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
45
+ end
46
+
47
+ # Create a new AdGroupAdOperation
48
+ #
49
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation] the operation
50
+ def self.ad_group_ad
51
+ require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
52
+ Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
53
+ end
54
+
55
+ # Create a new AdGroupBidModifierOperation
56
+ #
57
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] the operation
58
+ def self.ad_group_bid_modifier
59
+ require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
60
+ Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
61
+ end
62
+
63
+ # Create a new AdGroupCriterionLabelOperation
64
+ #
65
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation] the operation
66
+ def self.ad_group_criterion_label
67
+ require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
68
+ Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
69
+ end
70
+
71
+ # Create a new AdGroupCriterionOperation
72
+ #
73
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation] the operation
74
+ def self.ad_group_criterion
75
+ require "google/ads/google_ads/v2/services/ad_group_criterion_service_pb.rb"
76
+ Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation.new
77
+ end
78
+
79
+ # Create a new AdGroupExtensionSettingOperation
80
+ #
81
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupExtensionSettingOperation] the operation
82
+ def self.ad_group_extension_setting
83
+ require "google/ads/google_ads/v2/services/ad_group_extension_setting_service_pb.rb"
84
+ Google::Ads::GoogleAds::V2::Services::AdGroupExtensionSettingOperation.new
85
+ end
86
+
87
+ # Create a new AdGroupFeedOperation
88
+ #
89
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupFeedOperation] the operation
90
+ def self.ad_group_feed
91
+ require "google/ads/google_ads/v2/services/ad_group_feed_service_pb.rb"
92
+ Google::Ads::GoogleAds::V2::Services::AdGroupFeedOperation.new
93
+ end
94
+
95
+ # Create a new AdGroupLabelOperation
96
+ #
97
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation] the operation
98
+ def self.ad_group_label
99
+ require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
100
+ Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
101
+ end
102
+
103
+ # Create a new AdGroupOperation
104
+ #
105
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupOperation] the operation
106
+ def self.ad_group
107
+ require "google/ads/google_ads/v2/services/ad_group_service_pb.rb"
108
+ Google::Ads::GoogleAds::V2::Services::AdGroupOperation.new
109
+ end
110
+
111
+ # Create a new AdParameterOperation
112
+ #
113
+ # @return [Google::Ads::GoogleAds::V2::Services::AdParameterOperation] the operation
114
+ def self.ad_parameter
115
+ require "google/ads/google_ads/v2/services/ad_parameter_service_pb.rb"
116
+ Google::Ads::GoogleAds::V2::Services::AdParameterOperation.new
117
+ end
118
+
119
+ # Create a new AssetOperation
120
+ #
121
+ # @return [Google::Ads::GoogleAds::V2::Services::AssetOperation] the operation
122
+ def self.asset
123
+ require "google/ads/google_ads/v2/services/asset_service_pb.rb"
124
+ Google::Ads::GoogleAds::V2::Services::AssetOperation.new
125
+ end
126
+
127
+ # Create a new BiddingStrategyOperation
128
+ #
129
+ # @return [Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation] the operation
130
+ def self.bidding_strategy
131
+ require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
132
+ Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
133
+ end
134
+
135
+ # Create a new CampaignBidModifierOperation
136
+ #
137
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation] the operation
138
+ def self.campaign_bid_modifier
139
+ require "google/ads/google_ads/v2/services/campaign_bid_modifier_service_pb.rb"
140
+ Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation.new
141
+ end
142
+
143
+ # Create a new CampaignBudgetOperation
144
+ #
145
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation] the operation
146
+ def self.campaign_budget
147
+ require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
148
+ Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
149
+ end
150
+
151
+ # Create a new CampaignCriterionOperation
152
+ #
153
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation] the operation
154
+ def self.campaign_criterion
155
+ require "google/ads/google_ads/v2/services/campaign_criterion_service_pb.rb"
156
+ Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation.new
157
+ end
158
+
159
+ # Create a new CampaignDraftOperation
160
+ #
161
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] the operation
162
+ def self.campaign_draft
163
+ require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
164
+ Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
165
+ end
166
+
167
+ # Create a new CampaignExperimentOperation
168
+ #
169
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation] the operation
170
+ def self.campaign_experiment
171
+ require "google/ads/google_ads/v2/services/campaign_experiment_service_pb.rb"
172
+ Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation.new
173
+ end
174
+
175
+ # Create a new CampaignExtensionSettingOperation
176
+ #
177
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation] the operation
178
+ def self.campaign_extension_setting
179
+ require "google/ads/google_ads/v2/services/campaign_extension_setting_service_pb.rb"
180
+ Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation.new
181
+ end
182
+
183
+ # Create a new CampaignFeedOperation
184
+ #
185
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] the operation
186
+ def self.campaign_feed
187
+ require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
188
+ Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
189
+ end
190
+
191
+ # Create a new CampaignLabelOperation
192
+ #
193
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation] the operation
194
+ def self.campaign_label
195
+ require "google/ads/google_ads/v2/services/campaign_label_service_pb.rb"
196
+ Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation.new
197
+ end
198
+
199
+ # Create a new CampaignOperation
200
+ #
201
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignOperation] the operation
202
+ def self.campaign
203
+ require "google/ads/google_ads/v2/services/campaign_service_pb.rb"
204
+ Google::Ads::GoogleAds::V2::Services::CampaignOperation.new
205
+ end
206
+
207
+ # Create a new CampaignSharedSetOperation
208
+ #
209
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation] the operation
210
+ def self.campaign_shared_set
211
+ require "google/ads/google_ads/v2/services/campaign_shared_set_service_pb.rb"
212
+ Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation.new
213
+ end
214
+
215
+ # Create a new ConversionActionOperation
216
+ #
217
+ # @return [Google::Ads::GoogleAds::V2::Services::ConversionActionOperation] the operation
218
+ def self.conversion_action
219
+ require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
220
+ Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
221
+ end
222
+
223
+ # Create a new CustomerExtensionSettingOperation
224
+ #
225
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerExtensionSettingOperation] the operation
226
+ def self.customer_extension_setting
227
+ require "google/ads/google_ads/v2/services/customer_extension_setting_service_pb.rb"
228
+ Google::Ads::GoogleAds::V2::Services::CustomerExtensionSettingOperation.new
229
+ end
230
+
231
+ # Create a new CustomerFeedOperation
232
+ #
233
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerFeedOperation] the operation
234
+ def self.customer_feed
235
+ require "google/ads/google_ads/v2/services/customer_feed_service_pb.rb"
236
+ Google::Ads::GoogleAds::V2::Services::CustomerFeedOperation.new
237
+ end
238
+
239
+ # Create a new CustomerLabelOperation
240
+ #
241
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation] the operation
242
+ def self.customer_label
243
+ require "google/ads/google_ads/v2/services/customer_label_service_pb.rb"
244
+ Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation.new
245
+ end
246
+
247
+ # Create a new CustomerNegativeCriterionOperation
248
+ #
249
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation] the operation
250
+ def self.customer_negative_criterion
251
+ require "google/ads/google_ads/v2/services/customer_negative_criterion_service_pb.rb"
252
+ Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation.new
253
+ end
254
+
255
+ # Create a new CustomerOperation
256
+ #
257
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerOperation] the operation
258
+ def self.customer
259
+ require "google/ads/google_ads/v2/services/customer_service_pb.rb"
260
+ Google::Ads::GoogleAds::V2::Services::CustomerOperation.new
261
+ end
262
+
263
+ # Create a new ExtensionFeedItemOperation
264
+ #
265
+ # @return [Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation] the operation
266
+ def self.extension_feed_item
267
+ require "google/ads/google_ads/v2/services/extension_feed_item_service_pb.rb"
268
+ Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation.new
269
+ end
270
+
271
+ # Create a new FeedItemOperation
272
+ #
273
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedItemOperation] the operation
274
+ def self.feed_item
275
+ require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
276
+ Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
277
+ end
278
+
279
+ # Create a new FeedItemTargetOperation
280
+ #
281
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedItemTargetOperation] the operation
282
+ def self.feed_item_target
283
+ require "google/ads/google_ads/v2/services/feed_item_target_service_pb.rb"
284
+ Google::Ads::GoogleAds::V2::Services::FeedItemTargetOperation.new
285
+ end
286
+
287
+ # Create a new FeedMappingOperation
288
+ #
289
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedMappingOperation] the operation
290
+ def self.feed_mapping
291
+ require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
292
+ Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
293
+ end
294
+
295
+ # Create a new FeedOperation
296
+ #
297
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] the operation
298
+ def self.feed
299
+ require "google/ads/google_ads/v2/services/feed_service_pb.rb"
300
+ Google::Ads::GoogleAds::V2::Services::FeedOperation.new
301
+ end
302
+
303
+ # Create a new LabelOperation
304
+ #
305
+ # @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] the operation
306
+ def self.label
307
+ require "google/ads/google_ads/v2/services/label_service_pb.rb"
308
+ Google::Ads::GoogleAds::V2::Services::LabelOperation.new
309
+ end
310
+
311
+ # Create a new MediaFileOperation
312
+ #
313
+ # @return [Google::Ads::GoogleAds::V2::Services::MediaFileOperation] the operation
314
+ def self.media_file
315
+ require "google/ads/google_ads/v2/services/media_file_service_pb.rb"
316
+ Google::Ads::GoogleAds::V2::Services::MediaFileOperation.new
317
+ end
318
+
319
+ # Create a new SharedCriterionOperation
320
+ #
321
+ # @return [Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation] the operation
322
+ def self.shared_criterion
323
+ require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
324
+ Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
325
+ end
326
+
327
+ # Create a new SharedSetOperation
328
+ #
329
+ # @return [Google::Ads::GoogleAds::V2::Services::SharedSetOperation] the operation
330
+ def self.shared_set
331
+ require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
332
+ Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
333
+ end
334
+
335
+ # Create a new UserListOperation
336
+ #
337
+ # @return [Google::Ads::GoogleAds::V2::Services::UserListOperation] the operation
338
+ def self.user_list
339
+ require "google/ads/google_ads/v2/services/user_list_service_pb.rb"
340
+ Google::Ads::GoogleAds::V2::Services::UserListOperation.new
341
+ end
342
+
343
+ # Create a new MutateOperation
344
+ #
345
+ # @return [Google::Ads::GoogleAds::V2::Services::MutateOperation] the operation
346
+ def self.mutate
347
+ require "google/ads/google_ads/v2/services/google_ads_service_pb.rb"
348
+ Google::Ads::GoogleAds::V2::Services::MutateOperation.new
349
+ end
350
+
351
+ # Create a new KeywordPlanKeywordOperation
352
+ #
353
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] the operation
354
+ def self.keyword_plan_keyword
355
+ require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
356
+ Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
357
+ end
358
+
359
+ # Create a new ApplyRecommendationOperation
360
+ #
361
+ # @return [Google::Ads::GoogleAds::V2::Services::ApplyRecommendationOperation] the operation
362
+ def self.apply_recommendation
363
+ require "google/ads/google_ads/v2/services/recommendation_service_pb.rb"
364
+ Google::Ads::GoogleAds::V2::Services::ApplyRecommendationOperation.new
365
+ end
366
+
367
+ # Create a new DismissRecommendationOperation
368
+ #
369
+ # @return [Google::Ads::GoogleAds::V2::Services::DismissRecommendationRequest::DismissRecommendationOperation] the operation
370
+ def self.dismiss_recommendation
371
+ require "google/ads/google_ads/v2/services/recommendation_service_pb.rb"
372
+ Google::Ads::GoogleAds::V2::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
373
+ end
374
+
375
+ # Create a new KeywordPlanNegativeKeywordOperation
376
+ #
377
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] the operation
378
+ def self.keyword_plan_negative_keyword
379
+ require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
380
+ Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
381
+ end
382
+
383
+ # Create a new KeywordPlanOperation
384
+ #
385
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] the operation
386
+ def self.keyword_plan
387
+ require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
388
+ Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
389
+ end
390
+
391
+ # Create a new MerchantCenterLinkOperation
392
+ #
393
+ # @return [Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation] the operation
394
+ def self.merchant_center_link
395
+ require "google/ads/google_ads/v2/services/merchant_center_link_service_pb.rb"
396
+ Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation.new
397
+ end
398
+
399
+ # Create a new CustomerManagerLinkOperation
400
+ #
401
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation] the operation
402
+ def self.customer_manager_link
403
+ require "google/ads/google_ads/v2/services/customer_manager_link_service_pb.rb"
404
+ Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation.new
405
+ end
406
+
407
+ # Create a new AccountBudgetProposalOperation
408
+ #
409
+ # @return [Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation] the operation
410
+ def self.account_budget_proposal
411
+ require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
412
+ Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
413
+ end
414
+
415
+ # Create a new AdOperation
416
+ #
417
+ # @return [Google::Ads::GoogleAds::V2::Services::AdOperation] the operation
418
+ def self.ad
419
+ require "google/ads/google_ads/v2/services/ad_service_pb.rb"
420
+ Google::Ads::GoogleAds::V2::Services::AdOperation.new
421
+ end
422
+
423
+ # Create a new CustomerClientLinkOperation
424
+ #
425
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] the operation
426
+ def self.customer_client_link
427
+ require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
428
+ Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
429
+ end
430
+
431
+ # Create a new BillingSetupOperation
432
+ #
433
+ # @return [Google::Ads::GoogleAds::V2::Services::BillingSetupOperation] the operation
434
+ def self.billing_setup
435
+ require "google/ads/google_ads/v2/services/billing_setup_service_pb.rb"
436
+ Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
437
+ end
438
+
439
+ # Create a new KeywordPlanAdGroupOperation
440
+ #
441
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation] the operation
442
+ def self.keyword_plan_ad_group
443
+ require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
444
+ Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
445
+ end
446
+
447
+ # Get a reference module containing convenience methods for creating
448
+ # resources
449
+ #
450
+ # @return [Google::Ads::GoogleAds::Factories::V2::Operations::CreateResource]
451
+ def self.create_resource
452
+ CreateResource
453
+ end
454
+
455
+ # Get a reference module containing convenience methods for updating
456
+ # resources
457
+ #
458
+ # @return [Google::Ads::GoogleAds::Factories::V2::Operations::UpdateResource]
459
+ def self.update_resource
460
+ UpdateResource
461
+ end
462
+
463
+ # Get a reference module containing convenience methods for removing
464
+ # resources
465
+ #
466
+ # @return [Google::Ads::GoogleAds::Factories::V2::Operations::RemoveResource]
467
+ def self.remove_resource
468
+ RemoveResource
469
+ end
470
+
471
+ module CreateResource
472
+ # A convenience method for creating an CustomInterestOperation instance with
473
+ # its "create" field prepopulated with an CustomInterest instance.
474
+ #
475
+ # @overload custom_interest
476
+ # creates an operation instance, yielding a newly fabricated CustomInterest
477
+ # which can be used for setting attributes on the newly created resource
478
+ # @overload custom_interest(res)
479
+ # creates an operation instance, with the resource to be created
480
+ # set to the passed value (res)
481
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CustomInterest]
482
+ # a resource instance to be used for creation in this operation.
483
+ #
484
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] instance that will create the resource
485
+ def self.custom_interest(res = nil, &blk)
486
+ require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
487
+ op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
488
+ if !res.nil?
489
+ op["create"] = res
490
+ elsif !blk.nil?
491
+ op["create"] = Factories::V2::Resources.custom_interest(&blk)
492
+ end
493
+
494
+ op
495
+ end
496
+
497
+ # A convenience method for creating an RemarketingActionOperation instance with
498
+ # its "create" field prepopulated with an RemarketingAction instance.
499
+ #
500
+ # @overload remarketing_action
501
+ # creates an operation instance, yielding a newly fabricated RemarketingAction
502
+ # which can be used for setting attributes on the newly created resource
503
+ # @overload remarketing_action(res)
504
+ # creates an operation instance, with the resource to be created
505
+ # set to the passed value (res)
506
+ # @param res [Google::Ads::GoogleAds::V2::Resources::RemarketingAction]
507
+ # a resource instance to be used for creation in this operation.
508
+ #
509
+ # @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] instance that will create the resource
510
+ def self.remarketing_action(res = nil, &blk)
511
+ require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
512
+ op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
513
+ if !res.nil?
514
+ op["create"] = res
515
+ elsif !blk.nil?
516
+ op["create"] = Factories::V2::Resources.remarketing_action(&blk)
517
+ end
518
+
519
+ op
520
+ end
521
+
522
+ # A convenience method for creating an KeywordPlanCampaignOperation instance with
523
+ # its "create" field prepopulated with an KeywordPlanCampaign instance.
524
+ #
525
+ # @overload keyword_plan_campaign
526
+ # creates an operation instance, yielding a newly fabricated KeywordPlanCampaign
527
+ # which can be used for setting attributes on the newly created resource
528
+ # @overload keyword_plan_campaign(res)
529
+ # creates an operation instance, with the resource to be created
530
+ # set to the passed value (res)
531
+ # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign]
532
+ # a resource instance to be used for creation in this operation.
533
+ #
534
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] instance that will create the resource
535
+ def self.keyword_plan_campaign(res = nil, &blk)
536
+ require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
537
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
538
+ if !res.nil?
539
+ op["create"] = res
540
+ elsif !blk.nil?
541
+ op["create"] = Factories::V2::Resources.keyword_plan_campaign(&blk)
542
+ end
543
+
544
+ op
545
+ end
546
+
547
+ # A convenience method for creating an AdGroupAdLabelOperation instance with
548
+ # its "create" field prepopulated with an AdGroupAdLabel instance.
549
+ #
550
+ # @overload ad_group_ad_label
551
+ # creates an operation instance, yielding a newly fabricated AdGroupAdLabel
552
+ # which can be used for setting attributes on the newly created resource
553
+ # @overload ad_group_ad_label(res)
554
+ # creates an operation instance, with the resource to be created
555
+ # set to the passed value (res)
556
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupAdLabel]
557
+ # a resource instance to be used for creation in this operation.
558
+ #
559
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation] instance that will create the resource
560
+ def self.ad_group_ad_label(res = nil, &blk)
561
+ require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
562
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
563
+ if !res.nil?
564
+ op["create"] = res
565
+ elsif !blk.nil?
566
+ op["create"] = Factories::V2::Resources.ad_group_ad_label(&blk)
567
+ end
568
+
569
+ op
570
+ end
571
+
572
+ # A convenience method for creating an AdGroupAdOperation instance with
573
+ # its "create" field prepopulated with an AdGroupAd instance.
574
+ #
575
+ # @overload ad_group_ad
576
+ # creates an operation instance, yielding a newly fabricated AdGroupAd
577
+ # which can be used for setting attributes on the newly created resource
578
+ # @overload ad_group_ad(res)
579
+ # creates an operation instance, with the resource to be created
580
+ # set to the passed value (res)
581
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupAd]
582
+ # a resource instance to be used for creation in this operation.
583
+ #
584
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation] instance that will create the resource
585
+ def self.ad_group_ad(res = nil, &blk)
586
+ require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
587
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
588
+ if !res.nil?
589
+ op["create"] = res
590
+ elsif !blk.nil?
591
+ op["create"] = Factories::V2::Resources.ad_group_ad(&blk)
592
+ end
593
+
594
+ op
595
+ end
596
+
597
+ # A convenience method for creating an AdGroupBidModifierOperation instance with
598
+ # its "create" field prepopulated with an AdGroupBidModifier instance.
599
+ #
600
+ # @overload ad_group_bid_modifier
601
+ # creates an operation instance, yielding a newly fabricated AdGroupBidModifier
602
+ # which can be used for setting attributes on the newly created resource
603
+ # @overload ad_group_bid_modifier(res)
604
+ # creates an operation instance, with the resource to be created
605
+ # set to the passed value (res)
606
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier]
607
+ # a resource instance to be used for creation in this operation.
608
+ #
609
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] instance that will create the resource
610
+ def self.ad_group_bid_modifier(res = nil, &blk)
611
+ require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
612
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
613
+ if !res.nil?
614
+ op["create"] = res
615
+ elsif !blk.nil?
616
+ op["create"] = Factories::V2::Resources.ad_group_bid_modifier(&blk)
617
+ end
618
+
619
+ op
620
+ end
621
+
622
+ # A convenience method for creating an AdGroupCriterionLabelOperation instance with
623
+ # its "create" field prepopulated with an AdGroupCriterionLabel instance.
624
+ #
625
+ # @overload ad_group_criterion_label
626
+ # creates an operation instance, yielding a newly fabricated AdGroupCriterionLabel
627
+ # which can be used for setting attributes on the newly created resource
628
+ # @overload ad_group_criterion_label(res)
629
+ # creates an operation instance, with the resource to be created
630
+ # set to the passed value (res)
631
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupCriterionLabel]
632
+ # a resource instance to be used for creation in this operation.
633
+ #
634
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation] instance that will create the resource
635
+ def self.ad_group_criterion_label(res = nil, &blk)
636
+ require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
637
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
638
+ if !res.nil?
639
+ op["create"] = res
640
+ elsif !blk.nil?
641
+ op["create"] = Factories::V2::Resources.ad_group_criterion_label(&blk)
642
+ end
643
+
644
+ op
645
+ end
646
+
647
+ # A convenience method for creating an AdGroupCriterionOperation instance with
648
+ # its "create" field prepopulated with an AdGroupCriterion instance.
649
+ #
650
+ # @overload ad_group_criterion
651
+ # creates an operation instance, yielding a newly fabricated AdGroupCriterion
652
+ # which can be used for setting attributes on the newly created resource
653
+ # @overload ad_group_criterion(res)
654
+ # creates an operation instance, with the resource to be created
655
+ # set to the passed value (res)
656
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion]
657
+ # a resource instance to be used for creation in this operation.
658
+ #
659
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation] instance that will create the resource
660
+ def self.ad_group_criterion(res = nil, &blk)
661
+ require "google/ads/google_ads/v2/services/ad_group_criterion_service_pb.rb"
662
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation.new
663
+ if !res.nil?
664
+ op["create"] = res
665
+ elsif !blk.nil?
666
+ op["create"] = Factories::V2::Resources.ad_group_criterion(&blk)
667
+ end
668
+
669
+ op
670
+ end
671
+
672
+ # A convenience method for creating an AdGroupExtensionSettingOperation instance with
673
+ # its "create" field prepopulated with an AdGroupExtensionSetting instance.
674
+ #
675
+ # @overload ad_group_extension_setting
676
+ # creates an operation instance, yielding a newly fabricated AdGroupExtensionSetting
677
+ # which can be used for setting attributes on the newly created resource
678
+ # @overload ad_group_extension_setting(res)
679
+ # creates an operation instance, with the resource to be created
680
+ # set to the passed value (res)
681
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupExtensionSetting]
682
+ # a resource instance to be used for creation in this operation.
683
+ #
684
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupExtensionSettingOperation] instance that will create the resource
685
+ def self.ad_group_extension_setting(res = nil, &blk)
686
+ require "google/ads/google_ads/v2/services/ad_group_extension_setting_service_pb.rb"
687
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupExtensionSettingOperation.new
688
+ if !res.nil?
689
+ op["create"] = res
690
+ elsif !blk.nil?
691
+ op["create"] = Factories::V2::Resources.ad_group_extension_setting(&blk)
692
+ end
693
+
694
+ op
695
+ end
696
+
697
+ # A convenience method for creating an AdGroupFeedOperation instance with
698
+ # its "create" field prepopulated with an AdGroupFeed instance.
699
+ #
700
+ # @overload ad_group_feed
701
+ # creates an operation instance, yielding a newly fabricated AdGroupFeed
702
+ # which can be used for setting attributes on the newly created resource
703
+ # @overload ad_group_feed(res)
704
+ # creates an operation instance, with the resource to be created
705
+ # set to the passed value (res)
706
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupFeed]
707
+ # a resource instance to be used for creation in this operation.
708
+ #
709
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupFeedOperation] instance that will create the resource
710
+ def self.ad_group_feed(res = nil, &blk)
711
+ require "google/ads/google_ads/v2/services/ad_group_feed_service_pb.rb"
712
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupFeedOperation.new
713
+ if !res.nil?
714
+ op["create"] = res
715
+ elsif !blk.nil?
716
+ op["create"] = Factories::V2::Resources.ad_group_feed(&blk)
717
+ end
718
+
719
+ op
720
+ end
721
+
722
+ # A convenience method for creating an AdGroupLabelOperation instance with
723
+ # its "create" field prepopulated with an AdGroupLabel instance.
724
+ #
725
+ # @overload ad_group_label
726
+ # creates an operation instance, yielding a newly fabricated AdGroupLabel
727
+ # which can be used for setting attributes on the newly created resource
728
+ # @overload ad_group_label(res)
729
+ # creates an operation instance, with the resource to be created
730
+ # set to the passed value (res)
731
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupLabel]
732
+ # a resource instance to be used for creation in this operation.
733
+ #
734
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation] instance that will create the resource
735
+ def self.ad_group_label(res = nil, &blk)
736
+ require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
737
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
738
+ if !res.nil?
739
+ op["create"] = res
740
+ elsif !blk.nil?
741
+ op["create"] = Factories::V2::Resources.ad_group_label(&blk)
742
+ end
743
+
744
+ op
745
+ end
746
+
747
+ # A convenience method for creating an AdGroupOperation instance with
748
+ # its "create" field prepopulated with an AdGroup instance.
749
+ #
750
+ # @overload ad_group
751
+ # creates an operation instance, yielding a newly fabricated AdGroup
752
+ # which can be used for setting attributes on the newly created resource
753
+ # @overload ad_group(res)
754
+ # creates an operation instance, with the resource to be created
755
+ # set to the passed value (res)
756
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroup]
757
+ # a resource instance to be used for creation in this operation.
758
+ #
759
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupOperation] instance that will create the resource
760
+ def self.ad_group(res = nil, &blk)
761
+ require "google/ads/google_ads/v2/services/ad_group_service_pb.rb"
762
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupOperation.new
763
+ if !res.nil?
764
+ op["create"] = res
765
+ elsif !blk.nil?
766
+ op["create"] = Factories::V2::Resources.ad_group(&blk)
767
+ end
768
+
769
+ op
770
+ end
771
+
772
+ # A convenience method for creating an AdParameterOperation instance with
773
+ # its "create" field prepopulated with an AdParameter instance.
774
+ #
775
+ # @overload ad_parameter
776
+ # creates an operation instance, yielding a newly fabricated AdParameter
777
+ # which can be used for setting attributes on the newly created resource
778
+ # @overload ad_parameter(res)
779
+ # creates an operation instance, with the resource to be created
780
+ # set to the passed value (res)
781
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdParameter]
782
+ # a resource instance to be used for creation in this operation.
783
+ #
784
+ # @return [Google::Ads::GoogleAds::V2::Services::AdParameterOperation] instance that will create the resource
785
+ def self.ad_parameter(res = nil, &blk)
786
+ require "google/ads/google_ads/v2/services/ad_parameter_service_pb.rb"
787
+ op = Google::Ads::GoogleAds::V2::Services::AdParameterOperation.new
788
+ if !res.nil?
789
+ op["create"] = res
790
+ elsif !blk.nil?
791
+ op["create"] = Factories::V2::Resources.ad_parameter(&blk)
792
+ end
793
+
794
+ op
795
+ end
796
+
797
+ # A convenience method for creating an AssetOperation instance with
798
+ # its "create" field prepopulated with an Asset instance.
799
+ #
800
+ # @overload asset
801
+ # creates an operation instance, yielding a newly fabricated Asset
802
+ # which can be used for setting attributes on the newly created resource
803
+ # @overload asset(res)
804
+ # creates an operation instance, with the resource to be created
805
+ # set to the passed value (res)
806
+ # @param res [Google::Ads::GoogleAds::V2::Resources::Asset]
807
+ # a resource instance to be used for creation in this operation.
808
+ #
809
+ # @return [Google::Ads::GoogleAds::V2::Services::AssetOperation] instance that will create the resource
810
+ def self.asset(res = nil, &blk)
811
+ require "google/ads/google_ads/v2/services/asset_service_pb.rb"
812
+ op = Google::Ads::GoogleAds::V2::Services::AssetOperation.new
813
+ if !res.nil?
814
+ op["create"] = res
815
+ elsif !blk.nil?
816
+ op["create"] = Factories::V2::Resources.asset(&blk)
817
+ end
818
+
819
+ op
820
+ end
821
+
822
+ # A convenience method for creating an BiddingStrategyOperation instance with
823
+ # its "create" field prepopulated with an BiddingStrategy instance.
824
+ #
825
+ # @overload bidding_strategy
826
+ # creates an operation instance, yielding a newly fabricated BiddingStrategy
827
+ # which can be used for setting attributes on the newly created resource
828
+ # @overload bidding_strategy(res)
829
+ # creates an operation instance, with the resource to be created
830
+ # set to the passed value (res)
831
+ # @param res [Google::Ads::GoogleAds::V2::Resources::BiddingStrategy]
832
+ # a resource instance to be used for creation in this operation.
833
+ #
834
+ # @return [Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation] instance that will create the resource
835
+ def self.bidding_strategy(res = nil, &blk)
836
+ require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
837
+ op = Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
838
+ if !res.nil?
839
+ op["create"] = res
840
+ elsif !blk.nil?
841
+ op["create"] = Factories::V2::Resources.bidding_strategy(&blk)
842
+ end
843
+
844
+ op
845
+ end
846
+
847
+ # A convenience method for creating an CampaignBidModifierOperation instance with
848
+ # its "create" field prepopulated with an CampaignBidModifier instance.
849
+ #
850
+ # @overload campaign_bid_modifier
851
+ # creates an operation instance, yielding a newly fabricated CampaignBidModifier
852
+ # which can be used for setting attributes on the newly created resource
853
+ # @overload campaign_bid_modifier(res)
854
+ # creates an operation instance, with the resource to be created
855
+ # set to the passed value (res)
856
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier]
857
+ # a resource instance to be used for creation in this operation.
858
+ #
859
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation] instance that will create the resource
860
+ def self.campaign_bid_modifier(res = nil, &blk)
861
+ require "google/ads/google_ads/v2/services/campaign_bid_modifier_service_pb.rb"
862
+ op = Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation.new
863
+ if !res.nil?
864
+ op["create"] = res
865
+ elsif !blk.nil?
866
+ op["create"] = Factories::V2::Resources.campaign_bid_modifier(&blk)
867
+ end
868
+
869
+ op
870
+ end
871
+
872
+ # A convenience method for creating an CampaignBudgetOperation instance with
873
+ # its "create" field prepopulated with an CampaignBudget instance.
874
+ #
875
+ # @overload campaign_budget
876
+ # creates an operation instance, yielding a newly fabricated CampaignBudget
877
+ # which can be used for setting attributes on the newly created resource
878
+ # @overload campaign_budget(res)
879
+ # creates an operation instance, with the resource to be created
880
+ # set to the passed value (res)
881
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignBudget]
882
+ # a resource instance to be used for creation in this operation.
883
+ #
884
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation] instance that will create the resource
885
+ def self.campaign_budget(res = nil, &blk)
886
+ require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
887
+ op = Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
888
+ if !res.nil?
889
+ op["create"] = res
890
+ elsif !blk.nil?
891
+ op["create"] = Factories::V2::Resources.campaign_budget(&blk)
892
+ end
893
+
894
+ op
895
+ end
896
+
897
+ # A convenience method for creating an CampaignCriterionOperation instance with
898
+ # its "create" field prepopulated with an CampaignCriterion instance.
899
+ #
900
+ # @overload campaign_criterion
901
+ # creates an operation instance, yielding a newly fabricated CampaignCriterion
902
+ # which can be used for setting attributes on the newly created resource
903
+ # @overload campaign_criterion(res)
904
+ # creates an operation instance, with the resource to be created
905
+ # set to the passed value (res)
906
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignCriterion]
907
+ # a resource instance to be used for creation in this operation.
908
+ #
909
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation] instance that will create the resource
910
+ def self.campaign_criterion(res = nil, &blk)
911
+ require "google/ads/google_ads/v2/services/campaign_criterion_service_pb.rb"
912
+ op = Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation.new
913
+ if !res.nil?
914
+ op["create"] = res
915
+ elsif !blk.nil?
916
+ op["create"] = Factories::V2::Resources.campaign_criterion(&blk)
917
+ end
918
+
919
+ op
920
+ end
921
+
922
+ # A convenience method for creating an CampaignDraftOperation instance with
923
+ # its "create" field prepopulated with an CampaignDraft instance.
924
+ #
925
+ # @overload campaign_draft
926
+ # creates an operation instance, yielding a newly fabricated CampaignDraft
927
+ # which can be used for setting attributes on the newly created resource
928
+ # @overload campaign_draft(res)
929
+ # creates an operation instance, with the resource to be created
930
+ # set to the passed value (res)
931
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignDraft]
932
+ # a resource instance to be used for creation in this operation.
933
+ #
934
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] instance that will create the resource
935
+ def self.campaign_draft(res = nil, &blk)
936
+ require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
937
+ op = Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
938
+ if !res.nil?
939
+ op["create"] = res
940
+ elsif !blk.nil?
941
+ op["create"] = Factories::V2::Resources.campaign_draft(&blk)
942
+ end
943
+
944
+ op
945
+ end
946
+
947
+ # A convenience method for creating an CampaignExtensionSettingOperation instance with
948
+ # its "create" field prepopulated with an CampaignExtensionSetting instance.
949
+ #
950
+ # @overload campaign_extension_setting
951
+ # creates an operation instance, yielding a newly fabricated CampaignExtensionSetting
952
+ # which can be used for setting attributes on the newly created resource
953
+ # @overload campaign_extension_setting(res)
954
+ # creates an operation instance, with the resource to be created
955
+ # set to the passed value (res)
956
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignExtensionSetting]
957
+ # a resource instance to be used for creation in this operation.
958
+ #
959
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation] instance that will create the resource
960
+ def self.campaign_extension_setting(res = nil, &blk)
961
+ require "google/ads/google_ads/v2/services/campaign_extension_setting_service_pb.rb"
962
+ op = Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation.new
963
+ if !res.nil?
964
+ op["create"] = res
965
+ elsif !blk.nil?
966
+ op["create"] = Factories::V2::Resources.campaign_extension_setting(&blk)
967
+ end
968
+
969
+ op
970
+ end
971
+
972
+ # A convenience method for creating an CampaignFeedOperation instance with
973
+ # its "create" field prepopulated with an CampaignFeed instance.
974
+ #
975
+ # @overload campaign_feed
976
+ # creates an operation instance, yielding a newly fabricated CampaignFeed
977
+ # which can be used for setting attributes on the newly created resource
978
+ # @overload campaign_feed(res)
979
+ # creates an operation instance, with the resource to be created
980
+ # set to the passed value (res)
981
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignFeed]
982
+ # a resource instance to be used for creation in this operation.
983
+ #
984
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] instance that will create the resource
985
+ def self.campaign_feed(res = nil, &blk)
986
+ require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
987
+ op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
988
+ if !res.nil?
989
+ op["create"] = res
990
+ elsif !blk.nil?
991
+ op["create"] = Factories::V2::Resources.campaign_feed(&blk)
992
+ end
993
+
994
+ op
995
+ end
996
+
997
+ # A convenience method for creating an CampaignLabelOperation instance with
998
+ # its "create" field prepopulated with an CampaignLabel instance.
999
+ #
1000
+ # @overload campaign_label
1001
+ # creates an operation instance, yielding a newly fabricated CampaignLabel
1002
+ # which can be used for setting attributes on the newly created resource
1003
+ # @overload campaign_label(res)
1004
+ # creates an operation instance, with the resource to be created
1005
+ # set to the passed value (res)
1006
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignLabel]
1007
+ # a resource instance to be used for creation in this operation.
1008
+ #
1009
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation] instance that will create the resource
1010
+ def self.campaign_label(res = nil, &blk)
1011
+ require "google/ads/google_ads/v2/services/campaign_label_service_pb.rb"
1012
+ op = Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation.new
1013
+ if !res.nil?
1014
+ op["create"] = res
1015
+ elsif !blk.nil?
1016
+ op["create"] = Factories::V2::Resources.campaign_label(&blk)
1017
+ end
1018
+
1019
+ op
1020
+ end
1021
+
1022
+ # A convenience method for creating an CampaignOperation instance with
1023
+ # its "create" field prepopulated with an Campaign instance.
1024
+ #
1025
+ # @overload campaign
1026
+ # creates an operation instance, yielding a newly fabricated Campaign
1027
+ # which can be used for setting attributes on the newly created resource
1028
+ # @overload campaign(res)
1029
+ # creates an operation instance, with the resource to be created
1030
+ # set to the passed value (res)
1031
+ # @param res [Google::Ads::GoogleAds::V2::Resources::Campaign]
1032
+ # a resource instance to be used for creation in this operation.
1033
+ #
1034
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignOperation] instance that will create the resource
1035
+ def self.campaign(res = nil, &blk)
1036
+ require "google/ads/google_ads/v2/services/campaign_service_pb.rb"
1037
+ op = Google::Ads::GoogleAds::V2::Services::CampaignOperation.new
1038
+ if !res.nil?
1039
+ op["create"] = res
1040
+ elsif !blk.nil?
1041
+ op["create"] = Factories::V2::Resources.campaign(&blk)
1042
+ end
1043
+
1044
+ op
1045
+ end
1046
+
1047
+ # A convenience method for creating an CampaignSharedSetOperation instance with
1048
+ # its "create" field prepopulated with an CampaignSharedSet instance.
1049
+ #
1050
+ # @overload campaign_shared_set
1051
+ # creates an operation instance, yielding a newly fabricated CampaignSharedSet
1052
+ # which can be used for setting attributes on the newly created resource
1053
+ # @overload campaign_shared_set(res)
1054
+ # creates an operation instance, with the resource to be created
1055
+ # set to the passed value (res)
1056
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignSharedSet]
1057
+ # a resource instance to be used for creation in this operation.
1058
+ #
1059
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation] instance that will create the resource
1060
+ def self.campaign_shared_set(res = nil, &blk)
1061
+ require "google/ads/google_ads/v2/services/campaign_shared_set_service_pb.rb"
1062
+ op = Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation.new
1063
+ if !res.nil?
1064
+ op["create"] = res
1065
+ elsif !blk.nil?
1066
+ op["create"] = Factories::V2::Resources.campaign_shared_set(&blk)
1067
+ end
1068
+
1069
+ op
1070
+ end
1071
+
1072
+ # A convenience method for creating an ConversionActionOperation instance with
1073
+ # its "create" field prepopulated with an ConversionAction instance.
1074
+ #
1075
+ # @overload conversion_action
1076
+ # creates an operation instance, yielding a newly fabricated ConversionAction
1077
+ # which can be used for setting attributes on the newly created resource
1078
+ # @overload conversion_action(res)
1079
+ # creates an operation instance, with the resource to be created
1080
+ # set to the passed value (res)
1081
+ # @param res [Google::Ads::GoogleAds::V2::Resources::ConversionAction]
1082
+ # a resource instance to be used for creation in this operation.
1083
+ #
1084
+ # @return [Google::Ads::GoogleAds::V2::Services::ConversionActionOperation] instance that will create the resource
1085
+ def self.conversion_action(res = nil, &blk)
1086
+ require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
1087
+ op = Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
1088
+ if !res.nil?
1089
+ op["create"] = res
1090
+ elsif !blk.nil?
1091
+ op["create"] = Factories::V2::Resources.conversion_action(&blk)
1092
+ end
1093
+
1094
+ op
1095
+ end
1096
+
1097
+ # A convenience method for creating an CustomerExtensionSettingOperation instance with
1098
+ # its "create" field prepopulated with an CustomerExtensionSetting instance.
1099
+ #
1100
+ # @overload customer_extension_setting
1101
+ # creates an operation instance, yielding a newly fabricated CustomerExtensionSetting
1102
+ # which can be used for setting attributes on the newly created resource
1103
+ # @overload customer_extension_setting(res)
1104
+ # creates an operation instance, with the resource to be created
1105
+ # set to the passed value (res)
1106
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CustomerExtensionSetting]
1107
+ # a resource instance to be used for creation in this operation.
1108
+ #
1109
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerExtensionSettingOperation] instance that will create the resource
1110
+ def self.customer_extension_setting(res = nil, &blk)
1111
+ require "google/ads/google_ads/v2/services/customer_extension_setting_service_pb.rb"
1112
+ op = Google::Ads::GoogleAds::V2::Services::CustomerExtensionSettingOperation.new
1113
+ if !res.nil?
1114
+ op["create"] = res
1115
+ elsif !blk.nil?
1116
+ op["create"] = Factories::V2::Resources.customer_extension_setting(&blk)
1117
+ end
1118
+
1119
+ op
1120
+ end
1121
+
1122
+ # A convenience method for creating an CustomerFeedOperation instance with
1123
+ # its "create" field prepopulated with an CustomerFeed instance.
1124
+ #
1125
+ # @overload customer_feed
1126
+ # creates an operation instance, yielding a newly fabricated CustomerFeed
1127
+ # which can be used for setting attributes on the newly created resource
1128
+ # @overload customer_feed(res)
1129
+ # creates an operation instance, with the resource to be created
1130
+ # set to the passed value (res)
1131
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CustomerFeed]
1132
+ # a resource instance to be used for creation in this operation.
1133
+ #
1134
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerFeedOperation] instance that will create the resource
1135
+ def self.customer_feed(res = nil, &blk)
1136
+ require "google/ads/google_ads/v2/services/customer_feed_service_pb.rb"
1137
+ op = Google::Ads::GoogleAds::V2::Services::CustomerFeedOperation.new
1138
+ if !res.nil?
1139
+ op["create"] = res
1140
+ elsif !blk.nil?
1141
+ op["create"] = Factories::V2::Resources.customer_feed(&blk)
1142
+ end
1143
+
1144
+ op
1145
+ end
1146
+
1147
+ # A convenience method for creating an CustomerLabelOperation instance with
1148
+ # its "create" field prepopulated with an CustomerLabel instance.
1149
+ #
1150
+ # @overload customer_label
1151
+ # creates an operation instance, yielding a newly fabricated CustomerLabel
1152
+ # which can be used for setting attributes on the newly created resource
1153
+ # @overload customer_label(res)
1154
+ # creates an operation instance, with the resource to be created
1155
+ # set to the passed value (res)
1156
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CustomerLabel]
1157
+ # a resource instance to be used for creation in this operation.
1158
+ #
1159
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation] instance that will create the resource
1160
+ def self.customer_label(res = nil, &blk)
1161
+ require "google/ads/google_ads/v2/services/customer_label_service_pb.rb"
1162
+ op = Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation.new
1163
+ if !res.nil?
1164
+ op["create"] = res
1165
+ elsif !blk.nil?
1166
+ op["create"] = Factories::V2::Resources.customer_label(&blk)
1167
+ end
1168
+
1169
+ op
1170
+ end
1171
+
1172
+ # A convenience method for creating an CustomerNegativeCriterionOperation instance with
1173
+ # its "create" field prepopulated with an CustomerNegativeCriterion instance.
1174
+ #
1175
+ # @overload customer_negative_criterion
1176
+ # creates an operation instance, yielding a newly fabricated CustomerNegativeCriterion
1177
+ # which can be used for setting attributes on the newly created resource
1178
+ # @overload customer_negative_criterion(res)
1179
+ # creates an operation instance, with the resource to be created
1180
+ # set to the passed value (res)
1181
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CustomerNegativeCriterion]
1182
+ # a resource instance to be used for creation in this operation.
1183
+ #
1184
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation] instance that will create the resource
1185
+ def self.customer_negative_criterion(res = nil, &blk)
1186
+ require "google/ads/google_ads/v2/services/customer_negative_criterion_service_pb.rb"
1187
+ op = Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation.new
1188
+ if !res.nil?
1189
+ op["create"] = res
1190
+ elsif !blk.nil?
1191
+ op["create"] = Factories::V2::Resources.customer_negative_criterion(&blk)
1192
+ end
1193
+
1194
+ op
1195
+ end
1196
+
1197
+ # A convenience method for creating an ExtensionFeedItemOperation instance with
1198
+ # its "create" field prepopulated with an ExtensionFeedItem instance.
1199
+ #
1200
+ # @overload extension_feed_item
1201
+ # creates an operation instance, yielding a newly fabricated ExtensionFeedItem
1202
+ # which can be used for setting attributes on the newly created resource
1203
+ # @overload extension_feed_item(res)
1204
+ # creates an operation instance, with the resource to be created
1205
+ # set to the passed value (res)
1206
+ # @param res [Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem]
1207
+ # a resource instance to be used for creation in this operation.
1208
+ #
1209
+ # @return [Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation] instance that will create the resource
1210
+ def self.extension_feed_item(res = nil, &blk)
1211
+ require "google/ads/google_ads/v2/services/extension_feed_item_service_pb.rb"
1212
+ op = Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation.new
1213
+ if !res.nil?
1214
+ op["create"] = res
1215
+ elsif !blk.nil?
1216
+ op["create"] = Factories::V2::Resources.extension_feed_item(&blk)
1217
+ end
1218
+
1219
+ op
1220
+ end
1221
+
1222
+ # A convenience method for creating an FeedItemOperation instance with
1223
+ # its "create" field prepopulated with an FeedItem instance.
1224
+ #
1225
+ # @overload feed_item
1226
+ # creates an operation instance, yielding a newly fabricated FeedItem
1227
+ # which can be used for setting attributes on the newly created resource
1228
+ # @overload feed_item(res)
1229
+ # creates an operation instance, with the resource to be created
1230
+ # set to the passed value (res)
1231
+ # @param res [Google::Ads::GoogleAds::V2::Resources::FeedItem]
1232
+ # a resource instance to be used for creation in this operation.
1233
+ #
1234
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedItemOperation] instance that will create the resource
1235
+ def self.feed_item(res = nil, &blk)
1236
+ require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
1237
+ op = Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
1238
+ if !res.nil?
1239
+ op["create"] = res
1240
+ elsif !blk.nil?
1241
+ op["create"] = Factories::V2::Resources.feed_item(&blk)
1242
+ end
1243
+
1244
+ op
1245
+ end
1246
+
1247
+ # A convenience method for creating an FeedItemTargetOperation instance with
1248
+ # its "create" field prepopulated with an FeedItemTarget instance.
1249
+ #
1250
+ # @overload feed_item_target
1251
+ # creates an operation instance, yielding a newly fabricated FeedItemTarget
1252
+ # which can be used for setting attributes on the newly created resource
1253
+ # @overload feed_item_target(res)
1254
+ # creates an operation instance, with the resource to be created
1255
+ # set to the passed value (res)
1256
+ # @param res [Google::Ads::GoogleAds::V2::Resources::FeedItemTarget]
1257
+ # a resource instance to be used for creation in this operation.
1258
+ #
1259
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedItemTargetOperation] instance that will create the resource
1260
+ def self.feed_item_target(res = nil, &blk)
1261
+ require "google/ads/google_ads/v2/services/feed_item_target_service_pb.rb"
1262
+ op = Google::Ads::GoogleAds::V2::Services::FeedItemTargetOperation.new
1263
+ if !res.nil?
1264
+ op["create"] = res
1265
+ elsif !blk.nil?
1266
+ op["create"] = Factories::V2::Resources.feed_item_target(&blk)
1267
+ end
1268
+
1269
+ op
1270
+ end
1271
+
1272
+ # A convenience method for creating an FeedMappingOperation instance with
1273
+ # its "create" field prepopulated with an FeedMapping instance.
1274
+ #
1275
+ # @overload feed_mapping
1276
+ # creates an operation instance, yielding a newly fabricated FeedMapping
1277
+ # which can be used for setting attributes on the newly created resource
1278
+ # @overload feed_mapping(res)
1279
+ # creates an operation instance, with the resource to be created
1280
+ # set to the passed value (res)
1281
+ # @param res [Google::Ads::GoogleAds::V2::Resources::FeedMapping]
1282
+ # a resource instance to be used for creation in this operation.
1283
+ #
1284
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedMappingOperation] instance that will create the resource
1285
+ def self.feed_mapping(res = nil, &blk)
1286
+ require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
1287
+ op = Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
1288
+ if !res.nil?
1289
+ op["create"] = res
1290
+ elsif !blk.nil?
1291
+ op["create"] = Factories::V2::Resources.feed_mapping(&blk)
1292
+ end
1293
+
1294
+ op
1295
+ end
1296
+
1297
+ # A convenience method for creating an FeedOperation instance with
1298
+ # its "create" field prepopulated with an Feed instance.
1299
+ #
1300
+ # @overload feed
1301
+ # creates an operation instance, yielding a newly fabricated Feed
1302
+ # which can be used for setting attributes on the newly created resource
1303
+ # @overload feed(res)
1304
+ # creates an operation instance, with the resource to be created
1305
+ # set to the passed value (res)
1306
+ # @param res [Google::Ads::GoogleAds::V2::Resources::Feed]
1307
+ # a resource instance to be used for creation in this operation.
1308
+ #
1309
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] instance that will create the resource
1310
+ def self.feed(res = nil, &blk)
1311
+ require "google/ads/google_ads/v2/services/feed_service_pb.rb"
1312
+ op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
1313
+ if !res.nil?
1314
+ op["create"] = res
1315
+ elsif !blk.nil?
1316
+ op["create"] = Factories::V2::Resources.feed(&blk)
1317
+ end
1318
+
1319
+ op
1320
+ end
1321
+
1322
+ # A convenience method for creating an LabelOperation instance with
1323
+ # its "create" field prepopulated with an Label instance.
1324
+ #
1325
+ # @overload label
1326
+ # creates an operation instance, yielding a newly fabricated Label
1327
+ # which can be used for setting attributes on the newly created resource
1328
+ # @overload label(res)
1329
+ # creates an operation instance, with the resource to be created
1330
+ # set to the passed value (res)
1331
+ # @param res [Google::Ads::GoogleAds::V2::Resources::Label]
1332
+ # a resource instance to be used for creation in this operation.
1333
+ #
1334
+ # @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] instance that will create the resource
1335
+ def self.label(res = nil, &blk)
1336
+ require "google/ads/google_ads/v2/services/label_service_pb.rb"
1337
+ op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
1338
+ if !res.nil?
1339
+ op["create"] = res
1340
+ elsif !blk.nil?
1341
+ op["create"] = Factories::V2::Resources.label(&blk)
1342
+ end
1343
+
1344
+ op
1345
+ end
1346
+
1347
+ # A convenience method for creating an MediaFileOperation instance with
1348
+ # its "create" field prepopulated with an MediaFile instance.
1349
+ #
1350
+ # @overload media_file
1351
+ # creates an operation instance, yielding a newly fabricated MediaFile
1352
+ # which can be used for setting attributes on the newly created resource
1353
+ # @overload media_file(res)
1354
+ # creates an operation instance, with the resource to be created
1355
+ # set to the passed value (res)
1356
+ # @param res [Google::Ads::GoogleAds::V2::Resources::MediaFile]
1357
+ # a resource instance to be used for creation in this operation.
1358
+ #
1359
+ # @return [Google::Ads::GoogleAds::V2::Services::MediaFileOperation] instance that will create the resource
1360
+ def self.media_file(res = nil, &blk)
1361
+ require "google/ads/google_ads/v2/services/media_file_service_pb.rb"
1362
+ op = Google::Ads::GoogleAds::V2::Services::MediaFileOperation.new
1363
+ if !res.nil?
1364
+ op["create"] = res
1365
+ elsif !blk.nil?
1366
+ op["create"] = Factories::V2::Resources.media_file(&blk)
1367
+ end
1368
+
1369
+ op
1370
+ end
1371
+
1372
+ # A convenience method for creating an SharedCriterionOperation instance with
1373
+ # its "create" field prepopulated with an SharedCriterion instance.
1374
+ #
1375
+ # @overload shared_criterion
1376
+ # creates an operation instance, yielding a newly fabricated SharedCriterion
1377
+ # which can be used for setting attributes on the newly created resource
1378
+ # @overload shared_criterion(res)
1379
+ # creates an operation instance, with the resource to be created
1380
+ # set to the passed value (res)
1381
+ # @param res [Google::Ads::GoogleAds::V2::Resources::SharedCriterion]
1382
+ # a resource instance to be used for creation in this operation.
1383
+ #
1384
+ # @return [Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation] instance that will create the resource
1385
+ def self.shared_criterion(res = nil, &blk)
1386
+ require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
1387
+ op = Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
1388
+ if !res.nil?
1389
+ op["create"] = res
1390
+ elsif !blk.nil?
1391
+ op["create"] = Factories::V2::Resources.shared_criterion(&blk)
1392
+ end
1393
+
1394
+ op
1395
+ end
1396
+
1397
+ # A convenience method for creating an SharedSetOperation instance with
1398
+ # its "create" field prepopulated with an SharedSet instance.
1399
+ #
1400
+ # @overload shared_set
1401
+ # creates an operation instance, yielding a newly fabricated SharedSet
1402
+ # which can be used for setting attributes on the newly created resource
1403
+ # @overload shared_set(res)
1404
+ # creates an operation instance, with the resource to be created
1405
+ # set to the passed value (res)
1406
+ # @param res [Google::Ads::GoogleAds::V2::Resources::SharedSet]
1407
+ # a resource instance to be used for creation in this operation.
1408
+ #
1409
+ # @return [Google::Ads::GoogleAds::V2::Services::SharedSetOperation] instance that will create the resource
1410
+ def self.shared_set(res = nil, &blk)
1411
+ require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
1412
+ op = Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
1413
+ if !res.nil?
1414
+ op["create"] = res
1415
+ elsif !blk.nil?
1416
+ op["create"] = Factories::V2::Resources.shared_set(&blk)
1417
+ end
1418
+
1419
+ op
1420
+ end
1421
+
1422
+ # A convenience method for creating an UserListOperation instance with
1423
+ # its "create" field prepopulated with an UserList instance.
1424
+ #
1425
+ # @overload user_list
1426
+ # creates an operation instance, yielding a newly fabricated UserList
1427
+ # which can be used for setting attributes on the newly created resource
1428
+ # @overload user_list(res)
1429
+ # creates an operation instance, with the resource to be created
1430
+ # set to the passed value (res)
1431
+ # @param res [Google::Ads::GoogleAds::V2::Resources::UserList]
1432
+ # a resource instance to be used for creation in this operation.
1433
+ #
1434
+ # @return [Google::Ads::GoogleAds::V2::Services::UserListOperation] instance that will create the resource
1435
+ def self.user_list(res = nil, &blk)
1436
+ require "google/ads/google_ads/v2/services/user_list_service_pb.rb"
1437
+ op = Google::Ads::GoogleAds::V2::Services::UserListOperation.new
1438
+ if !res.nil?
1439
+ op["create"] = res
1440
+ elsif !blk.nil?
1441
+ op["create"] = Factories::V2::Resources.user_list(&blk)
1442
+ end
1443
+
1444
+ op
1445
+ end
1446
+
1447
+ # A convenience method for creating an KeywordPlanKeywordOperation instance with
1448
+ # its "create" field prepopulated with an KeywordPlanKeyword instance.
1449
+ #
1450
+ # @overload keyword_plan_keyword
1451
+ # creates an operation instance, yielding a newly fabricated KeywordPlanKeyword
1452
+ # which can be used for setting attributes on the newly created resource
1453
+ # @overload keyword_plan_keyword(res)
1454
+ # creates an operation instance, with the resource to be created
1455
+ # set to the passed value (res)
1456
+ # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword]
1457
+ # a resource instance to be used for creation in this operation.
1458
+ #
1459
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] instance that will create the resource
1460
+ def self.keyword_plan_keyword(res = nil, &blk)
1461
+ require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
1462
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
1463
+ if !res.nil?
1464
+ op["create"] = res
1465
+ elsif !blk.nil?
1466
+ op["create"] = Factories::V2::Resources.keyword_plan_keyword(&blk)
1467
+ end
1468
+
1469
+ op
1470
+ end
1471
+
1472
+ # A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with
1473
+ # its "create" field prepopulated with an KeywordPlanNegativeKeyword instance.
1474
+ #
1475
+ # @overload keyword_plan_negative_keyword
1476
+ # creates an operation instance, yielding a newly fabricated KeywordPlanNegativeKeyword
1477
+ # which can be used for setting attributes on the newly created resource
1478
+ # @overload keyword_plan_negative_keyword(res)
1479
+ # creates an operation instance, with the resource to be created
1480
+ # set to the passed value (res)
1481
+ # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword]
1482
+ # a resource instance to be used for creation in this operation.
1483
+ #
1484
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] instance that will create the resource
1485
+ def self.keyword_plan_negative_keyword(res = nil, &blk)
1486
+ require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
1487
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
1488
+ if !res.nil?
1489
+ op["create"] = res
1490
+ elsif !blk.nil?
1491
+ op["create"] = Factories::V2::Resources.keyword_plan_negative_keyword(&blk)
1492
+ end
1493
+
1494
+ op
1495
+ end
1496
+
1497
+ # A convenience method for creating an KeywordPlanOperation instance with
1498
+ # its "create" field prepopulated with an KeywordPlan instance.
1499
+ #
1500
+ # @overload keyword_plan
1501
+ # creates an operation instance, yielding a newly fabricated KeywordPlan
1502
+ # which can be used for setting attributes on the newly created resource
1503
+ # @overload keyword_plan(res)
1504
+ # creates an operation instance, with the resource to be created
1505
+ # set to the passed value (res)
1506
+ # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlan]
1507
+ # a resource instance to be used for creation in this operation.
1508
+ #
1509
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] instance that will create the resource
1510
+ def self.keyword_plan(res = nil, &blk)
1511
+ require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
1512
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
1513
+ if !res.nil?
1514
+ op["create"] = res
1515
+ elsif !blk.nil?
1516
+ op["create"] = Factories::V2::Resources.keyword_plan(&blk)
1517
+ end
1518
+
1519
+ op
1520
+ end
1521
+
1522
+ # A convenience method for creating an AccountBudgetProposalOperation instance with
1523
+ # its "create" field prepopulated with an AccountBudgetProposal instance.
1524
+ #
1525
+ # @overload account_budget_proposal
1526
+ # creates an operation instance, yielding a newly fabricated AccountBudgetProposal
1527
+ # which can be used for setting attributes on the newly created resource
1528
+ # @overload account_budget_proposal(res)
1529
+ # creates an operation instance, with the resource to be created
1530
+ # set to the passed value (res)
1531
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AccountBudgetProposal]
1532
+ # a resource instance to be used for creation in this operation.
1533
+ #
1534
+ # @return [Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation] instance that will create the resource
1535
+ def self.account_budget_proposal(res = nil, &blk)
1536
+ require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
1537
+ op = Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
1538
+ if !res.nil?
1539
+ op["create"] = res
1540
+ elsif !blk.nil?
1541
+ op["create"] = Factories::V2::Resources.account_budget_proposal(&blk)
1542
+ end
1543
+
1544
+ op
1545
+ end
1546
+
1547
+ # A convenience method for creating an CustomerClientLinkOperation instance with
1548
+ # its "create" field prepopulated with an CustomerClientLink instance.
1549
+ #
1550
+ # @overload customer_client_link
1551
+ # creates an operation instance, yielding a newly fabricated CustomerClientLink
1552
+ # which can be used for setting attributes on the newly created resource
1553
+ # @overload customer_client_link(res)
1554
+ # creates an operation instance, with the resource to be created
1555
+ # set to the passed value (res)
1556
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink]
1557
+ # a resource instance to be used for creation in this operation.
1558
+ #
1559
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] instance that will create the resource
1560
+ def self.customer_client_link(res = nil, &blk)
1561
+ require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
1562
+ op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
1563
+ if !res.nil?
1564
+ op["create"] = res
1565
+ elsif !blk.nil?
1566
+ op["create"] = Factories::V2::Resources.customer_client_link(&blk)
1567
+ end
1568
+
1569
+ op
1570
+ end
1571
+
1572
+ # A convenience method for creating an BillingSetupOperation instance with
1573
+ # its "create" field prepopulated with an BillingSetup instance.
1574
+ #
1575
+ # @overload billing_setup
1576
+ # creates an operation instance, yielding a newly fabricated BillingSetup
1577
+ # which can be used for setting attributes on the newly created resource
1578
+ # @overload billing_setup(res)
1579
+ # creates an operation instance, with the resource to be created
1580
+ # set to the passed value (res)
1581
+ # @param res [Google::Ads::GoogleAds::V2::Resources::BillingSetup]
1582
+ # a resource instance to be used for creation in this operation.
1583
+ #
1584
+ # @return [Google::Ads::GoogleAds::V2::Services::BillingSetupOperation] instance that will create the resource
1585
+ def self.billing_setup(res = nil, &blk)
1586
+ require "google/ads/google_ads/v2/services/billing_setup_service_pb.rb"
1587
+ op = Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
1588
+ if !res.nil?
1589
+ op["create"] = res
1590
+ elsif !blk.nil?
1591
+ op["create"] = Factories::V2::Resources.billing_setup(&blk)
1592
+ end
1593
+
1594
+ op
1595
+ end
1596
+
1597
+ # A convenience method for creating an KeywordPlanAdGroupOperation instance with
1598
+ # its "create" field prepopulated with an KeywordPlanAdGroup instance.
1599
+ #
1600
+ # @overload keyword_plan_ad_group
1601
+ # creates an operation instance, yielding a newly fabricated KeywordPlanAdGroup
1602
+ # which can be used for setting attributes on the newly created resource
1603
+ # @overload keyword_plan_ad_group(res)
1604
+ # creates an operation instance, with the resource to be created
1605
+ # set to the passed value (res)
1606
+ # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup]
1607
+ # a resource instance to be used for creation in this operation.
1608
+ #
1609
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation] instance that will create the resource
1610
+ def self.keyword_plan_ad_group(res = nil, &blk)
1611
+ require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
1612
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
1613
+ if !res.nil?
1614
+ op["create"] = res
1615
+ elsif !blk.nil?
1616
+ op["create"] = Factories::V2::Resources.keyword_plan_ad_group(&blk)
1617
+ end
1618
+
1619
+ op
1620
+ end
1621
+ end
1622
+
1623
+ module UpdateResource
1624
+ # A convenience method for creating an CustomInterestOperation instance with
1625
+ # its "update" field prepopulated with an CustomInterest instance, and
1626
+ # its "update_mask" field populated as needed to send the updates to the API.
1627
+ #
1628
+ # @overload #custom_interest(path, &blk)
1629
+ # @param path [String] a resource path for the resource to update
1630
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CustomInterest] a new instance of the resource for this update operation, on
1631
+ # which fields can be set to update
1632
+ #
1633
+ # @overload #custom_interest(resource, &blk)
1634
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CustomInterest] a resource instance to update
1635
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
1636
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] the operation instance to update the resource
1637
+ def self.custom_interest(resource_or_path, &blk)
1638
+ require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
1639
+ res = case resource_or_path
1640
+ when Google::Ads::GoogleAds::V2::Resources::CustomInterest
1641
+ resource_or_path
1642
+ # got a resource path
1643
+ when String
1644
+ obj = Google::Ads::GoogleAds::V2::Resources::CustomInterest.new
1645
+ obj.resource_name = resource_or_path
1646
+ obj
1647
+ else
1648
+ unless Google::Ads::GoogleAds::V2::Resources::CustomInterest === res
1649
+ raise ArgumentError.new(
1650
+ "Called #{__method__} with instance of wrong type:"\
1651
+ " #{res.class} want #{operation.update_class}"\
1652
+ " or String representing resource name"
1653
+ )
1654
+ end
1655
+ end
1656
+
1657
+ op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
1658
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1659
+ op["update"] = res
1660
+ op
1661
+ end
1662
+
1663
+ # A convenience method for creating an RemarketingActionOperation instance with
1664
+ # its "update" field prepopulated with an RemarketingAction instance, and
1665
+ # its "update_mask" field populated as needed to send the updates to the API.
1666
+ #
1667
+ # @overload #remarketing_action(path, &blk)
1668
+ # @param path [String] a resource path for the resource to update
1669
+ # @yield [Google::Ads::GoogleAds::V2::Resources::RemarketingAction] a new instance of the resource for this update operation, on
1670
+ # which fields can be set to update
1671
+ #
1672
+ # @overload #remarketing_action(resource, &blk)
1673
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::RemarketingAction] a resource instance to update
1674
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
1675
+ # @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] the operation instance to update the resource
1676
+ def self.remarketing_action(resource_or_path, &blk)
1677
+ require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
1678
+ res = case resource_or_path
1679
+ when Google::Ads::GoogleAds::V2::Resources::RemarketingAction
1680
+ resource_or_path
1681
+ # got a resource path
1682
+ when String
1683
+ obj = Google::Ads::GoogleAds::V2::Resources::RemarketingAction.new
1684
+ obj.resource_name = resource_or_path
1685
+ obj
1686
+ else
1687
+ unless Google::Ads::GoogleAds::V2::Resources::RemarketingAction === res
1688
+ raise ArgumentError.new(
1689
+ "Called #{__method__} with instance of wrong type:"\
1690
+ " #{res.class} want #{operation.update_class}"\
1691
+ " or String representing resource name"
1692
+ )
1693
+ end
1694
+ end
1695
+
1696
+ op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
1697
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1698
+ op["update"] = res
1699
+ op
1700
+ end
1701
+
1702
+ # A convenience method for creating an KeywordPlanCampaignOperation instance with
1703
+ # its "update" field prepopulated with an KeywordPlanCampaign instance, and
1704
+ # its "update_mask" field populated as needed to send the updates to the API.
1705
+ #
1706
+ # @overload #keyword_plan_campaign(path, &blk)
1707
+ # @param path [String] a resource path for the resource to update
1708
+ # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign] a new instance of the resource for this update operation, on
1709
+ # which fields can be set to update
1710
+ #
1711
+ # @overload #keyword_plan_campaign(resource, &blk)
1712
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign] a resource instance to update
1713
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
1714
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] the operation instance to update the resource
1715
+ def self.keyword_plan_campaign(resource_or_path, &blk)
1716
+ require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
1717
+ res = case resource_or_path
1718
+ when Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign
1719
+ resource_or_path
1720
+ # got a resource path
1721
+ when String
1722
+ obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign.new
1723
+ obj.resource_name = resource_or_path
1724
+ obj
1725
+ else
1726
+ unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign === res
1727
+ raise ArgumentError.new(
1728
+ "Called #{__method__} with instance of wrong type:"\
1729
+ " #{res.class} want #{operation.update_class}"\
1730
+ " or String representing resource name"
1731
+ )
1732
+ end
1733
+ end
1734
+
1735
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
1736
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1737
+ op["update"] = res
1738
+ op
1739
+ end
1740
+
1741
+ # A convenience method for creating an AdGroupAdOperation instance with
1742
+ # its "update" field prepopulated with an AdGroupAd instance, and
1743
+ # its "update_mask" field populated as needed to send the updates to the API.
1744
+ #
1745
+ # @overload #ad_group_ad(path, &blk)
1746
+ # @param path [String] a resource path for the resource to update
1747
+ # @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupAd] a new instance of the resource for this update operation, on
1748
+ # which fields can be set to update
1749
+ #
1750
+ # @overload #ad_group_ad(resource, &blk)
1751
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupAd] a resource instance to update
1752
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
1753
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation] the operation instance to update the resource
1754
+ def self.ad_group_ad(resource_or_path, &blk)
1755
+ require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
1756
+ res = case resource_or_path
1757
+ when Google::Ads::GoogleAds::V2::Resources::AdGroupAd
1758
+ resource_or_path
1759
+ # got a resource path
1760
+ when String
1761
+ obj = Google::Ads::GoogleAds::V2::Resources::AdGroupAd.new
1762
+ obj.resource_name = resource_or_path
1763
+ obj
1764
+ else
1765
+ unless Google::Ads::GoogleAds::V2::Resources::AdGroupAd === res
1766
+ raise ArgumentError.new(
1767
+ "Called #{__method__} with instance of wrong type:"\
1768
+ " #{res.class} want #{operation.update_class}"\
1769
+ " or String representing resource name"
1770
+ )
1771
+ end
1772
+ end
1773
+
1774
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
1775
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1776
+ op["update"] = res
1777
+ op
1778
+ end
1779
+
1780
+ # A convenience method for creating an AdGroupBidModifierOperation instance with
1781
+ # its "update" field prepopulated with an AdGroupBidModifier instance, and
1782
+ # its "update_mask" field populated as needed to send the updates to the API.
1783
+ #
1784
+ # @overload #ad_group_bid_modifier(path, &blk)
1785
+ # @param path [String] a resource path for the resource to update
1786
+ # @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier] a new instance of the resource for this update operation, on
1787
+ # which fields can be set to update
1788
+ #
1789
+ # @overload #ad_group_bid_modifier(resource, &blk)
1790
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier] a resource instance to update
1791
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
1792
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] the operation instance to update the resource
1793
+ def self.ad_group_bid_modifier(resource_or_path, &blk)
1794
+ require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
1795
+ res = case resource_or_path
1796
+ when Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier
1797
+ resource_or_path
1798
+ # got a resource path
1799
+ when String
1800
+ obj = Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier.new
1801
+ obj.resource_name = resource_or_path
1802
+ obj
1803
+ else
1804
+ unless Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier === res
1805
+ raise ArgumentError.new(
1806
+ "Called #{__method__} with instance of wrong type:"\
1807
+ " #{res.class} want #{operation.update_class}"\
1808
+ " or String representing resource name"
1809
+ )
1810
+ end
1811
+ end
1812
+
1813
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
1814
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1815
+ op["update"] = res
1816
+ op
1817
+ end
1818
+
1819
+ # A convenience method for creating an AdGroupCriterionOperation instance with
1820
+ # its "update" field prepopulated with an AdGroupCriterion instance, and
1821
+ # its "update_mask" field populated as needed to send the updates to the API.
1822
+ #
1823
+ # @overload #ad_group_criterion(path, &blk)
1824
+ # @param path [String] a resource path for the resource to update
1825
+ # @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion] a new instance of the resource for this update operation, on
1826
+ # which fields can be set to update
1827
+ #
1828
+ # @overload #ad_group_criterion(resource, &blk)
1829
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion] a resource instance to update
1830
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
1831
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation] the operation instance to update the resource
1832
+ def self.ad_group_criterion(resource_or_path, &blk)
1833
+ require "google/ads/google_ads/v2/services/ad_group_criterion_service_pb.rb"
1834
+ res = case resource_or_path
1835
+ when Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion
1836
+ resource_or_path
1837
+ # got a resource path
1838
+ when String
1839
+ obj = Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion.new
1840
+ obj.resource_name = resource_or_path
1841
+ obj
1842
+ else
1843
+ unless Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion === res
1844
+ raise ArgumentError.new(
1845
+ "Called #{__method__} with instance of wrong type:"\
1846
+ " #{res.class} want #{operation.update_class}"\
1847
+ " or String representing resource name"
1848
+ )
1849
+ end
1850
+ end
1851
+
1852
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation.new
1853
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1854
+ op["update"] = res
1855
+ op
1856
+ end
1857
+
1858
+ # A convenience method for creating an AdGroupExtensionSettingOperation instance with
1859
+ # its "update" field prepopulated with an AdGroupExtensionSetting instance, and
1860
+ # its "update_mask" field populated as needed to send the updates to the API.
1861
+ #
1862
+ # @overload #ad_group_extension_setting(path, &blk)
1863
+ # @param path [String] a resource path for the resource to update
1864
+ # @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupExtensionSetting] a new instance of the resource for this update operation, on
1865
+ # which fields can be set to update
1866
+ #
1867
+ # @overload #ad_group_extension_setting(resource, &blk)
1868
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupExtensionSetting] a resource instance to update
1869
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
1870
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupExtensionSettingOperation] the operation instance to update the resource
1871
+ def self.ad_group_extension_setting(resource_or_path, &blk)
1872
+ require "google/ads/google_ads/v2/services/ad_group_extension_setting_service_pb.rb"
1873
+ res = case resource_or_path
1874
+ when Google::Ads::GoogleAds::V2::Resources::AdGroupExtensionSetting
1875
+ resource_or_path
1876
+ # got a resource path
1877
+ when String
1878
+ obj = Google::Ads::GoogleAds::V2::Resources::AdGroupExtensionSetting.new
1879
+ obj.resource_name = resource_or_path
1880
+ obj
1881
+ else
1882
+ unless Google::Ads::GoogleAds::V2::Resources::AdGroupExtensionSetting === res
1883
+ raise ArgumentError.new(
1884
+ "Called #{__method__} with instance of wrong type:"\
1885
+ " #{res.class} want #{operation.update_class}"\
1886
+ " or String representing resource name"
1887
+ )
1888
+ end
1889
+ end
1890
+
1891
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupExtensionSettingOperation.new
1892
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1893
+ op["update"] = res
1894
+ op
1895
+ end
1896
+
1897
+ # A convenience method for creating an AdGroupFeedOperation instance with
1898
+ # its "update" field prepopulated with an AdGroupFeed instance, and
1899
+ # its "update_mask" field populated as needed to send the updates to the API.
1900
+ #
1901
+ # @overload #ad_group_feed(path, &blk)
1902
+ # @param path [String] a resource path for the resource to update
1903
+ # @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupFeed] a new instance of the resource for this update operation, on
1904
+ # which fields can be set to update
1905
+ #
1906
+ # @overload #ad_group_feed(resource, &blk)
1907
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupFeed] a resource instance to update
1908
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
1909
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupFeedOperation] the operation instance to update the resource
1910
+ def self.ad_group_feed(resource_or_path, &blk)
1911
+ require "google/ads/google_ads/v2/services/ad_group_feed_service_pb.rb"
1912
+ res = case resource_or_path
1913
+ when Google::Ads::GoogleAds::V2::Resources::AdGroupFeed
1914
+ resource_or_path
1915
+ # got a resource path
1916
+ when String
1917
+ obj = Google::Ads::GoogleAds::V2::Resources::AdGroupFeed.new
1918
+ obj.resource_name = resource_or_path
1919
+ obj
1920
+ else
1921
+ unless Google::Ads::GoogleAds::V2::Resources::AdGroupFeed === res
1922
+ raise ArgumentError.new(
1923
+ "Called #{__method__} with instance of wrong type:"\
1924
+ " #{res.class} want #{operation.update_class}"\
1925
+ " or String representing resource name"
1926
+ )
1927
+ end
1928
+ end
1929
+
1930
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupFeedOperation.new
1931
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1932
+ op["update"] = res
1933
+ op
1934
+ end
1935
+
1936
+ # A convenience method for creating an AdGroupOperation instance with
1937
+ # its "update" field prepopulated with an AdGroup instance, and
1938
+ # its "update_mask" field populated as needed to send the updates to the API.
1939
+ #
1940
+ # @overload #ad_group(path, &blk)
1941
+ # @param path [String] a resource path for the resource to update
1942
+ # @yield [Google::Ads::GoogleAds::V2::Resources::AdGroup] a new instance of the resource for this update operation, on
1943
+ # which fields can be set to update
1944
+ #
1945
+ # @overload #ad_group(resource, &blk)
1946
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroup] a resource instance to update
1947
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
1948
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupOperation] the operation instance to update the resource
1949
+ def self.ad_group(resource_or_path, &blk)
1950
+ require "google/ads/google_ads/v2/services/ad_group_service_pb.rb"
1951
+ res = case resource_or_path
1952
+ when Google::Ads::GoogleAds::V2::Resources::AdGroup
1953
+ resource_or_path
1954
+ # got a resource path
1955
+ when String
1956
+ obj = Google::Ads::GoogleAds::V2::Resources::AdGroup.new
1957
+ obj.resource_name = resource_or_path
1958
+ obj
1959
+ else
1960
+ unless Google::Ads::GoogleAds::V2::Resources::AdGroup === res
1961
+ raise ArgumentError.new(
1962
+ "Called #{__method__} with instance of wrong type:"\
1963
+ " #{res.class} want #{operation.update_class}"\
1964
+ " or String representing resource name"
1965
+ )
1966
+ end
1967
+ end
1968
+
1969
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupOperation.new
1970
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1971
+ op["update"] = res
1972
+ op
1973
+ end
1974
+
1975
+ # A convenience method for creating an AdParameterOperation instance with
1976
+ # its "update" field prepopulated with an AdParameter instance, and
1977
+ # its "update_mask" field populated as needed to send the updates to the API.
1978
+ #
1979
+ # @overload #ad_parameter(path, &blk)
1980
+ # @param path [String] a resource path for the resource to update
1981
+ # @yield [Google::Ads::GoogleAds::V2::Resources::AdParameter] a new instance of the resource for this update operation, on
1982
+ # which fields can be set to update
1983
+ #
1984
+ # @overload #ad_parameter(resource, &blk)
1985
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::AdParameter] a resource instance to update
1986
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
1987
+ # @return [Google::Ads::GoogleAds::V2::Services::AdParameterOperation] the operation instance to update the resource
1988
+ def self.ad_parameter(resource_or_path, &blk)
1989
+ require "google/ads/google_ads/v2/services/ad_parameter_service_pb.rb"
1990
+ res = case resource_or_path
1991
+ when Google::Ads::GoogleAds::V2::Resources::AdParameter
1992
+ resource_or_path
1993
+ # got a resource path
1994
+ when String
1995
+ obj = Google::Ads::GoogleAds::V2::Resources::AdParameter.new
1996
+ obj.resource_name = resource_or_path
1997
+ obj
1998
+ else
1999
+ unless Google::Ads::GoogleAds::V2::Resources::AdParameter === res
2000
+ raise ArgumentError.new(
2001
+ "Called #{__method__} with instance of wrong type:"\
2002
+ " #{res.class} want #{operation.update_class}"\
2003
+ " or String representing resource name"
2004
+ )
2005
+ end
2006
+ end
2007
+
2008
+ op = Google::Ads::GoogleAds::V2::Services::AdParameterOperation.new
2009
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2010
+ op["update"] = res
2011
+ op
2012
+ end
2013
+
2014
+ # A convenience method for creating an BiddingStrategyOperation instance with
2015
+ # its "update" field prepopulated with an BiddingStrategy instance, and
2016
+ # its "update_mask" field populated as needed to send the updates to the API.
2017
+ #
2018
+ # @overload #bidding_strategy(path, &blk)
2019
+ # @param path [String] a resource path for the resource to update
2020
+ # @yield [Google::Ads::GoogleAds::V2::Resources::BiddingStrategy] a new instance of the resource for this update operation, on
2021
+ # which fields can be set to update
2022
+ #
2023
+ # @overload #bidding_strategy(resource, &blk)
2024
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::BiddingStrategy] a resource instance to update
2025
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2026
+ # @return [Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation] the operation instance to update the resource
2027
+ def self.bidding_strategy(resource_or_path, &blk)
2028
+ require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
2029
+ res = case resource_or_path
2030
+ when Google::Ads::GoogleAds::V2::Resources::BiddingStrategy
2031
+ resource_or_path
2032
+ # got a resource path
2033
+ when String
2034
+ obj = Google::Ads::GoogleAds::V2::Resources::BiddingStrategy.new
2035
+ obj.resource_name = resource_or_path
2036
+ obj
2037
+ else
2038
+ unless Google::Ads::GoogleAds::V2::Resources::BiddingStrategy === res
2039
+ raise ArgumentError.new(
2040
+ "Called #{__method__} with instance of wrong type:"\
2041
+ " #{res.class} want #{operation.update_class}"\
2042
+ " or String representing resource name"
2043
+ )
2044
+ end
2045
+ end
2046
+
2047
+ op = Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
2048
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2049
+ op["update"] = res
2050
+ op
2051
+ end
2052
+
2053
+ # A convenience method for creating an CampaignBidModifierOperation instance with
2054
+ # its "update" field prepopulated with an CampaignBidModifier instance, and
2055
+ # its "update_mask" field populated as needed to send the updates to the API.
2056
+ #
2057
+ # @overload #campaign_bid_modifier(path, &blk)
2058
+ # @param path [String] a resource path for the resource to update
2059
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier] a new instance of the resource for this update operation, on
2060
+ # which fields can be set to update
2061
+ #
2062
+ # @overload #campaign_bid_modifier(resource, &blk)
2063
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier] a resource instance to update
2064
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2065
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation] the operation instance to update the resource
2066
+ def self.campaign_bid_modifier(resource_or_path, &blk)
2067
+ require "google/ads/google_ads/v2/services/campaign_bid_modifier_service_pb.rb"
2068
+ res = case resource_or_path
2069
+ when Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier
2070
+ resource_or_path
2071
+ # got a resource path
2072
+ when String
2073
+ obj = Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier.new
2074
+ obj.resource_name = resource_or_path
2075
+ obj
2076
+ else
2077
+ unless Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier === res
2078
+ raise ArgumentError.new(
2079
+ "Called #{__method__} with instance of wrong type:"\
2080
+ " #{res.class} want #{operation.update_class}"\
2081
+ " or String representing resource name"
2082
+ )
2083
+ end
2084
+ end
2085
+
2086
+ op = Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation.new
2087
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2088
+ op["update"] = res
2089
+ op
2090
+ end
2091
+
2092
+ # A convenience method for creating an CampaignBudgetOperation instance with
2093
+ # its "update" field prepopulated with an CampaignBudget instance, and
2094
+ # its "update_mask" field populated as needed to send the updates to the API.
2095
+ #
2096
+ # @overload #campaign_budget(path, &blk)
2097
+ # @param path [String] a resource path for the resource to update
2098
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignBudget] a new instance of the resource for this update operation, on
2099
+ # which fields can be set to update
2100
+ #
2101
+ # @overload #campaign_budget(resource, &blk)
2102
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignBudget] a resource instance to update
2103
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2104
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation] the operation instance to update the resource
2105
+ def self.campaign_budget(resource_or_path, &blk)
2106
+ require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
2107
+ res = case resource_or_path
2108
+ when Google::Ads::GoogleAds::V2::Resources::CampaignBudget
2109
+ resource_or_path
2110
+ # got a resource path
2111
+ when String
2112
+ obj = Google::Ads::GoogleAds::V2::Resources::CampaignBudget.new
2113
+ obj.resource_name = resource_or_path
2114
+ obj
2115
+ else
2116
+ unless Google::Ads::GoogleAds::V2::Resources::CampaignBudget === res
2117
+ raise ArgumentError.new(
2118
+ "Called #{__method__} with instance of wrong type:"\
2119
+ " #{res.class} want #{operation.update_class}"\
2120
+ " or String representing resource name"
2121
+ )
2122
+ end
2123
+ end
2124
+
2125
+ op = Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
2126
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2127
+ op["update"] = res
2128
+ op
2129
+ end
2130
+
2131
+ # A convenience method for creating an CampaignCriterionOperation instance with
2132
+ # its "update" field prepopulated with an CampaignCriterion instance, and
2133
+ # its "update_mask" field populated as needed to send the updates to the API.
2134
+ #
2135
+ # @overload #campaign_criterion(path, &blk)
2136
+ # @param path [String] a resource path for the resource to update
2137
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignCriterion] a new instance of the resource for this update operation, on
2138
+ # which fields can be set to update
2139
+ #
2140
+ # @overload #campaign_criterion(resource, &blk)
2141
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignCriterion] a resource instance to update
2142
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2143
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation] the operation instance to update the resource
2144
+ def self.campaign_criterion(resource_or_path, &blk)
2145
+ require "google/ads/google_ads/v2/services/campaign_criterion_service_pb.rb"
2146
+ res = case resource_or_path
2147
+ when Google::Ads::GoogleAds::V2::Resources::CampaignCriterion
2148
+ resource_or_path
2149
+ # got a resource path
2150
+ when String
2151
+ obj = Google::Ads::GoogleAds::V2::Resources::CampaignCriterion.new
2152
+ obj.resource_name = resource_or_path
2153
+ obj
2154
+ else
2155
+ unless Google::Ads::GoogleAds::V2::Resources::CampaignCriterion === res
2156
+ raise ArgumentError.new(
2157
+ "Called #{__method__} with instance of wrong type:"\
2158
+ " #{res.class} want #{operation.update_class}"\
2159
+ " or String representing resource name"
2160
+ )
2161
+ end
2162
+ end
2163
+
2164
+ op = Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation.new
2165
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2166
+ op["update"] = res
2167
+ op
2168
+ end
2169
+
2170
+ # A convenience method for creating an CampaignDraftOperation instance with
2171
+ # its "update" field prepopulated with an CampaignDraft instance, and
2172
+ # its "update_mask" field populated as needed to send the updates to the API.
2173
+ #
2174
+ # @overload #campaign_draft(path, &blk)
2175
+ # @param path [String] a resource path for the resource to update
2176
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignDraft] a new instance of the resource for this update operation, on
2177
+ # which fields can be set to update
2178
+ #
2179
+ # @overload #campaign_draft(resource, &blk)
2180
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignDraft] a resource instance to update
2181
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2182
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] the operation instance to update the resource
2183
+ def self.campaign_draft(resource_or_path, &blk)
2184
+ require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
2185
+ res = case resource_or_path
2186
+ when Google::Ads::GoogleAds::V2::Resources::CampaignDraft
2187
+ resource_or_path
2188
+ # got a resource path
2189
+ when String
2190
+ obj = Google::Ads::GoogleAds::V2::Resources::CampaignDraft.new
2191
+ obj.resource_name = resource_or_path
2192
+ obj
2193
+ else
2194
+ unless Google::Ads::GoogleAds::V2::Resources::CampaignDraft === res
2195
+ raise ArgumentError.new(
2196
+ "Called #{__method__} with instance of wrong type:"\
2197
+ " #{res.class} want #{operation.update_class}"\
2198
+ " or String representing resource name"
2199
+ )
2200
+ end
2201
+ end
2202
+
2203
+ op = Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
2204
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2205
+ op["update"] = res
2206
+ op
2207
+ end
2208
+
2209
+ # A convenience method for creating an CampaignExperimentOperation instance with
2210
+ # its "update" field prepopulated with an CampaignExperiment instance, and
2211
+ # its "update_mask" field populated as needed to send the updates to the API.
2212
+ #
2213
+ # @overload #campaign_experiment(path, &blk)
2214
+ # @param path [String] a resource path for the resource to update
2215
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignExperiment] a new instance of the resource for this update operation, on
2216
+ # which fields can be set to update
2217
+ #
2218
+ # @overload #campaign_experiment(resource, &blk)
2219
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignExperiment] a resource instance to update
2220
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2221
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation] the operation instance to update the resource
2222
+ def self.campaign_experiment(resource_or_path, &blk)
2223
+ require "google/ads/google_ads/v2/services/campaign_experiment_service_pb.rb"
2224
+ res = case resource_or_path
2225
+ when Google::Ads::GoogleAds::V2::Resources::CampaignExperiment
2226
+ resource_or_path
2227
+ # got a resource path
2228
+ when String
2229
+ obj = Google::Ads::GoogleAds::V2::Resources::CampaignExperiment.new
2230
+ obj.resource_name = resource_or_path
2231
+ obj
2232
+ else
2233
+ unless Google::Ads::GoogleAds::V2::Resources::CampaignExperiment === res
2234
+ raise ArgumentError.new(
2235
+ "Called #{__method__} with instance of wrong type:"\
2236
+ " #{res.class} want #{operation.update_class}"\
2237
+ " or String representing resource name"
2238
+ )
2239
+ end
2240
+ end
2241
+
2242
+ op = Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation.new
2243
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2244
+ op["update"] = res
2245
+ op
2246
+ end
2247
+
2248
+ # A convenience method for creating an CampaignExtensionSettingOperation instance with
2249
+ # its "update" field prepopulated with an CampaignExtensionSetting instance, and
2250
+ # its "update_mask" field populated as needed to send the updates to the API.
2251
+ #
2252
+ # @overload #campaign_extension_setting(path, &blk)
2253
+ # @param path [String] a resource path for the resource to update
2254
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignExtensionSetting] a new instance of the resource for this update operation, on
2255
+ # which fields can be set to update
2256
+ #
2257
+ # @overload #campaign_extension_setting(resource, &blk)
2258
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignExtensionSetting] a resource instance to update
2259
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2260
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation] the operation instance to update the resource
2261
+ def self.campaign_extension_setting(resource_or_path, &blk)
2262
+ require "google/ads/google_ads/v2/services/campaign_extension_setting_service_pb.rb"
2263
+ res = case resource_or_path
2264
+ when Google::Ads::GoogleAds::V2::Resources::CampaignExtensionSetting
2265
+ resource_or_path
2266
+ # got a resource path
2267
+ when String
2268
+ obj = Google::Ads::GoogleAds::V2::Resources::CampaignExtensionSetting.new
2269
+ obj.resource_name = resource_or_path
2270
+ obj
2271
+ else
2272
+ unless Google::Ads::GoogleAds::V2::Resources::CampaignExtensionSetting === res
2273
+ raise ArgumentError.new(
2274
+ "Called #{__method__} with instance of wrong type:"\
2275
+ " #{res.class} want #{operation.update_class}"\
2276
+ " or String representing resource name"
2277
+ )
2278
+ end
2279
+ end
2280
+
2281
+ op = Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation.new
2282
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2283
+ op["update"] = res
2284
+ op
2285
+ end
2286
+
2287
+ # A convenience method for creating an CampaignFeedOperation instance with
2288
+ # its "update" field prepopulated with an CampaignFeed instance, and
2289
+ # its "update_mask" field populated as needed to send the updates to the API.
2290
+ #
2291
+ # @overload #campaign_feed(path, &blk)
2292
+ # @param path [String] a resource path for the resource to update
2293
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignFeed] a new instance of the resource for this update operation, on
2294
+ # which fields can be set to update
2295
+ #
2296
+ # @overload #campaign_feed(resource, &blk)
2297
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignFeed] a resource instance to update
2298
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2299
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] the operation instance to update the resource
2300
+ def self.campaign_feed(resource_or_path, &blk)
2301
+ require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
2302
+ res = case resource_or_path
2303
+ when Google::Ads::GoogleAds::V2::Resources::CampaignFeed
2304
+ resource_or_path
2305
+ # got a resource path
2306
+ when String
2307
+ obj = Google::Ads::GoogleAds::V2::Resources::CampaignFeed.new
2308
+ obj.resource_name = resource_or_path
2309
+ obj
2310
+ else
2311
+ unless Google::Ads::GoogleAds::V2::Resources::CampaignFeed === res
2312
+ raise ArgumentError.new(
2313
+ "Called #{__method__} with instance of wrong type:"\
2314
+ " #{res.class} want #{operation.update_class}"\
2315
+ " or String representing resource name"
2316
+ )
2317
+ end
2318
+ end
2319
+
2320
+ op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
2321
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2322
+ op["update"] = res
2323
+ op
2324
+ end
2325
+
2326
+ # A convenience method for creating an CampaignOperation instance with
2327
+ # its "update" field prepopulated with an Campaign instance, and
2328
+ # its "update_mask" field populated as needed to send the updates to the API.
2329
+ #
2330
+ # @overload #campaign(path, &blk)
2331
+ # @param path [String] a resource path for the resource to update
2332
+ # @yield [Google::Ads::GoogleAds::V2::Resources::Campaign] a new instance of the resource for this update operation, on
2333
+ # which fields can be set to update
2334
+ #
2335
+ # @overload #campaign(resource, &blk)
2336
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::Campaign] a resource instance to update
2337
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2338
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignOperation] the operation instance to update the resource
2339
+ def self.campaign(resource_or_path, &blk)
2340
+ require "google/ads/google_ads/v2/services/campaign_service_pb.rb"
2341
+ res = case resource_or_path
2342
+ when Google::Ads::GoogleAds::V2::Resources::Campaign
2343
+ resource_or_path
2344
+ # got a resource path
2345
+ when String
2346
+ obj = Google::Ads::GoogleAds::V2::Resources::Campaign.new
2347
+ obj.resource_name = resource_or_path
2348
+ obj
2349
+ else
2350
+ unless Google::Ads::GoogleAds::V2::Resources::Campaign === res
2351
+ raise ArgumentError.new(
2352
+ "Called #{__method__} with instance of wrong type:"\
2353
+ " #{res.class} want #{operation.update_class}"\
2354
+ " or String representing resource name"
2355
+ )
2356
+ end
2357
+ end
2358
+
2359
+ op = Google::Ads::GoogleAds::V2::Services::CampaignOperation.new
2360
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2361
+ op["update"] = res
2362
+ op
2363
+ end
2364
+
2365
+ # A convenience method for creating an ConversionActionOperation instance with
2366
+ # its "update" field prepopulated with an ConversionAction instance, and
2367
+ # its "update_mask" field populated as needed to send the updates to the API.
2368
+ #
2369
+ # @overload #conversion_action(path, &blk)
2370
+ # @param path [String] a resource path for the resource to update
2371
+ # @yield [Google::Ads::GoogleAds::V2::Resources::ConversionAction] a new instance of the resource for this update operation, on
2372
+ # which fields can be set to update
2373
+ #
2374
+ # @overload #conversion_action(resource, &blk)
2375
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::ConversionAction] a resource instance to update
2376
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2377
+ # @return [Google::Ads::GoogleAds::V2::Services::ConversionActionOperation] the operation instance to update the resource
2378
+ def self.conversion_action(resource_or_path, &blk)
2379
+ require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
2380
+ res = case resource_or_path
2381
+ when Google::Ads::GoogleAds::V2::Resources::ConversionAction
2382
+ resource_or_path
2383
+ # got a resource path
2384
+ when String
2385
+ obj = Google::Ads::GoogleAds::V2::Resources::ConversionAction.new
2386
+ obj.resource_name = resource_or_path
2387
+ obj
2388
+ else
2389
+ unless Google::Ads::GoogleAds::V2::Resources::ConversionAction === res
2390
+ raise ArgumentError.new(
2391
+ "Called #{__method__} with instance of wrong type:"\
2392
+ " #{res.class} want #{operation.update_class}"\
2393
+ " or String representing resource name"
2394
+ )
2395
+ end
2396
+ end
2397
+
2398
+ op = Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
2399
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2400
+ op["update"] = res
2401
+ op
2402
+ end
2403
+
2404
+ # A convenience method for creating an CustomerExtensionSettingOperation instance with
2405
+ # its "update" field prepopulated with an CustomerExtensionSetting instance, and
2406
+ # its "update_mask" field populated as needed to send the updates to the API.
2407
+ #
2408
+ # @overload #customer_extension_setting(path, &blk)
2409
+ # @param path [String] a resource path for the resource to update
2410
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CustomerExtensionSetting] a new instance of the resource for this update operation, on
2411
+ # which fields can be set to update
2412
+ #
2413
+ # @overload #customer_extension_setting(resource, &blk)
2414
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CustomerExtensionSetting] a resource instance to update
2415
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2416
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerExtensionSettingOperation] the operation instance to update the resource
2417
+ def self.customer_extension_setting(resource_or_path, &blk)
2418
+ require "google/ads/google_ads/v2/services/customer_extension_setting_service_pb.rb"
2419
+ res = case resource_or_path
2420
+ when Google::Ads::GoogleAds::V2::Resources::CustomerExtensionSetting
2421
+ resource_or_path
2422
+ # got a resource path
2423
+ when String
2424
+ obj = Google::Ads::GoogleAds::V2::Resources::CustomerExtensionSetting.new
2425
+ obj.resource_name = resource_or_path
2426
+ obj
2427
+ else
2428
+ unless Google::Ads::GoogleAds::V2::Resources::CustomerExtensionSetting === res
2429
+ raise ArgumentError.new(
2430
+ "Called #{__method__} with instance of wrong type:"\
2431
+ " #{res.class} want #{operation.update_class}"\
2432
+ " or String representing resource name"
2433
+ )
2434
+ end
2435
+ end
2436
+
2437
+ op = Google::Ads::GoogleAds::V2::Services::CustomerExtensionSettingOperation.new
2438
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2439
+ op["update"] = res
2440
+ op
2441
+ end
2442
+
2443
+ # A convenience method for creating an CustomerFeedOperation instance with
2444
+ # its "update" field prepopulated with an CustomerFeed instance, and
2445
+ # its "update_mask" field populated as needed to send the updates to the API.
2446
+ #
2447
+ # @overload #customer_feed(path, &blk)
2448
+ # @param path [String] a resource path for the resource to update
2449
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CustomerFeed] a new instance of the resource for this update operation, on
2450
+ # which fields can be set to update
2451
+ #
2452
+ # @overload #customer_feed(resource, &blk)
2453
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CustomerFeed] a resource instance to update
2454
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2455
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerFeedOperation] the operation instance to update the resource
2456
+ def self.customer_feed(resource_or_path, &blk)
2457
+ require "google/ads/google_ads/v2/services/customer_feed_service_pb.rb"
2458
+ res = case resource_or_path
2459
+ when Google::Ads::GoogleAds::V2::Resources::CustomerFeed
2460
+ resource_or_path
2461
+ # got a resource path
2462
+ when String
2463
+ obj = Google::Ads::GoogleAds::V2::Resources::CustomerFeed.new
2464
+ obj.resource_name = resource_or_path
2465
+ obj
2466
+ else
2467
+ unless Google::Ads::GoogleAds::V2::Resources::CustomerFeed === res
2468
+ raise ArgumentError.new(
2469
+ "Called #{__method__} with instance of wrong type:"\
2470
+ " #{res.class} want #{operation.update_class}"\
2471
+ " or String representing resource name"
2472
+ )
2473
+ end
2474
+ end
2475
+
2476
+ op = Google::Ads::GoogleAds::V2::Services::CustomerFeedOperation.new
2477
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2478
+ op["update"] = res
2479
+ op
2480
+ end
2481
+
2482
+ # A convenience method for creating an CustomerOperation instance with
2483
+ # its "update" field prepopulated with an Customer instance, and
2484
+ # its "update_mask" field populated as needed to send the updates to the API.
2485
+ #
2486
+ # @overload #customer(path, &blk)
2487
+ # @param path [String] a resource path for the resource to update
2488
+ # @yield [Google::Ads::GoogleAds::V2::Resources::Customer] a new instance of the resource for this update operation, on
2489
+ # which fields can be set to update
2490
+ #
2491
+ # @overload #customer(resource, &blk)
2492
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::Customer] a resource instance to update
2493
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2494
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerOperation] the operation instance to update the resource
2495
+ def self.customer(resource_or_path, &blk)
2496
+ require "google/ads/google_ads/v2/services/customer_service_pb.rb"
2497
+ res = case resource_or_path
2498
+ when Google::Ads::GoogleAds::V2::Resources::Customer
2499
+ resource_or_path
2500
+ # got a resource path
2501
+ when String
2502
+ obj = Google::Ads::GoogleAds::V2::Resources::Customer.new
2503
+ obj.resource_name = resource_or_path
2504
+ obj
2505
+ else
2506
+ unless Google::Ads::GoogleAds::V2::Resources::Customer === res
2507
+ raise ArgumentError.new(
2508
+ "Called #{__method__} with instance of wrong type:"\
2509
+ " #{res.class} want #{operation.update_class}"\
2510
+ " or String representing resource name"
2511
+ )
2512
+ end
2513
+ end
2514
+
2515
+ op = Google::Ads::GoogleAds::V2::Services::CustomerOperation.new
2516
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2517
+ op["update"] = res
2518
+ op
2519
+ end
2520
+
2521
+ # A convenience method for creating an ExtensionFeedItemOperation instance with
2522
+ # its "update" field prepopulated with an ExtensionFeedItem instance, and
2523
+ # its "update_mask" field populated as needed to send the updates to the API.
2524
+ #
2525
+ # @overload #extension_feed_item(path, &blk)
2526
+ # @param path [String] a resource path for the resource to update
2527
+ # @yield [Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem] a new instance of the resource for this update operation, on
2528
+ # which fields can be set to update
2529
+ #
2530
+ # @overload #extension_feed_item(resource, &blk)
2531
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem] a resource instance to update
2532
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2533
+ # @return [Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation] the operation instance to update the resource
2534
+ def self.extension_feed_item(resource_or_path, &blk)
2535
+ require "google/ads/google_ads/v2/services/extension_feed_item_service_pb.rb"
2536
+ res = case resource_or_path
2537
+ when Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem
2538
+ resource_or_path
2539
+ # got a resource path
2540
+ when String
2541
+ obj = Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem.new
2542
+ obj.resource_name = resource_or_path
2543
+ obj
2544
+ else
2545
+ unless Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem === res
2546
+ raise ArgumentError.new(
2547
+ "Called #{__method__} with instance of wrong type:"\
2548
+ " #{res.class} want #{operation.update_class}"\
2549
+ " or String representing resource name"
2550
+ )
2551
+ end
2552
+ end
2553
+
2554
+ op = Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation.new
2555
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2556
+ op["update"] = res
2557
+ op
2558
+ end
2559
+
2560
+ # A convenience method for creating an FeedItemOperation instance with
2561
+ # its "update" field prepopulated with an FeedItem instance, and
2562
+ # its "update_mask" field populated as needed to send the updates to the API.
2563
+ #
2564
+ # @overload #feed_item(path, &blk)
2565
+ # @param path [String] a resource path for the resource to update
2566
+ # @yield [Google::Ads::GoogleAds::V2::Resources::FeedItem] a new instance of the resource for this update operation, on
2567
+ # which fields can be set to update
2568
+ #
2569
+ # @overload #feed_item(resource, &blk)
2570
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::FeedItem] a resource instance to update
2571
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2572
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedItemOperation] the operation instance to update the resource
2573
+ def self.feed_item(resource_or_path, &blk)
2574
+ require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
2575
+ res = case resource_or_path
2576
+ when Google::Ads::GoogleAds::V2::Resources::FeedItem
2577
+ resource_or_path
2578
+ # got a resource path
2579
+ when String
2580
+ obj = Google::Ads::GoogleAds::V2::Resources::FeedItem.new
2581
+ obj.resource_name = resource_or_path
2582
+ obj
2583
+ else
2584
+ unless Google::Ads::GoogleAds::V2::Resources::FeedItem === res
2585
+ raise ArgumentError.new(
2586
+ "Called #{__method__} with instance of wrong type:"\
2587
+ " #{res.class} want #{operation.update_class}"\
2588
+ " or String representing resource name"
2589
+ )
2590
+ end
2591
+ end
2592
+
2593
+ op = Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
2594
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2595
+ op["update"] = res
2596
+ op
2597
+ end
2598
+
2599
+ # A convenience method for creating an FeedOperation instance with
2600
+ # its "update" field prepopulated with an Feed instance, and
2601
+ # its "update_mask" field populated as needed to send the updates to the API.
2602
+ #
2603
+ # @overload #feed(path, &blk)
2604
+ # @param path [String] a resource path for the resource to update
2605
+ # @yield [Google::Ads::GoogleAds::V2::Resources::Feed] a new instance of the resource for this update operation, on
2606
+ # which fields can be set to update
2607
+ #
2608
+ # @overload #feed(resource, &blk)
2609
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::Feed] a resource instance to update
2610
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2611
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] the operation instance to update the resource
2612
+ def self.feed(resource_or_path, &blk)
2613
+ require "google/ads/google_ads/v2/services/feed_service_pb.rb"
2614
+ res = case resource_or_path
2615
+ when Google::Ads::GoogleAds::V2::Resources::Feed
2616
+ resource_or_path
2617
+ # got a resource path
2618
+ when String
2619
+ obj = Google::Ads::GoogleAds::V2::Resources::Feed.new
2620
+ obj.resource_name = resource_or_path
2621
+ obj
2622
+ else
2623
+ unless Google::Ads::GoogleAds::V2::Resources::Feed === res
2624
+ raise ArgumentError.new(
2625
+ "Called #{__method__} with instance of wrong type:"\
2626
+ " #{res.class} want #{operation.update_class}"\
2627
+ " or String representing resource name"
2628
+ )
2629
+ end
2630
+ end
2631
+
2632
+ op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
2633
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2634
+ op["update"] = res
2635
+ op
2636
+ end
2637
+
2638
+ # A convenience method for creating an LabelOperation instance with
2639
+ # its "update" field prepopulated with an Label instance, and
2640
+ # its "update_mask" field populated as needed to send the updates to the API.
2641
+ #
2642
+ # @overload #label(path, &blk)
2643
+ # @param path [String] a resource path for the resource to update
2644
+ # @yield [Google::Ads::GoogleAds::V2::Resources::Label] a new instance of the resource for this update operation, on
2645
+ # which fields can be set to update
2646
+ #
2647
+ # @overload #label(resource, &blk)
2648
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::Label] a resource instance to update
2649
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2650
+ # @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] the operation instance to update the resource
2651
+ def self.label(resource_or_path, &blk)
2652
+ require "google/ads/google_ads/v2/services/label_service_pb.rb"
2653
+ res = case resource_or_path
2654
+ when Google::Ads::GoogleAds::V2::Resources::Label
2655
+ resource_or_path
2656
+ # got a resource path
2657
+ when String
2658
+ obj = Google::Ads::GoogleAds::V2::Resources::Label.new
2659
+ obj.resource_name = resource_or_path
2660
+ obj
2661
+ else
2662
+ unless Google::Ads::GoogleAds::V2::Resources::Label === res
2663
+ raise ArgumentError.new(
2664
+ "Called #{__method__} with instance of wrong type:"\
2665
+ " #{res.class} want #{operation.update_class}"\
2666
+ " or String representing resource name"
2667
+ )
2668
+ end
2669
+ end
2670
+
2671
+ op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
2672
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2673
+ op["update"] = res
2674
+ op
2675
+ end
2676
+
2677
+ # A convenience method for creating an SharedSetOperation instance with
2678
+ # its "update" field prepopulated with an SharedSet instance, and
2679
+ # its "update_mask" field populated as needed to send the updates to the API.
2680
+ #
2681
+ # @overload #shared_set(path, &blk)
2682
+ # @param path [String] a resource path for the resource to update
2683
+ # @yield [Google::Ads::GoogleAds::V2::Resources::SharedSet] a new instance of the resource for this update operation, on
2684
+ # which fields can be set to update
2685
+ #
2686
+ # @overload #shared_set(resource, &blk)
2687
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::SharedSet] a resource instance to update
2688
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2689
+ # @return [Google::Ads::GoogleAds::V2::Services::SharedSetOperation] the operation instance to update the resource
2690
+ def self.shared_set(resource_or_path, &blk)
2691
+ require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
2692
+ res = case resource_or_path
2693
+ when Google::Ads::GoogleAds::V2::Resources::SharedSet
2694
+ resource_or_path
2695
+ # got a resource path
2696
+ when String
2697
+ obj = Google::Ads::GoogleAds::V2::Resources::SharedSet.new
2698
+ obj.resource_name = resource_or_path
2699
+ obj
2700
+ else
2701
+ unless Google::Ads::GoogleAds::V2::Resources::SharedSet === res
2702
+ raise ArgumentError.new(
2703
+ "Called #{__method__} with instance of wrong type:"\
2704
+ " #{res.class} want #{operation.update_class}"\
2705
+ " or String representing resource name"
2706
+ )
2707
+ end
2708
+ end
2709
+
2710
+ op = Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
2711
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2712
+ op["update"] = res
2713
+ op
2714
+ end
2715
+
2716
+ # A convenience method for creating an UserListOperation instance with
2717
+ # its "update" field prepopulated with an UserList instance, and
2718
+ # its "update_mask" field populated as needed to send the updates to the API.
2719
+ #
2720
+ # @overload #user_list(path, &blk)
2721
+ # @param path [String] a resource path for the resource to update
2722
+ # @yield [Google::Ads::GoogleAds::V2::Resources::UserList] a new instance of the resource for this update operation, on
2723
+ # which fields can be set to update
2724
+ #
2725
+ # @overload #user_list(resource, &blk)
2726
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::UserList] a resource instance to update
2727
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2728
+ # @return [Google::Ads::GoogleAds::V2::Services::UserListOperation] the operation instance to update the resource
2729
+ def self.user_list(resource_or_path, &blk)
2730
+ require "google/ads/google_ads/v2/services/user_list_service_pb.rb"
2731
+ res = case resource_or_path
2732
+ when Google::Ads::GoogleAds::V2::Resources::UserList
2733
+ resource_or_path
2734
+ # got a resource path
2735
+ when String
2736
+ obj = Google::Ads::GoogleAds::V2::Resources::UserList.new
2737
+ obj.resource_name = resource_or_path
2738
+ obj
2739
+ else
2740
+ unless Google::Ads::GoogleAds::V2::Resources::UserList === res
2741
+ raise ArgumentError.new(
2742
+ "Called #{__method__} with instance of wrong type:"\
2743
+ " #{res.class} want #{operation.update_class}"\
2744
+ " or String representing resource name"
2745
+ )
2746
+ end
2747
+ end
2748
+
2749
+ op = Google::Ads::GoogleAds::V2::Services::UserListOperation.new
2750
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2751
+ op["update"] = res
2752
+ op
2753
+ end
2754
+
2755
+ # A convenience method for creating an KeywordPlanKeywordOperation instance with
2756
+ # its "update" field prepopulated with an KeywordPlanKeyword instance, and
2757
+ # its "update_mask" field populated as needed to send the updates to the API.
2758
+ #
2759
+ # @overload #keyword_plan_keyword(path, &blk)
2760
+ # @param path [String] a resource path for the resource to update
2761
+ # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword] a new instance of the resource for this update operation, on
2762
+ # which fields can be set to update
2763
+ #
2764
+ # @overload #keyword_plan_keyword(resource, &blk)
2765
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword] a resource instance to update
2766
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2767
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] the operation instance to update the resource
2768
+ def self.keyword_plan_keyword(resource_or_path, &blk)
2769
+ require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
2770
+ res = case resource_or_path
2771
+ when Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword
2772
+ resource_or_path
2773
+ # got a resource path
2774
+ when String
2775
+ obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword.new
2776
+ obj.resource_name = resource_or_path
2777
+ obj
2778
+ else
2779
+ unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword === res
2780
+ raise ArgumentError.new(
2781
+ "Called #{__method__} with instance of wrong type:"\
2782
+ " #{res.class} want #{operation.update_class}"\
2783
+ " or String representing resource name"
2784
+ )
2785
+ end
2786
+ end
2787
+
2788
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
2789
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2790
+ op["update"] = res
2791
+ op
2792
+ end
2793
+
2794
+ # A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with
2795
+ # its "update" field prepopulated with an KeywordPlanNegativeKeyword instance, and
2796
+ # its "update_mask" field populated as needed to send the updates to the API.
2797
+ #
2798
+ # @overload #keyword_plan_negative_keyword(path, &blk)
2799
+ # @param path [String] a resource path for the resource to update
2800
+ # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword] a new instance of the resource for this update operation, on
2801
+ # which fields can be set to update
2802
+ #
2803
+ # @overload #keyword_plan_negative_keyword(resource, &blk)
2804
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword] a resource instance to update
2805
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2806
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] the operation instance to update the resource
2807
+ def self.keyword_plan_negative_keyword(resource_or_path, &blk)
2808
+ require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
2809
+ res = case resource_or_path
2810
+ when Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword
2811
+ resource_or_path
2812
+ # got a resource path
2813
+ when String
2814
+ obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword.new
2815
+ obj.resource_name = resource_or_path
2816
+ obj
2817
+ else
2818
+ unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword === res
2819
+ raise ArgumentError.new(
2820
+ "Called #{__method__} with instance of wrong type:"\
2821
+ " #{res.class} want #{operation.update_class}"\
2822
+ " or String representing resource name"
2823
+ )
2824
+ end
2825
+ end
2826
+
2827
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
2828
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2829
+ op["update"] = res
2830
+ op
2831
+ end
2832
+
2833
+ # A convenience method for creating an KeywordPlanOperation instance with
2834
+ # its "update" field prepopulated with an KeywordPlan instance, and
2835
+ # its "update_mask" field populated as needed to send the updates to the API.
2836
+ #
2837
+ # @overload #keyword_plan(path, &blk)
2838
+ # @param path [String] a resource path for the resource to update
2839
+ # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlan] a new instance of the resource for this update operation, on
2840
+ # which fields can be set to update
2841
+ #
2842
+ # @overload #keyword_plan(resource, &blk)
2843
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlan] a resource instance to update
2844
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2845
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] the operation instance to update the resource
2846
+ def self.keyword_plan(resource_or_path, &blk)
2847
+ require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
2848
+ res = case resource_or_path
2849
+ when Google::Ads::GoogleAds::V2::Resources::KeywordPlan
2850
+ resource_or_path
2851
+ # got a resource path
2852
+ when String
2853
+ obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlan.new
2854
+ obj.resource_name = resource_or_path
2855
+ obj
2856
+ else
2857
+ unless Google::Ads::GoogleAds::V2::Resources::KeywordPlan === res
2858
+ raise ArgumentError.new(
2859
+ "Called #{__method__} with instance of wrong type:"\
2860
+ " #{res.class} want #{operation.update_class}"\
2861
+ " or String representing resource name"
2862
+ )
2863
+ end
2864
+ end
2865
+
2866
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
2867
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2868
+ op["update"] = res
2869
+ op
2870
+ end
2871
+
2872
+ # A convenience method for creating an MerchantCenterLinkOperation instance with
2873
+ # its "update" field prepopulated with an MerchantCenterLink instance, and
2874
+ # its "update_mask" field populated as needed to send the updates to the API.
2875
+ #
2876
+ # @overload #merchant_center_link(path, &blk)
2877
+ # @param path [String] a resource path for the resource to update
2878
+ # @yield [Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink] a new instance of the resource for this update operation, on
2879
+ # which fields can be set to update
2880
+ #
2881
+ # @overload #merchant_center_link(resource, &blk)
2882
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink] a resource instance to update
2883
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2884
+ # @return [Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation] the operation instance to update the resource
2885
+ def self.merchant_center_link(resource_or_path, &blk)
2886
+ require "google/ads/google_ads/v2/services/merchant_center_link_service_pb.rb"
2887
+ res = case resource_or_path
2888
+ when Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink
2889
+ resource_or_path
2890
+ # got a resource path
2891
+ when String
2892
+ obj = Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink.new
2893
+ obj.resource_name = resource_or_path
2894
+ obj
2895
+ else
2896
+ unless Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink === res
2897
+ raise ArgumentError.new(
2898
+ "Called #{__method__} with instance of wrong type:"\
2899
+ " #{res.class} want #{operation.update_class}"\
2900
+ " or String representing resource name"
2901
+ )
2902
+ end
2903
+ end
2904
+
2905
+ op = Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation.new
2906
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2907
+ op["update"] = res
2908
+ op
2909
+ end
2910
+
2911
+ # A convenience method for creating an CustomerManagerLinkOperation instance with
2912
+ # its "update" field prepopulated with an CustomerManagerLink instance, and
2913
+ # its "update_mask" field populated as needed to send the updates to the API.
2914
+ #
2915
+ # @overload #customer_manager_link(path, &blk)
2916
+ # @param path [String] a resource path for the resource to update
2917
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink] a new instance of the resource for this update operation, on
2918
+ # which fields can be set to update
2919
+ #
2920
+ # @overload #customer_manager_link(resource, &blk)
2921
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink] a resource instance to update
2922
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2923
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation] the operation instance to update the resource
2924
+ def self.customer_manager_link(resource_or_path, &blk)
2925
+ require "google/ads/google_ads/v2/services/customer_manager_link_service_pb.rb"
2926
+ res = case resource_or_path
2927
+ when Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink
2928
+ resource_or_path
2929
+ # got a resource path
2930
+ when String
2931
+ obj = Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink.new
2932
+ obj.resource_name = resource_or_path
2933
+ obj
2934
+ else
2935
+ unless Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink === res
2936
+ raise ArgumentError.new(
2937
+ "Called #{__method__} with instance of wrong type:"\
2938
+ " #{res.class} want #{operation.update_class}"\
2939
+ " or String representing resource name"
2940
+ )
2941
+ end
2942
+ end
2943
+
2944
+ op = Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation.new
2945
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2946
+ op["update"] = res
2947
+ op
2948
+ end
2949
+
2950
+ # A convenience method for creating an AdOperation instance with
2951
+ # its "update" field prepopulated with an Ad instance, and
2952
+ # its "update_mask" field populated as needed to send the updates to the API.
2953
+ #
2954
+ # @overload #ad(path, &blk)
2955
+ # @param path [String] a resource path for the resource to update
2956
+ # @yield [Google::Ads::GoogleAds::V2::Resources::Ad] a new instance of the resource for this update operation, on
2957
+ # which fields can be set to update
2958
+ #
2959
+ # @overload #ad(resource, &blk)
2960
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::Ad] a resource instance to update
2961
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2962
+ # @return [Google::Ads::GoogleAds::V2::Services::AdOperation] the operation instance to update the resource
2963
+ def self.ad(resource_or_path, &blk)
2964
+ require "google/ads/google_ads/v2/services/ad_service_pb.rb"
2965
+ res = case resource_or_path
2966
+ when Google::Ads::GoogleAds::V2::Resources::Ad
2967
+ resource_or_path
2968
+ # got a resource path
2969
+ when String
2970
+ obj = Google::Ads::GoogleAds::V2::Resources::Ad.new
2971
+ obj.resource_name = resource_or_path
2972
+ obj
2973
+ else
2974
+ unless Google::Ads::GoogleAds::V2::Resources::Ad === res
2975
+ raise ArgumentError.new(
2976
+ "Called #{__method__} with instance of wrong type:"\
2977
+ " #{res.class} want #{operation.update_class}"\
2978
+ " or String representing resource name"
2979
+ )
2980
+ end
2981
+ end
2982
+
2983
+ op = Google::Ads::GoogleAds::V2::Services::AdOperation.new
2984
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2985
+ op["update"] = res
2986
+ op
2987
+ end
2988
+
2989
+ # A convenience method for creating an CustomerClientLinkOperation instance with
2990
+ # its "update" field prepopulated with an CustomerClientLink instance, and
2991
+ # its "update_mask" field populated as needed to send the updates to the API.
2992
+ #
2993
+ # @overload #customer_client_link(path, &blk)
2994
+ # @param path [String] a resource path for the resource to update
2995
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink] a new instance of the resource for this update operation, on
2996
+ # which fields can be set to update
2997
+ #
2998
+ # @overload #customer_client_link(resource, &blk)
2999
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink] a resource instance to update
3000
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
3001
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] the operation instance to update the resource
3002
+ def self.customer_client_link(resource_or_path, &blk)
3003
+ require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
3004
+ res = case resource_or_path
3005
+ when Google::Ads::GoogleAds::V2::Resources::CustomerClientLink
3006
+ resource_or_path
3007
+ # got a resource path
3008
+ when String
3009
+ obj = Google::Ads::GoogleAds::V2::Resources::CustomerClientLink.new
3010
+ obj.resource_name = resource_or_path
3011
+ obj
3012
+ else
3013
+ unless Google::Ads::GoogleAds::V2::Resources::CustomerClientLink === res
3014
+ raise ArgumentError.new(
3015
+ "Called #{__method__} with instance of wrong type:"\
3016
+ " #{res.class} want #{operation.update_class}"\
3017
+ " or String representing resource name"
3018
+ )
3019
+ end
3020
+ end
3021
+
3022
+ op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
3023
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
3024
+ op["update"] = res
3025
+ op
3026
+ end
3027
+
3028
+ # A convenience method for creating an KeywordPlanAdGroupOperation instance with
3029
+ # its "update" field prepopulated with an KeywordPlanAdGroup instance, and
3030
+ # its "update_mask" field populated as needed to send the updates to the API.
3031
+ #
3032
+ # @overload #keyword_plan_ad_group(path, &blk)
3033
+ # @param path [String] a resource path for the resource to update
3034
+ # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup] a new instance of the resource for this update operation, on
3035
+ # which fields can be set to update
3036
+ #
3037
+ # @overload #keyword_plan_ad_group(resource, &blk)
3038
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup] a resource instance to update
3039
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
3040
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation] the operation instance to update the resource
3041
+ def self.keyword_plan_ad_group(resource_or_path, &blk)
3042
+ require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
3043
+ res = case resource_or_path
3044
+ when Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup
3045
+ resource_or_path
3046
+ # got a resource path
3047
+ when String
3048
+ obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup.new
3049
+ obj.resource_name = resource_or_path
3050
+ obj
3051
+ else
3052
+ unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup === res
3053
+ raise ArgumentError.new(
3054
+ "Called #{__method__} with instance of wrong type:"\
3055
+ " #{res.class} want #{operation.update_class}"\
3056
+ " or String representing resource name"
3057
+ )
3058
+ end
3059
+ end
3060
+
3061
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
3062
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
3063
+ op["update"] = res
3064
+ op
3065
+ end
3066
+ end
3067
+
3068
+ module RemoveResource
3069
+ # A convenience method for creationg an FeedAttributeOperation instance with
3070
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3071
+ #
3072
+ # @param path [String] the resource name of the resource to delete.
3073
+ def self.feed_attribute(path)
3074
+ require "google/ads/google_ads/v2/resources/feed_pb.rb"
3075
+ op = Google::Ads::GoogleAds::V2::Resources::FeedAttributeOperation.new
3076
+ op["remove"] = path
3077
+ op
3078
+ end
3079
+
3080
+ # A convenience method for creationg an CustomInterestOperation instance with
3081
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3082
+ #
3083
+ # @param path [String] the resource name of the resource to delete.
3084
+ def self.custom_interest(path)
3085
+ require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
3086
+ op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
3087
+ op["remove"] = path
3088
+ op
3089
+ end
3090
+
3091
+ # A convenience method for creationg an RemarketingActionOperation instance with
3092
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3093
+ #
3094
+ # @param path [String] the resource name of the resource to delete.
3095
+ def self.remarketing_action(path)
3096
+ require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
3097
+ op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
3098
+ op["remove"] = path
3099
+ op
3100
+ end
3101
+
3102
+ # A convenience method for creationg an KeywordPlanCampaignOperation instance with
3103
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3104
+ #
3105
+ # @param path [String] the resource name of the resource to delete.
3106
+ def self.keyword_plan_campaign(path)
3107
+ require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
3108
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
3109
+ op["remove"] = path
3110
+ op
3111
+ end
3112
+
3113
+ # A convenience method for creationg an AdGroupAdLabelOperation instance with
3114
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3115
+ #
3116
+ # @param path [String] the resource name of the resource to delete.
3117
+ def self.ad_group_ad_label(path)
3118
+ require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
3119
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
3120
+ op["remove"] = path
3121
+ op
3122
+ end
3123
+
3124
+ # A convenience method for creationg an AdGroupAdOperation instance with
3125
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3126
+ #
3127
+ # @param path [String] the resource name of the resource to delete.
3128
+ def self.ad_group_ad(path)
3129
+ require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
3130
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
3131
+ op["remove"] = path
3132
+ op
3133
+ end
3134
+
3135
+ # A convenience method for creationg an AdGroupBidModifierOperation instance with
3136
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3137
+ #
3138
+ # @param path [String] the resource name of the resource to delete.
3139
+ def self.ad_group_bid_modifier(path)
3140
+ require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
3141
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
3142
+ op["remove"] = path
3143
+ op
3144
+ end
3145
+
3146
+ # A convenience method for creationg an AdGroupCriterionLabelOperation instance with
3147
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3148
+ #
3149
+ # @param path [String] the resource name of the resource to delete.
3150
+ def self.ad_group_criterion_label(path)
3151
+ require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
3152
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
3153
+ op["remove"] = path
3154
+ op
3155
+ end
3156
+
3157
+ # A convenience method for creationg an AdGroupCriterionOperation instance with
3158
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3159
+ #
3160
+ # @param path [String] the resource name of the resource to delete.
3161
+ def self.ad_group_criterion(path)
3162
+ require "google/ads/google_ads/v2/services/ad_group_criterion_service_pb.rb"
3163
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation.new
3164
+ op["remove"] = path
3165
+ op
3166
+ end
3167
+
3168
+ # A convenience method for creationg an AdGroupExtensionSettingOperation instance with
3169
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3170
+ #
3171
+ # @param path [String] the resource name of the resource to delete.
3172
+ def self.ad_group_extension_setting(path)
3173
+ require "google/ads/google_ads/v2/services/ad_group_extension_setting_service_pb.rb"
3174
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupExtensionSettingOperation.new
3175
+ op["remove"] = path
3176
+ op
3177
+ end
3178
+
3179
+ # A convenience method for creationg an AdGroupFeedOperation instance with
3180
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3181
+ #
3182
+ # @param path [String] the resource name of the resource to delete.
3183
+ def self.ad_group_feed(path)
3184
+ require "google/ads/google_ads/v2/services/ad_group_feed_service_pb.rb"
3185
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupFeedOperation.new
3186
+ op["remove"] = path
3187
+ op
3188
+ end
3189
+
3190
+ # A convenience method for creationg an AdGroupLabelOperation instance with
3191
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3192
+ #
3193
+ # @param path [String] the resource name of the resource to delete.
3194
+ def self.ad_group_label(path)
3195
+ require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
3196
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
3197
+ op["remove"] = path
3198
+ op
3199
+ end
3200
+
3201
+ # A convenience method for creationg an AdGroupOperation instance with
3202
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3203
+ #
3204
+ # @param path [String] the resource name of the resource to delete.
3205
+ def self.ad_group(path)
3206
+ require "google/ads/google_ads/v2/services/ad_group_service_pb.rb"
3207
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupOperation.new
3208
+ op["remove"] = path
3209
+ op
3210
+ end
3211
+
3212
+ # A convenience method for creationg an AdParameterOperation instance with
3213
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3214
+ #
3215
+ # @param path [String] the resource name of the resource to delete.
3216
+ def self.ad_parameter(path)
3217
+ require "google/ads/google_ads/v2/services/ad_parameter_service_pb.rb"
3218
+ op = Google::Ads::GoogleAds::V2::Services::AdParameterOperation.new
3219
+ op["remove"] = path
3220
+ op
3221
+ end
3222
+
3223
+ # A convenience method for creationg an AssetOperation instance with
3224
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3225
+ #
3226
+ # @param path [String] the resource name of the resource to delete.
3227
+ def self.asset(path)
3228
+ require "google/ads/google_ads/v2/services/asset_service_pb.rb"
3229
+ op = Google::Ads::GoogleAds::V2::Services::AssetOperation.new
3230
+ op["remove"] = path
3231
+ op
3232
+ end
3233
+
3234
+ # A convenience method for creationg an BiddingStrategyOperation instance with
3235
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3236
+ #
3237
+ # @param path [String] the resource name of the resource to delete.
3238
+ def self.bidding_strategy(path)
3239
+ require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
3240
+ op = Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
3241
+ op["remove"] = path
3242
+ op
3243
+ end
3244
+
3245
+ # A convenience method for creationg an CampaignBidModifierOperation instance with
3246
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3247
+ #
3248
+ # @param path [String] the resource name of the resource to delete.
3249
+ def self.campaign_bid_modifier(path)
3250
+ require "google/ads/google_ads/v2/services/campaign_bid_modifier_service_pb.rb"
3251
+ op = Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation.new
3252
+ op["remove"] = path
3253
+ op
3254
+ end
3255
+
3256
+ # A convenience method for creationg an CampaignBudgetOperation instance with
3257
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3258
+ #
3259
+ # @param path [String] the resource name of the resource to delete.
3260
+ def self.campaign_budget(path)
3261
+ require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
3262
+ op = Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
3263
+ op["remove"] = path
3264
+ op
3265
+ end
3266
+
3267
+ # A convenience method for creationg an CampaignCriterionOperation instance with
3268
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3269
+ #
3270
+ # @param path [String] the resource name of the resource to delete.
3271
+ def self.campaign_criterion(path)
3272
+ require "google/ads/google_ads/v2/services/campaign_criterion_service_pb.rb"
3273
+ op = Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation.new
3274
+ op["remove"] = path
3275
+ op
3276
+ end
3277
+
3278
+ # A convenience method for creationg an CampaignDraftOperation instance with
3279
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3280
+ #
3281
+ # @param path [String] the resource name of the resource to delete.
3282
+ def self.campaign_draft(path)
3283
+ require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
3284
+ op = Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
3285
+ op["remove"] = path
3286
+ op
3287
+ end
3288
+
3289
+ # A convenience method for creationg an CampaignExperimentOperation instance with
3290
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3291
+ #
3292
+ # @param path [String] the resource name of the resource to delete.
3293
+ def self.campaign_experiment(path)
3294
+ require "google/ads/google_ads/v2/services/campaign_experiment_service_pb.rb"
3295
+ op = Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation.new
3296
+ op["remove"] = path
3297
+ op
3298
+ end
3299
+
3300
+ # A convenience method for creationg an CampaignExtensionSettingOperation instance with
3301
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3302
+ #
3303
+ # @param path [String] the resource name of the resource to delete.
3304
+ def self.campaign_extension_setting(path)
3305
+ require "google/ads/google_ads/v2/services/campaign_extension_setting_service_pb.rb"
3306
+ op = Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation.new
3307
+ op["remove"] = path
3308
+ op
3309
+ end
3310
+
3311
+ # A convenience method for creationg an CampaignFeedOperation instance with
3312
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3313
+ #
3314
+ # @param path [String] the resource name of the resource to delete.
3315
+ def self.campaign_feed(path)
3316
+ require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
3317
+ op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
3318
+ op["remove"] = path
3319
+ op
3320
+ end
3321
+
3322
+ # A convenience method for creationg an CampaignLabelOperation instance with
3323
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3324
+ #
3325
+ # @param path [String] the resource name of the resource to delete.
3326
+ def self.campaign_label(path)
3327
+ require "google/ads/google_ads/v2/services/campaign_label_service_pb.rb"
3328
+ op = Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation.new
3329
+ op["remove"] = path
3330
+ op
3331
+ end
3332
+
3333
+ # A convenience method for creationg an CampaignOperation instance with
3334
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3335
+ #
3336
+ # @param path [String] the resource name of the resource to delete.
3337
+ def self.campaign(path)
3338
+ require "google/ads/google_ads/v2/services/campaign_service_pb.rb"
3339
+ op = Google::Ads::GoogleAds::V2::Services::CampaignOperation.new
3340
+ op["remove"] = path
3341
+ op
3342
+ end
3343
+
3344
+ # A convenience method for creationg an CampaignSharedSetOperation instance with
3345
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3346
+ #
3347
+ # @param path [String] the resource name of the resource to delete.
3348
+ def self.campaign_shared_set(path)
3349
+ require "google/ads/google_ads/v2/services/campaign_shared_set_service_pb.rb"
3350
+ op = Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation.new
3351
+ op["remove"] = path
3352
+ op
3353
+ end
3354
+
3355
+ # A convenience method for creationg an ConversionActionOperation instance with
3356
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3357
+ #
3358
+ # @param path [String] the resource name of the resource to delete.
3359
+ def self.conversion_action(path)
3360
+ require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
3361
+ op = Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
3362
+ op["remove"] = path
3363
+ op
3364
+ end
3365
+
3366
+ # A convenience method for creationg an CustomerExtensionSettingOperation instance with
3367
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3368
+ #
3369
+ # @param path [String] the resource name of the resource to delete.
3370
+ def self.customer_extension_setting(path)
3371
+ require "google/ads/google_ads/v2/services/customer_extension_setting_service_pb.rb"
3372
+ op = Google::Ads::GoogleAds::V2::Services::CustomerExtensionSettingOperation.new
3373
+ op["remove"] = path
3374
+ op
3375
+ end
3376
+
3377
+ # A convenience method for creationg an CustomerFeedOperation instance with
3378
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3379
+ #
3380
+ # @param path [String] the resource name of the resource to delete.
3381
+ def self.customer_feed(path)
3382
+ require "google/ads/google_ads/v2/services/customer_feed_service_pb.rb"
3383
+ op = Google::Ads::GoogleAds::V2::Services::CustomerFeedOperation.new
3384
+ op["remove"] = path
3385
+ op
3386
+ end
3387
+
3388
+ # A convenience method for creationg an CustomerLabelOperation instance with
3389
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3390
+ #
3391
+ # @param path [String] the resource name of the resource to delete.
3392
+ def self.customer_label(path)
3393
+ require "google/ads/google_ads/v2/services/customer_label_service_pb.rb"
3394
+ op = Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation.new
3395
+ op["remove"] = path
3396
+ op
3397
+ end
3398
+
3399
+ # A convenience method for creationg an CustomerNegativeCriterionOperation instance with
3400
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3401
+ #
3402
+ # @param path [String] the resource name of the resource to delete.
3403
+ def self.customer_negative_criterion(path)
3404
+ require "google/ads/google_ads/v2/services/customer_negative_criterion_service_pb.rb"
3405
+ op = Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation.new
3406
+ op["remove"] = path
3407
+ op
3408
+ end
3409
+
3410
+ # A convenience method for creationg an CustomerOperation instance with
3411
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3412
+ #
3413
+ # @param path [String] the resource name of the resource to delete.
3414
+ def self.customer(path)
3415
+ require "google/ads/google_ads/v2/services/customer_service_pb.rb"
3416
+ op = Google::Ads::GoogleAds::V2::Services::CustomerOperation.new
3417
+ op["remove"] = path
3418
+ op
3419
+ end
3420
+
3421
+ # A convenience method for creationg an ExtensionFeedItemOperation instance with
3422
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3423
+ #
3424
+ # @param path [String] the resource name of the resource to delete.
3425
+ def self.extension_feed_item(path)
3426
+ require "google/ads/google_ads/v2/services/extension_feed_item_service_pb.rb"
3427
+ op = Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation.new
3428
+ op["remove"] = path
3429
+ op
3430
+ end
3431
+
3432
+ # A convenience method for creationg an FeedItemOperation instance with
3433
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3434
+ #
3435
+ # @param path [String] the resource name of the resource to delete.
3436
+ def self.feed_item(path)
3437
+ require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
3438
+ op = Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
3439
+ op["remove"] = path
3440
+ op
3441
+ end
3442
+
3443
+ # A convenience method for creationg an FeedItemTargetOperation instance with
3444
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3445
+ #
3446
+ # @param path [String] the resource name of the resource to delete.
3447
+ def self.feed_item_target(path)
3448
+ require "google/ads/google_ads/v2/services/feed_item_target_service_pb.rb"
3449
+ op = Google::Ads::GoogleAds::V2::Services::FeedItemTargetOperation.new
3450
+ op["remove"] = path
3451
+ op
3452
+ end
3453
+
3454
+ # A convenience method for creationg an FeedMappingOperation instance with
3455
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3456
+ #
3457
+ # @param path [String] the resource name of the resource to delete.
3458
+ def self.feed_mapping(path)
3459
+ require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
3460
+ op = Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
3461
+ op["remove"] = path
3462
+ op
3463
+ end
3464
+
3465
+ # A convenience method for creationg an FeedOperation instance with
3466
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3467
+ #
3468
+ # @param path [String] the resource name of the resource to delete.
3469
+ def self.feed(path)
3470
+ require "google/ads/google_ads/v2/services/feed_service_pb.rb"
3471
+ op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
3472
+ op["remove"] = path
3473
+ op
3474
+ end
3475
+
3476
+ # A convenience method for creationg an LabelOperation instance with
3477
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3478
+ #
3479
+ # @param path [String] the resource name of the resource to delete.
3480
+ def self.label(path)
3481
+ require "google/ads/google_ads/v2/services/label_service_pb.rb"
3482
+ op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
3483
+ op["remove"] = path
3484
+ op
3485
+ end
3486
+
3487
+ # A convenience method for creationg an MediaFileOperation instance with
3488
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3489
+ #
3490
+ # @param path [String] the resource name of the resource to delete.
3491
+ def self.media_file(path)
3492
+ require "google/ads/google_ads/v2/services/media_file_service_pb.rb"
3493
+ op = Google::Ads::GoogleAds::V2::Services::MediaFileOperation.new
3494
+ op["remove"] = path
3495
+ op
3496
+ end
3497
+
3498
+ # A convenience method for creationg an SharedCriterionOperation instance with
3499
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3500
+ #
3501
+ # @param path [String] the resource name of the resource to delete.
3502
+ def self.shared_criterion(path)
3503
+ require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
3504
+ op = Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
3505
+ op["remove"] = path
3506
+ op
3507
+ end
3508
+
3509
+ # A convenience method for creationg an SharedSetOperation instance with
3510
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3511
+ #
3512
+ # @param path [String] the resource name of the resource to delete.
3513
+ def self.shared_set(path)
3514
+ require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
3515
+ op = Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
3516
+ op["remove"] = path
3517
+ op
3518
+ end
3519
+
3520
+ # A convenience method for creationg an UserListOperation instance with
3521
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3522
+ #
3523
+ # @param path [String] the resource name of the resource to delete.
3524
+ def self.user_list(path)
3525
+ require "google/ads/google_ads/v2/services/user_list_service_pb.rb"
3526
+ op = Google::Ads::GoogleAds::V2::Services::UserListOperation.new
3527
+ op["remove"] = path
3528
+ op
3529
+ end
3530
+
3531
+ # A convenience method for creationg an MutateOperation instance with
3532
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3533
+ #
3534
+ # @param path [String] the resource name of the resource to delete.
3535
+ def self.mutate(path)
3536
+ require "google/ads/google_ads/v2/services/google_ads_service_pb.rb"
3537
+ op = Google::Ads::GoogleAds::V2::Services::MutateOperation.new
3538
+ op["remove"] = path
3539
+ op
3540
+ end
3541
+
3542
+ # A convenience method for creationg an KeywordPlanKeywordOperation instance with
3543
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3544
+ #
3545
+ # @param path [String] the resource name of the resource to delete.
3546
+ def self.keyword_plan_keyword(path)
3547
+ require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
3548
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
3549
+ op["remove"] = path
3550
+ op
3551
+ end
3552
+
3553
+ # A convenience method for creationg an ApplyRecommendationOperation instance with
3554
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3555
+ #
3556
+ # @param path [String] the resource name of the resource to delete.
3557
+ def self.apply_recommendation(path)
3558
+ require "google/ads/google_ads/v2/services/recommendation_service_pb.rb"
3559
+ op = Google::Ads::GoogleAds::V2::Services::ApplyRecommendationOperation.new
3560
+ op["remove"] = path
3561
+ op
3562
+ end
3563
+
3564
+ # A convenience method for creationg an DismissRecommendationOperation instance with
3565
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3566
+ #
3567
+ # @param path [String] the resource name of the resource to delete.
3568
+ def self.dismiss_recommendation(path)
3569
+ require "google/ads/google_ads/v2/services/recommendation_service_pb.rb"
3570
+ op = Google::Ads::GoogleAds::V2::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
3571
+ op["remove"] = path
3572
+ op
3573
+ end
3574
+
3575
+ # A convenience method for creationg an KeywordPlanNegativeKeywordOperation instance with
3576
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3577
+ #
3578
+ # @param path [String] the resource name of the resource to delete.
3579
+ def self.keyword_plan_negative_keyword(path)
3580
+ require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
3581
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
3582
+ op["remove"] = path
3583
+ op
3584
+ end
3585
+
3586
+ # A convenience method for creationg an KeywordPlanOperation instance with
3587
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3588
+ #
3589
+ # @param path [String] the resource name of the resource to delete.
3590
+ def self.keyword_plan(path)
3591
+ require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
3592
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
3593
+ op["remove"] = path
3594
+ op
3595
+ end
3596
+
3597
+ # A convenience method for creationg an MerchantCenterLinkOperation instance with
3598
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3599
+ #
3600
+ # @param path [String] the resource name of the resource to delete.
3601
+ def self.merchant_center_link(path)
3602
+ require "google/ads/google_ads/v2/services/merchant_center_link_service_pb.rb"
3603
+ op = Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation.new
3604
+ op["remove"] = path
3605
+ op
3606
+ end
3607
+
3608
+ # A convenience method for creationg an CustomerManagerLinkOperation instance with
3609
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3610
+ #
3611
+ # @param path [String] the resource name of the resource to delete.
3612
+ def self.customer_manager_link(path)
3613
+ require "google/ads/google_ads/v2/services/customer_manager_link_service_pb.rb"
3614
+ op = Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation.new
3615
+ op["remove"] = path
3616
+ op
3617
+ end
3618
+
3619
+ # A convenience method for creationg an AccountBudgetProposalOperation instance with
3620
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3621
+ #
3622
+ # @param path [String] the resource name of the resource to delete.
3623
+ def self.account_budget_proposal(path)
3624
+ require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
3625
+ op = Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
3626
+ op["remove"] = path
3627
+ op
3628
+ end
3629
+
3630
+ # A convenience method for creationg an AdOperation instance with
3631
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3632
+ #
3633
+ # @param path [String] the resource name of the resource to delete.
3634
+ def self.ad(path)
3635
+ require "google/ads/google_ads/v2/services/ad_service_pb.rb"
3636
+ op = Google::Ads::GoogleAds::V2::Services::AdOperation.new
3637
+ op["remove"] = path
3638
+ op
3639
+ end
3640
+
3641
+ # A convenience method for creationg an CustomerClientLinkOperation instance with
3642
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3643
+ #
3644
+ # @param path [String] the resource name of the resource to delete.
3645
+ def self.customer_client_link(path)
3646
+ require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
3647
+ op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
3648
+ op["remove"] = path
3649
+ op
3650
+ end
3651
+
3652
+ # A convenience method for creationg an BillingSetupOperation instance with
3653
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3654
+ #
3655
+ # @param path [String] the resource name of the resource to delete.
3656
+ def self.billing_setup(path)
3657
+ require "google/ads/google_ads/v2/services/billing_setup_service_pb.rb"
3658
+ op = Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
3659
+ op["remove"] = path
3660
+ op
3661
+ end
3662
+
3663
+ # A convenience method for creationg an KeywordPlanAdGroupOperation instance with
3664
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3665
+ #
3666
+ # @param path [String] the resource name of the resource to delete.
3667
+ def self.keyword_plan_ad_group(path)
3668
+ require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
3669
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
3670
+ op["remove"] = path
3671
+ op
3672
+ end
3673
+ end
3674
+ end
3675
+ end
3676
+ end
3677
+ end
3678
+ end
3679
+ end