google-ads-googleads 46.0.0 → 46.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/lib/google/ads/google_ads/factories/v26/enums.rb +64 -0
  4. data/lib/google/ads/google_ads/factories/v26/operations.rb +91 -0
  5. data/lib/google/ads/google_ads/factories/v26/resources.rb +221 -0
  6. data/lib/google/ads/google_ads/factories/v26/services.rb +42 -0
  7. data/lib/google/ads/google_ads/v26/actions/generate_shareable_previews_pb.rb +1 -1
  8. data/lib/google/ads/google_ads/v26/common/ad_type_infos_pb.rb +1 -1
  9. data/lib/google/ads/google_ads/v26/common/asset_set_types_pb.rb +1 -1
  10. data/lib/google/ads/google_ads/v26/common/asset_types_pb.rb +5 -1
  11. data/lib/google/ads/google_ads/v26/common/audience_insights_attribute_pb.rb +1 -1
  12. data/lib/google/ads/google_ads/v26/common/budget_network_common_pb.rb +33 -0
  13. data/lib/google/ads/google_ads/v26/common/criteria_pb.rb +1 -1
  14. data/lib/google/ads/google_ads/v26/common/customizer_value_pb.rb +1 -1
  15. data/lib/google/ads/google_ads/v26/common/metrics_pb.rb +3 -1
  16. data/lib/google/ads/google_ads/v26/common/offline_user_data_pb.rb +1 -1
  17. data/lib/google/ads/google_ads/v26/common/synthetic_content_info_pb.rb +1 -1
  18. data/lib/google/ads/google_ads/v26/enums/asset_automation_type_pb.rb +1 -1
  19. data/lib/google/ads/google_ads/v26/enums/budget_network_ineligible_reason_pb.rb +24 -0
  20. data/lib/google/ads/google_ads/v26/enums/channel_priority_tier_pb.rb +24 -0
  21. data/lib/google/ads/google_ads/v26/enums/network_channel_type_pb.rb +24 -0
  22. data/lib/google/ads/google_ads/v26/enums/offline_promotion_code_source_pb.rb +24 -0
  23. data/lib/google/ads/google_ads/v26/enums/offline_promotion_code_type_pb.rb +24 -0
  24. data/lib/google/ads/google_ads/v26/enums/reach_metric_state_pb.rb +24 -0
  25. data/lib/google/ads/google_ads/v26/enums/recommendation_type_pb.rb +1 -1
  26. data/lib/google/ads/google_ads/v26/errors/asset_error_pb.rb +1 -1
  27. data/lib/google/ads/google_ads/v26/errors/budget_network_setting_error_pb.rb +24 -0
  28. data/lib/google/ads/google_ads/v26/errors/demand_gen_campaign_error_pb.rb +24 -0
  29. data/lib/google/ads/google_ads/v26/errors/errors_pb.rb +3 -1
  30. data/lib/google/ads/google_ads/v26/errors/multi_party_auth_review_error_pb.rb +1 -1
  31. data/lib/google/ads/google_ads/v26/errors/mutate_error_pb.rb +1 -1
  32. data/lib/google/ads/google_ads/v26/resources/accessible_bidding_strategy_pb.rb +1 -1
  33. data/lib/google/ads/google_ads/v26/resources/account_budget_pb.rb +1 -1
  34. data/lib/google/ads/google_ads/v26/resources/account_budget_proposal_pb.rb +1 -1
  35. data/lib/google/ads/google_ads/v26/resources/account_link_pb.rb +1 -1
  36. data/lib/google/ads/google_ads/v26/resources/ad_group_ad_asset_combination_view_pb.rb +1 -1
  37. data/lib/google/ads/google_ads/v26/resources/ad_group_ad_asset_view_pb.rb +1 -1
  38. data/lib/google/ads/google_ads/v26/resources/ad_group_ad_label_pb.rb +1 -1
  39. data/lib/google/ads/google_ads/v26/resources/ad_group_ad_pb.rb +1 -1
  40. data/lib/google/ads/google_ads/v26/resources/ad_group_asset_pb.rb +1 -1
  41. data/lib/google/ads/google_ads/v26/resources/ad_group_asset_set_pb.rb +1 -1
  42. data/lib/google/ads/google_ads/v26/resources/ad_group_audience_view_pb.rb +1 -1
  43. data/lib/google/ads/google_ads/v26/resources/ad_group_bid_modifier_pb.rb +1 -1
  44. data/lib/google/ads/google_ads/v26/resources/ad_group_criterion_customizer_pb.rb +1 -1
  45. data/lib/google/ads/google_ads/v26/resources/ad_group_criterion_label_pb.rb +1 -1
  46. data/lib/google/ads/google_ads/v26/resources/ad_group_criterion_pb.rb +1 -1
  47. data/lib/google/ads/google_ads/v26/resources/ad_group_criterion_simulation_pb.rb +1 -1
  48. data/lib/google/ads/google_ads/v26/resources/ad_group_customizer_pb.rb +1 -1
  49. data/lib/google/ads/google_ads/v26/resources/ad_group_label_pb.rb +1 -1
  50. data/lib/google/ads/google_ads/v26/resources/ad_group_pb.rb +1 -1
  51. data/lib/google/ads/google_ads/v26/resources/ad_group_simulation_pb.rb +1 -1
  52. data/lib/google/ads/google_ads/v26/resources/ad_parameter_pb.rb +1 -1
  53. data/lib/google/ads/google_ads/v26/resources/ad_pb.rb +1 -1
  54. data/lib/google/ads/google_ads/v26/resources/ad_schedule_view_pb.rb +1 -1
  55. data/lib/google/ads/google_ads/v26/resources/age_range_view_pb.rb +1 -1
  56. data/lib/google/ads/google_ads/v26/resources/ai_max_search_term_ad_combination_view_pb.rb +1 -1
  57. data/lib/google/ads/google_ads/v26/resources/android_privacy_shared_key_google_ad_group_pb.rb +1 -1
  58. data/lib/google/ads/google_ads/v26/resources/android_privacy_shared_key_google_campaign_pb.rb +1 -1
  59. data/lib/google/ads/google_ads/v26/resources/android_privacy_shared_key_google_network_type_pb.rb +1 -1
  60. data/lib/google/ads/google_ads/v26/resources/app_top_combination_view_pb.rb +1 -1
  61. data/lib/google/ads/google_ads/v26/resources/applied_incentive_pb.rb +1 -1
  62. data/lib/google/ads/google_ads/v26/resources/asset_field_type_view_pb.rb +1 -1
  63. data/lib/google/ads/google_ads/v26/resources/asset_group_asset_pb.rb +1 -1
  64. data/lib/google/ads/google_ads/v26/resources/asset_group_listing_group_filter_pb.rb +1 -1
  65. data/lib/google/ads/google_ads/v26/resources/asset_group_pb.rb +1 -1
  66. data/lib/google/ads/google_ads/v26/resources/asset_group_product_group_view_pb.rb +1 -1
  67. data/lib/google/ads/google_ads/v26/resources/asset_group_signal_pb.rb +1 -1
  68. data/lib/google/ads/google_ads/v26/resources/asset_group_top_combination_view_pb.rb +1 -1
  69. data/lib/google/ads/google_ads/v26/resources/asset_pb.rb +1 -1
  70. data/lib/google/ads/google_ads/v26/resources/asset_set_asset_pb.rb +1 -1
  71. data/lib/google/ads/google_ads/v26/resources/asset_set_pb.rb +1 -1
  72. data/lib/google/ads/google_ads/v26/resources/asset_set_type_view_pb.rb +1 -1
  73. data/lib/google/ads/google_ads/v26/resources/audience_pb.rb +1 -1
  74. data/lib/google/ads/google_ads/v26/resources/batch_job_pb.rb +1 -1
  75. data/lib/google/ads/google_ads/v26/resources/bidding_data_exclusion_pb.rb +1 -1
  76. data/lib/google/ads/google_ads/v26/resources/bidding_seasonality_adjustment_pb.rb +1 -1
  77. data/lib/google/ads/google_ads/v26/resources/bidding_strategy_pb.rb +1 -1
  78. data/lib/google/ads/google_ads/v26/resources/bidding_strategy_simulation_pb.rb +1 -1
  79. data/lib/google/ads/google_ads/v26/resources/billing_setup_pb.rb +1 -1
  80. data/lib/google/ads/google_ads/v26/resources/call_view_pb.rb +1 -1
  81. data/lib/google/ads/google_ads/v26/resources/campaign_aggregate_asset_view_pb.rb +1 -1
  82. data/lib/google/ads/google_ads/v26/resources/campaign_asset_pb.rb +1 -1
  83. data/lib/google/ads/google_ads/v26/resources/campaign_asset_set_pb.rb +1 -1
  84. data/lib/google/ads/google_ads/v26/resources/campaign_audience_view_pb.rb +1 -1
  85. data/lib/google/ads/google_ads/v26/resources/campaign_bid_modifier_pb.rb +1 -1
  86. data/lib/google/ads/google_ads/v26/resources/campaign_budget_pb.rb +2 -1
  87. data/lib/google/ads/google_ads/v26/resources/campaign_conversion_goal_pb.rb +1 -1
  88. data/lib/google/ads/google_ads/v26/resources/campaign_criterion_pb.rb +1 -1
  89. data/lib/google/ads/google_ads/v26/resources/campaign_customizer_pb.rb +1 -1
  90. data/lib/google/ads/google_ads/v26/resources/campaign_draft_pb.rb +1 -1
  91. data/lib/google/ads/google_ads/v26/resources/campaign_goal_config_pb.rb +1 -1
  92. data/lib/google/ads/google_ads/v26/resources/campaign_group_pb.rb +1 -1
  93. data/lib/google/ads/google_ads/v26/resources/campaign_label_pb.rb +1 -1
  94. data/lib/google/ads/google_ads/v26/resources/campaign_pb.rb +1 -1
  95. data/lib/google/ads/google_ads/v26/resources/campaign_search_term_insight_pb.rb +1 -1
  96. data/lib/google/ads/google_ads/v26/resources/campaign_search_term_view_pb.rb +1 -1
  97. data/lib/google/ads/google_ads/v26/resources/campaign_shared_set_pb.rb +1 -1
  98. data/lib/google/ads/google_ads/v26/resources/campaign_simulation_pb.rb +1 -1
  99. data/lib/google/ads/google_ads/v26/resources/carrier_constant_pb.rb +1 -1
  100. data/lib/google/ads/google_ads/v26/resources/cart_data_sales_view_pb.rb +1 -1
  101. data/lib/google/ads/google_ads/v26/resources/change_event_pb.rb +1 -1
  102. data/lib/google/ads/google_ads/v26/resources/change_status_pb.rb +1 -1
  103. data/lib/google/ads/google_ads/v26/resources/channel_aggregate_asset_view_pb.rb +1 -1
  104. data/lib/google/ads/google_ads/v26/resources/click_view_pb.rb +1 -1
  105. data/lib/google/ads/google_ads/v26/resources/combined_audience_pb.rb +1 -1
  106. data/lib/google/ads/google_ads/v26/resources/content_criterion_view_pb.rb +1 -1
  107. data/lib/google/ads/google_ads/v26/resources/conversion_action_pb.rb +1 -1
  108. data/lib/google/ads/google_ads/v26/resources/conversion_custom_variable_pb.rb +1 -1
  109. data/lib/google/ads/google_ads/v26/resources/conversion_goal_campaign_config_pb.rb +1 -1
  110. data/lib/google/ads/google_ads/v26/resources/conversion_value_rule_pb.rb +1 -1
  111. data/lib/google/ads/google_ads/v26/resources/conversion_value_rule_set_pb.rb +1 -1
  112. data/lib/google/ads/google_ads/v26/resources/currency_constant_pb.rb +1 -1
  113. data/lib/google/ads/google_ads/v26/resources/custom_audience_pb.rb +1 -1
  114. data/lib/google/ads/google_ads/v26/resources/custom_conversion_goal_pb.rb +1 -1
  115. data/lib/google/ads/google_ads/v26/resources/custom_interest_pb.rb +1 -1
  116. data/lib/google/ads/google_ads/v26/resources/customer_asset_pb.rb +1 -1
  117. data/lib/google/ads/google_ads/v26/resources/customer_asset_set_pb.rb +1 -1
  118. data/lib/google/ads/google_ads/v26/resources/customer_budget_network_setting_pb.rb +27 -0
  119. data/lib/google/ads/google_ads/v26/resources/customer_client_link_pb.rb +1 -1
  120. data/lib/google/ads/google_ads/v26/resources/customer_client_pb.rb +1 -1
  121. data/lib/google/ads/google_ads/v26/resources/customer_conversion_goal_pb.rb +1 -1
  122. data/lib/google/ads/google_ads/v26/resources/customer_customizer_pb.rb +1 -1
  123. data/lib/google/ads/google_ads/v26/resources/customer_label_pb.rb +1 -1
  124. data/lib/google/ads/google_ads/v26/resources/customer_manager_link_pb.rb +1 -1
  125. data/lib/google/ads/google_ads/v26/resources/customer_negative_criterion_pb.rb +1 -1
  126. data/lib/google/ads/google_ads/v26/resources/customer_pb.rb +3 -1
  127. data/lib/google/ads/google_ads/v26/resources/customer_search_term_insight_pb.rb +1 -1
  128. data/lib/google/ads/google_ads/v26/resources/customer_sk_ad_network_conversion_value_schema_pb.rb +1 -1
  129. data/lib/google/ads/google_ads/v26/resources/customer_user_access_invitation_pb.rb +1 -1
  130. data/lib/google/ads/google_ads/v26/resources/customer_user_access_pb.rb +1 -1
  131. data/lib/google/ads/google_ads/v26/resources/customizer_attribute_pb.rb +1 -1
  132. data/lib/google/ads/google_ads/v26/resources/data_link_pb.rb +1 -1
  133. data/lib/google/ads/google_ads/v26/resources/detail_content_suitability_placement_view_pb.rb +1 -1
  134. data/lib/google/ads/google_ads/v26/resources/detail_placement_view_pb.rb +1 -1
  135. data/lib/google/ads/google_ads/v26/resources/detailed_demographic_pb.rb +1 -1
  136. data/lib/google/ads/google_ads/v26/resources/display_keyword_view_pb.rb +1 -1
  137. data/lib/google/ads/google_ads/v26/resources/distance_view_pb.rb +1 -1
  138. data/lib/google/ads/google_ads/v26/resources/domain_category_pb.rb +1 -1
  139. data/lib/google/ads/google_ads/v26/resources/dynamic_search_ads_search_term_view_pb.rb +1 -1
  140. data/lib/google/ads/google_ads/v26/resources/expanded_landing_page_view_pb.rb +1 -1
  141. data/lib/google/ads/google_ads/v26/resources/experiment_arm_pb.rb +1 -1
  142. data/lib/google/ads/google_ads/v26/resources/experiment_pb.rb +1 -1
  143. data/lib/google/ads/google_ads/v26/resources/final_url_expansion_asset_view_pb.rb +1 -1
  144. data/lib/google/ads/google_ads/v26/resources/gender_view_pb.rb +1 -1
  145. data/lib/google/ads/google_ads/v26/resources/geo_target_constant_pb.rb +1 -1
  146. data/lib/google/ads/google_ads/v26/resources/geographic_view_pb.rb +1 -1
  147. data/lib/google/ads/google_ads/v26/resources/goal_pb.rb +1 -1
  148. data/lib/google/ads/google_ads/v26/resources/google_ads_field_pb.rb +1 -1
  149. data/lib/google/ads/google_ads/v26/resources/group_content_suitability_placement_view_pb.rb +1 -1
  150. data/lib/google/ads/google_ads/v26/resources/group_placement_view_pb.rb +1 -1
  151. data/lib/google/ads/google_ads/v26/resources/hotel_group_view_pb.rb +1 -1
  152. data/lib/google/ads/google_ads/v26/resources/hotel_performance_view_pb.rb +1 -1
  153. data/lib/google/ads/google_ads/v26/resources/hotel_reconciliation_pb.rb +1 -1
  154. data/lib/google/ads/google_ads/v26/resources/income_range_view_pb.rb +1 -1
  155. data/lib/google/ads/google_ads/v26/resources/invoice_pb.rb +1 -1
  156. data/lib/google/ads/google_ads/v26/resources/keyword_plan_ad_group_keyword_pb.rb +1 -1
  157. data/lib/google/ads/google_ads/v26/resources/keyword_plan_ad_group_pb.rb +1 -1
  158. data/lib/google/ads/google_ads/v26/resources/keyword_plan_campaign_keyword_pb.rb +1 -1
  159. data/lib/google/ads/google_ads/v26/resources/keyword_plan_campaign_pb.rb +1 -1
  160. data/lib/google/ads/google_ads/v26/resources/keyword_plan_pb.rb +1 -1
  161. data/lib/google/ads/google_ads/v26/resources/keyword_theme_constant_pb.rb +1 -1
  162. data/lib/google/ads/google_ads/v26/resources/keyword_view_pb.rb +1 -1
  163. data/lib/google/ads/google_ads/v26/resources/label_pb.rb +1 -1
  164. data/lib/google/ads/google_ads/v26/resources/landing_page_view_pb.rb +1 -1
  165. data/lib/google/ads/google_ads/v26/resources/language_constant_pb.rb +1 -1
  166. data/lib/google/ads/google_ads/v26/resources/lead_form_submission_data_pb.rb +1 -1
  167. data/lib/google/ads/google_ads/v26/resources/life_event_pb.rb +1 -1
  168. data/lib/google/ads/google_ads/v26/resources/lift_measurement_age_range_pb.rb +1 -1
  169. data/lib/google/ads/google_ads/v26/resources/lift_measurement_campaign_pb.rb +1 -1
  170. data/lib/google/ads/google_ads/v26/resources/lift_measurement_config_pb.rb +1 -1
  171. data/lib/google/ads/google_ads/v26/resources/lift_measurement_device_pb.rb +1 -1
  172. data/lib/google/ads/google_ads/v26/resources/lift_measurement_flight_pb.rb +1 -1
  173. data/lib/google/ads/google_ads/v26/resources/lift_measurement_gender_pb.rb +1 -1
  174. data/lib/google/ads/google_ads/v26/resources/lift_measurement_video_pb.rb +1 -1
  175. data/lib/google/ads/google_ads/v26/resources/local_services_employee_pb.rb +1 -1
  176. data/lib/google/ads/google_ads/v26/resources/local_services_lead_conversation_pb.rb +1 -1
  177. data/lib/google/ads/google_ads/v26/resources/local_services_lead_pb.rb +1 -1
  178. data/lib/google/ads/google_ads/v26/resources/local_services_verification_artifact_pb.rb +1 -1
  179. data/lib/google/ads/google_ads/v26/resources/location_interest_view_pb.rb +1 -1
  180. data/lib/google/ads/google_ads/v26/resources/location_view_pb.rb +1 -1
  181. data/lib/google/ads/google_ads/v26/resources/managed_placement_view_pb.rb +1 -1
  182. data/lib/google/ads/google_ads/v26/resources/matched_location_interest_view_pb.rb +1 -1
  183. data/lib/google/ads/google_ads/v26/resources/media_file_pb.rb +1 -1
  184. data/lib/google/ads/google_ads/v26/resources/mobile_app_category_constant_pb.rb +1 -1
  185. data/lib/google/ads/google_ads/v26/resources/mobile_device_constant_pb.rb +1 -1
  186. data/lib/google/ads/google_ads/v26/resources/multi_party_auth_review_pb.rb +1 -1
  187. data/lib/google/ads/google_ads/v26/resources/offline_conversion_upload_client_summary_pb.rb +1 -1
  188. data/lib/google/ads/google_ads/v26/resources/offline_conversion_upload_conversion_action_summary_pb.rb +1 -1
  189. data/lib/google/ads/google_ads/v26/resources/offline_user_data_job_pb.rb +1 -1
  190. data/lib/google/ads/google_ads/v26/resources/operating_system_version_constant_pb.rb +1 -1
  191. data/lib/google/ads/google_ads/v26/resources/paid_organic_search_term_view_pb.rb +1 -1
  192. data/lib/google/ads/google_ads/v26/resources/parental_status_view_pb.rb +1 -1
  193. data/lib/google/ads/google_ads/v26/resources/payments_account_pb.rb +1 -1
  194. data/lib/google/ads/google_ads/v26/resources/per_store_view_pb.rb +1 -1
  195. data/lib/google/ads/google_ads/v26/resources/performance_max_placement_view_pb.rb +1 -1
  196. data/lib/google/ads/google_ads/v26/resources/product_category_constant_pb.rb +1 -1
  197. data/lib/google/ads/google_ads/v26/resources/product_group_view_pb.rb +1 -1
  198. data/lib/google/ads/google_ads/v26/resources/product_link_invitation_pb.rb +1 -1
  199. data/lib/google/ads/google_ads/v26/resources/product_link_pb.rb +1 -1
  200. data/lib/google/ads/google_ads/v26/resources/qualifying_question_pb.rb +1 -1
  201. data/lib/google/ads/google_ads/v26/resources/recommendation_pb.rb +2 -1
  202. data/lib/google/ads/google_ads/v26/resources/recommendation_subscription_pb.rb +1 -1
  203. data/lib/google/ads/google_ads/v26/resources/remarketing_action_pb.rb +1 -1
  204. data/lib/google/ads/google_ads/v26/resources/search_lift_keyword_bundle_pb.rb +1 -1
  205. data/lib/google/ads/google_ads/v26/resources/search_term_view_pb.rb +1 -1
  206. data/lib/google/ads/google_ads/v26/resources/shared_criterion_pb.rb +1 -1
  207. data/lib/google/ads/google_ads/v26/resources/shared_set_pb.rb +1 -1
  208. data/lib/google/ads/google_ads/v26/resources/shopping_performance_view_pb.rb +1 -1
  209. data/lib/google/ads/google_ads/v26/resources/shopping_product_pb.rb +1 -1
  210. data/lib/google/ads/google_ads/v26/resources/smart_campaign_search_term_view_pb.rb +1 -1
  211. data/lib/google/ads/google_ads/v26/resources/smart_campaign_setting_pb.rb +1 -1
  212. data/lib/google/ads/google_ads/v26/resources/targeting_expansion_view_pb.rb +1 -1
  213. data/lib/google/ads/google_ads/v26/resources/third_party_app_analytics_link_pb.rb +1 -1
  214. data/lib/google/ads/google_ads/v26/resources/topic_constant_pb.rb +1 -1
  215. data/lib/google/ads/google_ads/v26/resources/topic_view_pb.rb +1 -1
  216. data/lib/google/ads/google_ads/v26/resources/travel_activity_group_view_pb.rb +1 -1
  217. data/lib/google/ads/google_ads/v26/resources/travel_activity_performance_view_pb.rb +1 -1
  218. data/lib/google/ads/google_ads/v26/resources/user_interest_pb.rb +1 -1
  219. data/lib/google/ads/google_ads/v26/resources/user_list_customer_type_pb.rb +1 -1
  220. data/lib/google/ads/google_ads/v26/resources/user_list_pb.rb +1 -1
  221. data/lib/google/ads/google_ads/v26/resources/user_location_view_pb.rb +1 -1
  222. data/lib/google/ads/google_ads/v26/resources/video_enhancement_pb.rb +1 -1
  223. data/lib/google/ads/google_ads/v26/resources/video_pb.rb +1 -1
  224. data/lib/google/ads/google_ads/v26/resources/webpage_view_pb.rb +1 -1
  225. data/lib/google/ads/google_ads/v26/resources/youtube_video_upload_pb.rb +1 -1
  226. data/lib/google/ads/google_ads/v26/services/account_budget_proposal_service_pb.rb +1 -1
  227. data/lib/google/ads/google_ads/v26/services/account_link_service_pb.rb +1 -1
  228. data/lib/google/ads/google_ads/v26/services/ad_group_ad_label_service_pb.rb +1 -1
  229. data/lib/google/ads/google_ads/v26/services/ad_group_ad_service_pb.rb +1 -1
  230. data/lib/google/ads/google_ads/v26/services/ad_group_asset_service_pb.rb +1 -1
  231. data/lib/google/ads/google_ads/v26/services/ad_group_asset_set_service_pb.rb +1 -1
  232. data/lib/google/ads/google_ads/v26/services/ad_group_bid_modifier_service_pb.rb +1 -1
  233. data/lib/google/ads/google_ads/v26/services/ad_group_criterion_customizer_service_pb.rb +1 -1
  234. data/lib/google/ads/google_ads/v26/services/ad_group_criterion_label_service_pb.rb +1 -1
  235. data/lib/google/ads/google_ads/v26/services/ad_group_criterion_service_pb.rb +1 -1
  236. data/lib/google/ads/google_ads/v26/services/ad_group_customizer_service_pb.rb +1 -1
  237. data/lib/google/ads/google_ads/v26/services/ad_group_label_service_pb.rb +1 -1
  238. data/lib/google/ads/google_ads/v26/services/ad_group_service_pb.rb +1 -1
  239. data/lib/google/ads/google_ads/v26/services/ad_parameter_service_pb.rb +1 -1
  240. data/lib/google/ads/google_ads/v26/services/ad_service_pb.rb +1 -1
  241. data/lib/google/ads/google_ads/v26/services/asset_generation_service_pb.rb +1 -1
  242. data/lib/google/ads/google_ads/v26/services/asset_group_asset_service_pb.rb +1 -1
  243. data/lib/google/ads/google_ads/v26/services/asset_group_listing_group_filter_service_pb.rb +1 -1
  244. data/lib/google/ads/google_ads/v26/services/asset_group_service_pb.rb +1 -1
  245. data/lib/google/ads/google_ads/v26/services/asset_group_signal_service_pb.rb +1 -1
  246. data/lib/google/ads/google_ads/v26/services/asset_service_pb.rb +1 -1
  247. data/lib/google/ads/google_ads/v26/services/asset_set_asset_service_pb.rb +1 -1
  248. data/lib/google/ads/google_ads/v26/services/asset_set_service_pb.rb +1 -1
  249. data/lib/google/ads/google_ads/v26/services/audience_insights_service_pb.rb +1 -1
  250. data/lib/google/ads/google_ads/v26/services/audience_service_pb.rb +1 -1
  251. data/lib/google/ads/google_ads/v26/services/automatically_created_asset_removal_service_pb.rb +1 -1
  252. data/lib/google/ads/google_ads/v26/services/batch_job_service/paths.rb +14 -0
  253. data/lib/google/ads/google_ads/v26/services/batch_job_service_pb.rb +1 -1
  254. data/lib/google/ads/google_ads/v26/services/benchmarks_service/client.rb +1 -1
  255. data/lib/google/ads/google_ads/v26/services/benchmarks_service_pb.rb +1 -1
  256. data/lib/google/ads/google_ads/v26/services/bidding_data_exclusion_service_pb.rb +1 -1
  257. data/lib/google/ads/google_ads/v26/services/bidding_seasonality_adjustment_service_pb.rb +1 -1
  258. data/lib/google/ads/google_ads/v26/services/bidding_strategy_service_pb.rb +1 -1
  259. data/lib/google/ads/google_ads/v26/services/billing_setup_service_pb.rb +1 -1
  260. data/lib/google/ads/google_ads/v26/services/brand_suggestion_service_pb.rb +1 -1
  261. data/lib/google/ads/google_ads/v26/services/campaign_asset_service_pb.rb +1 -1
  262. data/lib/google/ads/google_ads/v26/services/campaign_asset_set_service_pb.rb +1 -1
  263. data/lib/google/ads/google_ads/v26/services/campaign_bid_modifier_service_pb.rb +1 -1
  264. data/lib/google/ads/google_ads/v26/services/campaign_budget_service_pb.rb +1 -1
  265. data/lib/google/ads/google_ads/v26/services/campaign_conversion_goal_service_pb.rb +1 -1
  266. data/lib/google/ads/google_ads/v26/services/campaign_criterion_service_pb.rb +1 -1
  267. data/lib/google/ads/google_ads/v26/services/campaign_customizer_service_pb.rb +1 -1
  268. data/lib/google/ads/google_ads/v26/services/campaign_draft_service_pb.rb +1 -1
  269. data/lib/google/ads/google_ads/v26/services/campaign_goal_config_service_pb.rb +1 -1
  270. data/lib/google/ads/google_ads/v26/services/campaign_group_service_pb.rb +1 -1
  271. data/lib/google/ads/google_ads/v26/services/campaign_label_service_pb.rb +1 -1
  272. data/lib/google/ads/google_ads/v26/services/campaign_service_pb.rb +1 -1
  273. data/lib/google/ads/google_ads/v26/services/campaign_shared_set_service_pb.rb +1 -1
  274. data/lib/google/ads/google_ads/v26/services/content_creator_insights_service_pb.rb +1 -1
  275. data/lib/google/ads/google_ads/v26/services/conversion_action_service_pb.rb +1 -1
  276. data/lib/google/ads/google_ads/v26/services/conversion_adjustment_upload_service_pb.rb +1 -1
  277. data/lib/google/ads/google_ads/v26/services/conversion_custom_variable_service_pb.rb +1 -1
  278. data/lib/google/ads/google_ads/v26/services/conversion_goal_campaign_config_service_pb.rb +1 -1
  279. data/lib/google/ads/google_ads/v26/services/conversion_upload_service/client.rb +10 -11
  280. data/lib/google/ads/google_ads/v26/services/conversion_upload_service_pb.rb +1 -1
  281. data/lib/google/ads/google_ads/v26/services/conversion_value_rule_service_pb.rb +1 -1
  282. data/lib/google/ads/google_ads/v26/services/conversion_value_rule_set_service_pb.rb +1 -1
  283. data/lib/google/ads/google_ads/v26/services/custom_audience_service_pb.rb +1 -1
  284. data/lib/google/ads/google_ads/v26/services/custom_conversion_goal_service_pb.rb +1 -1
  285. data/lib/google/ads/google_ads/v26/services/custom_interest_service_pb.rb +1 -1
  286. data/lib/google/ads/google_ads/v26/services/customer_asset_service_pb.rb +1 -1
  287. data/lib/google/ads/google_ads/v26/services/customer_asset_set_service_pb.rb +1 -1
  288. data/lib/google/ads/google_ads/v26/services/customer_budget_network_setting_service/client.rb +506 -0
  289. data/lib/google/ads/google_ads/v26/services/customer_budget_network_setting_service/credentials.rb +38 -0
  290. data/lib/google/ads/google_ads/v26/services/customer_budget_network_setting_service/paths.rb +49 -0
  291. data/lib/google/ads/google_ads/v26/services/customer_budget_network_setting_service.rb +51 -0
  292. data/lib/google/ads/google_ads/v26/services/customer_budget_network_setting_service_pb.rb +34 -0
  293. data/lib/google/ads/google_ads/v26/services/customer_budget_network_setting_service_services_pb.rb +68 -0
  294. data/lib/google/ads/google_ads/v26/services/customer_client_link_service_pb.rb +1 -1
  295. data/lib/google/ads/google_ads/v26/services/customer_conversion_goal_service_pb.rb +1 -1
  296. data/lib/google/ads/google_ads/v26/services/customer_customizer_service_pb.rb +1 -1
  297. data/lib/google/ads/google_ads/v26/services/customer_label_service_pb.rb +1 -1
  298. data/lib/google/ads/google_ads/v26/services/customer_manager_link_service_pb.rb +1 -1
  299. data/lib/google/ads/google_ads/v26/services/customer_negative_criterion_service_pb.rb +1 -1
  300. data/lib/google/ads/google_ads/v26/services/customer_service_pb.rb +1 -1
  301. data/lib/google/ads/google_ads/v26/services/customer_sk_ad_network_conversion_value_schema_service_pb.rb +1 -1
  302. data/lib/google/ads/google_ads/v26/services/customer_user_access_invitation_service_pb.rb +1 -1
  303. data/lib/google/ads/google_ads/v26/services/customer_user_access_service_pb.rb +1 -1
  304. data/lib/google/ads/google_ads/v26/services/customizer_attribute_service_pb.rb +1 -1
  305. data/lib/google/ads/google_ads/v26/services/data_link_service_pb.rb +1 -1
  306. data/lib/google/ads/google_ads/v26/services/experiment_arm_service_pb.rb +1 -1
  307. data/lib/google/ads/google_ads/v26/services/experiment_service_pb.rb +1 -1
  308. data/lib/google/ads/google_ads/v26/services/goal_service_pb.rb +1 -1
  309. data/lib/google/ads/google_ads/v26/services/google_ads_field_service_pb.rb +1 -1
  310. data/lib/google/ads/google_ads/v26/services/google_ads_service/client.rb +28 -0
  311. data/lib/google/ads/google_ads/v26/services/google_ads_service/paths.rb +14 -0
  312. data/lib/google/ads/google_ads/v26/services/google_ads_service.rb +17 -0
  313. data/lib/google/ads/google_ads/v26/services/google_ads_service_pb.rb +3 -1
  314. data/lib/google/ads/google_ads/v26/services/google_ads_service_services_pb.rb +28 -0
  315. data/lib/google/ads/google_ads/v26/services/identity_verification_service_pb.rb +1 -1
  316. data/lib/google/ads/google_ads/v26/services/incentive_service_pb.rb +1 -1
  317. data/lib/google/ads/google_ads/v26/services/invoice_service_pb.rb +1 -1
  318. data/lib/google/ads/google_ads/v26/services/keyword_plan_ad_group_keyword_service_pb.rb +1 -1
  319. data/lib/google/ads/google_ads/v26/services/keyword_plan_ad_group_service_pb.rb +1 -1
  320. data/lib/google/ads/google_ads/v26/services/keyword_plan_campaign_keyword_service_pb.rb +1 -1
  321. data/lib/google/ads/google_ads/v26/services/keyword_plan_campaign_service_pb.rb +1 -1
  322. data/lib/google/ads/google_ads/v26/services/keyword_plan_idea_service_pb.rb +1 -1
  323. data/lib/google/ads/google_ads/v26/services/keyword_plan_service_pb.rb +1 -1
  324. data/lib/google/ads/google_ads/v26/services/label_service_pb.rb +1 -1
  325. data/lib/google/ads/google_ads/v26/services/local_services_eligibility_service/client.rb +480 -0
  326. data/lib/google/ads/google_ads/v26/services/local_services_eligibility_service/credentials.rb +38 -0
  327. data/lib/google/ads/google_ads/v26/services/local_services_eligibility_service.rb +51 -0
  328. data/lib/google/ads/google_ads/v26/services/local_services_eligibility_service_pb.rb +32 -0
  329. data/lib/google/ads/google_ads/v26/services/local_services_eligibility_service_services_pb.rb +51 -0
  330. data/lib/google/ads/google_ads/v26/services/local_services_lead_service_pb.rb +1 -1
  331. data/lib/google/ads/google_ads/v26/services/multi_party_auth_review_service_pb.rb +1 -1
  332. data/lib/google/ads/google_ads/v26/services/offline_user_data_job_service/client.rb +6 -0
  333. data/lib/google/ads/google_ads/v26/services/offline_user_data_job_service.rb +6 -0
  334. data/lib/google/ads/google_ads/v26/services/offline_user_data_job_service_pb.rb +1 -1
  335. data/lib/google/ads/google_ads/v26/services/offline_user_data_job_service_services_pb.rb +6 -0
  336. data/lib/google/ads/google_ads/v26/services/payments_account_service_pb.rb +1 -1
  337. data/lib/google/ads/google_ads/v26/services/product_link_invitation_service_pb.rb +1 -1
  338. data/lib/google/ads/google_ads/v26/services/product_link_service_pb.rb +1 -1
  339. data/lib/google/ads/google_ads/v26/services/reach_plan_service_pb.rb +1 -1
  340. data/lib/google/ads/google_ads/v26/services/recommendation_service_pb.rb +2 -1
  341. data/lib/google/ads/google_ads/v26/services/recommendation_subscription_service_pb.rb +1 -1
  342. data/lib/google/ads/google_ads/v26/services/remarketing_action_service_pb.rb +1 -1
  343. data/lib/google/ads/google_ads/v26/services/reservation_service_pb.rb +1 -1
  344. data/lib/google/ads/google_ads/v26/services/shareable_preview_service/client.rb +4 -2
  345. data/lib/google/ads/google_ads/v26/services/shareable_preview_service.rb +4 -2
  346. data/lib/google/ads/google_ads/v26/services/shareable_preview_service_pb.rb +1 -1
  347. data/lib/google/ads/google_ads/v26/services/shareable_preview_service_services_pb.rb +4 -2
  348. data/lib/google/ads/google_ads/v26/services/shared_criterion_service_pb.rb +1 -1
  349. data/lib/google/ads/google_ads/v26/services/shared_set_service_pb.rb +1 -1
  350. data/lib/google/ads/google_ads/v26/services/smart_campaign_setting_service_pb.rb +1 -1
  351. data/lib/google/ads/google_ads/v26/services/smart_campaign_suggest_service_pb.rb +1 -1
  352. data/lib/google/ads/google_ads/v26/services/travel_asset_suggestion_service_pb.rb +1 -1
  353. data/lib/google/ads/google_ads/v26/services/user_data_service/client.rb +6 -0
  354. data/lib/google/ads/google_ads/v26/services/user_data_service.rb +6 -0
  355. data/lib/google/ads/google_ads/v26/services/user_data_service_pb.rb +1 -1
  356. data/lib/google/ads/google_ads/v26/services/user_data_service_services_pb.rb +6 -0
  357. data/lib/google/ads/google_ads/v26/services/user_list_customer_type_service_pb.rb +1 -1
  358. data/lib/google/ads/google_ads/v26/services/user_list_service_pb.rb +1 -1
  359. data/lib/google/ads/google_ads/v26/services/youtube_video_upload_service_pb.rb +1 -1
  360. data/lib/google/ads/google_ads/v26/services.rb +2 -0
  361. data/lib/google/ads/google_ads/version.rb +1 -1
  362. metadata +22 -1
