lib/google/ads/google_ads/factories/v4/services.rb in google-ads-googleads-6.0.0 vs lib/google/ads/google_ads/factories/v4/services.rb in google-ads-googleads-7.0.0
- old
+ new
@@ -1,2269 +1,2212 @@
+require "google/ads/google_ads/service_wrapper"
module Google
module Ads
module GoogleAds
module Factories
module V4
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/v4/services/ad_group_criterion_label_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::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/v4/services/ad_group_ad_asset_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::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/v4/services/campaign_audience_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CampaignAudienceViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def customer_client_link(&blk)
+ require "google/ads/google_ads/v4/services/customer_client_link_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCustomerClientLinkRequest,
- blk&.call(cls)
+ mutate_customer_client_link: Google::Ads::GoogleAds::V4::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/v4/services/display_keyword_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::DisplayKeywordViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def shared_criterion(&blk)
+ require "google/ads/google_ads/v4/services/shared_criterion_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetSharedCriterionRequest,
- blk&.call(cls)
+ mutate_shared_criteria: Google::Ads::GoogleAds::V4::Services::MutateSharedCriteriaRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def account_link(&blk)
- require "google/ads/google_ads/v4/services/account_link_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AccountLinkServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def hotel_performance_view(&blk)
+ require "google/ads/google_ads/v4/services/hotel_performance_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetHotelPerformanceViewRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def extension_feed_item(&blk)
- require "google/ads/google_ads/v4/services/extension_feed_item_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def customer_manager_link(&blk)
+ require "google/ads/google_ads/v4/services/customer_manager_link_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCustomerManagerLinkRequest,
- blk&.call(cls)
+ mutate_customer_manager_link: Google::Ads::GoogleAds::V4::Services::MutateCustomerManagerLinkRequest,
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ move_manager_link: Google::Ads::GoogleAds::V4::Services::MoveManagerLinkRequest
+
+ },
+ deprecation: @deprecation
)
end
- def shared_criterion(&blk)
- require "google/ads/google_ads/v4/services/shared_criterion_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::SharedCriterionServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def hotel_group_view(&blk)
+ require "google/ads/google_ads/v4/services/hotel_group_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetHotelGroupViewRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def custom_interest(&blk)
- require "google/ads/google_ads/v4/services/custom_interest_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CustomInterestServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def group_placement_view(&blk)
+ require "google/ads/google_ads/v4/services/group_placement_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetGroupPlacementViewRequest
- 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/v4/services/hotel_group_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::HotelGroupViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def keyword_view(&blk)
+ require "google/ads/google_ads/v4/services/keyword_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetKeywordViewRequest
- 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/v4/services/age_range_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AgeRangeViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def user_list(&blk)
+ require "google/ads/google_ads/v4/services/user_list_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetUserListRequest,
- blk&.call(cls)
+ mutate_user_lists: Google::Ads::GoogleAds::V4::Services::MutateUserListsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def topic_constant(&blk)
- require "google/ads/google_ads/v4/services/topic_constant_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::TopicConstantServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def parental_status_view(&blk)
+ require "google/ads/google_ads/v4/services/parental_status_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetParentalStatusViewRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def feed_mapping(&blk)
- require "google/ads/google_ads/v4/services/feed_mapping_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::FeedMappingServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def user_interest(&blk)
+ require "google/ads/google_ads/v4/services/user_interest_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetUserInterestRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def customer(&blk)
- require "google/ads/google_ads/v4/services/customer_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CustomerServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def managed_placement_view(&blk)
+ require "google/ads/google_ads/v4/services/managed_placement_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetManagedPlacementViewRequest
- 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/v4/services/campaign_draft_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CampaignDraftServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def paid_organic_search_term_view(&blk)
+ require "google/ads/google_ads/v4/services/paid_organic_search_term_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetPaidOrganicSearchTermViewRequest
- 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/v4/services/domain_category_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::DomainCategoryServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def keyword_plan_idea(&blk)
+ require "google/ads/google_ads/v4/services/keyword_plan_idea_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GenerateKeywordIdeasRequest
- 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/v4/services/campaign_feed_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CampaignFeedServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def payments_account(&blk)
+ require "google/ads/google_ads/v4/services/payments_account_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::ListPaymentsAccountsRequest
- 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/v4/services/customer_negative_criterion_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def ad_group(&blk)
+ require "google/ads/google_ads/v4/services/ad_group_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAdGroupRequest,
- blk&.call(cls)
+ mutate_ad_groups: Google::Ads::GoogleAds::V4::Services::MutateAdGroupsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def feed_placeholder_view(&blk)
- require "google/ads/google_ads/v4/services/feed_placeholder_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::FeedPlaceholderViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def batch_job(&blk)
+ require "google/ads/google_ads/v4/services/batch_job_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::Services::BatchJobService::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
+ mutate_batch_job: Google::Ads::GoogleAds::V4::Services::MutateBatchJobRequest,
- blk&.call(cls)
+ get_batch_job: Google::Ads::GoogleAds::V4::Services::GetBatchJobRequest,
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
- )
- end
+ list_batch_job_results: Google::Ads::GoogleAds::V4::Services::ListBatchJobResultsRequest,
- def ad_group_simulation(&blk)
- require "google/ads/google_ads/v4/services/ad_group_simulation_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AdGroupSimulationServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ run_batch_job: Google::Ads::GoogleAds::V4::Services::RunBatchJobRequest,
- if have_logging_interceptor?
- cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor])
- end
+ add_batch_job_operations: Google::Ads::GoogleAds::V4::Services::AddBatchJobOperationsRequest
- 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/v4/services/campaign_bid_modifier_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CampaignBidModifierServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def search_term_view(&blk)
+ require "google/ads/google_ads/v4/services/search_term_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetSearchTermViewRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def third_party_app_analytics_link(&blk)
- require "google/ads/google_ads/v4/services/third_party_app_analytics_link_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::ThirdPartyAppAnalyticsLinkServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def ad(&blk)
+ require "google/ads/google_ads/v4/services/ad_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAdRequest,
- blk&.call(cls)
+ mutate_ads: Google::Ads::GoogleAds::V4::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/v4/services/group_placement_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::GroupPlacementViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def campaign(&blk)
+ require "google/ads/google_ads/v4/services/campaign_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCampaignRequest,
- blk&.call(cls)
+ mutate_campaigns: Google::Ads::GoogleAds::V4::Services::MutateCampaignsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def reach_plan(&blk)
- require "google/ads/google_ads/v4/services/reach_plan_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::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/v4/services/offline_user_data_job_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::CreateOfflineUserDataJobRequest,
- blk&.call(cls)
+ get_offline_user_data_job: Google::Ads::GoogleAds::V4::Services::GetOfflineUserDataJobRequest,
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ add_offline_user_data_job_operations: Google::Ads::GoogleAds::V4::Services::AddOfflineUserDataJobOperationsRequest,
+
+ run_offline_user_data_job: Google::Ads::GoogleAds::V4::Services::RunOfflineUserDataJobRequest
+
+ },
+ deprecation: @deprecation
)
end
- def mobile_app_category_constant(&blk)
- require "google/ads/google_ads/v4/services/mobile_app_category_constant_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::MobileAppCategoryConstantServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def carrier_constant(&blk)
+ require "google/ads/google_ads/v4/services/carrier_constant_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::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/v4/services/product_bidding_category_constant_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::ProductBiddingCategoryConstantServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def gender_view(&blk)
+ require "google/ads/google_ads/v4/services/gender_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::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/v4/services/conversion_action_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::ConversionActionServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def landing_page_view(&blk)
+ require "google/ads/google_ads/v4/services/landing_page_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::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/v4/services/bidding_strategy_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::BiddingStrategyServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def age_range_view(&blk)
+ require "google/ads/google_ads/v4/services/age_range_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::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/v4/services/carrier_constant_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CarrierConstantServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def extension_feed_item(&blk)
+ require "google/ads/google_ads/v4/services/extension_feed_item_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetExtensionFeedItemRequest,
- blk&.call(cls)
+ mutate_extension_feed_items: Google::Ads::GoogleAds::V4::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/v4/services/shopping_performance_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::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/v4/services/ad_group_ad_label_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAdGroupAdLabelRequest,
- blk&.call(cls)
+ mutate_ad_group_ad_labels: Google::Ads::GoogleAds::V4::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/v4/services/campaign_extension_setting_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CampaignExtensionSettingServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def customer_feed(&blk)
+ require "google/ads/google_ads/v4/services/customer_feed_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCustomerFeedRequest,
- blk&.call(cls)
+ mutate_customer_feeds: Google::Ads::GoogleAds::V4::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/v4/services/conversion_adjustment_upload_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::ConversionAdjustmentUploadServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def feed_item(&blk)
+ require "google/ads/google_ads/v4/services/feed_item_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetFeedItemRequest,
- blk&.call(cls)
+ mutate_feed_items: Google::Ads::GoogleAds::V4::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/v4/services/paid_organic_search_term_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::PaidOrganicSearchTermViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def conversion_adjustment_upload(&blk)
+ require "google/ads/google_ads/v4/services/conversion_adjustment_upload_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::UploadConversionAdjustmentsRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def mobile_device_constant(&blk)
- require "google/ads/google_ads/v4/services/mobile_device_constant_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::MobileDeviceConstantServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def campaign_shared_set(&blk)
+ require "google/ads/google_ads/v4/services/campaign_shared_set_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCampaignSharedSetRequest,
- blk&.call(cls)
+ mutate_campaign_shared_sets: Google::Ads::GoogleAds::V4::Services::MutateCampaignSharedSetsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def keyword_plan_ad_group_keyword(&blk)
- require "google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def keyword_plan_campaign(&blk)
+ require "google/ads/google_ads/v4/services/keyword_plan_campaign_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetKeywordPlanCampaignRequest,
- blk&.call(cls)
+ mutate_keyword_plan_campaigns: Google::Ads::GoogleAds::V4::Services::MutateKeywordPlanCampaignsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def customer_extension_setting(&blk)
- require "google/ads/google_ads/v4/services/customer_extension_setting_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CustomerExtensionSettingServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def shared_set(&blk)
+ require "google/ads/google_ads/v4/services/shared_set_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetSharedSetRequest,
- blk&.call(cls)
+ mutate_shared_sets: Google::Ads::GoogleAds::V4::Services::MutateSharedSetsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def campaign_budget(&blk)
- require "google/ads/google_ads/v4/services/campaign_budget_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CampaignBudgetServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def bidding_strategy(&blk)
+ require "google/ads/google_ads/v4/services/bidding_strategy_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetBiddingStrategyRequest,
- blk&.call(cls)
+ mutate_bidding_strategies: Google::Ads::GoogleAds::V4::Services::MutateBiddingStrategiesRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def keyword_plan(&blk)
- require "google/ads/google_ads/v4/services/keyword_plan_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::KeywordPlanServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def account_budget_proposal(&blk)
+ require "google/ads/google_ads/v4/services/account_budget_proposal_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAccountBudgetProposalRequest,
- blk&.call(cls)
+ mutate_account_budget_proposal: Google::Ads::GoogleAds::V4::Services::MutateAccountBudgetProposalRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def asset(&blk)
- require "google/ads/google_ads/v4/services/asset_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AssetServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def language_constant(&blk)
+ require "google/ads/google_ads/v4/services/language_constant_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetLanguageConstantRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def ad(&blk)
- require "google/ads/google_ads/v4/services/ad_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AdServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def click_view(&blk)
+ require "google/ads/google_ads/v4/services/click_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetClickViewRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def income_range_view(&blk)
- require "google/ads/google_ads/v4/services/income_range_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::IncomeRangeViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def operating_system_version_constant(&blk)
+ require "google/ads/google_ads/v4/services/operating_system_version_constant_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetOperatingSystemVersionConstantRequest
- 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/v4/services/ad_group_audience_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AdGroupAudienceViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def change_status(&blk)
+ require "google/ads/google_ads/v4/services/change_status_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetChangeStatusRequest
- 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/v4/services/ad_group_feed_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AdGroupFeedServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def custom_interest(&blk)
+ require "google/ads/google_ads/v4/services/custom_interest_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCustomInterestRequest,
- blk&.call(cls)
+ mutate_custom_interests: Google::Ads::GoogleAds::V4::Services::MutateCustomInterestsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def topic_view(&blk)
- require "google/ads/google_ads/v4/services/topic_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::TopicViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def expanded_landing_page_view(&blk)
+ require "google/ads/google_ads/v4/services/expanded_landing_page_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetExpandedLandingPageViewRequest
- 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/v4/services/customer_client_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CustomerClientServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def account_link(&blk)
+ require "google/ads/google_ads/v4/services/account_link_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::Services::AccountLinkService::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_link: Google::Ads::GoogleAds::V4::Services::GetAccountLinkRequest,
- blk&.call(cls)
+ mutate_account_link: Google::Ads::GoogleAds::V4::Services::MutateAccountLinkRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def feed(&blk)
- require "google/ads/google_ads/v4/services/feed_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::FeedServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def customer_label(&blk)
+ require "google/ads/google_ads/v4/services/customer_label_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCustomerLabelRequest,
- blk&.call(cls)
+ mutate_customer_labels: Google::Ads::GoogleAds::V4::Services::MutateCustomerLabelsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def ad_group_label(&blk)
- require "google/ads/google_ads/v4/services/ad_group_label_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AdGroupLabelServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def campaign_criterion_simulation(&blk)
+ require "google/ads/google_ads/v4/services/campaign_criterion_simulation_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCampaignCriterionSimulationRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def search_term_view(&blk)
- require "google/ads/google_ads/v4/services/search_term_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::SearchTermViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def product_group_view(&blk)
+ require "google/ads/google_ads/v4/services/product_group_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetProductGroupViewRequest
- 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/v4/services/account_budget_proposal_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AccountBudgetProposalServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def remarketing_action(&blk)
+ require "google/ads/google_ads/v4/services/remarketing_action_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetRemarketingActionRequest,
- blk&.call(cls)
+ mutate_remarketing_actions: Google::Ads::GoogleAds::V4::Services::MutateRemarketingActionsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def shared_set(&blk)
- require "google/ads/google_ads/v4/services/shared_set_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::SharedSetServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def campaign_audience_view(&blk)
+ require "google/ads/google_ads/v4/services/campaign_audience_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCampaignAudienceViewRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def ad_group_ad(&blk)
- require "google/ads/google_ads/v4/services/ad_group_ad_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AdGroupAdServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def ad_group_label(&blk)
+ require "google/ads/google_ads/v4/services/ad_group_label_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAdGroupLabelRequest,
- blk&.call(cls)
+ mutate_ad_group_labels: Google::Ads::GoogleAds::V4::Services::MutateAdGroupLabelsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def customer_manager_link(&blk)
- require "google/ads/google_ads/v4/services/customer_manager_link_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def geographic_view(&blk)
+ require "google/ads/google_ads/v4/services/geographic_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetGeographicViewRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def user_interest(&blk)
- require "google/ads/google_ads/v4/services/user_interest_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::UserInterestServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def asset(&blk)
+ require "google/ads/google_ads/v4/services/asset_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAssetRequest,
- blk&.call(cls)
+ mutate_assets: Google::Ads::GoogleAds::V4::Services::MutateAssetsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def distance_view(&blk)
- require "google/ads/google_ads/v4/services/distance_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::DistanceViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def user_data(&blk)
+ require "google/ads/google_ads/v4/services/user_data_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::UploadUserDataRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def customer_client_link(&blk)
- require "google/ads/google_ads/v4/services/customer_client_link_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CustomerClientLinkServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def detail_placement_view(&blk)
+ require "google/ads/google_ads/v4/services/detail_placement_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetDetailPlacementViewRequest
- 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/v4/services/ad_group_criterion_simulation_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AdGroupCriterionSimulationServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def campaign_extension_setting(&blk)
+ require "google/ads/google_ads/v4/services/campaign_extension_setting_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCampaignExtensionSettingRequest,
- blk&.call(cls)
+ mutate_campaign_extension_settings: Google::Ads::GoogleAds::V4::Services::MutateCampaignExtensionSettingsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def ad_group_ad_label(&blk)
- require "google/ads/google_ads/v4/services/ad_group_ad_label_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AdGroupAdLabelServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def recommendation(&blk)
+ require "google/ads/google_ads/v4/services/recommendation_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetRecommendationRequest,
- blk&.call(cls)
+ apply_recommendation: Google::Ads::GoogleAds::V4::Services::ApplyRecommendationRequest,
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ dismiss_recommendation: Google::Ads::GoogleAds::V4::Services::DismissRecommendationRequest
+
+ },
+ deprecation: @deprecation
)
end
- def keyword_view(&blk)
- require "google/ads/google_ads/v4/services/keyword_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::KeywordViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def campaign_criterion(&blk)
+ require "google/ads/google_ads/v4/services/campaign_criterion_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCampaignCriterionRequest,
- blk&.call(cls)
+ mutate_campaign_criteria: Google::Ads::GoogleAds::V4::Services::MutateCampaignCriteriaRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def location_view(&blk)
- require "google/ads/google_ads/v4/services/location_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::LocationViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def ad_group_audience_view(&blk)
+ require "google/ads/google_ads/v4/services/ad_group_audience_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAdGroupAudienceViewRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def ad_parameter(&blk)
- require "google/ads/google_ads/v4/services/ad_parameter_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AdParameterServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def income_range_view(&blk)
+ require "google/ads/google_ads/v4/services/income_range_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::Services::IncomeRangeViewService::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_income_range_view: Google::Ads::GoogleAds::V4::Services::GetIncomeRangeViewRequest
- 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/v4/services/keyword_plan_campaign_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def ad_schedule_view(&blk)
+ require "google/ads/google_ads/v4/services/ad_schedule_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAdScheduleViewRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def campaign_shared_set(&blk)
- require "google/ads/google_ads/v4/services/campaign_shared_set_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CampaignSharedSetServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def third_party_app_analytics_link(&blk)
+ require "google/ads/google_ads/v4/services/third_party_app_analytics_link_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::Services::ThirdPartyAppAnalyticsLinkService::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_third_party_app_analytics_link: Google::Ads::GoogleAds::V4::Services::GetThirdPartyAppAnalyticsLinkRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def feed_item_target(&blk)
- require "google/ads/google_ads/v4/services/feed_item_target_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::FeedItemTargetServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def shopping_performance_view(&blk)
+ require "google/ads/google_ads/v4/services/shopping_performance_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::Services::ShoppingPerformanceViewService::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_shopping_performance_view: Google::Ads::GoogleAds::V4::Services::GetShoppingPerformanceViewRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def detail_placement_view(&blk)
- require "google/ads/google_ads/v4/services/detail_placement_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::DetailPlacementViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def campaign_budget(&blk)
+ require "google/ads/google_ads/v4/services/campaign_budget_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCampaignBudgetRequest,
- blk&.call(cls)
+ mutate_campaign_budgets: Google::Ads::GoogleAds::V4::Services::MutateCampaignBudgetsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def payments_account(&blk)
- require "google/ads/google_ads/v4/services/payments_account_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::PaymentsAccountServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def keyword_plan_ad_group(&blk)
+ require "google/ads/google_ads/v4/services/keyword_plan_ad_group_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetKeywordPlanAdGroupRequest,
- blk&.call(cls)
+ mutate_keyword_plan_ad_groups: Google::Ads::GoogleAds::V4::Services::MutateKeywordPlanAdGroupsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def billing_setup(&blk)
- require "google/ads/google_ads/v4/services/billing_setup_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::BillingSetupServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def campaign_label(&blk)
+ require "google/ads/google_ads/v4/services/campaign_label_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCampaignLabelRequest,
- blk&.call(cls)
+ mutate_campaign_labels: Google::Ads::GoogleAds::V4::Services::MutateCampaignLabelsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
def google_ads_field(&blk)
- require "google/ads/google_ads/v4/services/google_ads_field_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::GoogleAdsFieldServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ require "google/ads/google_ads/v4/services/google_ads_field_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetGoogleAdsFieldRequest,
- blk&.call(cls)
+ search_google_ads_fields: Google::Ads::GoogleAds::V4::Services::SearchGoogleAdsFieldsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def ad_group_bid_modifier(&blk)
- require "google/ads/google_ads/v4/services/ad_group_bid_modifier_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def campaign_feed(&blk)
+ require "google/ads/google_ads/v4/services/campaign_feed_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCampaignFeedRequest,
- blk&.call(cls)
+ mutate_campaign_feeds: Google::Ads::GoogleAds::V4::Services::MutateCampaignFeedsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def merchant_center_link(&blk)
- require "google/ads/google_ads/v4/services/merchant_center_link_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def billing_setup(&blk)
+ require "google/ads/google_ads/v4/services/billing_setup_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetBillingSetupRequest,
- blk&.call(cls)
+ mutate_billing_setup: Google::Ads::GoogleAds::V4::Services::MutateBillingSetupRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def recommendation(&blk)
- require "google/ads/google_ads/v4/services/recommendation_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::RecommendationServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def distance_view(&blk)
+ require "google/ads/google_ads/v4/services/distance_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetDistanceViewRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def batch_job(&blk)
- require "google/ads/google_ads/v4/services/batch_job_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::BatchJobServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def currency_constant(&blk)
+ require "google/ads/google_ads/v4/services/currency_constant_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCurrencyConstantRequest
- 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/v4/services/geo_target_constant_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::GeoTargetConstantServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def account_budget(&blk)
+ require "google/ads/google_ads/v4/services/account_budget_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAccountBudgetRequest
- 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/v4/services/campaign_label_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CampaignLabelServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def domain_category(&blk)
+ require "google/ads/google_ads/v4/services/domain_category_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetDomainCategoryRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def product_group_view(&blk)
- require "google/ads/google_ads/v4/services/product_group_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::ProductGroupViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def mobile_device_constant(&blk)
+ require "google/ads/google_ads/v4/services/mobile_device_constant_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetMobileDeviceConstantRequest
- 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/v4/services/ad_group_ad_asset_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AdGroupAdAssetViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def ad_group_extension_setting(&blk)
+ require "google/ads/google_ads/v4/services/ad_group_extension_setting_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAdGroupExtensionSettingRequest,
- blk&.call(cls)
+ mutate_ad_group_extension_settings: Google::Ads::GoogleAds::V4::Services::MutateAdGroupExtensionSettingsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def managed_placement_view(&blk)
- require "google/ads/google_ads/v4/services/managed_placement_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::ManagedPlacementViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def invoice(&blk)
+ require "google/ads/google_ads/v4/services/invoice_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::ListInvoicesRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def customer_feed(&blk)
- require "google/ads/google_ads/v4/services/customer_feed_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CustomerFeedServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def conversion_upload(&blk)
+ require "google/ads/google_ads/v4/services/conversion_upload_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::UploadClickConversionsRequest,
- blk&.call(cls)
+ upload_call_conversions: Google::Ads::GoogleAds::V4::Services::UploadCallConversionsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def hotel_performance_view(&blk)
- require "google/ads/google_ads/v4/services/hotel_performance_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::HotelPerformanceViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def feed(&blk)
+ require "google/ads/google_ads/v4/services/feed_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetFeedRequest,
- blk&.call(cls)
+ mutate_feeds: Google::Ads::GoogleAds::V4::Services::MutateFeedsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def invoice(&blk)
- require "google/ads/google_ads/v4/services/invoice_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::InvoiceServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def user_location_view(&blk)
+ require "google/ads/google_ads/v4/services/user_location_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetUserLocationViewRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def media_file(&blk)
- require "google/ads/google_ads/v4/services/media_file_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::MediaFileServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def keyword_plan_ad_group_keyword(&blk)
+ require "google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordService::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_keyword: Google::Ads::GoogleAds::V4::Services::GetKeywordPlanAdGroupKeywordRequest,
- blk&.call(cls)
+ mutate_keyword_plan_ad_group_keywords: Google::Ads::GoogleAds::V4::Services::MutateKeywordPlanAdGroupKeywordsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def ad_schedule_view(&blk)
- require "google/ads/google_ads/v4/services/ad_schedule_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AdScheduleViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def merchant_center_link(&blk)
+ require "google/ads/google_ads/v4/services/merchant_center_link_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::ListMerchantCenterLinksRequest,
- blk&.call(cls)
+ get_merchant_center_link: Google::Ads::GoogleAds::V4::Services::GetMerchantCenterLinkRequest,
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ mutate_merchant_center_link: Google::Ads::GoogleAds::V4::Services::MutateMerchantCenterLinkRequest
+
+ },
+ deprecation: @deprecation
)
end
- def campaign(&blk)
- require "google/ads/google_ads/v4/services/campaign_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CampaignServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def topic_view(&blk)
+ require "google/ads/google_ads/v4/services/topic_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetTopicViewRequest
- 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/v4/services/parental_status_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::ParentalStatusViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def feed_item_target(&blk)
+ require "google/ads/google_ads/v4/services/feed_item_target_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetFeedItemTargetRequest,
- blk&.call(cls)
+ mutate_feed_item_targets: Google::Ads::GoogleAds::V4::Services::MutateFeedItemTargetsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def campaign_experiment(&blk)
- require "google/ads/google_ads/v4/services/campaign_experiment_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CampaignExperimentServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def display_keyword_view(&blk)
+ require "google/ads/google_ads/v4/services/display_keyword_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetDisplayKeywordViewRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def ad_group(&blk)
- require "google/ads/google_ads/v4/services/ad_group_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AdGroupServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def ad_group_feed(&blk)
+ require "google/ads/google_ads/v4/services/ad_group_feed_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAdGroupFeedRequest,
- blk&.call(cls)
+ mutate_ad_group_feeds: Google::Ads::GoogleAds::V4::Services::MutateAdGroupFeedsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def user_location_view(&blk)
- require "google/ads/google_ads/v4/services/user_location_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::UserLocationViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def ad_group_criterion_label(&blk)
+ require "google/ads/google_ads/v4/services/ad_group_criterion_label_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAdGroupCriterionLabelRequest,
- blk&.call(cls)
+ mutate_ad_group_criterion_labels: Google::Ads::GoogleAds::V4::Services::MutateAdGroupCriterionLabelsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def campaign_criterion(&blk)
- require "google/ads/google_ads/v4/services/campaign_criterion_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CampaignCriterionServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def ad_group_criterion(&blk)
+ require "google/ads/google_ads/v4/services/ad_group_criterion_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAdGroupCriterionRequest,
- blk&.call(cls)
+ mutate_ad_group_criteria: Google::Ads::GoogleAds::V4::Services::MutateAdGroupCriteriaRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def click_view(&blk)
- require "google/ads/google_ads/v4/services/click_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::ClickViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def video(&blk)
+ require "google/ads/google_ads/v4/services/video_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetVideoRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def user_data(&blk)
- require "google/ads/google_ads/v4/services/user_data_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::UserDataServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def ad_group_ad(&blk)
+ require "google/ads/google_ads/v4/services/ad_group_ad_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAdGroupAdRequest,
- blk&.call(cls)
+ mutate_ad_group_ads: Google::Ads::GoogleAds::V4::Services::MutateAdGroupAdsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def operating_system_version_constant(&blk)
- require "google/ads/google_ads/v4/services/operating_system_version_constant_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::OperatingSystemVersionConstantServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def conversion_action(&blk)
+ require "google/ads/google_ads/v4/services/conversion_action_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetConversionActionRequest,
- blk&.call(cls)
+ mutate_conversion_actions: Google::Ads::GoogleAds::V4::Services::MutateConversionActionsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def remarketing_action(&blk)
- require "google/ads/google_ads/v4/services/remarketing_action_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::RemarketingActionServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def product_bidding_category_constant(&blk)
+ require "google/ads/google_ads/v4/services/product_bidding_category_constant_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetProductBiddingCategoryConstantRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def landing_page_view(&blk)
- require "google/ads/google_ads/v4/services/landing_page_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::LandingPageViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def customer_client(&blk)
+ require "google/ads/google_ads/v4/services/customer_client_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCustomerClientRequest
- blk&.call(cls)
-
- 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/v4/services/dynamic_search_ads_search_term_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::DynamicSearchAdsSearchTermViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def customer_extension_setting(&blk)
+ require "google/ads/google_ads/v4/services/customer_extension_setting_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCustomerExtensionSettingRequest,
- blk&.call(cls)
+ mutate_customer_extension_settings: Google::Ads::GoogleAds::V4::Services::MutateCustomerExtensionSettingsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def offline_user_data_job(&blk)
- require "google/ads/google_ads/v4/services/offline_user_data_job_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::OfflineUserDataJobServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def label(&blk)
+ require "google/ads/google_ads/v4/services/label_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetLabelRequest,
- blk&.call(cls)
+ mutate_labels: Google::Ads::GoogleAds::V4::Services::MutateLabelsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def conversion_upload(&blk)
- require "google/ads/google_ads/v4/services/conversion_upload_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::ConversionUploadServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def mobile_app_category_constant(&blk)
+ require "google/ads/google_ads/v4/services/mobile_app_category_constant_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetMobileAppCategoryConstantRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
def keyword_plan_campaign_keyword(&blk)
- require "google/ads/google_ads/v4/services/keyword_plan_campaign_keyword_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignKeywordServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ require "google/ads/google_ads/v4/services/keyword_plan_campaign_keyword_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::Services::KeywordPlanCampaignKeywordService::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_keyword: Google::Ads::GoogleAds::V4::Services::GetKeywordPlanCampaignKeywordRequest,
- blk&.call(cls)
+ mutate_keyword_plan_campaign_keywords: Google::Ads::GoogleAds::V4::Services::MutateKeywordPlanCampaignKeywordsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def user_list(&blk)
- require "google/ads/google_ads/v4/services/user_list_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::UserListServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def topic_constant(&blk)
+ require "google/ads/google_ads/v4/services/topic_constant_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetTopicConstantRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def video(&blk)
- require "google/ads/google_ads/v4/services/video_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::VideoServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def media_file(&blk)
+ require "google/ads/google_ads/v4/services/media_file_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetMediaFileRequest,
- blk&.call(cls)
+ mutate_media_files: Google::Ads::GoogleAds::V4::Services::MutateMediaFilesRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def language_constant(&blk)
- require "google/ads/google_ads/v4/services/language_constant_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::LanguageConstantServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def customer(&blk)
+ require "google/ads/google_ads/v4/services/customer_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCustomerRequest,
- blk&.call(cls)
+ mutate_customer: Google::Ads::GoogleAds::V4::Services::MutateCustomerRequest,
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ list_accessible_customers: Google::Ads::GoogleAds::V4::Services::ListAccessibleCustomersRequest,
+
+ create_customer_client: Google::Ads::GoogleAds::V4::Services::CreateCustomerClientRequest
+
+ },
+ deprecation: @deprecation
)
end
- def expanded_landing_page_view(&blk)
- require "google/ads/google_ads/v4/services/expanded_landing_page_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::ExpandedLandingPageViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def campaign_bid_modifier(&blk)
+ require "google/ads/google_ads/v4/services/campaign_bid_modifier_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCampaignBidModifierRequest,
- blk&.call(cls)
+ mutate_campaign_bid_modifiers: Google::Ads::GoogleAds::V4::Services::MutateCampaignBidModifiersRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def customer_label(&blk)
- require "google/ads/google_ads/v4/services/customer_label_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CustomerLabelServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def keyword_plan(&blk)
+ require "google/ads/google_ads/v4/services/keyword_plan_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetKeywordPlanRequest,
- blk&.call(cls)
+ mutate_keyword_plans: Google::Ads::GoogleAds::V4::Services::MutateKeywordPlansRequest,
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ generate_forecast_curve: Google::Ads::GoogleAds::V4::Services::GenerateForecastCurveRequest,
+
+ generate_forecast_metrics: Google::Ads::GoogleAds::V4::Services::GenerateForecastMetricsRequest,
+
+ generate_historical_metrics: Google::Ads::GoogleAds::V4::Services::GenerateHistoricalMetricsRequest
+
+ },
+ deprecation: @deprecation
)
end
- def ad_group_extension_setting(&blk)
- require "google/ads/google_ads/v4/services/ad_group_extension_setting_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AdGroupExtensionSettingServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def google_ads(&blk)
+ require "google/ads/google_ads/v4/services/google_ads_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::SearchGoogleAdsRequest,
- blk&.call(cls)
+ search_stream: Google::Ads::GoogleAds::V4::Services::SearchGoogleAdsStreamRequest,
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ mutate: Google::Ads::GoogleAds::V4::Services::MutateGoogleAdsRequest
+
+ },
+ deprecation: @deprecation
)
end
- def ad_group_criterion(&blk)
- require "google/ads/google_ads/v4/services/ad_group_criterion_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AdGroupCriterionServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def customer_negative_criterion(&blk)
+ require "google/ads/google_ads/v4/services/customer_negative_criterion_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCustomerNegativeCriterionRequest,
- blk&.call(cls)
+ mutate_customer_negative_criteria: Google::Ads::GoogleAds::V4::Services::MutateCustomerNegativeCriteriaRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def google_ads(&blk)
- require "google/ads/google_ads/v4/services/google_ads_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::GoogleAdsServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def reach_plan(&blk)
+ require "google/ads/google_ads/v4/services/reach_plan_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::ListPlannableLocationsRequest,
- blk&.call(cls)
+ list_plannable_products: Google::Ads::GoogleAds::V4::Services::ListPlannableProductsRequest,
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ generate_product_mix_ideas: Google::Ads::GoogleAds::V4::Services::GenerateProductMixIdeasRequest,
+
+ generate_reach_forecast: Google::Ads::GoogleAds::V4::Services::GenerateReachForecastRequest
+
+ },
+ deprecation: @deprecation
)
end
- def geographic_view(&blk)
- require "google/ads/google_ads/v4/services/geographic_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::GeographicViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def ad_group_criterion_simulation(&blk)
+ require "google/ads/google_ads/v4/services/ad_group_criterion_simulation_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAdGroupCriterionSimulationRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def feed_item(&blk)
- require "google/ads/google_ads/v4/services/feed_item_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::FeedItemServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def campaign_draft(&blk)
+ require "google/ads/google_ads/v4/services/campaign_draft_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCampaignDraftRequest,
- blk&.call(cls)
+ mutate_campaign_drafts: Google::Ads::GoogleAds::V4::Services::MutateCampaignDraftsRequest,
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ promote_campaign_draft: Google::Ads::GoogleAds::V4::Services::PromoteCampaignDraftRequest,
+
+ list_campaign_draft_async_errors: Google::Ads::GoogleAds::V4::Services::ListCampaignDraftAsyncErrorsRequest
+
+ },
+ deprecation: @deprecation
)
end
- def gender_view(&blk)
- require "google/ads/google_ads/v4/services/gender_view_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::GenderViewServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def feed_mapping(&blk)
+ require "google/ads/google_ads/v4/services/feed_mapping_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetFeedMappingRequest,
- blk&.call(cls)
+ mutate_feed_mappings: Google::Ads::GoogleAds::V4::Services::MutateFeedMappingsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def keyword_plan_ad_group(&blk)
- require "google/ads/google_ads/v4/services/keyword_plan_ad_group_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def geo_target_constant(&blk)
+ require "google/ads/google_ads/v4/services/geo_target_constant_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetGeoTargetConstantRequest,
- blk&.call(cls)
+ suggest_geo_target_constants: Google::Ads::GoogleAds::V4::Services::SuggestGeoTargetConstantsRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def label(&blk)
- require "google/ads/google_ads/v4/services/label_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::LabelServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def feed_placeholder_view(&blk)
+ require "google/ads/google_ads/v4/services/feed_placeholder_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetFeedPlaceholderViewRequest
- 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/v4/services/currency_constant_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CurrencyConstantServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def ad_parameter(&blk)
+ require "google/ads/google_ads/v4/services/ad_parameter_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAdParameterRequest,
- blk&.call(cls)
+ mutate_ad_parameters: Google::Ads::GoogleAds::V4::Services::MutateAdParametersRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def campaign_criterion_simulation(&blk)
- require "google/ads/google_ads/v4/services/campaign_criterion_simulation_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::CampaignCriterionSimulationServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def ad_group_simulation(&blk)
+ require "google/ads/google_ads/v4/services/ad_group_simulation_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAdGroupSimulationRequest
- blk&.call(cls)
+ },
+ deprecation: @deprecation
+ )
+ end
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ def dynamic_search_ads_search_term_view(&blk)
+ require "google/ads/google_ads/v4/services/dynamic_search_ads_search_term_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::Services::DynamicSearchAdsSearchTermViewService::Client.new do |config|
+ config.credentials = @credentials
+ config.interceptors = @interceptors
+ config.metadata = @metadata
+ config.endpoint = @endpoint
+ end,
+ rpc_inputs: {
+
+ get_dynamic_search_ads_search_term_view: Google::Ads::GoogleAds::V4::Services::GetDynamicSearchAdsSearchTermViewRequest
+
+ },
+ deprecation: @deprecation
)
end
- def change_status(&blk)
- require "google/ads/google_ads/v4/services/change_status_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::ChangeStatusServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def ad_group_bid_modifier(&blk)
+ require "google/ads/google_ads/v4/services/ad_group_bid_modifier_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetAdGroupBidModifierRequest,
- blk&.call(cls)
+ mutate_ad_group_bid_modifiers: Google::Ads::GoogleAds::V4::Services::MutateAdGroupBidModifiersRequest
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def account_budget(&blk)
- require "google/ads/google_ads/v4/services/account_budget_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::AccountBudgetServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def location_view(&blk)
+ require "google/ads/google_ads/v4/services/location_view_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetLocationViewRequest
- blk&.call(cls)
-
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ },
+ deprecation: @deprecation
)
end
- def keyword_plan_idea(&blk)
- require "google/ads/google_ads/v4/services/keyword_plan_idea_service_client.rb"
- cls = Class.new(Google::Ads::GoogleAds::V4::Services::KeywordPlanIdeaServiceClient)
- if have_service_path?
- cls.const_set("SERVICE_PATH", @service_path)
- end
+ def campaign_experiment(&blk)
+ require "google/ads/google_ads/v4/services/campaign_experiment_service"
+ svc = ServiceWrapper.new(
+ service: Google::Ads::GoogleAds::V4::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::V4::Services::GetCampaignExperimentRequest,
- blk&.call(cls)
+ create_campaign_experiment: Google::Ads::GoogleAds::V4::Services::CreateCampaignExperimentRequest,
- cls.new(
- credentials: @credentials,
- metadata: @metadata,
- exception_transformer: @exception_transformer
+ mutate_campaign_experiments: Google::Ads::GoogleAds::V4::Services::MutateCampaignExperimentsRequest,
+
+ graduate_campaign_experiment: Google::Ads::GoogleAds::V4::Services::GraduateCampaignExperimentRequest,
+
+ promote_campaign_experiment: Google::Ads::GoogleAds::V4::Services::PromoteCampaignExperimentRequest,
+
+ end_campaign_experiment: Google::Ads::GoogleAds::V4::Services::EndCampaignExperimentRequest,
+
+ list_campaign_experiment_async_errors: Google::Ads::GoogleAds::V4::Services::ListCampaignExperimentAsyncErrorsRequest
+
+ },
+ deprecation: @deprecation
)
end
end
end
end