lib/google/ads/google_ads/factories/v3/services.rb in google-ads-googleads-6.0.0 vs lib/google/ads/google_ads/factories/v3/services.rb in google-ads-googleads-7.0.0

- old
+ new

@@ -1,2209 +1,2154 @@ +require "google/ads/google_ads/service_wrapper" module Google module Ads module GoogleAds module Factories module V3 class Services def initialize( - service_path:, logging_interceptor:, + error_interceptor:, credentials:, metadata:, - exception_transformer: + endpoint:, + deprecation: ) - @service_path = service_path - @logging_interceptor = logging_interceptor + @interceptors = [ + error_interceptor, + logging_interceptor + ].compact @credentials = credentials @metadata = metadata - @exception_transformer = exception_transformer + @endpoint = endpoint + @deprecation = deprecation end - def have_service_path? - !@service_path.nil? && !@service_path.empty? - end - def have_logging_interceptor? @logging_interceptor != nil end - def ad_group_criterion_label(&blk) - require "google/ads/google_ads/v3/services/ad_group_criterion_label_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def ad_group_ad_asset_view(&blk) + require "google/ads/google_ads/v3/services/ad_group_ad_asset_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AdGroupAdAssetViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_ad_group_ad_asset_view: Google::Ads::GoogleAds::V3::Services::GetAdGroupAdAssetViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def campaign_audience_view(&blk) - require "google/ads/google_ads/v3/services/campaign_audience_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CampaignAudienceViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def customer_client_link(&blk) + require "google/ads/google_ads/v3/services/customer_client_link_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CustomerClientLinkService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_customer_client_link: Google::Ads::GoogleAds::V3::Services::GetCustomerClientLinkRequest, - blk&.call(cls) + mutate_customer_client_link: Google::Ads::GoogleAds::V3::Services::MutateCustomerClientLinkRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def display_keyword_view(&blk) - require "google/ads/google_ads/v3/services/display_keyword_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::DisplayKeywordViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def shared_criterion(&blk) + require "google/ads/google_ads/v3/services/shared_criterion_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::SharedCriterionService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_shared_criterion: Google::Ads::GoogleAds::V3::Services::GetSharedCriterionRequest, - blk&.call(cls) + mutate_shared_criteria: Google::Ads::GoogleAds::V3::Services::MutateSharedCriteriaRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def extension_feed_item(&blk) - require "google/ads/google_ads/v3/services/extension_feed_item_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def hotel_performance_view(&blk) + require "google/ads/google_ads/v3/services/hotel_performance_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::HotelPerformanceViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_hotel_performance_view: Google::Ads::GoogleAds::V3::Services::GetHotelPerformanceViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def shared_criterion(&blk) - require "google/ads/google_ads/v3/services/shared_criterion_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::SharedCriterionServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def customer_manager_link(&blk) + require "google/ads/google_ads/v3/services/customer_manager_link_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CustomerManagerLinkService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_customer_manager_link: Google::Ads::GoogleAds::V3::Services::GetCustomerManagerLinkRequest, - blk&.call(cls) + mutate_customer_manager_link: Google::Ads::GoogleAds::V3::Services::MutateCustomerManagerLinkRequest, - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + move_manager_link: Google::Ads::GoogleAds::V3::Services::MoveManagerLinkRequest + + }, + deprecation: @deprecation ) end - def custom_interest(&blk) - require "google/ads/google_ads/v3/services/custom_interest_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CustomInterestServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def hotel_group_view(&blk) + require "google/ads/google_ads/v3/services/hotel_group_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::HotelGroupViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_hotel_group_view: Google::Ads::GoogleAds::V3::Services::GetHotelGroupViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def hotel_group_view(&blk) - require "google/ads/google_ads/v3/services/hotel_group_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::HotelGroupViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def group_placement_view(&blk) + require "google/ads/google_ads/v3/services/group_placement_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::GroupPlacementViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_group_placement_view: Google::Ads::GoogleAds::V3::Services::GetGroupPlacementViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def age_range_view(&blk) - require "google/ads/google_ads/v3/services/age_range_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AgeRangeViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def keyword_view(&blk) + require "google/ads/google_ads/v3/services/keyword_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::KeywordViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_keyword_view: Google::Ads::GoogleAds::V3::Services::GetKeywordViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def topic_constant(&blk) - require "google/ads/google_ads/v3/services/topic_constant_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::TopicConstantServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def user_list(&blk) + require "google/ads/google_ads/v3/services/user_list_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::UserListService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_user_list: Google::Ads::GoogleAds::V3::Services::GetUserListRequest, - blk&.call(cls) + mutate_user_lists: Google::Ads::GoogleAds::V3::Services::MutateUserListsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def feed_mapping(&blk) - require "google/ads/google_ads/v3/services/feed_mapping_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::FeedMappingServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def parental_status_view(&blk) + require "google/ads/google_ads/v3/services/parental_status_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::ParentalStatusViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_parental_status_view: Google::Ads::GoogleAds::V3::Services::GetParentalStatusViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def customer(&blk) - require "google/ads/google_ads/v3/services/customer_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CustomerServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def user_interest(&blk) + require "google/ads/google_ads/v3/services/user_interest_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::UserInterestService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_user_interest: Google::Ads::GoogleAds::V3::Services::GetUserInterestRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def campaign_draft(&blk) - require "google/ads/google_ads/v3/services/campaign_draft_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CampaignDraftServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def managed_placement_view(&blk) + require "google/ads/google_ads/v3/services/managed_placement_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::ManagedPlacementViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_managed_placement_view: Google::Ads::GoogleAds::V3::Services::GetManagedPlacementViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def domain_category(&blk) - require "google/ads/google_ads/v3/services/domain_category_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::DomainCategoryServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def paid_organic_search_term_view(&blk) + require "google/ads/google_ads/v3/services/paid_organic_search_term_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::PaidOrganicSearchTermViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_paid_organic_search_term_view: Google::Ads::GoogleAds::V3::Services::GetPaidOrganicSearchTermViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def campaign_feed(&blk) - require "google/ads/google_ads/v3/services/campaign_feed_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CampaignFeedServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def keyword_plan_idea(&blk) + require "google/ads/google_ads/v3/services/keyword_plan_idea_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::KeywordPlanIdeaService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + generate_keyword_ideas: Google::Ads::GoogleAds::V3::Services::GenerateKeywordIdeasRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def customer_negative_criterion(&blk) - require "google/ads/google_ads/v3/services/customer_negative_criterion_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CustomerNegativeCriterionServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def payments_account(&blk) + require "google/ads/google_ads/v3/services/payments_account_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::PaymentsAccountService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + list_payments_accounts: Google::Ads::GoogleAds::V3::Services::ListPaymentsAccountsRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def feed_placeholder_view(&blk) - require "google/ads/google_ads/v3/services/feed_placeholder_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::FeedPlaceholderViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def ad_group(&blk) + require "google/ads/google_ads/v3/services/ad_group_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AdGroupService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_ad_group: Google::Ads::GoogleAds::V3::Services::GetAdGroupRequest, - blk&.call(cls) + mutate_ad_groups: Google::Ads::GoogleAds::V3::Services::MutateAdGroupsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def ad_group_simulation(&blk) - require "google/ads/google_ads/v3/services/ad_group_simulation_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AdGroupSimulationServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def search_term_view(&blk) + require "google/ads/google_ads/v3/services/search_term_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::SearchTermViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_search_term_view: Google::Ads::GoogleAds::V3::Services::GetSearchTermViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def campaign_bid_modifier(&blk) - require "google/ads/google_ads/v3/services/campaign_bid_modifier_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CampaignBidModifierServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def ad(&blk) + require "google/ads/google_ads/v3/services/ad_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AdService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_ad: Google::Ads::GoogleAds::V3::Services::GetAdRequest, - blk&.call(cls) + mutate_ads: Google::Ads::GoogleAds::V3::Services::MutateAdsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def group_placement_view(&blk) - require "google/ads/google_ads/v3/services/group_placement_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::GroupPlacementViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def campaign(&blk) + require "google/ads/google_ads/v3/services/campaign_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CampaignService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_campaign: Google::Ads::GoogleAds::V3::Services::GetCampaignRequest, - blk&.call(cls) + mutate_campaigns: Google::Ads::GoogleAds::V3::Services::MutateCampaignsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def reach_plan(&blk) - require "google/ads/google_ads/v3/services/reach_plan_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::ReachPlanServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def offline_user_data_job(&blk) + require "google/ads/google_ads/v3/services/offline_user_data_job_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + create_offline_user_data_job: Google::Ads::GoogleAds::V3::Services::CreateOfflineUserDataJobRequest, - blk&.call(cls) + get_offline_user_data_job: Google::Ads::GoogleAds::V3::Services::GetOfflineUserDataJobRequest, - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + add_offline_user_data_job_operations: Google::Ads::GoogleAds::V3::Services::AddOfflineUserDataJobOperationsRequest, + + run_offline_user_data_job: Google::Ads::GoogleAds::V3::Services::RunOfflineUserDataJobRequest + + }, + deprecation: @deprecation ) end - def mobile_app_category_constant(&blk) - require "google/ads/google_ads/v3/services/mobile_app_category_constant_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::MobileAppCategoryConstantServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def carrier_constant(&blk) + require "google/ads/google_ads/v3/services/carrier_constant_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CarrierConstantService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_carrier_constant: Google::Ads::GoogleAds::V3::Services::GetCarrierConstantRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def product_bidding_category_constant(&blk) - require "google/ads/google_ads/v3/services/product_bidding_category_constant_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::ProductBiddingCategoryConstantServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def gender_view(&blk) + require "google/ads/google_ads/v3/services/gender_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::GenderViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_gender_view: Google::Ads::GoogleAds::V3::Services::GetGenderViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def conversion_action(&blk) - require "google/ads/google_ads/v3/services/conversion_action_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::ConversionActionServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def landing_page_view(&blk) + require "google/ads/google_ads/v3/services/landing_page_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::LandingPageViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_landing_page_view: Google::Ads::GoogleAds::V3::Services::GetLandingPageViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def bidding_strategy(&blk) - require "google/ads/google_ads/v3/services/bidding_strategy_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::BiddingStrategyServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def age_range_view(&blk) + require "google/ads/google_ads/v3/services/age_range_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AgeRangeViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_age_range_view: Google::Ads::GoogleAds::V3::Services::GetAgeRangeViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def carrier_constant(&blk) - require "google/ads/google_ads/v3/services/carrier_constant_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CarrierConstantServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def extension_feed_item(&blk) + require "google/ads/google_ads/v3/services/extension_feed_item_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_extension_feed_item: Google::Ads::GoogleAds::V3::Services::GetExtensionFeedItemRequest, - blk&.call(cls) + mutate_extension_feed_items: Google::Ads::GoogleAds::V3::Services::MutateExtensionFeedItemsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def shopping_performance_view(&blk) - require "google/ads/google_ads/v3/services/shopping_performance_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::ShoppingPerformanceViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def ad_group_ad_label(&blk) + require "google/ads/google_ads/v3/services/ad_group_ad_label_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AdGroupAdLabelService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_ad_group_ad_label: Google::Ads::GoogleAds::V3::Services::GetAdGroupAdLabelRequest, - blk&.call(cls) + mutate_ad_group_ad_labels: Google::Ads::GoogleAds::V3::Services::MutateAdGroupAdLabelsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def campaign_extension_setting(&blk) - require "google/ads/google_ads/v3/services/campaign_extension_setting_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CampaignExtensionSettingServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def customer_feed(&blk) + require "google/ads/google_ads/v3/services/customer_feed_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CustomerFeedService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_customer_feed: Google::Ads::GoogleAds::V3::Services::GetCustomerFeedRequest, - blk&.call(cls) + mutate_customer_feeds: Google::Ads::GoogleAds::V3::Services::MutateCustomerFeedsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def conversion_adjustment_upload(&blk) - require "google/ads/google_ads/v3/services/conversion_adjustment_upload_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::ConversionAdjustmentUploadServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def feed_item(&blk) + require "google/ads/google_ads/v3/services/feed_item_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::FeedItemService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_feed_item: Google::Ads::GoogleAds::V3::Services::GetFeedItemRequest, - blk&.call(cls) + mutate_feed_items: Google::Ads::GoogleAds::V3::Services::MutateFeedItemsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def paid_organic_search_term_view(&blk) - require "google/ads/google_ads/v3/services/paid_organic_search_term_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::PaidOrganicSearchTermViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def keyword_plan_keyword(&blk) + require "google/ads/google_ads/v3/services/keyword_plan_keyword_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::KeywordPlanKeywordService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_keyword_plan_keyword: Google::Ads::GoogleAds::V3::Services::GetKeywordPlanKeywordRequest, - blk&.call(cls) + mutate_keyword_plan_keywords: Google::Ads::GoogleAds::V3::Services::MutateKeywordPlanKeywordsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def mobile_device_constant(&blk) - require "google/ads/google_ads/v3/services/mobile_device_constant_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::MobileDeviceConstantServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def conversion_adjustment_upload(&blk) + require "google/ads/google_ads/v3/services/conversion_adjustment_upload_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::ConversionAdjustmentUploadService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + upload_conversion_adjustments: Google::Ads::GoogleAds::V3::Services::UploadConversionAdjustmentsRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def customer_extension_setting(&blk) - require "google/ads/google_ads/v3/services/customer_extension_setting_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CustomerExtensionSettingServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def campaign_shared_set(&blk) + require "google/ads/google_ads/v3/services/campaign_shared_set_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CampaignSharedSetService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_campaign_shared_set: Google::Ads::GoogleAds::V3::Services::GetCampaignSharedSetRequest, - blk&.call(cls) + mutate_campaign_shared_sets: Google::Ads::GoogleAds::V3::Services::MutateCampaignSharedSetsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def campaign_budget(&blk) - require "google/ads/google_ads/v3/services/campaign_budget_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CampaignBudgetServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def keyword_plan_campaign(&blk) + require "google/ads/google_ads/v3/services/keyword_plan_campaign_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::KeywordPlanCampaignService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_keyword_plan_campaign: Google::Ads::GoogleAds::V3::Services::GetKeywordPlanCampaignRequest, - blk&.call(cls) + mutate_keyword_plan_campaigns: Google::Ads::GoogleAds::V3::Services::MutateKeywordPlanCampaignsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def keyword_plan(&blk) - require "google/ads/google_ads/v3/services/keyword_plan_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::KeywordPlanServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def shared_set(&blk) + require "google/ads/google_ads/v3/services/shared_set_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::SharedSetService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_shared_set: Google::Ads::GoogleAds::V3::Services::GetSharedSetRequest, - blk&.call(cls) + mutate_shared_sets: Google::Ads::GoogleAds::V3::Services::MutateSharedSetsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def keyword_plan_keyword(&blk) - require "google/ads/google_ads/v3/services/keyword_plan_keyword_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::KeywordPlanKeywordServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def bidding_strategy(&blk) + require "google/ads/google_ads/v3/services/bidding_strategy_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::BiddingStrategyService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_bidding_strategy: Google::Ads::GoogleAds::V3::Services::GetBiddingStrategyRequest, - blk&.call(cls) + mutate_bidding_strategies: Google::Ads::GoogleAds::V3::Services::MutateBiddingStrategiesRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def asset(&blk) - require "google/ads/google_ads/v3/services/asset_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AssetServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def account_budget_proposal(&blk) + require "google/ads/google_ads/v3/services/account_budget_proposal_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AccountBudgetProposalService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_account_budget_proposal: Google::Ads::GoogleAds::V3::Services::GetAccountBudgetProposalRequest, - blk&.call(cls) + mutate_account_budget_proposal: Google::Ads::GoogleAds::V3::Services::MutateAccountBudgetProposalRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def ad(&blk) - require "google/ads/google_ads/v3/services/ad_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AdServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def language_constant(&blk) + require "google/ads/google_ads/v3/services/language_constant_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::LanguageConstantService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_language_constant: Google::Ads::GoogleAds::V3::Services::GetLanguageConstantRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def ad_group_audience_view(&blk) - require "google/ads/google_ads/v3/services/ad_group_audience_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AdGroupAudienceViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def click_view(&blk) + require "google/ads/google_ads/v3/services/click_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::ClickViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_click_view: Google::Ads::GoogleAds::V3::Services::GetClickViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def ad_group_feed(&blk) - require "google/ads/google_ads/v3/services/ad_group_feed_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AdGroupFeedServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def operating_system_version_constant(&blk) + require "google/ads/google_ads/v3/services/operating_system_version_constant_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::OperatingSystemVersionConstantService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_operating_system_version_constant: Google::Ads::GoogleAds::V3::Services::GetOperatingSystemVersionConstantRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def topic_view(&blk) - require "google/ads/google_ads/v3/services/topic_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::TopicViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def change_status(&blk) + require "google/ads/google_ads/v3/services/change_status_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::ChangeStatusService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_change_status: Google::Ads::GoogleAds::V3::Services::GetChangeStatusRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def customer_client(&blk) - require "google/ads/google_ads/v3/services/customer_client_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CustomerClientServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def custom_interest(&blk) + require "google/ads/google_ads/v3/services/custom_interest_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CustomInterestService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_custom_interest: Google::Ads::GoogleAds::V3::Services::GetCustomInterestRequest, - blk&.call(cls) + mutate_custom_interests: Google::Ads::GoogleAds::V3::Services::MutateCustomInterestsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def feed(&blk) - require "google/ads/google_ads/v3/services/feed_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::FeedServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def expanded_landing_page_view(&blk) + require "google/ads/google_ads/v3/services/expanded_landing_page_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::ExpandedLandingPageViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_expanded_landing_page_view: Google::Ads::GoogleAds::V3::Services::GetExpandedLandingPageViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def ad_group_label(&blk) - require "google/ads/google_ads/v3/services/ad_group_label_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AdGroupLabelServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def customer_label(&blk) + require "google/ads/google_ads/v3/services/customer_label_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CustomerLabelService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_customer_label: Google::Ads::GoogleAds::V3::Services::GetCustomerLabelRequest, - blk&.call(cls) + mutate_customer_labels: Google::Ads::GoogleAds::V3::Services::MutateCustomerLabelsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def search_term_view(&blk) - require "google/ads/google_ads/v3/services/search_term_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::SearchTermViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def campaign_criterion_simulation(&blk) + require "google/ads/google_ads/v3/services/campaign_criterion_simulation_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CampaignCriterionSimulationService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_campaign_criterion_simulation: Google::Ads::GoogleAds::V3::Services::GetCampaignCriterionSimulationRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def account_budget_proposal(&blk) - require "google/ads/google_ads/v3/services/account_budget_proposal_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AccountBudgetProposalServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def product_group_view(&blk) + require "google/ads/google_ads/v3/services/product_group_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::ProductGroupViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_product_group_view: Google::Ads::GoogleAds::V3::Services::GetProductGroupViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def shared_set(&blk) - require "google/ads/google_ads/v3/services/shared_set_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::SharedSetServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def remarketing_action(&blk) + require "google/ads/google_ads/v3/services/remarketing_action_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::RemarketingActionService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_remarketing_action: Google::Ads::GoogleAds::V3::Services::GetRemarketingActionRequest, - blk&.call(cls) + mutate_remarketing_actions: Google::Ads::GoogleAds::V3::Services::MutateRemarketingActionsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def ad_group_ad(&blk) - require "google/ads/google_ads/v3/services/ad_group_ad_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AdGroupAdServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def campaign_audience_view(&blk) + require "google/ads/google_ads/v3/services/campaign_audience_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CampaignAudienceViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_campaign_audience_view: Google::Ads::GoogleAds::V3::Services::GetCampaignAudienceViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def customer_manager_link(&blk) - require "google/ads/google_ads/v3/services/customer_manager_link_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CustomerManagerLinkServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def ad_group_label(&blk) + require "google/ads/google_ads/v3/services/ad_group_label_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AdGroupLabelService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_ad_group_label: Google::Ads::GoogleAds::V3::Services::GetAdGroupLabelRequest, - blk&.call(cls) + mutate_ad_group_labels: Google::Ads::GoogleAds::V3::Services::MutateAdGroupLabelsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def user_interest(&blk) - require "google/ads/google_ads/v3/services/user_interest_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::UserInterestServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def geographic_view(&blk) + require "google/ads/google_ads/v3/services/geographic_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::GeographicViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_geographic_view: Google::Ads::GoogleAds::V3::Services::GetGeographicViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def distance_view(&blk) - require "google/ads/google_ads/v3/services/distance_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::DistanceViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def asset(&blk) + require "google/ads/google_ads/v3/services/asset_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AssetService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_asset: Google::Ads::GoogleAds::V3::Services::GetAssetRequest, - blk&.call(cls) + mutate_assets: Google::Ads::GoogleAds::V3::Services::MutateAssetsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def customer_client_link(&blk) - require "google/ads/google_ads/v3/services/customer_client_link_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CustomerClientLinkServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def user_data(&blk) + require "google/ads/google_ads/v3/services/user_data_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::UserDataService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + upload_user_data: Google::Ads::GoogleAds::V3::Services::UploadUserDataRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def ad_group_criterion_simulation(&blk) - require "google/ads/google_ads/v3/services/ad_group_criterion_simulation_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AdGroupCriterionSimulationServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def detail_placement_view(&blk) + require "google/ads/google_ads/v3/services/detail_placement_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::DetailPlacementViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_detail_placement_view: Google::Ads::GoogleAds::V3::Services::GetDetailPlacementViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def ad_group_ad_label(&blk) - require "google/ads/google_ads/v3/services/ad_group_ad_label_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AdGroupAdLabelServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def campaign_extension_setting(&blk) + require "google/ads/google_ads/v3/services/campaign_extension_setting_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CampaignExtensionSettingService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_campaign_extension_setting: Google::Ads::GoogleAds::V3::Services::GetCampaignExtensionSettingRequest, - blk&.call(cls) + mutate_campaign_extension_settings: Google::Ads::GoogleAds::V3::Services::MutateCampaignExtensionSettingsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def keyword_view(&blk) - require "google/ads/google_ads/v3/services/keyword_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::KeywordViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def recommendation(&blk) + require "google/ads/google_ads/v3/services/recommendation_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::RecommendationService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_recommendation: Google::Ads::GoogleAds::V3::Services::GetRecommendationRequest, - blk&.call(cls) + apply_recommendation: Google::Ads::GoogleAds::V3::Services::ApplyRecommendationRequest, - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + dismiss_recommendation: Google::Ads::GoogleAds::V3::Services::DismissRecommendationRequest + + }, + deprecation: @deprecation ) end - def location_view(&blk) - require "google/ads/google_ads/v3/services/location_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::LocationViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def campaign_criterion(&blk) + require "google/ads/google_ads/v3/services/campaign_criterion_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CampaignCriterionService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_campaign_criterion: Google::Ads::GoogleAds::V3::Services::GetCampaignCriterionRequest, - blk&.call(cls) + mutate_campaign_criteria: Google::Ads::GoogleAds::V3::Services::MutateCampaignCriteriaRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def ad_parameter(&blk) - require "google/ads/google_ads/v3/services/ad_parameter_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AdParameterServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def ad_group_audience_view(&blk) + require "google/ads/google_ads/v3/services/ad_group_audience_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AdGroupAudienceViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_ad_group_audience_view: Google::Ads::GoogleAds::V3::Services::GetAdGroupAudienceViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def keyword_plan_campaign(&blk) - require "google/ads/google_ads/v3/services/keyword_plan_campaign_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::KeywordPlanCampaignServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def ad_schedule_view(&blk) + require "google/ads/google_ads/v3/services/ad_schedule_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AdScheduleViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_ad_schedule_view: Google::Ads::GoogleAds::V3::Services::GetAdScheduleViewRequest - blk&.call(cls) + }, + deprecation: @deprecation + ) + end - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + def shopping_performance_view(&blk) + require "google/ads/google_ads/v3/services/shopping_performance_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::ShoppingPerformanceViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { + + get_shopping_performance_view: Google::Ads::GoogleAds::V3::Services::GetShoppingPerformanceViewRequest + + }, + deprecation: @deprecation ) end - def campaign_shared_set(&blk) - require "google/ads/google_ads/v3/services/campaign_shared_set_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CampaignSharedSetServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def campaign_budget(&blk) + require "google/ads/google_ads/v3/services/campaign_budget_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CampaignBudgetService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_campaign_budget: Google::Ads::GoogleAds::V3::Services::GetCampaignBudgetRequest, - blk&.call(cls) + mutate_campaign_budgets: Google::Ads::GoogleAds::V3::Services::MutateCampaignBudgetsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def feed_item_target(&blk) - require "google/ads/google_ads/v3/services/feed_item_target_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::FeedItemTargetServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def keyword_plan_ad_group(&blk) + require "google/ads/google_ads/v3/services/keyword_plan_ad_group_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::KeywordPlanAdGroupService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_keyword_plan_ad_group: Google::Ads::GoogleAds::V3::Services::GetKeywordPlanAdGroupRequest, - blk&.call(cls) + mutate_keyword_plan_ad_groups: Google::Ads::GoogleAds::V3::Services::MutateKeywordPlanAdGroupsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def keyword_plan_negative_keyword(&blk) - require "google/ads/google_ads/v3/services/keyword_plan_negative_keyword_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::KeywordPlanNegativeKeywordServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def campaign_label(&blk) + require "google/ads/google_ads/v3/services/campaign_label_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CampaignLabelService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_campaign_label: Google::Ads::GoogleAds::V3::Services::GetCampaignLabelRequest, - blk&.call(cls) + mutate_campaign_labels: Google::Ads::GoogleAds::V3::Services::MutateCampaignLabelsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def detail_placement_view(&blk) - require "google/ads/google_ads/v3/services/detail_placement_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::DetailPlacementViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def google_ads_field(&blk) + require "google/ads/google_ads/v3/services/google_ads_field_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::GoogleAdsFieldService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_google_ads_field: Google::Ads::GoogleAds::V3::Services::GetGoogleAdsFieldRequest, - blk&.call(cls) + search_google_ads_fields: Google::Ads::GoogleAds::V3::Services::SearchGoogleAdsFieldsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def payments_account(&blk) - require "google/ads/google_ads/v3/services/payments_account_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::PaymentsAccountServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def campaign_feed(&blk) + require "google/ads/google_ads/v3/services/campaign_feed_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CampaignFeedService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_campaign_feed: Google::Ads::GoogleAds::V3::Services::GetCampaignFeedRequest, - blk&.call(cls) + mutate_campaign_feeds: Google::Ads::GoogleAds::V3::Services::MutateCampaignFeedsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end def billing_setup(&blk) - require "google/ads/google_ads/v3/services/billing_setup_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::BillingSetupServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + require "google/ads/google_ads/v3/services/billing_setup_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::BillingSetupService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_billing_setup: Google::Ads::GoogleAds::V3::Services::GetBillingSetupRequest, - blk&.call(cls) + mutate_billing_setup: Google::Ads::GoogleAds::V3::Services::MutateBillingSetupRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def google_ads_field(&blk) - require "google/ads/google_ads/v3/services/google_ads_field_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::GoogleAdsFieldServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def distance_view(&blk) + require "google/ads/google_ads/v3/services/distance_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::DistanceViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_distance_view: Google::Ads::GoogleAds::V3::Services::GetDistanceViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def ad_group_bid_modifier(&blk) - require "google/ads/google_ads/v3/services/ad_group_bid_modifier_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AdGroupBidModifierServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def currency_constant(&blk) + require "google/ads/google_ads/v3/services/currency_constant_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CurrencyConstantService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_currency_constant: Google::Ads::GoogleAds::V3::Services::GetCurrencyConstantRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def merchant_center_link(&blk) - require "google/ads/google_ads/v3/services/merchant_center_link_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::MerchantCenterLinkServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def account_budget(&blk) + require "google/ads/google_ads/v3/services/account_budget_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AccountBudgetService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_account_budget: Google::Ads::GoogleAds::V3::Services::GetAccountBudgetRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def recommendation(&blk) - require "google/ads/google_ads/v3/services/recommendation_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::RecommendationServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def domain_category(&blk) + require "google/ads/google_ads/v3/services/domain_category_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::DomainCategoryService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_domain_category: Google::Ads::GoogleAds::V3::Services::GetDomainCategoryRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def geo_target_constant(&blk) - require "google/ads/google_ads/v3/services/geo_target_constant_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::GeoTargetConstantServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def mobile_device_constant(&blk) + require "google/ads/google_ads/v3/services/mobile_device_constant_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::MobileDeviceConstantService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_mobile_device_constant: Google::Ads::GoogleAds::V3::Services::GetMobileDeviceConstantRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def campaign_label(&blk) - require "google/ads/google_ads/v3/services/campaign_label_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CampaignLabelServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def ad_group_extension_setting(&blk) + require "google/ads/google_ads/v3/services/ad_group_extension_setting_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AdGroupExtensionSettingService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_ad_group_extension_setting: Google::Ads::GoogleAds::V3::Services::GetAdGroupExtensionSettingRequest, - blk&.call(cls) + mutate_ad_group_extension_settings: Google::Ads::GoogleAds::V3::Services::MutateAdGroupExtensionSettingsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def product_group_view(&blk) - require "google/ads/google_ads/v3/services/product_group_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::ProductGroupViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def invoice(&blk) + require "google/ads/google_ads/v3/services/invoice_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::InvoiceService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + list_invoices: Google::Ads::GoogleAds::V3::Services::ListInvoicesRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def ad_group_ad_asset_view(&blk) - require "google/ads/google_ads/v3/services/ad_group_ad_asset_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AdGroupAdAssetViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def conversion_upload(&blk) + require "google/ads/google_ads/v3/services/conversion_upload_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::ConversionUploadService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + upload_click_conversions: Google::Ads::GoogleAds::V3::Services::UploadClickConversionsRequest, - blk&.call(cls) + upload_call_conversions: Google::Ads::GoogleAds::V3::Services::UploadCallConversionsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def managed_placement_view(&blk) - require "google/ads/google_ads/v3/services/managed_placement_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::ManagedPlacementViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def feed(&blk) + require "google/ads/google_ads/v3/services/feed_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::FeedService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_feed: Google::Ads::GoogleAds::V3::Services::GetFeedRequest, - blk&.call(cls) + mutate_feeds: Google::Ads::GoogleAds::V3::Services::MutateFeedsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def customer_feed(&blk) - require "google/ads/google_ads/v3/services/customer_feed_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CustomerFeedServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def keyword_plan_negative_keyword(&blk) + require "google/ads/google_ads/v3/services/keyword_plan_negative_keyword_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::KeywordPlanNegativeKeywordService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_keyword_plan_negative_keyword: Google::Ads::GoogleAds::V3::Services::GetKeywordPlanNegativeKeywordRequest, - blk&.call(cls) + mutate_keyword_plan_negative_keywords: Google::Ads::GoogleAds::V3::Services::MutateKeywordPlanNegativeKeywordsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def hotel_performance_view(&blk) - require "google/ads/google_ads/v3/services/hotel_performance_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::HotelPerformanceViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def user_location_view(&blk) + require "google/ads/google_ads/v3/services/user_location_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::UserLocationViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_user_location_view: Google::Ads::GoogleAds::V3::Services::GetUserLocationViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def invoice(&blk) - require "google/ads/google_ads/v3/services/invoice_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::InvoiceServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def merchant_center_link(&blk) + require "google/ads/google_ads/v3/services/merchant_center_link_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::MerchantCenterLinkService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + list_merchant_center_links: Google::Ads::GoogleAds::V3::Services::ListMerchantCenterLinksRequest, - blk&.call(cls) + get_merchant_center_link: Google::Ads::GoogleAds::V3::Services::GetMerchantCenterLinkRequest, - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + mutate_merchant_center_link: Google::Ads::GoogleAds::V3::Services::MutateMerchantCenterLinkRequest + + }, + deprecation: @deprecation ) end - def media_file(&blk) - require "google/ads/google_ads/v3/services/media_file_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::MediaFileServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def topic_view(&blk) + require "google/ads/google_ads/v3/services/topic_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::TopicViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_topic_view: Google::Ads::GoogleAds::V3::Services::GetTopicViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def ad_schedule_view(&blk) - require "google/ads/google_ads/v3/services/ad_schedule_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AdScheduleViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def feed_item_target(&blk) + require "google/ads/google_ads/v3/services/feed_item_target_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::FeedItemTargetService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_feed_item_target: Google::Ads::GoogleAds::V3::Services::GetFeedItemTargetRequest, - blk&.call(cls) + mutate_feed_item_targets: Google::Ads::GoogleAds::V3::Services::MutateFeedItemTargetsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def campaign(&blk) - require "google/ads/google_ads/v3/services/campaign_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CampaignServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def display_keyword_view(&blk) + require "google/ads/google_ads/v3/services/display_keyword_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::DisplayKeywordViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_display_keyword_view: Google::Ads::GoogleAds::V3::Services::GetDisplayKeywordViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def parental_status_view(&blk) - require "google/ads/google_ads/v3/services/parental_status_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::ParentalStatusViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def ad_group_feed(&blk) + require "google/ads/google_ads/v3/services/ad_group_feed_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AdGroupFeedService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_ad_group_feed: Google::Ads::GoogleAds::V3::Services::GetAdGroupFeedRequest, - blk&.call(cls) + mutate_ad_group_feeds: Google::Ads::GoogleAds::V3::Services::MutateAdGroupFeedsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def campaign_experiment(&blk) - require "google/ads/google_ads/v3/services/campaign_experiment_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CampaignExperimentServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def ad_group_criterion_label(&blk) + require "google/ads/google_ads/v3/services/ad_group_criterion_label_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_ad_group_criterion_label: Google::Ads::GoogleAds::V3::Services::GetAdGroupCriterionLabelRequest, - blk&.call(cls) + mutate_ad_group_criterion_labels: Google::Ads::GoogleAds::V3::Services::MutateAdGroupCriterionLabelsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def ad_group(&blk) - require "google/ads/google_ads/v3/services/ad_group_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AdGroupServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def ad_group_criterion(&blk) + require "google/ads/google_ads/v3/services/ad_group_criterion_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AdGroupCriterionService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_ad_group_criterion: Google::Ads::GoogleAds::V3::Services::GetAdGroupCriterionRequest, - blk&.call(cls) + mutate_ad_group_criteria: Google::Ads::GoogleAds::V3::Services::MutateAdGroupCriteriaRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def user_location_view(&blk) - require "google/ads/google_ads/v3/services/user_location_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::UserLocationViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def video(&blk) + require "google/ads/google_ads/v3/services/video_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::VideoService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_video: Google::Ads::GoogleAds::V3::Services::GetVideoRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def mutate_job(&blk) - require "google/ads/google_ads/v3/services/mutate_job_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::MutateJobServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def ad_group_ad(&blk) + require "google/ads/google_ads/v3/services/ad_group_ad_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AdGroupAdService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_ad_group_ad: Google::Ads::GoogleAds::V3::Services::GetAdGroupAdRequest, - blk&.call(cls) + mutate_ad_group_ads: Google::Ads::GoogleAds::V3::Services::MutateAdGroupAdsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def campaign_criterion(&blk) - require "google/ads/google_ads/v3/services/campaign_criterion_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CampaignCriterionServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def conversion_action(&blk) + require "google/ads/google_ads/v3/services/conversion_action_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::ConversionActionService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_conversion_action: Google::Ads::GoogleAds::V3::Services::GetConversionActionRequest, - blk&.call(cls) + mutate_conversion_actions: Google::Ads::GoogleAds::V3::Services::MutateConversionActionsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def click_view(&blk) - require "google/ads/google_ads/v3/services/click_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::ClickViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def mutate_job(&blk) + require "google/ads/google_ads/v3/services/mutate_job_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::MutateJobService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + create_mutate_job: Google::Ads::GoogleAds::V3::Services::CreateMutateJobRequest, - blk&.call(cls) + get_mutate_job: Google::Ads::GoogleAds::V3::Services::GetMutateJobRequest, - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + list_mutate_job_results: Google::Ads::GoogleAds::V3::Services::ListMutateJobResultsRequest, + + run_mutate_job: Google::Ads::GoogleAds::V3::Services::RunMutateJobRequest, + + add_mutate_job_operations: Google::Ads::GoogleAds::V3::Services::AddMutateJobOperationsRequest + + }, + deprecation: @deprecation ) end - def user_data(&blk) - require "google/ads/google_ads/v3/services/user_data_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::UserDataServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def product_bidding_category_constant(&blk) + require "google/ads/google_ads/v3/services/product_bidding_category_constant_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::ProductBiddingCategoryConstantService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_product_bidding_category_constant: Google::Ads::GoogleAds::V3::Services::GetProductBiddingCategoryConstantRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def operating_system_version_constant(&blk) - require "google/ads/google_ads/v3/services/operating_system_version_constant_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::OperatingSystemVersionConstantServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def customer_client(&blk) + require "google/ads/google_ads/v3/services/customer_client_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CustomerClientService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_customer_client: Google::Ads::GoogleAds::V3::Services::GetCustomerClientRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def remarketing_action(&blk) - require "google/ads/google_ads/v3/services/remarketing_action_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::RemarketingActionServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def customer_extension_setting(&blk) + require "google/ads/google_ads/v3/services/customer_extension_setting_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CustomerExtensionSettingService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_customer_extension_setting: Google::Ads::GoogleAds::V3::Services::GetCustomerExtensionSettingRequest, - blk&.call(cls) + mutate_customer_extension_settings: Google::Ads::GoogleAds::V3::Services::MutateCustomerExtensionSettingsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def landing_page_view(&blk) - require "google/ads/google_ads/v3/services/landing_page_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::LandingPageViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def label(&blk) + require "google/ads/google_ads/v3/services/label_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::LabelService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_label: Google::Ads::GoogleAds::V3::Services::GetLabelRequest, - blk&.call(cls) + mutate_labels: Google::Ads::GoogleAds::V3::Services::MutateLabelsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def dynamic_search_ads_search_term_view(&blk) - require "google/ads/google_ads/v3/services/dynamic_search_ads_search_term_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::DynamicSearchAdsSearchTermViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def mobile_app_category_constant(&blk) + require "google/ads/google_ads/v3/services/mobile_app_category_constant_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::MobileAppCategoryConstantService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_mobile_app_category_constant: Google::Ads::GoogleAds::V3::Services::GetMobileAppCategoryConstantRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def offline_user_data_job(&blk) - require "google/ads/google_ads/v3/services/offline_user_data_job_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def topic_constant(&blk) + require "google/ads/google_ads/v3/services/topic_constant_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::TopicConstantService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_topic_constant: Google::Ads::GoogleAds::V3::Services::GetTopicConstantRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def conversion_upload(&blk) - require "google/ads/google_ads/v3/services/conversion_upload_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::ConversionUploadServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def media_file(&blk) + require "google/ads/google_ads/v3/services/media_file_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::MediaFileService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_media_file: Google::Ads::GoogleAds::V3::Services::GetMediaFileRequest, - blk&.call(cls) + mutate_media_files: Google::Ads::GoogleAds::V3::Services::MutateMediaFilesRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def user_list(&blk) - require "google/ads/google_ads/v3/services/user_list_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::UserListServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def customer(&blk) + require "google/ads/google_ads/v3/services/customer_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CustomerService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_customer: Google::Ads::GoogleAds::V3::Services::GetCustomerRequest, - blk&.call(cls) + mutate_customer: Google::Ads::GoogleAds::V3::Services::MutateCustomerRequest, - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + list_accessible_customers: Google::Ads::GoogleAds::V3::Services::ListAccessibleCustomersRequest, + + create_customer_client: Google::Ads::GoogleAds::V3::Services::CreateCustomerClientRequest + + }, + deprecation: @deprecation ) end - def video(&blk) - require "google/ads/google_ads/v3/services/video_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::VideoServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def campaign_bid_modifier(&blk) + require "google/ads/google_ads/v3/services/campaign_bid_modifier_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CampaignBidModifierService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_campaign_bid_modifier: Google::Ads::GoogleAds::V3::Services::GetCampaignBidModifierRequest, - blk&.call(cls) + mutate_campaign_bid_modifiers: Google::Ads::GoogleAds::V3::Services::MutateCampaignBidModifiersRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def language_constant(&blk) - require "google/ads/google_ads/v3/services/language_constant_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::LanguageConstantServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def keyword_plan(&blk) + require "google/ads/google_ads/v3/services/keyword_plan_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::KeywordPlanService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_keyword_plan: Google::Ads::GoogleAds::V3::Services::GetKeywordPlanRequest, - blk&.call(cls) + mutate_keyword_plans: Google::Ads::GoogleAds::V3::Services::MutateKeywordPlansRequest, - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + generate_forecast_metrics: Google::Ads::GoogleAds::V3::Services::GenerateForecastMetricsRequest, + + generate_historical_metrics: Google::Ads::GoogleAds::V3::Services::GenerateHistoricalMetricsRequest + + }, + deprecation: @deprecation ) end - def expanded_landing_page_view(&blk) - require "google/ads/google_ads/v3/services/expanded_landing_page_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::ExpandedLandingPageViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def google_ads(&blk) + require "google/ads/google_ads/v3/services/google_ads_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::GoogleAdsService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + search: Google::Ads::GoogleAds::V3::Services::SearchGoogleAdsRequest, - blk&.call(cls) + search_stream: Google::Ads::GoogleAds::V3::Services::SearchGoogleAdsStreamRequest, - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + mutate: Google::Ads::GoogleAds::V3::Services::MutateGoogleAdsRequest + + }, + deprecation: @deprecation ) end - def customer_label(&blk) - require "google/ads/google_ads/v3/services/customer_label_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CustomerLabelServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def customer_negative_criterion(&blk) + require "google/ads/google_ads/v3/services/customer_negative_criterion_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CustomerNegativeCriterionService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_customer_negative_criterion: Google::Ads::GoogleAds::V3::Services::GetCustomerNegativeCriterionRequest, - blk&.call(cls) + mutate_customer_negative_criteria: Google::Ads::GoogleAds::V3::Services::MutateCustomerNegativeCriteriaRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def ad_group_extension_setting(&blk) - require "google/ads/google_ads/v3/services/ad_group_extension_setting_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AdGroupExtensionSettingServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def reach_plan(&blk) + require "google/ads/google_ads/v3/services/reach_plan_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::ReachPlanService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + list_plannable_locations: Google::Ads::GoogleAds::V3::Services::ListPlannableLocationsRequest, - blk&.call(cls) + list_plannable_products: Google::Ads::GoogleAds::V3::Services::ListPlannableProductsRequest, - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + generate_product_mix_ideas: Google::Ads::GoogleAds::V3::Services::GenerateProductMixIdeasRequest, + + generate_reach_forecast: Google::Ads::GoogleAds::V3::Services::GenerateReachForecastRequest + + }, + deprecation: @deprecation ) end - def ad_group_criterion(&blk) - require "google/ads/google_ads/v3/services/ad_group_criterion_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AdGroupCriterionServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def ad_group_criterion_simulation(&blk) + require "google/ads/google_ads/v3/services/ad_group_criterion_simulation_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AdGroupCriterionSimulationService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_ad_group_criterion_simulation: Google::Ads::GoogleAds::V3::Services::GetAdGroupCriterionSimulationRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def google_ads(&blk) - require "google/ads/google_ads/v3/services/google_ads_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::GoogleAdsServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def campaign_draft(&blk) + require "google/ads/google_ads/v3/services/campaign_draft_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CampaignDraftService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_campaign_draft: Google::Ads::GoogleAds::V3::Services::GetCampaignDraftRequest, - blk&.call(cls) + mutate_campaign_drafts: Google::Ads::GoogleAds::V3::Services::MutateCampaignDraftsRequest, - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + promote_campaign_draft: Google::Ads::GoogleAds::V3::Services::PromoteCampaignDraftRequest, + + list_campaign_draft_async_errors: Google::Ads::GoogleAds::V3::Services::ListCampaignDraftAsyncErrorsRequest + + }, + deprecation: @deprecation ) end - def geographic_view(&blk) - require "google/ads/google_ads/v3/services/geographic_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::GeographicViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def feed_mapping(&blk) + require "google/ads/google_ads/v3/services/feed_mapping_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::FeedMappingService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_feed_mapping: Google::Ads::GoogleAds::V3::Services::GetFeedMappingRequest, - blk&.call(cls) + mutate_feed_mappings: Google::Ads::GoogleAds::V3::Services::MutateFeedMappingsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def feed_item(&blk) - require "google/ads/google_ads/v3/services/feed_item_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::FeedItemServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def geo_target_constant(&blk) + require "google/ads/google_ads/v3/services/geo_target_constant_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::GeoTargetConstantService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_geo_target_constant: Google::Ads::GoogleAds::V3::Services::GetGeoTargetConstantRequest, - blk&.call(cls) + suggest_geo_target_constants: Google::Ads::GoogleAds::V3::Services::SuggestGeoTargetConstantsRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def gender_view(&blk) - require "google/ads/google_ads/v3/services/gender_view_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::GenderViewServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def feed_placeholder_view(&blk) + require "google/ads/google_ads/v3/services/feed_placeholder_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::FeedPlaceholderViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_feed_placeholder_view: Google::Ads::GoogleAds::V3::Services::GetFeedPlaceholderViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def keyword_plan_ad_group(&blk) - require "google/ads/google_ads/v3/services/keyword_plan_ad_group_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::KeywordPlanAdGroupServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def ad_parameter(&blk) + require "google/ads/google_ads/v3/services/ad_parameter_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AdParameterService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_ad_parameter: Google::Ads::GoogleAds::V3::Services::GetAdParameterRequest, - blk&.call(cls) + mutate_ad_parameters: Google::Ads::GoogleAds::V3::Services::MutateAdParametersRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def label(&blk) - require "google/ads/google_ads/v3/services/label_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::LabelServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def ad_group_simulation(&blk) + require "google/ads/google_ads/v3/services/ad_group_simulation_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AdGroupSimulationService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_ad_group_simulation: Google::Ads::GoogleAds::V3::Services::GetAdGroupSimulationRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def currency_constant(&blk) - require "google/ads/google_ads/v3/services/currency_constant_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CurrencyConstantServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def dynamic_search_ads_search_term_view(&blk) + require "google/ads/google_ads/v3/services/dynamic_search_ads_search_term_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::DynamicSearchAdsSearchTermViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_dynamic_search_ads_search_term_view: Google::Ads::GoogleAds::V3::Services::GetDynamicSearchAdsSearchTermViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def campaign_criterion_simulation(&blk) - require "google/ads/google_ads/v3/services/campaign_criterion_simulation_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::CampaignCriterionSimulationServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def ad_group_bid_modifier(&blk) + require "google/ads/google_ads/v3/services/ad_group_bid_modifier_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::AdGroupBidModifierService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_ad_group_bid_modifier: Google::Ads::GoogleAds::V3::Services::GetAdGroupBidModifierRequest, - blk&.call(cls) + mutate_ad_group_bid_modifiers: Google::Ads::GoogleAds::V3::Services::MutateAdGroupBidModifiersRequest - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def change_status(&blk) - require "google/ads/google_ads/v3/services/change_status_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::ChangeStatusServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def location_view(&blk) + require "google/ads/google_ads/v3/services/location_view_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::LocationViewService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_location_view: Google::Ads::GoogleAds::V3::Services::GetLocationViewRequest - blk&.call(cls) - - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + }, + deprecation: @deprecation ) end - def account_budget(&blk) - require "google/ads/google_ads/v3/services/account_budget_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::AccountBudgetServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + def campaign_experiment(&blk) + require "google/ads/google_ads/v3/services/campaign_experiment_service" + svc = ServiceWrapper.new( + service: Google::Ads::GoogleAds::V3::Services::CampaignExperimentService::Client.new do |config| + config.credentials = @credentials + config.interceptors = @interceptors + config.metadata = @metadata + config.endpoint = @endpoint + end, + rpc_inputs: { - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + get_campaign_experiment: Google::Ads::GoogleAds::V3::Services::GetCampaignExperimentRequest, - blk&.call(cls) + create_campaign_experiment: Google::Ads::GoogleAds::V3::Services::CreateCampaignExperimentRequest, - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer - ) - end + mutate_campaign_experiments: Google::Ads::GoogleAds::V3::Services::MutateCampaignExperimentsRequest, - def keyword_plan_idea(&blk) - require "google/ads/google_ads/v3/services/keyword_plan_idea_service_client.rb" - cls = Class.new(Google::Ads::GoogleAds::V3::Services::KeywordPlanIdeaServiceClient) - if have_service_path? - cls.const_set("SERVICE_PATH", @service_path) - end + graduate_campaign_experiment: Google::Ads::GoogleAds::V3::Services::GraduateCampaignExperimentRequest, - if have_logging_interceptor? - cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor]) - end + promote_campaign_experiment: Google::Ads::GoogleAds::V3::Services::PromoteCampaignExperimentRequest, - blk&.call(cls) + end_campaign_experiment: Google::Ads::GoogleAds::V3::Services::EndCampaignExperimentRequest, - cls.new( - credentials: @credentials, - metadata: @metadata, - exception_transformer: @exception_transformer + list_campaign_experiment_async_errors: Google::Ads::GoogleAds::V3::Services::ListCampaignExperimentAsyncErrorsRequest + + }, + deprecation: @deprecation ) end end end end