@@ -0,0 +1,506 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ # require "google/ads/google_ads/error"
20
+ require "google/ads/google_ads/v26/services/customer_budget_network_setting_service_pb"
21
+
22
+ module Google
23
+ module Ads
24
+ module GoogleAds
25
+ module V26
26
+ module Services
27
+ module CustomerBudgetNetworkSettingService
28
+ ##
29
+ # Client for the CustomerBudgetNetworkSettingService service.
30
+ #
31
+ # Service to manage customer-level budget network settings.
32
+ #
33
+ class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
37
+ # @private
38
+ DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$"
39
+
40
+ include Paths
41
+
42
+ # @private
43
+ attr_reader :customer_budget_network_setting_service_stub
44
+
45
+ ##
46
+ # Configure the CustomerBudgetNetworkSettingService Client class.
47
+ #
48
+ # See {::Google::Ads::GoogleAds::V26::Services::CustomerBudgetNetworkSettingService::Client::Configuration}
49
+ # for a description of the configuration fields.
50
+ #
51
+ # @example
52
+ #
53
+ # # Modify the configuration for all CustomerBudgetNetworkSettingService clients
54
+ # ::Google::Ads::GoogleAds::V26::Services::CustomerBudgetNetworkSettingService::Client.configure do |config|
55
+ # config.timeout = 10.0
56
+ # end
57
+ #
58
+ # @yield [config] Configure the Client client.
59
+ # @yieldparam config [Client::Configuration]
60
+ #
61
+ # @return [Client::Configuration]
62
+ #
63
+ def self.configure
64
+ @configure ||= begin
65
+ default_config = Client::Configuration.new
66
+
67
+ default_config.timeout = 14_400.0
68
+ default_config.retry_policy = {
69
+ initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
70
+ }
71
+
72
+ default_config
73
+ end
74
+ yield @configure if block_given?
75
+ @configure
76
+ end
77
+
78
+ ##
79
+ # Configure the CustomerBudgetNetworkSettingService Client instance.
80
+ #
81
+ # The configuration is set to the derived mode, meaning that values can be changed,
82
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
83
+ # should be made on {Client.configure}.
84
+ #
85
+ # See {::Google::Ads::GoogleAds::V26::Services::CustomerBudgetNetworkSettingService::Client::Configuration}
86
+ # for a description of the configuration fields.
87
+ #
88
+ # @yield [config] Configure the Client client.
89
+ # @yieldparam config [Client::Configuration]
90
+ #
91
+ # @return [Client::Configuration]
92
+ #
93
+ def configure
94
+ yield @config if block_given?
95
+ @config
96
+ end
97
+
98
+ ##
99
+ # The effective universe domain
100
+ #
101
+ # @return [String]
102
+ #
103
+ def universe_domain
104
+ @customer_budget_network_setting_service_stub.universe_domain
105
+ end
106
+
107
+ ##
108
+ # Create a new CustomerBudgetNetworkSettingService client object.
109
+ #
110
+ # @example
111
+ #
112
+ # # Create a client using the default configuration
113
+ # client = ::Google::Ads::GoogleAds::V26::Services::CustomerBudgetNetworkSettingService::Client.new
114
+ #
115
+ # # Create a client using a custom configuration
116
+ # client = ::Google::Ads::GoogleAds::V26::Services::CustomerBudgetNetworkSettingService::Client.new do |config|
117
+ # config.timeout = 10.0
118
+ # end
119
+ #
120
+ # @yield [config] Configure the CustomerBudgetNetworkSettingService client.
121
+ # @yieldparam config [Client::Configuration]
122
+ #
123
+ def initialize
124
+ # These require statements are intentionally placed here to initialize
125
+ # the gRPC module only when it's required.
126
+ # See https://github.com/googleapis/toolkit/issues/446
127
+ require "gapic/grpc"
128
+ require "google/ads/google_ads/v26/services/customer_budget_network_setting_service_services_pb"
129
+
130
+ # Create the configuration object
131
+ @config = Configuration.new Client.configure
132
+
133
+ # Yield the configuration if needed
134
+ yield @config if block_given?
135
+
136
+ # Create credentials
137
+ credentials = @config.credentials
138
+ # Use self-signed JWT if the endpoint is unchanged from default,
139
+ # but only if the default endpoint does not have a region prefix.
140
+ enable_self_signed_jwt = @config.endpoint.nil? ||
141
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
142
+ !@config.endpoint.split(".").first.include?("-"))
143
+ credentials ||= Credentials.default scope: @config.scope,
144
+ enable_self_signed_jwt: enable_self_signed_jwt
145
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
146
+ credentials = Credentials.new credentials, scope: @config.scope
147
+ end
148
+ @quota_project_id = @config.quota_project
149
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
150
+
151
+ @customer_budget_network_setting_service_stub = ::Gapic::ServiceStub.new(
152
+ ::Google::Ads::GoogleAds::V26::Services::CustomerBudgetNetworkSettingService::Stub,
153
+ credentials: credentials,
154
+ endpoint: @config.endpoint,
155
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
156
+ universe_domain: @config.universe_domain,
157
+ channel_args: @config.channel_args,
158
+ interceptors: @config.interceptors,
159
+ channel_pool_config: @config.channel_pool,
160
+ logger: @config.logger
161
+ )
162
+
163
+ @customer_budget_network_setting_service_stub.stub_logger&.info do |entry|
164
+ entry.set_system_name
165
+ entry.set_service
166
+ entry.message = "Created client for #{entry.service}"
167
+ entry.set_credentials_fields credentials
168
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
169
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
170
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
171
+ end
172
+ end
173
+
174
+ ##
175
+ # The logger used for request/response debug logging.
176
+ #
177
+ # @return [Logger]
178
+ #
179
+ def logger
180
+ @customer_budget_network_setting_service_stub.logger
181
+ end
182
+
183
+ # Service calls
184
+
185
+ ##
186
+ # Creates or updates the customer budget network setting.
187
+ #
188
+ # List of thrown errors:
189
+ # [AuthenticationError]()
190
+ # [AuthorizationError]()
191
+ # [BudgetNetworkSettingError]()
192
+ # [DatabaseError]()
193
+ # [DistinctError]()
194
+ # [FieldError]()
195
+ # [FieldMaskError]()
196
+ # [HeaderError]()
197
+ # [InternalError]()
198
+ # [MutateError]()
199
+ # [NewResourceCreationError]()
200
+ # [OperationAccessDeniedError]()
201
+ # [QuotaError]()
202
+ # [RangeError]()
203
+ # [RequestError]()
204
+ # [ResourceCountLimitExceededError]()
205
+ # [StringLengthError]()
206
+ #
207
+ # @overload mutate_customer_budget_network_setting(request, options = nil)
208
+ # Pass arguments to `mutate_customer_budget_network_setting` via a request object, either of type
209
+ # {::Google::Ads::GoogleAds::V26::Services::MutateCustomerBudgetNetworkSettingRequest} or an equivalent Hash.
210
+ #
211
+ # @param request [::Google::Ads::GoogleAds::V26::Services::MutateCustomerBudgetNetworkSettingRequest, ::Hash]
212
+ # A request object representing the call parameters. Required. To specify no
213
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
214
+ # @param options [::Gapic::CallOptions, ::Hash]
215
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
216
+ #
217
+ # @overload mutate_customer_budget_network_setting(customer_id: nil, operation: nil, validate_only: nil, response_content_type: nil)
218
+ # Pass arguments to `mutate_customer_budget_network_setting` via keyword arguments. Note that at
219
+ # least one keyword argument is required. To specify no parameters, or to keep all
220
+ # the default parameter values, pass an empty Hash as a request object (see above).
221
+ #
222
+ # @param customer_id [::String]
223
+ # Required. The ID of the customer whose customer budget network setting is
224
+ # being modified.
225
+ # @param operation [::Google::Ads::GoogleAds::V26::Services::CustomerBudgetNetworkSettingOperation, ::Hash]
226
+ # Required. The operation to perform on the customer budget network setting.
227
+ # @param validate_only [::Boolean]
228
+ # If true, the request is validated but not executed. Only errors are
229
+ # returned, not results.
230
+ # @param response_content_type [::Google::Ads::GoogleAds::V26::Enums::ResponseContentTypeEnum::ResponseContentType]
231
+ # The response content type setting. Determines whether the mutable resource
232
+ # or just the resource name should be returned post mutation.
233
+ #
234
+ # @yield [response, operation] Access the result along with the RPC operation
235
+ # @yieldparam response [::Google::Ads::GoogleAds::V26::Services::MutateCustomerBudgetNetworkSettingResponse]
236
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
237
+ #
238
+ # @return [::Google::Ads::GoogleAds::V26::Services::MutateCustomerBudgetNetworkSettingResponse]
239
+ #
240
+ # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted.
241
+ #
242
+ # @example Basic example
243
+ # require "google/ads/google_ads/v26/services"
244
+ #
245
+ # # Create a client object. The client can be reused for multiple calls.
246
+ # client = Google::Ads::GoogleAds::V26::Services::CustomerBudgetNetworkSettingService::Client.new
247
+ #
248
+ # # Create a request. To set request fields, pass in keyword arguments.
249
+ # request = Google::Ads::GoogleAds::V26::Services::MutateCustomerBudgetNetworkSettingRequest.new
250
+ #
251
+ # # Call the mutate_customer_budget_network_setting method.
252
+ # result = client.mutate_customer_budget_network_setting request
253
+ #
254
+ # # The returned object is of type Google::Ads::GoogleAds::V26::Services::MutateCustomerBudgetNetworkSettingResponse.
255
+ # p result
256
+ #
257
+ def mutate_customer_budget_network_setting request, options = nil
258
+ raise ::ArgumentError, "request must be provided" if request.nil?
259
+
260
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::GoogleAds::V26::Services::MutateCustomerBudgetNetworkSettingRequest
261
+
262
+ # Converts hash and nil to an options object
263
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
264
+
265
+ # Customize the options with defaults
266
+ metadata = @config.rpcs.mutate_customer_budget_network_setting.metadata.to_h
267
+
268
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
269
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
270
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
271
+ gapic_version: ::Google::Ads::GoogleAds::VERSION
272
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
273
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
274
+
275
+ header_params = {}
276
+ if request.customer_id
277
+ header_params["customer_id"] = request.customer_id
278
+ end
279
+
280
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
281
+ metadata[:"x-goog-request-params"] ||= request_params_header
282
+
283
+ options.apply_defaults timeout: @config.rpcs.mutate_customer_budget_network_setting.timeout,
284
+ metadata: metadata,
285
+ retry_policy: @config.rpcs.mutate_customer_budget_network_setting.retry_policy
286
+
287
+ options.apply_defaults timeout: @config.timeout,
288
+ metadata: @config.metadata,
289
+ retry_policy: @config.retry_policy
290
+
291
+ @customer_budget_network_setting_service_stub.call_rpc :mutate_customer_budget_network_setting,
292
+ request, options: options do |response, operation|
293
+ yield response, operation if block_given?
294
+ end
295
+ # rescue GRPC::BadStatus => grpc_error
296
+ # raise Google::Ads::GoogleAds::Error.new grpc_error.message
297
+ end
298
+
299
+ ##
300
+ # Configuration class for the CustomerBudgetNetworkSettingService API.
301
+ #
302
+ # This class represents the configuration for CustomerBudgetNetworkSettingService,
303
+ # providing control over timeouts, retry behavior, logging, transport
304
+ # parameters, and other low-level controls. Certain parameters can also be
305
+ # applied individually to specific RPCs. See
306
+ # {::Google::Ads::GoogleAds::V26::Services::CustomerBudgetNetworkSettingService::Client::Configuration::Rpcs}
307
+ # for a list of RPCs that can be configured independently.
308
+ #
309
+ # Configuration can be applied globally to all clients, or to a single client
310
+ # on construction.
311
+ #
312
+ # @example
313
+ #
314
+ # # Modify the global config, setting the timeout for
315
+ # # mutate_customer_budget_network_setting to 20 seconds,
316
+ # # and all remaining timeouts to 10 seconds.
317
+ # ::Google::Ads::GoogleAds::V26::Services::CustomerBudgetNetworkSettingService::Client.configure do |config|
318
+ # config.timeout = 10.0
319
+ # config.rpcs.mutate_customer_budget_network_setting.timeout = 20.0
320
+ # end
321
+ #
322
+ # # Apply the above configuration only to a new client.
323
+ # client = ::Google::Ads::GoogleAds::V26::Services::CustomerBudgetNetworkSettingService::Client.new do |config|
324
+ # config.timeout = 10.0
325
+ # config.rpcs.mutate_customer_budget_network_setting.timeout = 20.0
326
+ # end
327
+ #
328
+ # @!attribute [rw] endpoint
329
+ # A custom service endpoint, as a hostname or hostname:port. The default is
330
+ # nil, indicating to use the default endpoint in the current universe domain.
331
+ # @return [::String,nil]
332
+ # @!attribute [rw] credentials
333
+ # Credentials to send with calls. You may provide any of the following types:
334
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
335
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
336
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
337
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
338
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
339
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
340
+ # * (`nil`) indicating no credentials
341
+ #
342
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
343
+ # is deprecated. Providing an unvalidated credential configuration to
344
+ # Google APIs can compromise the security of your systems and data.
345
+ #
346
+ # @example
347
+ #
348
+ # # The recommended way to provide credentials is to use the `make_creds` method
349
+ # # on the appropriate credentials class for your environment.
350
+ #
351
+ # require "googleauth"
352
+ #
353
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
354
+ # json_key_io: ::File.open("/path/to/keyfile.json")
355
+ # )
356
+ #
357
+ # client = ::Google::Ads::GoogleAds::V26::Services::CustomerBudgetNetworkSettingService::Client.new do |config|
358
+ # config.credentials = credentials
359
+ # end
360
+ #
361
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
362
+ # external source for authentication to Google Cloud, you must validate it before
363
+ # providing it to a Google API client library. Providing an unvalidated credential
364
+ # configuration to Google APIs can compromise the security of your systems and data.
365
+ # For more information, refer to [Validate credential configurations from external
366
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
367
+ # @return [::Object]
368
+ # @!attribute [rw] scope
369
+ # The OAuth scopes
370
+ # @return [::Array<::String>]
371
+ # @!attribute [rw] lib_name
372
+ # The library name as recorded in instrumentation and logging
373
+ # @return [::String]
374
+ # @!attribute [rw] lib_version
375
+ # The library version as recorded in instrumentation and logging
376
+ # @return [::String]
377
+ # @!attribute [rw] channel_args
378
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
379
+ # `GRPC::Core::Channel` object is provided as the credential.
380
+ # @return [::Hash]
381
+ # @!attribute [rw] interceptors
382
+ # An array of interceptors that are run before calls are executed.
383
+ # @return [::Array<::GRPC::ClientInterceptor>]
384
+ # @!attribute [rw] timeout
385
+ # The call timeout in seconds.
386
+ # @return [::Numeric]
387
+ # @!attribute [rw] metadata
388
+ # Additional gRPC headers to be sent with the call.
389
+ # @return [::Hash{::Symbol=>::String}]
390
+ # @!attribute [rw] retry_policy
391
+ # The retry policy. The value is a hash with the following keys:
392
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
393
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
394
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
395
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
396
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
397
+ # trigger a retry.
398
+ # @return [::Hash]
399
+ # @!attribute [rw] quota_project
400
+ # A separate project against which to charge quota.
401
+ # @return [::String]
402
+ # @!attribute [rw] universe_domain
403
+ # The universe domain within which to make requests. This determines the
404
+ # default endpoint URL. The default value of nil uses the environment
405
+ # universe (usually the default "googleapis.com" universe).
406
+ # @return [::String,nil]
407
+ # @!attribute [rw] logger
408
+ # A custom logger to use for request/response debug logging, or the value
409
+ # `:default` (the default) to construct a default logger, or `nil` to
410
+ # explicitly disable logging.
411
+ # @return [::Logger,:default,nil]
412
+ #
413
+ class Configuration
414
+ extend ::Gapic::Config
415
+
416
+ # @private
417
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
418
+ DEFAULT_ENDPOINT = "googleads.googleapis.com"
419
+
420
+ config_attr :endpoint, nil, ::String, nil
421
+ config_attr :credentials, nil do |value|
422
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials,
423
+ ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
424
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
425
+ allowed.any? { |klass| klass === value }
426
+ end
427
+ config_attr :scope, nil, ::String, ::Array, nil
428
+ config_attr :lib_name, nil, ::String, nil
429
+ config_attr :lib_version, nil, ::String, nil
430
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
431
+ config_attr :interceptors, nil, ::Array, nil
432
+ config_attr :timeout, nil, ::Numeric, nil
433
+ config_attr :metadata, nil, ::Hash, nil
434
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
435
+ config_attr :quota_project, nil, ::String, nil
436
+ config_attr :universe_domain, nil, ::String, nil
437
+ config_attr :logger, :default, ::Logger, nil, :default
438
+
439
+ # @private
440
+ def initialize parent_config = nil
441
+ @parent_config = parent_config unless parent_config.nil?
442
+
443
+ yield self if block_given?
444
+ end
445
+
446
+ ##
447
+ # Configurations for individual RPCs
448
+ # @return [Rpcs]
449
+ #
450
+ def rpcs
451
+ @rpcs ||= begin
452
+ parent_rpcs = nil
453
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
454
+ Rpcs.new parent_rpcs
455
+ end
456
+ end
457
+
458
+ ##
459
+ # Configuration for the channel pool
460
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
461
+ #
462
+ def channel_pool
463
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
464
+ end
465
+
466
+ ##
467
+ # Configuration RPC class for the CustomerBudgetNetworkSettingService API.
468
+ #
469
+ # Includes fields providing the configuration for each RPC in this service.
470
+ # Each configuration object is of type `Gapic::Config::Method` and includes
471
+ # the following configuration fields:
472
+ #
473
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
474
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
475
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
476
+ # include the following keys:
477
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
478
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
479
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
480
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
481
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
482
+ # trigger a retry.
483
+ #
484
+ class Rpcs
485
+ ##
486
+ # RPC-specific configuration for `mutate_customer_budget_network_setting`
487
+ # @return [::Gapic::Config::Method]
488
+ #
489
+ attr_reader :mutate_customer_budget_network_setting
490
+
491
+ # @private
492
+ def initialize parent_rpcs = nil
493
+ mutate_customer_budget_network_setting_config = parent_rpcs.mutate_customer_budget_network_setting if parent_rpcs.respond_to? :mutate_customer_budget_network_setting
494
+ @mutate_customer_budget_network_setting = ::Gapic::Config::Method.new mutate_customer_budget_network_setting_config
495
+
496
+ yield self if block_given?
497
+ end
498
+ end
499
+ end
500
+ end
501
+ end
502
+ end
503
+ end
504
+ end
505
+ end
506
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "googleauth"
20
+
21
+ module Google
22
+ module Ads
23
+ module GoogleAds
24
+ module V26
25
+ module Services
26
+ module CustomerBudgetNetworkSettingService
27
+ # Credentials for the CustomerBudgetNetworkSettingService API.
28
+ class Credentials < ::Google::Auth::Credentials
29
+ self.scope = [
30
+ "https://www.googleapis.com/auth/adwords"
31
+ ]
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Ads
22
+ module GoogleAds
23
+ module V26
24
+ module Services
25
+ module CustomerBudgetNetworkSettingService
26
+ # Path helper methods for the CustomerBudgetNetworkSettingService API.
27
+ module Paths
28
+ ##
29
+ # Create a fully-qualified CustomerBudgetNetworkSetting resource string.
30
+ #
31
+ # The resource will be in the following format:
32
+ #
33
+ # `customers/{customer_id}/customerBudgetNetworkSettings`
34
+ #
35
+ # @param customer_id [String]
36
+ #
37
+ # @return [::String]
38
+ def customer_budget_network_setting_path customer_id:
39
+ "customers/#{customer_id}/customerBudgetNetworkSettings"
40
+ end
41
+
42
+ extend self
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/ads/google_ads/version"
24
+
25
+ require "google/ads/google_ads/v26/services/customer_budget_network_setting_service/credentials"
26
+ require "google/ads/google_ads/v26/services/customer_budget_network_setting_service/paths"
27
+ require "google/ads/google_ads/v26/services/customer_budget_network_setting_service/client"
28
+
29
+ module Google
30
+ module Ads
31
+ module GoogleAds
32
+ module V26
33
+ module Services
34
+ ##
35
+ # Service to manage customer-level budget network settings.
36
+ #
37
+ # @example Load this service and instantiate a gRPC client
38
+ #
39
+ # require "google/ads/google_ads/v26/services/customer_budget_network_setting_service"
40
+ # client = ::Google::Ads::GoogleAds::V26::Services::CustomerBudgetNetworkSettingService::Client.new
41
+ #
42
+ module CustomerBudgetNetworkSettingService
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ helper_path = ::File.join __dir__, "customer_budget_network_setting_service", "helpers.rb"
51
+ require "google/ads/google_ads/v26/services/customer_budget_network_setting_service/helpers" if ::File.file? helper_path