diff --git a/CHANGELOG.md b/CHANGELOG.md index 40d615a2b..68606b4e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ -23.1.0 +24.0.0 ------ - - Compatibility with v14.1 of the API: https://developers.google.com/google-ads/api/docs/release-notes + - Removed support for v12. 23.0.0 ------ diff --git a/lib/google/ads/google_ads/api_versions.rb b/lib/google/ads/google_ads/api_versions.rb index faef44cb9..daa174cae 100644 --- a/lib/google/ads/google_ads/api_versions.rb +++ b/lib/google/ads/google_ads/api_versions.rb @@ -1,7 +1,7 @@ module Google module Ads module GoogleAds - KNOWN_API_VERSIONS = [:V12, :V13, :V14] + KNOWN_API_VERSIONS = [:V13, :V14] DEFAULT_API_VERSION = :V14 def self.default_api_version diff --git a/lib/google/ads/google_ads/utils/v12/path_lookup_util.rb b/lib/google/ads/google_ads/utils/v12/path_lookup_util.rb deleted file mode 100644 index e3955a2c1..000000000 --- a/lib/google/ads/google_ads/utils/v12/path_lookup_util.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Encoding: utf-8 -# -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Utility that generates up resource names for entities given IDs. - -require "google/ads/google_ads/utils/build_path_lookup_class" - -module Google - module Ads - module GoogleAds - module Utils - module V12 - PathLookupUtil = Utils.build_path_lookup_class(:v12) - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/ad_asset_pb.rb b/lib/google/ads/google_ads/v12/common/ad_asset_pb.rb deleted file mode 100644 index 96fddadd5..000000000 --- a/lib/google/ads/google_ads/v12/common/ad_asset_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/ad_asset.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/asset_policy_pb' -require 'google/ads/google_ads/v12/enums/asset_performance_label_pb' -require 'google/ads/google_ads/v12/enums/served_asset_field_type_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/ad_asset.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.AdTextAsset" do - proto3_optional :text, :string, 4 - optional :pinned_field, :enum, 2, "google.ads.googleads.v12.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType" - optional :asset_performance_label, :enum, 5, "google.ads.googleads.v12.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel" - optional :policy_summary_info, :message, 6, "google.ads.googleads.v12.common.AdAssetPolicySummary" - end - add_message "google.ads.googleads.v12.common.AdImageAsset" do - proto3_optional :asset, :string, 2 - end - add_message "google.ads.googleads.v12.common.AdVideoAsset" do - proto3_optional :asset, :string, 2 - end - add_message "google.ads.googleads.v12.common.AdMediaBundleAsset" do - proto3_optional :asset, :string, 2 - end - add_message "google.ads.googleads.v12.common.AdDiscoveryCarouselCardAsset" do - proto3_optional :asset, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - AdTextAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AdTextAsset").msgclass - AdImageAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AdImageAsset").msgclass - AdVideoAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AdVideoAsset").msgclass - AdMediaBundleAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AdMediaBundleAsset").msgclass - AdDiscoveryCarouselCardAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AdDiscoveryCarouselCardAsset").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/ad_type_infos_pb.rb b/lib/google/ads/google_ads/v12/common/ad_type_infos_pb.rb deleted file mode 100644 index 2d7c138f8..000000000 --- a/lib/google/ads/google_ads/v12/common/ad_type_infos_pb.rb +++ /dev/null @@ -1,271 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/ad_type_infos.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/ad_asset_pb' -require 'google/ads/google_ads/v12/enums/call_conversion_reporting_state_pb' -require 'google/ads/google_ads/v12/enums/display_ad_format_setting_pb' -require 'google/ads/google_ads/v12/enums/display_upload_product_type_pb' -require 'google/ads/google_ads/v12/enums/legacy_app_install_ad_app_store_pb' -require 'google/ads/google_ads/v12/enums/mime_type_pb' -require 'google/ads/google_ads/v12/enums/video_thumbnail_pb' -require 'google/api/field_behavior_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/ad_type_infos.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.TextAdInfo" do - proto3_optional :headline, :string, 4 - proto3_optional :description1, :string, 5 - proto3_optional :description2, :string, 6 - end - add_message "google.ads.googleads.v12.common.ExpandedTextAdInfo" do - proto3_optional :headline_part1, :string, 8 - proto3_optional :headline_part2, :string, 9 - proto3_optional :headline_part3, :string, 10 - proto3_optional :description, :string, 11 - proto3_optional :description2, :string, 12 - proto3_optional :path1, :string, 13 - proto3_optional :path2, :string, 14 - end - add_message "google.ads.googleads.v12.common.ExpandedDynamicSearchAdInfo" do - proto3_optional :description, :string, 3 - proto3_optional :description2, :string, 4 - end - add_message "google.ads.googleads.v12.common.HotelAdInfo" do - end - add_message "google.ads.googleads.v12.common.ShoppingSmartAdInfo" do - end - add_message "google.ads.googleads.v12.common.ShoppingProductAdInfo" do - end - add_message "google.ads.googleads.v12.common.ShoppingComparisonListingAdInfo" do - proto3_optional :headline, :string, 2 - end - add_message "google.ads.googleads.v12.common.ImageAdInfo" do - proto3_optional :pixel_width, :int64, 15 - proto3_optional :pixel_height, :int64, 16 - proto3_optional :image_url, :string, 17 - proto3_optional :preview_pixel_width, :int64, 18 - proto3_optional :preview_pixel_height, :int64, 19 - proto3_optional :preview_image_url, :string, 20 - optional :mime_type, :enum, 10, "google.ads.googleads.v12.enums.MimeTypeEnum.MimeType" - proto3_optional :name, :string, 21 - oneof :image do - optional :media_file, :string, 12 - optional :data, :bytes, 13 - optional :ad_id_to_copy_image_from, :int64, 14 - end - end - add_message "google.ads.googleads.v12.common.VideoBumperInStreamAdInfo" do - optional :companion_banner, :message, 3, "google.ads.googleads.v12.common.AdImageAsset" - end - add_message "google.ads.googleads.v12.common.VideoNonSkippableInStreamAdInfo" do - optional :companion_banner, :message, 5, "google.ads.googleads.v12.common.AdImageAsset" - optional :action_button_label, :string, 3 - optional :action_headline, :string, 4 - end - add_message "google.ads.googleads.v12.common.VideoTrueViewInStreamAdInfo" do - optional :action_button_label, :string, 4 - optional :action_headline, :string, 5 - optional :companion_banner, :message, 7, "google.ads.googleads.v12.common.AdImageAsset" - end - add_message "google.ads.googleads.v12.common.VideoOutstreamAdInfo" do - optional :headline, :string, 3 - optional :description, :string, 4 - end - add_message "google.ads.googleads.v12.common.InFeedVideoAdInfo" do - optional :headline, :string, 1 - optional :description1, :string, 2 - optional :description2, :string, 3 - optional :thumbnail, :enum, 4, "google.ads.googleads.v12.enums.VideoThumbnailEnum.VideoThumbnail" - end - add_message "google.ads.googleads.v12.common.VideoAdInfo" do - optional :video, :message, 8, "google.ads.googleads.v12.common.AdVideoAsset" - oneof :format do - optional :in_stream, :message, 2, "google.ads.googleads.v12.common.VideoTrueViewInStreamAdInfo" - optional :bumper, :message, 3, "google.ads.googleads.v12.common.VideoBumperInStreamAdInfo" - optional :out_stream, :message, 4, "google.ads.googleads.v12.common.VideoOutstreamAdInfo" - optional :non_skippable, :message, 5, "google.ads.googleads.v12.common.VideoNonSkippableInStreamAdInfo" - optional :in_feed, :message, 9, "google.ads.googleads.v12.common.InFeedVideoAdInfo" - end - end - add_message "google.ads.googleads.v12.common.VideoResponsiveAdInfo" do - repeated :headlines, :message, 1, "google.ads.googleads.v12.common.AdTextAsset" - repeated :long_headlines, :message, 2, "google.ads.googleads.v12.common.AdTextAsset" - repeated :descriptions, :message, 3, "google.ads.googleads.v12.common.AdTextAsset" - repeated :call_to_actions, :message, 4, "google.ads.googleads.v12.common.AdTextAsset" - repeated :videos, :message, 5, "google.ads.googleads.v12.common.AdVideoAsset" - repeated :companion_banners, :message, 6, "google.ads.googleads.v12.common.AdImageAsset" - optional :breadcrumb1, :string, 7 - optional :breadcrumb2, :string, 8 - end - add_message "google.ads.googleads.v12.common.ResponsiveSearchAdInfo" do - repeated :headlines, :message, 1, "google.ads.googleads.v12.common.AdTextAsset" - repeated :descriptions, :message, 2, "google.ads.googleads.v12.common.AdTextAsset" - proto3_optional :path1, :string, 5 - proto3_optional :path2, :string, 6 - end - add_message "google.ads.googleads.v12.common.LegacyResponsiveDisplayAdInfo" do - proto3_optional :short_headline, :string, 16 - proto3_optional :long_headline, :string, 17 - proto3_optional :description, :string, 18 - proto3_optional :business_name, :string, 19 - proto3_optional :allow_flexible_color, :bool, 20 - proto3_optional :accent_color, :string, 21 - proto3_optional :main_color, :string, 22 - proto3_optional :call_to_action_text, :string, 23 - proto3_optional :logo_image, :string, 24 - proto3_optional :square_logo_image, :string, 25 - proto3_optional :marketing_image, :string, 26 - proto3_optional :square_marketing_image, :string, 27 - optional :format_setting, :enum, 13, "google.ads.googleads.v12.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting" - proto3_optional :price_prefix, :string, 28 - proto3_optional :promo_text, :string, 29 - end - add_message "google.ads.googleads.v12.common.AppAdInfo" do - optional :mandatory_ad_text, :message, 1, "google.ads.googleads.v12.common.AdTextAsset" - repeated :headlines, :message, 2, "google.ads.googleads.v12.common.AdTextAsset" - repeated :descriptions, :message, 3, "google.ads.googleads.v12.common.AdTextAsset" - repeated :images, :message, 4, "google.ads.googleads.v12.common.AdImageAsset" - repeated :youtube_videos, :message, 5, "google.ads.googleads.v12.common.AdVideoAsset" - repeated :html5_media_bundles, :message, 6, "google.ads.googleads.v12.common.AdMediaBundleAsset" - end - add_message "google.ads.googleads.v12.common.AppEngagementAdInfo" do - repeated :headlines, :message, 1, "google.ads.googleads.v12.common.AdTextAsset" - repeated :descriptions, :message, 2, "google.ads.googleads.v12.common.AdTextAsset" - repeated :images, :message, 3, "google.ads.googleads.v12.common.AdImageAsset" - repeated :videos, :message, 4, "google.ads.googleads.v12.common.AdVideoAsset" - end - add_message "google.ads.googleads.v12.common.AppPreRegistrationAdInfo" do - repeated :headlines, :message, 1, "google.ads.googleads.v12.common.AdTextAsset" - repeated :descriptions, :message, 2, "google.ads.googleads.v12.common.AdTextAsset" - repeated :images, :message, 3, "google.ads.googleads.v12.common.AdImageAsset" - repeated :youtube_videos, :message, 4, "google.ads.googleads.v12.common.AdVideoAsset" - end - add_message "google.ads.googleads.v12.common.LegacyAppInstallAdInfo" do - proto3_optional :app_id, :string, 6 - optional :app_store, :enum, 2, "google.ads.googleads.v12.enums.LegacyAppInstallAdAppStoreEnum.LegacyAppInstallAdAppStore" - proto3_optional :headline, :string, 7 - proto3_optional :description1, :string, 8 - proto3_optional :description2, :string, 9 - end - add_message "google.ads.googleads.v12.common.ResponsiveDisplayAdInfo" do - repeated :marketing_images, :message, 1, "google.ads.googleads.v12.common.AdImageAsset" - repeated :square_marketing_images, :message, 2, "google.ads.googleads.v12.common.AdImageAsset" - repeated :logo_images, :message, 3, "google.ads.googleads.v12.common.AdImageAsset" - repeated :square_logo_images, :message, 4, "google.ads.googleads.v12.common.AdImageAsset" - repeated :headlines, :message, 5, "google.ads.googleads.v12.common.AdTextAsset" - optional :long_headline, :message, 6, "google.ads.googleads.v12.common.AdTextAsset" - repeated :descriptions, :message, 7, "google.ads.googleads.v12.common.AdTextAsset" - repeated :youtube_videos, :message, 8, "google.ads.googleads.v12.common.AdVideoAsset" - proto3_optional :business_name, :string, 17 - proto3_optional :main_color, :string, 18 - proto3_optional :accent_color, :string, 19 - proto3_optional :allow_flexible_color, :bool, 20 - proto3_optional :call_to_action_text, :string, 21 - proto3_optional :price_prefix, :string, 22 - proto3_optional :promo_text, :string, 23 - optional :format_setting, :enum, 16, "google.ads.googleads.v12.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting" - optional :control_spec, :message, 24, "google.ads.googleads.v12.common.ResponsiveDisplayAdControlSpec" - end - add_message "google.ads.googleads.v12.common.LocalAdInfo" do - repeated :headlines, :message, 1, "google.ads.googleads.v12.common.AdTextAsset" - repeated :descriptions, :message, 2, "google.ads.googleads.v12.common.AdTextAsset" - repeated :call_to_actions, :message, 3, "google.ads.googleads.v12.common.AdTextAsset" - repeated :marketing_images, :message, 4, "google.ads.googleads.v12.common.AdImageAsset" - repeated :logo_images, :message, 5, "google.ads.googleads.v12.common.AdImageAsset" - repeated :videos, :message, 6, "google.ads.googleads.v12.common.AdVideoAsset" - proto3_optional :path1, :string, 9 - proto3_optional :path2, :string, 10 - end - add_message "google.ads.googleads.v12.common.DisplayUploadAdInfo" do - optional :display_upload_product_type, :enum, 1, "google.ads.googleads.v12.enums.DisplayUploadProductTypeEnum.DisplayUploadProductType" - oneof :media_asset do - optional :media_bundle, :message, 2, "google.ads.googleads.v12.common.AdMediaBundleAsset" - end - end - add_message "google.ads.googleads.v12.common.ResponsiveDisplayAdControlSpec" do - optional :enable_asset_enhancements, :bool, 1 - optional :enable_autogen_video, :bool, 2 - end - add_message "google.ads.googleads.v12.common.SmartCampaignAdInfo" do - repeated :headlines, :message, 1, "google.ads.googleads.v12.common.AdTextAsset" - repeated :descriptions, :message, 2, "google.ads.googleads.v12.common.AdTextAsset" - end - add_message "google.ads.googleads.v12.common.CallAdInfo" do - optional :country_code, :string, 1 - optional :phone_number, :string, 2 - optional :business_name, :string, 3 - optional :headline1, :string, 11 - optional :headline2, :string, 12 - optional :description1, :string, 4 - optional :description2, :string, 5 - optional :call_tracked, :bool, 6 - optional :disable_call_conversion, :bool, 7 - optional :phone_number_verification_url, :string, 8 - optional :conversion_action, :string, 9 - optional :conversion_reporting_state, :enum, 10, "google.ads.googleads.v12.enums.CallConversionReportingStateEnum.CallConversionReportingState" - optional :path1, :string, 13 - optional :path2, :string, 14 - end - add_message "google.ads.googleads.v12.common.DiscoveryMultiAssetAdInfo" do - repeated :marketing_images, :message, 1, "google.ads.googleads.v12.common.AdImageAsset" - repeated :square_marketing_images, :message, 2, "google.ads.googleads.v12.common.AdImageAsset" - repeated :portrait_marketing_images, :message, 3, "google.ads.googleads.v12.common.AdImageAsset" - repeated :logo_images, :message, 4, "google.ads.googleads.v12.common.AdImageAsset" - repeated :headlines, :message, 5, "google.ads.googleads.v12.common.AdTextAsset" - repeated :descriptions, :message, 6, "google.ads.googleads.v12.common.AdTextAsset" - proto3_optional :business_name, :string, 7 - proto3_optional :call_to_action_text, :string, 8 - proto3_optional :lead_form_only, :bool, 9 - end - add_message "google.ads.googleads.v12.common.DiscoveryCarouselAdInfo" do - optional :business_name, :string, 1 - optional :logo_image, :message, 2, "google.ads.googleads.v12.common.AdImageAsset" - optional :headline, :message, 3, "google.ads.googleads.v12.common.AdTextAsset" - optional :description, :message, 4, "google.ads.googleads.v12.common.AdTextAsset" - optional :call_to_action_text, :string, 5 - repeated :carousel_cards, :message, 6, "google.ads.googleads.v12.common.AdDiscoveryCarouselCardAsset" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - TextAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TextAdInfo").msgclass - ExpandedTextAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ExpandedTextAdInfo").msgclass - ExpandedDynamicSearchAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ExpandedDynamicSearchAdInfo").msgclass - HotelAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.HotelAdInfo").msgclass - ShoppingSmartAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ShoppingSmartAdInfo").msgclass - ShoppingProductAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ShoppingProductAdInfo").msgclass - ShoppingComparisonListingAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ShoppingComparisonListingAdInfo").msgclass - ImageAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ImageAdInfo").msgclass - VideoBumperInStreamAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.VideoBumperInStreamAdInfo").msgclass - VideoNonSkippableInStreamAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.VideoNonSkippableInStreamAdInfo").msgclass - VideoTrueViewInStreamAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.VideoTrueViewInStreamAdInfo").msgclass - VideoOutstreamAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.VideoOutstreamAdInfo").msgclass - InFeedVideoAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.InFeedVideoAdInfo").msgclass - VideoAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.VideoAdInfo").msgclass - VideoResponsiveAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.VideoResponsiveAdInfo").msgclass - ResponsiveSearchAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ResponsiveSearchAdInfo").msgclass - LegacyResponsiveDisplayAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LegacyResponsiveDisplayAdInfo").msgclass - AppAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AppAdInfo").msgclass - AppEngagementAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AppEngagementAdInfo").msgclass - AppPreRegistrationAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AppPreRegistrationAdInfo").msgclass - LegacyAppInstallAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LegacyAppInstallAdInfo").msgclass - ResponsiveDisplayAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ResponsiveDisplayAdInfo").msgclass - LocalAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LocalAdInfo").msgclass - DisplayUploadAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DisplayUploadAdInfo").msgclass - ResponsiveDisplayAdControlSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ResponsiveDisplayAdControlSpec").msgclass - SmartCampaignAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.SmartCampaignAdInfo").msgclass - CallAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CallAdInfo").msgclass - DiscoveryMultiAssetAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DiscoveryMultiAssetAdInfo").msgclass - DiscoveryCarouselAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DiscoveryCarouselAdInfo").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/asset_policy_pb.rb b/lib/google/ads/google_ads/v12/common/asset_policy_pb.rb deleted file mode 100644 index 8c1724066..000000000 --- a/lib/google/ads/google_ads/v12/common/asset_policy_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/asset_policy.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/policy_pb' -require 'google/ads/google_ads/v12/enums/policy_approval_status_pb' -require 'google/ads/google_ads/v12/enums/policy_review_status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/asset_policy.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.AdAssetPolicySummary" do - repeated :policy_topic_entries, :message, 1, "google.ads.googleads.v12.common.PolicyTopicEntry" - optional :review_status, :enum, 2, "google.ads.googleads.v12.enums.PolicyReviewStatusEnum.PolicyReviewStatus" - optional :approval_status, :enum, 3, "google.ads.googleads.v12.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - AdAssetPolicySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AdAssetPolicySummary").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/asset_set_types_pb.rb b/lib/google/ads/google_ads/v12/common/asset_set_types_pb.rb deleted file mode 100644 index 1b48ffcf7..000000000 --- a/lib/google/ads/google_ads/v12/common/asset_set_types_pb.rb +++ /dev/null @@ -1,80 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/asset_set_types.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/chain_relationship_type_pb' -require 'google/ads/google_ads/v12/enums/location_ownership_type_pb' -require 'google/ads/google_ads/v12/enums/location_string_filter_type_pb' -require 'google/api/field_behavior_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/asset_set_types.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.LocationSet" do - optional :location_ownership_type, :enum, 3, "google.ads.googleads.v12.enums.LocationOwnershipTypeEnum.LocationOwnershipType" - oneof :source do - optional :business_profile_location_set, :message, 1, "google.ads.googleads.v12.common.BusinessProfileLocationSet" - optional :chain_location_set, :message, 2, "google.ads.googleads.v12.common.ChainSet" - optional :maps_location_set, :message, 5, "google.ads.googleads.v12.common.MapsLocationSet" - end - end - add_message "google.ads.googleads.v12.common.BusinessProfileLocationSet" do - optional :http_authorization_token, :string, 1 - optional :email_address, :string, 2 - optional :business_name_filter, :string, 3 - repeated :label_filters, :string, 4 - repeated :listing_id_filters, :int64, 5 - optional :business_account_id, :string, 6 - end - add_message "google.ads.googleads.v12.common.ChainSet" do - optional :relationship_type, :enum, 1, "google.ads.googleads.v12.enums.ChainRelationshipTypeEnum.ChainRelationshipType" - repeated :chains, :message, 2, "google.ads.googleads.v12.common.ChainFilter" - end - add_message "google.ads.googleads.v12.common.ChainFilter" do - optional :chain_id, :int64, 1 - repeated :location_attributes, :string, 2 - end - add_message "google.ads.googleads.v12.common.MapsLocationSet" do - repeated :maps_locations, :message, 1, "google.ads.googleads.v12.common.MapsLocationInfo" - end - add_message "google.ads.googleads.v12.common.MapsLocationInfo" do - optional :place_id, :string, 1 - end - add_message "google.ads.googleads.v12.common.BusinessProfileLocationGroup" do - optional :dynamic_business_profile_location_group_filter, :message, 1, "google.ads.googleads.v12.common.DynamicBusinessProfileLocationGroupFilter" - end - add_message "google.ads.googleads.v12.common.DynamicBusinessProfileLocationGroupFilter" do - repeated :label_filters, :string, 1 - proto3_optional :business_name_filter, :message, 2, "google.ads.googleads.v12.common.BusinessProfileBusinessNameFilter" - repeated :listing_id_filters, :int64, 3 - end - add_message "google.ads.googleads.v12.common.BusinessProfileBusinessNameFilter" do - optional :business_name, :string, 1 - optional :filter_type, :enum, 2, "google.ads.googleads.v12.enums.LocationStringFilterTypeEnum.LocationStringFilterType" - end - add_message "google.ads.googleads.v12.common.ChainLocationGroup" do - repeated :dynamic_chain_location_group_filters, :message, 1, "google.ads.googleads.v12.common.ChainFilter" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - LocationSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LocationSet").msgclass - BusinessProfileLocationSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.BusinessProfileLocationSet").msgclass - ChainSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ChainSet").msgclass - ChainFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ChainFilter").msgclass - MapsLocationSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.MapsLocationSet").msgclass - MapsLocationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.MapsLocationInfo").msgclass - BusinessProfileLocationGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.BusinessProfileLocationGroup").msgclass - DynamicBusinessProfileLocationGroupFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DynamicBusinessProfileLocationGroupFilter").msgclass - BusinessProfileBusinessNameFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.BusinessProfileBusinessNameFilter").msgclass - ChainLocationGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ChainLocationGroup").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/asset_types_pb.rb b/lib/google/ads/google_ads/v12/common/asset_types_pb.rb deleted file mode 100644 index df6c1e22d..000000000 --- a/lib/google/ads/google_ads/v12/common/asset_types_pb.rb +++ /dev/null @@ -1,372 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/asset_types.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criteria_pb' -require 'google/ads/google_ads/v12/common/feed_common_pb' -require 'google/ads/google_ads/v12/enums/call_conversion_reporting_state_pb' -require 'google/ads/google_ads/v12/enums/call_to_action_type_pb' -require 'google/ads/google_ads/v12/enums/lead_form_call_to_action_type_pb' -require 'google/ads/google_ads/v12/enums/lead_form_desired_intent_pb' -require 'google/ads/google_ads/v12/enums/lead_form_field_user_input_type_pb' -require 'google/ads/google_ads/v12/enums/lead_form_post_submit_call_to_action_type_pb' -require 'google/ads/google_ads/v12/enums/location_ownership_type_pb' -require 'google/ads/google_ads/v12/enums/mime_type_pb' -require 'google/ads/google_ads/v12/enums/mobile_app_vendor_pb' -require 'google/ads/google_ads/v12/enums/price_extension_price_qualifier_pb' -require 'google/ads/google_ads/v12/enums/price_extension_price_unit_pb' -require 'google/ads/google_ads/v12/enums/price_extension_type_pb' -require 'google/ads/google_ads/v12/enums/promotion_extension_discount_modifier_pb' -require 'google/ads/google_ads/v12/enums/promotion_extension_occasion_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/asset_types.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.YoutubeVideoAsset" do - proto3_optional :youtube_video_id, :string, 2 - optional :youtube_video_title, :string, 3 - end - add_message "google.ads.googleads.v12.common.MediaBundleAsset" do - proto3_optional :data, :bytes, 2 - end - add_message "google.ads.googleads.v12.common.ImageAsset" do - proto3_optional :data, :bytes, 5 - proto3_optional :file_size, :int64, 6 - optional :mime_type, :enum, 3, "google.ads.googleads.v12.enums.MimeTypeEnum.MimeType" - optional :full_size, :message, 4, "google.ads.googleads.v12.common.ImageDimension" - end - add_message "google.ads.googleads.v12.common.ImageDimension" do - proto3_optional :height_pixels, :int64, 4 - proto3_optional :width_pixels, :int64, 5 - proto3_optional :url, :string, 6 - end - add_message "google.ads.googleads.v12.common.TextAsset" do - proto3_optional :text, :string, 2 - end - add_message "google.ads.googleads.v12.common.LeadFormAsset" do - optional :business_name, :string, 10 - optional :call_to_action_type, :enum, 17, "google.ads.googleads.v12.enums.LeadFormCallToActionTypeEnum.LeadFormCallToActionType" - optional :call_to_action_description, :string, 18 - optional :headline, :string, 12 - optional :description, :string, 13 - optional :privacy_policy_url, :string, 14 - proto3_optional :post_submit_headline, :string, 15 - proto3_optional :post_submit_description, :string, 16 - repeated :fields, :message, 8, "google.ads.googleads.v12.common.LeadFormField" - repeated :custom_question_fields, :message, 23, "google.ads.googleads.v12.common.LeadFormCustomQuestionField" - repeated :delivery_methods, :message, 9, "google.ads.googleads.v12.common.LeadFormDeliveryMethod" - optional :post_submit_call_to_action_type, :enum, 19, "google.ads.googleads.v12.enums.LeadFormPostSubmitCallToActionTypeEnum.LeadFormPostSubmitCallToActionType" - proto3_optional :background_image_asset, :string, 20 - optional :desired_intent, :enum, 21, "google.ads.googleads.v12.enums.LeadFormDesiredIntentEnum.LeadFormDesiredIntent" - proto3_optional :custom_disclosure, :string, 22 - end - add_message "google.ads.googleads.v12.common.LeadFormField" do - optional :input_type, :enum, 1, "google.ads.googleads.v12.enums.LeadFormFieldUserInputTypeEnum.LeadFormFieldUserInputType" - oneof :answers do - optional :single_choice_answers, :message, 2, "google.ads.googleads.v12.common.LeadFormSingleChoiceAnswers" - end - end - add_message "google.ads.googleads.v12.common.LeadFormCustomQuestionField" do - optional :custom_question_text, :string, 1 - oneof :answers do - optional :single_choice_answers, :message, 2, "google.ads.googleads.v12.common.LeadFormSingleChoiceAnswers" - end - end - add_message "google.ads.googleads.v12.common.LeadFormSingleChoiceAnswers" do - repeated :answers, :string, 1 - end - add_message "google.ads.googleads.v12.common.LeadFormDeliveryMethod" do - oneof :delivery_details do - optional :webhook, :message, 1, "google.ads.googleads.v12.common.WebhookDelivery" - end - end - add_message "google.ads.googleads.v12.common.WebhookDelivery" do - proto3_optional :advertiser_webhook_url, :string, 4 - proto3_optional :google_secret, :string, 5 - proto3_optional :payload_schema_version, :int64, 6 - end - add_message "google.ads.googleads.v12.common.BookOnGoogleAsset" do - end - add_message "google.ads.googleads.v12.common.PromotionAsset" do - optional :promotion_target, :string, 1 - optional :discount_modifier, :enum, 2, "google.ads.googleads.v12.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier" - optional :redemption_start_date, :string, 7 - optional :redemption_end_date, :string, 8 - optional :occasion, :enum, 9, "google.ads.googleads.v12.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion" - optional :language_code, :string, 10 - optional :start_date, :string, 11 - optional :end_date, :string, 12 - repeated :ad_schedule_targets, :message, 13, "google.ads.googleads.v12.common.AdScheduleInfo" - oneof :discount_type do - optional :percent_off, :int64, 3 - optional :money_amount_off, :message, 4, "google.ads.googleads.v12.common.Money" - end - oneof :promotion_trigger do - optional :promotion_code, :string, 5 - optional :orders_over_amount, :message, 6, "google.ads.googleads.v12.common.Money" - end - end - add_message "google.ads.googleads.v12.common.CalloutAsset" do - optional :callout_text, :string, 1 - optional :start_date, :string, 2 - optional :end_date, :string, 3 - repeated :ad_schedule_targets, :message, 4, "google.ads.googleads.v12.common.AdScheduleInfo" - end - add_message "google.ads.googleads.v12.common.StructuredSnippetAsset" do - optional :header, :string, 1 - repeated :values, :string, 2 - end - add_message "google.ads.googleads.v12.common.SitelinkAsset" do - optional :link_text, :string, 1 - optional :description1, :string, 2 - optional :description2, :string, 3 - optional :start_date, :string, 4 - optional :end_date, :string, 5 - repeated :ad_schedule_targets, :message, 6, "google.ads.googleads.v12.common.AdScheduleInfo" - end - add_message "google.ads.googleads.v12.common.PageFeedAsset" do - optional :page_url, :string, 1 - repeated :labels, :string, 2 - end - add_message "google.ads.googleads.v12.common.DynamicEducationAsset" do - optional :program_id, :string, 1 - optional :location_id, :string, 2 - optional :program_name, :string, 3 - optional :subject, :string, 4 - optional :program_description, :string, 5 - optional :school_name, :string, 6 - optional :address, :string, 7 - repeated :contextual_keywords, :string, 8 - optional :android_app_link, :string, 9 - repeated :similar_program_ids, :string, 10 - optional :ios_app_link, :string, 11 - optional :ios_app_store_id, :int64, 12 - optional :thumbnail_image_url, :string, 13 - optional :image_url, :string, 14 - end - add_message "google.ads.googleads.v12.common.MobileAppAsset" do - optional :app_id, :string, 1 - optional :app_store, :enum, 2, "google.ads.googleads.v12.enums.MobileAppVendorEnum.MobileAppVendor" - optional :link_text, :string, 3 - optional :start_date, :string, 4 - optional :end_date, :string, 5 - end - add_message "google.ads.googleads.v12.common.HotelCalloutAsset" do - optional :text, :string, 1 - optional :language_code, :string, 2 - end - add_message "google.ads.googleads.v12.common.CallAsset" do - optional :country_code, :string, 1 - optional :phone_number, :string, 2 - optional :call_conversion_reporting_state, :enum, 3, "google.ads.googleads.v12.enums.CallConversionReportingStateEnum.CallConversionReportingState" - optional :call_conversion_action, :string, 4 - repeated :ad_schedule_targets, :message, 5, "google.ads.googleads.v12.common.AdScheduleInfo" - end - add_message "google.ads.googleads.v12.common.PriceAsset" do - optional :type, :enum, 1, "google.ads.googleads.v12.enums.PriceExtensionTypeEnum.PriceExtensionType" - optional :price_qualifier, :enum, 2, "google.ads.googleads.v12.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier" - optional :language_code, :string, 3 - repeated :price_offerings, :message, 4, "google.ads.googleads.v12.common.PriceOffering" - end - add_message "google.ads.googleads.v12.common.PriceOffering" do - optional :header, :string, 1 - optional :description, :string, 2 - optional :price, :message, 3, "google.ads.googleads.v12.common.Money" - optional :unit, :enum, 4, "google.ads.googleads.v12.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit" - optional :final_url, :string, 5 - optional :final_mobile_url, :string, 6 - end - add_message "google.ads.googleads.v12.common.CallToActionAsset" do - optional :call_to_action, :enum, 1, "google.ads.googleads.v12.enums.CallToActionTypeEnum.CallToActionType" - end - add_message "google.ads.googleads.v12.common.DynamicRealEstateAsset" do - optional :listing_id, :string, 1 - optional :listing_name, :string, 2 - optional :city_name, :string, 3 - optional :description, :string, 4 - optional :address, :string, 5 - optional :price, :string, 6 - optional :image_url, :string, 7 - optional :property_type, :string, 8 - optional :listing_type, :string, 9 - repeated :contextual_keywords, :string, 10 - optional :formatted_price, :string, 11 - optional :android_app_link, :string, 12 - optional :ios_app_link, :string, 13 - optional :ios_app_store_id, :int64, 14 - repeated :similar_listing_ids, :string, 15 - end - add_message "google.ads.googleads.v12.common.DynamicCustomAsset" do - optional :id, :string, 1 - optional :id2, :string, 2 - optional :item_title, :string, 3 - optional :item_subtitle, :string, 4 - optional :item_description, :string, 5 - optional :item_address, :string, 6 - optional :item_category, :string, 7 - optional :price, :string, 8 - optional :sale_price, :string, 9 - optional :formatted_price, :string, 10 - optional :formatted_sale_price, :string, 11 - optional :image_url, :string, 12 - repeated :contextual_keywords, :string, 13 - optional :android_app_link, :string, 14 - optional :ios_app_link, :string, 16 - optional :ios_app_store_id, :int64, 17 - repeated :similar_ids, :string, 15 - end - add_message "google.ads.googleads.v12.common.DynamicHotelsAndRentalsAsset" do - optional :property_id, :string, 1 - optional :property_name, :string, 2 - optional :image_url, :string, 3 - optional :destination_name, :string, 4 - optional :description, :string, 5 - optional :price, :string, 6 - optional :sale_price, :string, 7 - optional :star_rating, :int64, 8 - optional :category, :string, 9 - repeated :contextual_keywords, :string, 10 - optional :address, :string, 11 - optional :android_app_link, :string, 12 - optional :ios_app_link, :string, 13 - optional :ios_app_store_id, :int64, 14 - optional :formatted_price, :string, 15 - optional :formatted_sale_price, :string, 16 - repeated :similar_property_ids, :string, 17 - end - add_message "google.ads.googleads.v12.common.DynamicFlightsAsset" do - optional :destination_id, :string, 1 - optional :origin_id, :string, 2 - optional :flight_description, :string, 3 - optional :image_url, :string, 4 - optional :destination_name, :string, 5 - optional :origin_name, :string, 6 - optional :flight_price, :string, 7 - optional :flight_sale_price, :string, 8 - optional :formatted_price, :string, 9 - optional :formatted_sale_price, :string, 10 - optional :android_app_link, :string, 11 - optional :ios_app_link, :string, 12 - optional :ios_app_store_id, :int64, 13 - repeated :similar_destination_ids, :string, 14 - optional :custom_mapping, :string, 15 - end - add_message "google.ads.googleads.v12.common.DiscoveryCarouselCardAsset" do - optional :marketing_image_asset, :string, 1 - optional :square_marketing_image_asset, :string, 2 - optional :portrait_marketing_image_asset, :string, 3 - optional :headline, :string, 4 - optional :call_to_action_text, :string, 5 - end - add_message "google.ads.googleads.v12.common.DynamicTravelAsset" do - optional :destination_id, :string, 1 - optional :origin_id, :string, 2 - optional :title, :string, 3 - optional :destination_name, :string, 4 - optional :destination_address, :string, 5 - optional :origin_name, :string, 6 - optional :price, :string, 7 - optional :sale_price, :string, 8 - optional :formatted_price, :string, 9 - optional :formatted_sale_price, :string, 10 - optional :category, :string, 11 - repeated :contextual_keywords, :string, 12 - repeated :similar_destination_ids, :string, 13 - optional :image_url, :string, 14 - optional :android_app_link, :string, 15 - optional :ios_app_link, :string, 16 - optional :ios_app_store_id, :int64, 17 - end - add_message "google.ads.googleads.v12.common.DynamicLocalAsset" do - optional :deal_id, :string, 1 - optional :deal_name, :string, 2 - optional :subtitle, :string, 3 - optional :description, :string, 4 - optional :price, :string, 5 - optional :sale_price, :string, 6 - optional :image_url, :string, 7 - optional :address, :string, 8 - optional :category, :string, 9 - repeated :contextual_keywords, :string, 10 - optional :formatted_price, :string, 11 - optional :formatted_sale_price, :string, 12 - optional :android_app_link, :string, 13 - repeated :similar_deal_ids, :string, 14 - optional :ios_app_link, :string, 15 - optional :ios_app_store_id, :int64, 16 - end - add_message "google.ads.googleads.v12.common.DynamicJobsAsset" do - optional :job_id, :string, 1 - optional :location_id, :string, 2 - optional :job_title, :string, 3 - optional :job_subtitle, :string, 4 - optional :description, :string, 5 - optional :image_url, :string, 6 - optional :job_category, :string, 7 - repeated :contextual_keywords, :string, 8 - optional :address, :string, 9 - optional :salary, :string, 10 - optional :android_app_link, :string, 11 - repeated :similar_job_ids, :string, 12 - optional :ios_app_link, :string, 13 - optional :ios_app_store_id, :int64, 14 - end - add_message "google.ads.googleads.v12.common.LocationAsset" do - optional :place_id, :string, 1 - repeated :business_profile_locations, :message, 2, "google.ads.googleads.v12.common.BusinessProfileLocation" - optional :location_ownership_type, :enum, 3, "google.ads.googleads.v12.enums.LocationOwnershipTypeEnum.LocationOwnershipType" - end - add_message "google.ads.googleads.v12.common.BusinessProfileLocation" do - repeated :labels, :string, 1 - optional :store_code, :string, 2 - optional :listing_id, :int64, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - YoutubeVideoAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.YoutubeVideoAsset").msgclass - MediaBundleAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.MediaBundleAsset").msgclass - ImageAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ImageAsset").msgclass - ImageDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ImageDimension").msgclass - TextAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TextAsset").msgclass - LeadFormAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LeadFormAsset").msgclass - LeadFormField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LeadFormField").msgclass - LeadFormCustomQuestionField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LeadFormCustomQuestionField").msgclass - LeadFormSingleChoiceAnswers = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LeadFormSingleChoiceAnswers").msgclass - LeadFormDeliveryMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LeadFormDeliveryMethod").msgclass - WebhookDelivery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.WebhookDelivery").msgclass - BookOnGoogleAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.BookOnGoogleAsset").msgclass - PromotionAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PromotionAsset").msgclass - CalloutAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CalloutAsset").msgclass - StructuredSnippetAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.StructuredSnippetAsset").msgclass - SitelinkAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.SitelinkAsset").msgclass - PageFeedAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PageFeedAsset").msgclass - DynamicEducationAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DynamicEducationAsset").msgclass - MobileAppAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.MobileAppAsset").msgclass - HotelCalloutAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.HotelCalloutAsset").msgclass - CallAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CallAsset").msgclass - PriceAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PriceAsset").msgclass - PriceOffering = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PriceOffering").msgclass - CallToActionAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CallToActionAsset").msgclass - DynamicRealEstateAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DynamicRealEstateAsset").msgclass - DynamicCustomAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DynamicCustomAsset").msgclass - DynamicHotelsAndRentalsAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DynamicHotelsAndRentalsAsset").msgclass - DynamicFlightsAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DynamicFlightsAsset").msgclass - DiscoveryCarouselCardAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DiscoveryCarouselCardAsset").msgclass - DynamicTravelAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DynamicTravelAsset").msgclass - DynamicLocalAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DynamicLocalAsset").msgclass - DynamicJobsAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DynamicJobsAsset").msgclass - LocationAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LocationAsset").msgclass - BusinessProfileLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.BusinessProfileLocation").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/asset_usage_pb.rb b/lib/google/ads/google_ads/v12/common/asset_usage_pb.rb deleted file mode 100644 index bbb7819ed..000000000 --- a/lib/google/ads/google_ads/v12/common/asset_usage_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/asset_usage.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/served_asset_field_type_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/asset_usage.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.AssetUsage" do - optional :asset, :string, 1 - optional :served_asset_field_type, :enum, 2, "google.ads.googleads.v12.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - AssetUsage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AssetUsage").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/audiences_pb.rb b/lib/google/ads/google_ads/v12/common/audiences_pb.rb deleted file mode 100644 index ec09dc07e..000000000 --- a/lib/google/ads/google_ads/v12/common/audiences_pb.rb +++ /dev/null @@ -1,103 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/audiences.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/gender_type_pb' -require 'google/ads/google_ads/v12/enums/income_range_type_pb' -require 'google/ads/google_ads/v12/enums/parental_status_type_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/audiences.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.AudienceDimension" do - oneof :dimension do - optional :age, :message, 1, "google.ads.googleads.v12.common.AgeDimension" - optional :gender, :message, 2, "google.ads.googleads.v12.common.GenderDimension" - optional :household_income, :message, 3, "google.ads.googleads.v12.common.HouseholdIncomeDimension" - optional :parental_status, :message, 4, "google.ads.googleads.v12.common.ParentalStatusDimension" - optional :audience_segments, :message, 5, "google.ads.googleads.v12.common.AudienceSegmentDimension" - end - end - add_message "google.ads.googleads.v12.common.AudienceExclusionDimension" do - repeated :exclusions, :message, 1, "google.ads.googleads.v12.common.ExclusionSegment" - end - add_message "google.ads.googleads.v12.common.ExclusionSegment" do - oneof :segment do - optional :user_list, :message, 1, "google.ads.googleads.v12.common.UserListSegment" - end - end - add_message "google.ads.googleads.v12.common.AgeDimension" do - repeated :age_ranges, :message, 1, "google.ads.googleads.v12.common.AgeSegment" - proto3_optional :include_undetermined, :bool, 2 - end - add_message "google.ads.googleads.v12.common.AgeSegment" do - proto3_optional :min_age, :int32, 1 - proto3_optional :max_age, :int32, 2 - end - add_message "google.ads.googleads.v12.common.GenderDimension" do - repeated :genders, :enum, 1, "google.ads.googleads.v12.enums.GenderTypeEnum.GenderType" - proto3_optional :include_undetermined, :bool, 2 - end - add_message "google.ads.googleads.v12.common.HouseholdIncomeDimension" do - repeated :income_ranges, :enum, 1, "google.ads.googleads.v12.enums.IncomeRangeTypeEnum.IncomeRangeType" - proto3_optional :include_undetermined, :bool, 2 - end - add_message "google.ads.googleads.v12.common.ParentalStatusDimension" do - repeated :parental_statuses, :enum, 1, "google.ads.googleads.v12.enums.ParentalStatusTypeEnum.ParentalStatusType" - proto3_optional :include_undetermined, :bool, 2 - end - add_message "google.ads.googleads.v12.common.AudienceSegmentDimension" do - repeated :segments, :message, 1, "google.ads.googleads.v12.common.AudienceSegment" - end - add_message "google.ads.googleads.v12.common.AudienceSegment" do - oneof :segment do - optional :user_list, :message, 1, "google.ads.googleads.v12.common.UserListSegment" - optional :user_interest, :message, 2, "google.ads.googleads.v12.common.UserInterestSegment" - optional :life_event, :message, 3, "google.ads.googleads.v12.common.LifeEventSegment" - optional :detailed_demographic, :message, 4, "google.ads.googleads.v12.common.DetailedDemographicSegment" - optional :custom_audience, :message, 5, "google.ads.googleads.v12.common.CustomAudienceSegment" - end - end - add_message "google.ads.googleads.v12.common.UserListSegment" do - proto3_optional :user_list, :string, 1 - end - add_message "google.ads.googleads.v12.common.UserInterestSegment" do - proto3_optional :user_interest_category, :string, 1 - end - add_message "google.ads.googleads.v12.common.LifeEventSegment" do - proto3_optional :life_event, :string, 1 - end - add_message "google.ads.googleads.v12.common.DetailedDemographicSegment" do - proto3_optional :detailed_demographic, :string, 1 - end - add_message "google.ads.googleads.v12.common.CustomAudienceSegment" do - proto3_optional :custom_audience, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - AudienceDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AudienceDimension").msgclass - AudienceExclusionDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AudienceExclusionDimension").msgclass - ExclusionSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ExclusionSegment").msgclass - AgeDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AgeDimension").msgclass - AgeSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AgeSegment").msgclass - GenderDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.GenderDimension").msgclass - HouseholdIncomeDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.HouseholdIncomeDimension").msgclass - ParentalStatusDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ParentalStatusDimension").msgclass - AudienceSegmentDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AudienceSegmentDimension").msgclass - AudienceSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AudienceSegment").msgclass - UserListSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UserListSegment").msgclass - UserInterestSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UserInterestSegment").msgclass - LifeEventSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LifeEventSegment").msgclass - DetailedDemographicSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DetailedDemographicSegment").msgclass - CustomAudienceSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CustomAudienceSegment").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/bidding_pb.rb b/lib/google/ads/google_ads/v12/common/bidding_pb.rb deleted file mode 100644 index 57b87e2f0..000000000 --- a/lib/google/ads/google_ads/v12/common/bidding_pb.rb +++ /dev/null @@ -1,85 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/bidding.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/target_impression_share_location_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/bidding.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.Commission" do - proto3_optional :commission_rate_micros, :int64, 2 - end - add_message "google.ads.googleads.v12.common.EnhancedCpc" do - end - add_message "google.ads.googleads.v12.common.ManualCpa" do - end - add_message "google.ads.googleads.v12.common.ManualCpc" do - proto3_optional :enhanced_cpc_enabled, :bool, 2 - end - add_message "google.ads.googleads.v12.common.ManualCpm" do - end - add_message "google.ads.googleads.v12.common.ManualCpv" do - end - add_message "google.ads.googleads.v12.common.MaximizeConversions" do - optional :cpc_bid_ceiling_micros, :int64, 2 - optional :cpc_bid_floor_micros, :int64, 3 - optional :target_cpa_micros, :int64, 4 - end - add_message "google.ads.googleads.v12.common.MaximizeConversionValue" do - optional :target_roas, :double, 2 - optional :cpc_bid_ceiling_micros, :int64, 3 - optional :cpc_bid_floor_micros, :int64, 4 - end - add_message "google.ads.googleads.v12.common.TargetCpa" do - proto3_optional :target_cpa_micros, :int64, 4 - proto3_optional :cpc_bid_ceiling_micros, :int64, 5 - proto3_optional :cpc_bid_floor_micros, :int64, 6 - end - add_message "google.ads.googleads.v12.common.TargetCpm" do - end - add_message "google.ads.googleads.v12.common.TargetImpressionShare" do - optional :location, :enum, 1, "google.ads.googleads.v12.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation" - proto3_optional :location_fraction_micros, :int64, 4 - proto3_optional :cpc_bid_ceiling_micros, :int64, 5 - end - add_message "google.ads.googleads.v12.common.TargetRoas" do - proto3_optional :target_roas, :double, 4 - proto3_optional :cpc_bid_ceiling_micros, :int64, 5 - proto3_optional :cpc_bid_floor_micros, :int64, 6 - end - add_message "google.ads.googleads.v12.common.TargetSpend" do - proto3_optional :target_spend_micros, :int64, 3 - proto3_optional :cpc_bid_ceiling_micros, :int64, 4 - end - add_message "google.ads.googleads.v12.common.PercentCpc" do - proto3_optional :cpc_bid_ceiling_micros, :int64, 3 - proto3_optional :enhanced_cpc_enabled, :bool, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - Commission = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.Commission").msgclass - EnhancedCpc = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.EnhancedCpc").msgclass - ManualCpa = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ManualCpa").msgclass - ManualCpc = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ManualCpc").msgclass - ManualCpm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ManualCpm").msgclass - ManualCpv = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ManualCpv").msgclass - MaximizeConversions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.MaximizeConversions").msgclass - MaximizeConversionValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.MaximizeConversionValue").msgclass - TargetCpa = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TargetCpa").msgclass - TargetCpm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TargetCpm").msgclass - TargetImpressionShare = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TargetImpressionShare").msgclass - TargetRoas = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TargetRoas").msgclass - TargetSpend = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TargetSpend").msgclass - PercentCpc = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PercentCpc").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/click_location_pb.rb b/lib/google/ads/google_ads/v12/common/click_location_pb.rb deleted file mode 100644 index ac546a3d0..000000000 --- a/lib/google/ads/google_ads/v12/common/click_location_pb.rb +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/click_location.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/click_location.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.ClickLocation" do - proto3_optional :city, :string, 6 - proto3_optional :country, :string, 7 - proto3_optional :metro, :string, 8 - proto3_optional :most_specific, :string, 9 - proto3_optional :region, :string, 10 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - ClickLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ClickLocation").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/criteria_pb.rb b/lib/google/ads/google_ads/v12/common/criteria_pb.rb deleted file mode 100644 index 5421803f0..000000000 --- a/lib/google/ads/google_ads/v12/common/criteria_pb.rb +++ /dev/null @@ -1,359 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/criteria.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/age_range_type_pb' -require 'google/ads/google_ads/v12/enums/app_payment_model_type_pb' -require 'google/ads/google_ads/v12/enums/content_label_type_pb' -require 'google/ads/google_ads/v12/enums/day_of_week_pb' -require 'google/ads/google_ads/v12/enums/device_pb' -require 'google/ads/google_ads/v12/enums/gender_type_pb' -require 'google/ads/google_ads/v12/enums/hotel_date_selection_type_pb' -require 'google/ads/google_ads/v12/enums/income_range_type_pb' -require 'google/ads/google_ads/v12/enums/interaction_type_pb' -require 'google/ads/google_ads/v12/enums/keyword_match_type_pb' -require 'google/ads/google_ads/v12/enums/listing_group_type_pb' -require 'google/ads/google_ads/v12/enums/location_group_radius_units_pb' -require 'google/ads/google_ads/v12/enums/minute_of_hour_pb' -require 'google/ads/google_ads/v12/enums/parental_status_type_pb' -require 'google/ads/google_ads/v12/enums/preferred_content_type_pb' -require 'google/ads/google_ads/v12/enums/product_bidding_category_level_pb' -require 'google/ads/google_ads/v12/enums/product_channel_pb' -require 'google/ads/google_ads/v12/enums/product_channel_exclusivity_pb' -require 'google/ads/google_ads/v12/enums/product_condition_pb' -require 'google/ads/google_ads/v12/enums/product_custom_attribute_index_pb' -require 'google/ads/google_ads/v12/enums/product_type_level_pb' -require 'google/ads/google_ads/v12/enums/proximity_radius_units_pb' -require 'google/ads/google_ads/v12/enums/webpage_condition_operand_pb' -require 'google/ads/google_ads/v12/enums/webpage_condition_operator_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/criteria.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.KeywordInfo" do - proto3_optional :text, :string, 3 - optional :match_type, :enum, 2, "google.ads.googleads.v12.enums.KeywordMatchTypeEnum.KeywordMatchType" - end - add_message "google.ads.googleads.v12.common.PlacementInfo" do - proto3_optional :url, :string, 2 - end - add_message "google.ads.googleads.v12.common.MobileAppCategoryInfo" do - proto3_optional :mobile_app_category_constant, :string, 2 - end - add_message "google.ads.googleads.v12.common.MobileApplicationInfo" do - proto3_optional :app_id, :string, 4 - proto3_optional :name, :string, 5 - end - add_message "google.ads.googleads.v12.common.LocationInfo" do - proto3_optional :geo_target_constant, :string, 2 - end - add_message "google.ads.googleads.v12.common.DeviceInfo" do - optional :type, :enum, 1, "google.ads.googleads.v12.enums.DeviceEnum.Device" - end - add_message "google.ads.googleads.v12.common.PreferredContentInfo" do - optional :type, :enum, 2, "google.ads.googleads.v12.enums.PreferredContentTypeEnum.PreferredContentType" - end - add_message "google.ads.googleads.v12.common.ListingGroupInfo" do - optional :type, :enum, 1, "google.ads.googleads.v12.enums.ListingGroupTypeEnum.ListingGroupType" - optional :case_value, :message, 2, "google.ads.googleads.v12.common.ListingDimensionInfo" - proto3_optional :parent_ad_group_criterion, :string, 4 - end - add_message "google.ads.googleads.v12.common.ListingScopeInfo" do - repeated :dimensions, :message, 2, "google.ads.googleads.v12.common.ListingDimensionInfo" - end - add_message "google.ads.googleads.v12.common.ListingDimensionInfo" do - oneof :dimension do - optional :hotel_id, :message, 2, "google.ads.googleads.v12.common.HotelIdInfo" - optional :hotel_class, :message, 3, "google.ads.googleads.v12.common.HotelClassInfo" - optional :hotel_country_region, :message, 4, "google.ads.googleads.v12.common.HotelCountryRegionInfo" - optional :hotel_state, :message, 5, "google.ads.googleads.v12.common.HotelStateInfo" - optional :hotel_city, :message, 6, "google.ads.googleads.v12.common.HotelCityInfo" - optional :product_bidding_category, :message, 13, "google.ads.googleads.v12.common.ProductBiddingCategoryInfo" - optional :product_brand, :message, 15, "google.ads.googleads.v12.common.ProductBrandInfo" - optional :product_channel, :message, 8, "google.ads.googleads.v12.common.ProductChannelInfo" - optional :product_channel_exclusivity, :message, 9, "google.ads.googleads.v12.common.ProductChannelExclusivityInfo" - optional :product_condition, :message, 10, "google.ads.googleads.v12.common.ProductConditionInfo" - optional :product_custom_attribute, :message, 16, "google.ads.googleads.v12.common.ProductCustomAttributeInfo" - optional :product_item_id, :message, 11, "google.ads.googleads.v12.common.ProductItemIdInfo" - optional :product_type, :message, 12, "google.ads.googleads.v12.common.ProductTypeInfo" - optional :product_grouping, :message, 17, "google.ads.googleads.v12.common.ProductGroupingInfo" - optional :product_labels, :message, 18, "google.ads.googleads.v12.common.ProductLabelsInfo" - optional :product_legacy_condition, :message, 19, "google.ads.googleads.v12.common.ProductLegacyConditionInfo" - optional :product_type_full, :message, 20, "google.ads.googleads.v12.common.ProductTypeFullInfo" - optional :unknown_listing_dimension, :message, 14, "google.ads.googleads.v12.common.UnknownListingDimensionInfo" - end - end - add_message "google.ads.googleads.v12.common.HotelIdInfo" do - proto3_optional :value, :string, 2 - end - add_message "google.ads.googleads.v12.common.HotelClassInfo" do - proto3_optional :value, :int64, 2 - end - add_message "google.ads.googleads.v12.common.HotelCountryRegionInfo" do - proto3_optional :country_region_criterion, :string, 2 - end - add_message "google.ads.googleads.v12.common.HotelStateInfo" do - proto3_optional :state_criterion, :string, 2 - end - add_message "google.ads.googleads.v12.common.HotelCityInfo" do - proto3_optional :city_criterion, :string, 2 - end - add_message "google.ads.googleads.v12.common.ProductBiddingCategoryInfo" do - proto3_optional :id, :int64, 4 - proto3_optional :country_code, :string, 5 - optional :level, :enum, 3, "google.ads.googleads.v12.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel" - end - add_message "google.ads.googleads.v12.common.ProductBrandInfo" do - proto3_optional :value, :string, 2 - end - add_message "google.ads.googleads.v12.common.ProductChannelInfo" do - optional :channel, :enum, 1, "google.ads.googleads.v12.enums.ProductChannelEnum.ProductChannel" - end - add_message "google.ads.googleads.v12.common.ProductChannelExclusivityInfo" do - optional :channel_exclusivity, :enum, 1, "google.ads.googleads.v12.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity" - end - add_message "google.ads.googleads.v12.common.ProductConditionInfo" do - optional :condition, :enum, 1, "google.ads.googleads.v12.enums.ProductConditionEnum.ProductCondition" - end - add_message "google.ads.googleads.v12.common.ProductCustomAttributeInfo" do - proto3_optional :value, :string, 3 - optional :index, :enum, 2, "google.ads.googleads.v12.enums.ProductCustomAttributeIndexEnum.ProductCustomAttributeIndex" - end - add_message "google.ads.googleads.v12.common.ProductItemIdInfo" do - proto3_optional :value, :string, 2 - end - add_message "google.ads.googleads.v12.common.ProductTypeInfo" do - proto3_optional :value, :string, 3 - optional :level, :enum, 2, "google.ads.googleads.v12.enums.ProductTypeLevelEnum.ProductTypeLevel" - end - add_message "google.ads.googleads.v12.common.ProductGroupingInfo" do - proto3_optional :value, :string, 1 - end - add_message "google.ads.googleads.v12.common.ProductLabelsInfo" do - proto3_optional :value, :string, 1 - end - add_message "google.ads.googleads.v12.common.ProductLegacyConditionInfo" do - proto3_optional :value, :string, 1 - end - add_message "google.ads.googleads.v12.common.ProductTypeFullInfo" do - proto3_optional :value, :string, 1 - end - add_message "google.ads.googleads.v12.common.UnknownListingDimensionInfo" do - end - add_message "google.ads.googleads.v12.common.HotelDateSelectionTypeInfo" do - optional :type, :enum, 1, "google.ads.googleads.v12.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType" - end - add_message "google.ads.googleads.v12.common.HotelAdvanceBookingWindowInfo" do - proto3_optional :min_days, :int64, 3 - proto3_optional :max_days, :int64, 4 - end - add_message "google.ads.googleads.v12.common.HotelLengthOfStayInfo" do - proto3_optional :min_nights, :int64, 3 - proto3_optional :max_nights, :int64, 4 - end - add_message "google.ads.googleads.v12.common.HotelCheckInDateRangeInfo" do - optional :start_date, :string, 1 - optional :end_date, :string, 2 - end - add_message "google.ads.googleads.v12.common.HotelCheckInDayInfo" do - optional :day_of_week, :enum, 1, "google.ads.googleads.v12.enums.DayOfWeekEnum.DayOfWeek" - end - add_message "google.ads.googleads.v12.common.InteractionTypeInfo" do - optional :type, :enum, 1, "google.ads.googleads.v12.enums.InteractionTypeEnum.InteractionType" - end - add_message "google.ads.googleads.v12.common.AdScheduleInfo" do - optional :start_minute, :enum, 1, "google.ads.googleads.v12.enums.MinuteOfHourEnum.MinuteOfHour" - optional :end_minute, :enum, 2, "google.ads.googleads.v12.enums.MinuteOfHourEnum.MinuteOfHour" - proto3_optional :start_hour, :int32, 6 - proto3_optional :end_hour, :int32, 7 - optional :day_of_week, :enum, 5, "google.ads.googleads.v12.enums.DayOfWeekEnum.DayOfWeek" - end - add_message "google.ads.googleads.v12.common.AgeRangeInfo" do - optional :type, :enum, 1, "google.ads.googleads.v12.enums.AgeRangeTypeEnum.AgeRangeType" - end - add_message "google.ads.googleads.v12.common.GenderInfo" do - optional :type, :enum, 1, "google.ads.googleads.v12.enums.GenderTypeEnum.GenderType" - end - add_message "google.ads.googleads.v12.common.IncomeRangeInfo" do - optional :type, :enum, 1, "google.ads.googleads.v12.enums.IncomeRangeTypeEnum.IncomeRangeType" - end - add_message "google.ads.googleads.v12.common.ParentalStatusInfo" do - optional :type, :enum, 1, "google.ads.googleads.v12.enums.ParentalStatusTypeEnum.ParentalStatusType" - end - add_message "google.ads.googleads.v12.common.YouTubeVideoInfo" do - proto3_optional :video_id, :string, 2 - end - add_message "google.ads.googleads.v12.common.YouTubeChannelInfo" do - proto3_optional :channel_id, :string, 2 - end - add_message "google.ads.googleads.v12.common.UserListInfo" do - proto3_optional :user_list, :string, 2 - end - add_message "google.ads.googleads.v12.common.ProximityInfo" do - optional :geo_point, :message, 1, "google.ads.googleads.v12.common.GeoPointInfo" - proto3_optional :radius, :double, 5 - optional :radius_units, :enum, 3, "google.ads.googleads.v12.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits" - optional :address, :message, 4, "google.ads.googleads.v12.common.AddressInfo" - end - add_message "google.ads.googleads.v12.common.GeoPointInfo" do - proto3_optional :longitude_in_micro_degrees, :int32, 3 - proto3_optional :latitude_in_micro_degrees, :int32, 4 - end - add_message "google.ads.googleads.v12.common.AddressInfo" do - proto3_optional :postal_code, :string, 8 - proto3_optional :province_code, :string, 9 - proto3_optional :country_code, :string, 10 - proto3_optional :province_name, :string, 11 - proto3_optional :street_address, :string, 12 - proto3_optional :street_address2, :string, 13 - proto3_optional :city_name, :string, 14 - end - add_message "google.ads.googleads.v12.common.TopicInfo" do - proto3_optional :topic_constant, :string, 3 - repeated :path, :string, 4 - end - add_message "google.ads.googleads.v12.common.LanguageInfo" do - proto3_optional :language_constant, :string, 2 - end - add_message "google.ads.googleads.v12.common.IpBlockInfo" do - proto3_optional :ip_address, :string, 2 - end - add_message "google.ads.googleads.v12.common.ContentLabelInfo" do - optional :type, :enum, 1, "google.ads.googleads.v12.enums.ContentLabelTypeEnum.ContentLabelType" - end - add_message "google.ads.googleads.v12.common.CarrierInfo" do - proto3_optional :carrier_constant, :string, 2 - end - add_message "google.ads.googleads.v12.common.UserInterestInfo" do - proto3_optional :user_interest_category, :string, 2 - end - add_message "google.ads.googleads.v12.common.WebpageInfo" do - proto3_optional :criterion_name, :string, 3 - repeated :conditions, :message, 2, "google.ads.googleads.v12.common.WebpageConditionInfo" - optional :coverage_percentage, :double, 4 - optional :sample, :message, 5, "google.ads.googleads.v12.common.WebpageSampleInfo" - end - add_message "google.ads.googleads.v12.common.WebpageConditionInfo" do - optional :operand, :enum, 1, "google.ads.googleads.v12.enums.WebpageConditionOperandEnum.WebpageConditionOperand" - optional :operator, :enum, 2, "google.ads.googleads.v12.enums.WebpageConditionOperatorEnum.WebpageConditionOperator" - proto3_optional :argument, :string, 4 - end - add_message "google.ads.googleads.v12.common.WebpageSampleInfo" do - repeated :sample_urls, :string, 1 - end - add_message "google.ads.googleads.v12.common.OperatingSystemVersionInfo" do - proto3_optional :operating_system_version_constant, :string, 2 - end - add_message "google.ads.googleads.v12.common.AppPaymentModelInfo" do - optional :type, :enum, 1, "google.ads.googleads.v12.enums.AppPaymentModelTypeEnum.AppPaymentModelType" - end - add_message "google.ads.googleads.v12.common.MobileDeviceInfo" do - proto3_optional :mobile_device_constant, :string, 2 - end - add_message "google.ads.googleads.v12.common.CustomAffinityInfo" do - proto3_optional :custom_affinity, :string, 2 - end - add_message "google.ads.googleads.v12.common.CustomIntentInfo" do - proto3_optional :custom_intent, :string, 2 - end - add_message "google.ads.googleads.v12.common.LocationGroupInfo" do - proto3_optional :feed, :string, 5 - repeated :geo_target_constants, :string, 6 - proto3_optional :radius, :int64, 7 - optional :radius_units, :enum, 4, "google.ads.googleads.v12.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits" - repeated :feed_item_sets, :string, 8 - proto3_optional :enable_customer_level_location_asset_set, :bool, 9 - repeated :location_group_asset_sets, :string, 10 - end - add_message "google.ads.googleads.v12.common.CustomAudienceInfo" do - optional :custom_audience, :string, 1 - end - add_message "google.ads.googleads.v12.common.CombinedAudienceInfo" do - optional :combined_audience, :string, 1 - end - add_message "google.ads.googleads.v12.common.AudienceInfo" do - optional :audience, :string, 1 - end - add_message "google.ads.googleads.v12.common.KeywordThemeInfo" do - oneof :keyword_theme do - optional :keyword_theme_constant, :string, 1 - optional :free_form_keyword_theme, :string, 2 - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - KeywordInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.KeywordInfo").msgclass - PlacementInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PlacementInfo").msgclass - MobileAppCategoryInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.MobileAppCategoryInfo").msgclass - MobileApplicationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.MobileApplicationInfo").msgclass - LocationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LocationInfo").msgclass - DeviceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DeviceInfo").msgclass - PreferredContentInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PreferredContentInfo").msgclass - ListingGroupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ListingGroupInfo").msgclass - ListingScopeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ListingScopeInfo").msgclass - ListingDimensionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ListingDimensionInfo").msgclass - HotelIdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.HotelIdInfo").msgclass - HotelClassInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.HotelClassInfo").msgclass - HotelCountryRegionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.HotelCountryRegionInfo").msgclass - HotelStateInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.HotelStateInfo").msgclass - HotelCityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.HotelCityInfo").msgclass - ProductBiddingCategoryInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ProductBiddingCategoryInfo").msgclass - ProductBrandInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ProductBrandInfo").msgclass - ProductChannelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ProductChannelInfo").msgclass - ProductChannelExclusivityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ProductChannelExclusivityInfo").msgclass - ProductConditionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ProductConditionInfo").msgclass - ProductCustomAttributeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ProductCustomAttributeInfo").msgclass - ProductItemIdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ProductItemIdInfo").msgclass - ProductTypeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ProductTypeInfo").msgclass - ProductGroupingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ProductGroupingInfo").msgclass - ProductLabelsInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ProductLabelsInfo").msgclass - ProductLegacyConditionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ProductLegacyConditionInfo").msgclass - ProductTypeFullInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ProductTypeFullInfo").msgclass - UnknownListingDimensionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UnknownListingDimensionInfo").msgclass - HotelDateSelectionTypeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.HotelDateSelectionTypeInfo").msgclass - HotelAdvanceBookingWindowInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.HotelAdvanceBookingWindowInfo").msgclass - HotelLengthOfStayInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.HotelLengthOfStayInfo").msgclass - HotelCheckInDateRangeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.HotelCheckInDateRangeInfo").msgclass - HotelCheckInDayInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.HotelCheckInDayInfo").msgclass - InteractionTypeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.InteractionTypeInfo").msgclass - AdScheduleInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AdScheduleInfo").msgclass - AgeRangeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AgeRangeInfo").msgclass - GenderInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.GenderInfo").msgclass - IncomeRangeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.IncomeRangeInfo").msgclass - ParentalStatusInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ParentalStatusInfo").msgclass - YouTubeVideoInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.YouTubeVideoInfo").msgclass - YouTubeChannelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.YouTubeChannelInfo").msgclass - UserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UserListInfo").msgclass - ProximityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ProximityInfo").msgclass - GeoPointInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.GeoPointInfo").msgclass - AddressInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AddressInfo").msgclass - TopicInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TopicInfo").msgclass - LanguageInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LanguageInfo").msgclass - IpBlockInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.IpBlockInfo").msgclass - ContentLabelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ContentLabelInfo").msgclass - CarrierInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CarrierInfo").msgclass - UserInterestInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UserInterestInfo").msgclass - WebpageInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.WebpageInfo").msgclass - WebpageConditionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.WebpageConditionInfo").msgclass - WebpageSampleInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.WebpageSampleInfo").msgclass - OperatingSystemVersionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.OperatingSystemVersionInfo").msgclass - AppPaymentModelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AppPaymentModelInfo").msgclass - MobileDeviceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.MobileDeviceInfo").msgclass - CustomAffinityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CustomAffinityInfo").msgclass - CustomIntentInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CustomIntentInfo").msgclass - LocationGroupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LocationGroupInfo").msgclass - CustomAudienceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CustomAudienceInfo").msgclass - CombinedAudienceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CombinedAudienceInfo").msgclass - AudienceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AudienceInfo").msgclass - KeywordThemeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.KeywordThemeInfo").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/criterion_category_availability_pb.rb b/lib/google/ads/google_ads/v12/common/criterion_category_availability_pb.rb deleted file mode 100644 index 82302cf61..000000000 --- a/lib/google/ads/google_ads/v12/common/criterion_category_availability_pb.rb +++ /dev/null @@ -1,43 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/criterion_category_availability.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/advertising_channel_sub_type_pb' -require 'google/ads/google_ads/v12/enums/advertising_channel_type_pb' -require 'google/ads/google_ads/v12/enums/criterion_category_channel_availability_mode_pb' -require 'google/ads/google_ads/v12/enums/criterion_category_locale_availability_mode_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/criterion_category_availability.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.CriterionCategoryAvailability" do - optional :channel, :message, 1, "google.ads.googleads.v12.common.CriterionCategoryChannelAvailability" - repeated :locale, :message, 2, "google.ads.googleads.v12.common.CriterionCategoryLocaleAvailability" - end - add_message "google.ads.googleads.v12.common.CriterionCategoryChannelAvailability" do - optional :availability_mode, :enum, 1, "google.ads.googleads.v12.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode" - optional :advertising_channel_type, :enum, 2, "google.ads.googleads.v12.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType" - repeated :advertising_channel_sub_type, :enum, 3, "google.ads.googleads.v12.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType" - proto3_optional :include_default_channel_sub_type, :bool, 5 - end - add_message "google.ads.googleads.v12.common.CriterionCategoryLocaleAvailability" do - optional :availability_mode, :enum, 1, "google.ads.googleads.v12.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode" - proto3_optional :country_code, :string, 4 - proto3_optional :language_code, :string, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - CriterionCategoryAvailability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CriterionCategoryAvailability").msgclass - CriterionCategoryChannelAvailability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CriterionCategoryChannelAvailability").msgclass - CriterionCategoryLocaleAvailability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CriterionCategoryLocaleAvailability").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/custom_parameter_pb.rb b/lib/google/ads/google_ads/v12/common/custom_parameter_pb.rb deleted file mode 100644 index df0ef2b8c..000000000 --- a/lib/google/ads/google_ads/v12/common/custom_parameter_pb.rb +++ /dev/null @@ -1,25 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/custom_parameter.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/custom_parameter.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.CustomParameter" do - proto3_optional :key, :string, 3 - proto3_optional :value, :string, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - CustomParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CustomParameter").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/customizer_value_pb.rb b/lib/google/ads/google_ads/v12/common/customizer_value_pb.rb deleted file mode 100644 index 0b60c1d8b..000000000 --- a/lib/google/ads/google_ads/v12/common/customizer_value_pb.rb +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/customizer_value.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/customizer_attribute_type_pb' -require 'google/api/field_behavior_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/customizer_value.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.CustomizerValue" do - optional :type, :enum, 1, "google.ads.googleads.v12.enums.CustomizerAttributeTypeEnum.CustomizerAttributeType" - optional :string_value, :string, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - CustomizerValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CustomizerValue").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/dates_pb.rb b/lib/google/ads/google_ads/v12/common/dates_pb.rb deleted file mode 100644 index 6631d720d..000000000 --- a/lib/google/ads/google_ads/v12/common/dates_pb.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/dates.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/month_of_year_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/dates.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.DateRange" do - proto3_optional :start_date, :string, 3 - proto3_optional :end_date, :string, 4 - end - add_message "google.ads.googleads.v12.common.YearMonthRange" do - optional :start, :message, 1, "google.ads.googleads.v12.common.YearMonth" - optional :end, :message, 2, "google.ads.googleads.v12.common.YearMonth" - end - add_message "google.ads.googleads.v12.common.YearMonth" do - optional :year, :int64, 1 - optional :month, :enum, 2, "google.ads.googleads.v12.enums.MonthOfYearEnum.MonthOfYear" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - DateRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DateRange").msgclass - YearMonthRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.YearMonthRange").msgclass - YearMonth = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.YearMonth").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/explorer_auto_optimizer_setting_pb.rb b/lib/google/ads/google_ads/v12/common/explorer_auto_optimizer_setting_pb.rb deleted file mode 100644 index d74d97300..000000000 --- a/lib/google/ads/google_ads/v12/common/explorer_auto_optimizer_setting_pb.rb +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/explorer_auto_optimizer_setting.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/explorer_auto_optimizer_setting.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.ExplorerAutoOptimizerSetting" do - proto3_optional :opt_in, :bool, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - ExplorerAutoOptimizerSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ExplorerAutoOptimizerSetting").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/extensions_pb.rb b/lib/google/ads/google_ads/v12/common/extensions_pb.rb deleted file mode 100644 index 2d3f82267..000000000 --- a/lib/google/ads/google_ads/v12/common/extensions_pb.rb +++ /dev/null @@ -1,153 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/extensions.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/custom_parameter_pb' -require 'google/ads/google_ads/v12/common/feed_common_pb' -require 'google/ads/google_ads/v12/enums/app_store_pb' -require 'google/ads/google_ads/v12/enums/call_conversion_reporting_state_pb' -require 'google/ads/google_ads/v12/enums/price_extension_price_qualifier_pb' -require 'google/ads/google_ads/v12/enums/price_extension_price_unit_pb' -require 'google/ads/google_ads/v12/enums/price_extension_type_pb' -require 'google/ads/google_ads/v12/enums/promotion_extension_discount_modifier_pb' -require 'google/ads/google_ads/v12/enums/promotion_extension_occasion_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/extensions.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.AppFeedItem" do - proto3_optional :link_text, :string, 9 - proto3_optional :app_id, :string, 10 - optional :app_store, :enum, 3, "google.ads.googleads.v12.enums.AppStoreEnum.AppStore" - repeated :final_urls, :string, 11 - repeated :final_mobile_urls, :string, 12 - proto3_optional :tracking_url_template, :string, 13 - repeated :url_custom_parameters, :message, 7, "google.ads.googleads.v12.common.CustomParameter" - proto3_optional :final_url_suffix, :string, 14 - end - add_message "google.ads.googleads.v12.common.CallFeedItem" do - proto3_optional :phone_number, :string, 7 - proto3_optional :country_code, :string, 8 - proto3_optional :call_tracking_enabled, :bool, 9 - proto3_optional :call_conversion_action, :string, 10 - proto3_optional :call_conversion_tracking_disabled, :bool, 11 - optional :call_conversion_reporting_state, :enum, 6, "google.ads.googleads.v12.enums.CallConversionReportingStateEnum.CallConversionReportingState" - end - add_message "google.ads.googleads.v12.common.CalloutFeedItem" do - proto3_optional :callout_text, :string, 2 - end - add_message "google.ads.googleads.v12.common.LocationFeedItem" do - proto3_optional :business_name, :string, 9 - proto3_optional :address_line_1, :string, 10 - proto3_optional :address_line_2, :string, 11 - proto3_optional :city, :string, 12 - proto3_optional :province, :string, 13 - proto3_optional :postal_code, :string, 14 - proto3_optional :country_code, :string, 15 - proto3_optional :phone_number, :string, 16 - end - add_message "google.ads.googleads.v12.common.AffiliateLocationFeedItem" do - proto3_optional :business_name, :string, 11 - proto3_optional :address_line_1, :string, 12 - proto3_optional :address_line_2, :string, 13 - proto3_optional :city, :string, 14 - proto3_optional :province, :string, 15 - proto3_optional :postal_code, :string, 16 - proto3_optional :country_code, :string, 17 - proto3_optional :phone_number, :string, 18 - proto3_optional :chain_id, :int64, 19 - proto3_optional :chain_name, :string, 20 - end - add_message "google.ads.googleads.v12.common.TextMessageFeedItem" do - proto3_optional :business_name, :string, 6 - proto3_optional :country_code, :string, 7 - proto3_optional :phone_number, :string, 8 - proto3_optional :text, :string, 9 - proto3_optional :extension_text, :string, 10 - end - add_message "google.ads.googleads.v12.common.PriceFeedItem" do - optional :type, :enum, 1, "google.ads.googleads.v12.enums.PriceExtensionTypeEnum.PriceExtensionType" - optional :price_qualifier, :enum, 2, "google.ads.googleads.v12.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier" - proto3_optional :tracking_url_template, :string, 7 - proto3_optional :language_code, :string, 8 - repeated :price_offerings, :message, 5, "google.ads.googleads.v12.common.PriceOffer" - proto3_optional :final_url_suffix, :string, 9 - end - add_message "google.ads.googleads.v12.common.PriceOffer" do - proto3_optional :header, :string, 7 - proto3_optional :description, :string, 8 - optional :price, :message, 3, "google.ads.googleads.v12.common.Money" - optional :unit, :enum, 4, "google.ads.googleads.v12.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit" - repeated :final_urls, :string, 9 - repeated :final_mobile_urls, :string, 10 - end - add_message "google.ads.googleads.v12.common.PromotionFeedItem" do - proto3_optional :promotion_target, :string, 16 - optional :discount_modifier, :enum, 2, "google.ads.googleads.v12.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier" - proto3_optional :promotion_start_date, :string, 19 - proto3_optional :promotion_end_date, :string, 20 - optional :occasion, :enum, 9, "google.ads.googleads.v12.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion" - repeated :final_urls, :string, 21 - repeated :final_mobile_urls, :string, 22 - proto3_optional :tracking_url_template, :string, 23 - repeated :url_custom_parameters, :message, 13, "google.ads.googleads.v12.common.CustomParameter" - proto3_optional :final_url_suffix, :string, 24 - proto3_optional :language_code, :string, 25 - oneof :discount_type do - optional :percent_off, :int64, 17 - optional :money_amount_off, :message, 4, "google.ads.googleads.v12.common.Money" - end - oneof :promotion_trigger do - optional :promotion_code, :string, 18 - optional :orders_over_amount, :message, 6, "google.ads.googleads.v12.common.Money" - end - end - add_message "google.ads.googleads.v12.common.StructuredSnippetFeedItem" do - proto3_optional :header, :string, 3 - repeated :values, :string, 4 - end - add_message "google.ads.googleads.v12.common.SitelinkFeedItem" do - proto3_optional :link_text, :string, 9 - proto3_optional :line1, :string, 10 - proto3_optional :line2, :string, 11 - repeated :final_urls, :string, 12 - repeated :final_mobile_urls, :string, 13 - proto3_optional :tracking_url_template, :string, 14 - repeated :url_custom_parameters, :message, 7, "google.ads.googleads.v12.common.CustomParameter" - proto3_optional :final_url_suffix, :string, 15 - end - add_message "google.ads.googleads.v12.common.HotelCalloutFeedItem" do - proto3_optional :text, :string, 3 - proto3_optional :language_code, :string, 4 - end - add_message "google.ads.googleads.v12.common.ImageFeedItem" do - optional :image_asset, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - AppFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AppFeedItem").msgclass - CallFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CallFeedItem").msgclass - CalloutFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CalloutFeedItem").msgclass - LocationFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LocationFeedItem").msgclass - AffiliateLocationFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AffiliateLocationFeedItem").msgclass - TextMessageFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TextMessageFeedItem").msgclass - PriceFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PriceFeedItem").msgclass - PriceOffer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PriceOffer").msgclass - PromotionFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PromotionFeedItem").msgclass - StructuredSnippetFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.StructuredSnippetFeedItem").msgclass - SitelinkFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.SitelinkFeedItem").msgclass - HotelCalloutFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.HotelCalloutFeedItem").msgclass - ImageFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ImageFeedItem").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/feed_common_pb.rb b/lib/google/ads/google_ads/v12/common/feed_common_pb.rb deleted file mode 100644 index 1d774a2de..000000000 --- a/lib/google/ads/google_ads/v12/common/feed_common_pb.rb +++ /dev/null @@ -1,25 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/feed_common.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/feed_common.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.Money" do - proto3_optional :currency_code, :string, 3 - proto3_optional :amount_micros, :int64, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - Money = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.Money").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/feed_item_set_filter_type_infos_pb.rb b/lib/google/ads/google_ads/v12/common/feed_item_set_filter_type_infos_pb.rb deleted file mode 100644 index 739bb2fc2..000000000 --- a/lib/google/ads/google_ads/v12/common/feed_item_set_filter_type_infos_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/feed_item_set_filter_type_infos.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/feed_item_set_string_filter_type_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/feed_item_set_filter_type_infos.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.DynamicLocationSetFilter" do - repeated :labels, :string, 1 - optional :business_name_filter, :message, 2, "google.ads.googleads.v12.common.BusinessNameFilter" - end - add_message "google.ads.googleads.v12.common.BusinessNameFilter" do - optional :business_name, :string, 1 - optional :filter_type, :enum, 2, "google.ads.googleads.v12.enums.FeedItemSetStringFilterTypeEnum.FeedItemSetStringFilterType" - end - add_message "google.ads.googleads.v12.common.DynamicAffiliateLocationSetFilter" do - repeated :chain_ids, :int64, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - DynamicLocationSetFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DynamicLocationSetFilter").msgclass - BusinessNameFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.BusinessNameFilter").msgclass - DynamicAffiliateLocationSetFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.DynamicAffiliateLocationSetFilter").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/final_app_url_pb.rb b/lib/google/ads/google_ads/v12/common/final_app_url_pb.rb deleted file mode 100644 index e629ab47a..000000000 --- a/lib/google/ads/google_ads/v12/common/final_app_url_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/final_app_url.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/app_url_operating_system_type_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/final_app_url.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.FinalAppUrl" do - optional :os_type, :enum, 1, "google.ads.googleads.v12.enums.AppUrlOperatingSystemTypeEnum.AppUrlOperatingSystemType" - proto3_optional :url, :string, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - FinalAppUrl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.FinalAppUrl").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/frequency_cap_pb.rb b/lib/google/ads/google_ads/v12/common/frequency_cap_pb.rb deleted file mode 100644 index 188e32d6f..000000000 --- a/lib/google/ads/google_ads/v12/common/frequency_cap_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/frequency_cap.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/frequency_cap_event_type_pb' -require 'google/ads/google_ads/v12/enums/frequency_cap_level_pb' -require 'google/ads/google_ads/v12/enums/frequency_cap_time_unit_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/frequency_cap.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.FrequencyCapEntry" do - optional :key, :message, 1, "google.ads.googleads.v12.common.FrequencyCapKey" - proto3_optional :cap, :int32, 3 - end - add_message "google.ads.googleads.v12.common.FrequencyCapKey" do - optional :level, :enum, 1, "google.ads.googleads.v12.enums.FrequencyCapLevelEnum.FrequencyCapLevel" - optional :event_type, :enum, 3, "google.ads.googleads.v12.enums.FrequencyCapEventTypeEnum.FrequencyCapEventType" - optional :time_unit, :enum, 2, "google.ads.googleads.v12.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit" - proto3_optional :time_length, :int32, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - FrequencyCapEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.FrequencyCapEntry").msgclass - FrequencyCapKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.FrequencyCapKey").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/keyword_plan_common_pb.rb b/lib/google/ads/google_ads/v12/common/keyword_plan_common_pb.rb deleted file mode 100644 index 19b63c757..000000000 --- a/lib/google/ads/google_ads/v12/common/keyword_plan_common_pb.rb +++ /dev/null @@ -1,75 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/keyword_plan_common.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/dates_pb' -require 'google/ads/google_ads/v12/enums/device_pb' -require 'google/ads/google_ads/v12/enums/keyword_plan_aggregate_metric_type_pb' -require 'google/ads/google_ads/v12/enums/keyword_plan_competition_level_pb' -require 'google/ads/google_ads/v12/enums/keyword_plan_concept_group_type_pb' -require 'google/ads/google_ads/v12/enums/month_of_year_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/keyword_plan_common.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.KeywordPlanHistoricalMetrics" do - proto3_optional :avg_monthly_searches, :int64, 7 - repeated :monthly_search_volumes, :message, 6, "google.ads.googleads.v12.common.MonthlySearchVolume" - optional :competition, :enum, 2, "google.ads.googleads.v12.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel" - proto3_optional :competition_index, :int64, 8 - proto3_optional :low_top_of_page_bid_micros, :int64, 9 - proto3_optional :high_top_of_page_bid_micros, :int64, 10 - proto3_optional :average_cpc_micros, :int64, 11 - end - add_message "google.ads.googleads.v12.common.HistoricalMetricsOptions" do - proto3_optional :year_month_range, :message, 1, "google.ads.googleads.v12.common.YearMonthRange" - optional :include_average_cpc, :bool, 2 - end - add_message "google.ads.googleads.v12.common.MonthlySearchVolume" do - proto3_optional :year, :int64, 4 - optional :month, :enum, 2, "google.ads.googleads.v12.enums.MonthOfYearEnum.MonthOfYear" - proto3_optional :monthly_searches, :int64, 5 - end - add_message "google.ads.googleads.v12.common.KeywordPlanAggregateMetrics" do - repeated :aggregate_metric_types, :enum, 1, "google.ads.googleads.v12.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType" - end - add_message "google.ads.googleads.v12.common.KeywordPlanAggregateMetricResults" do - repeated :device_searches, :message, 1, "google.ads.googleads.v12.common.KeywordPlanDeviceSearches" - end - add_message "google.ads.googleads.v12.common.KeywordPlanDeviceSearches" do - optional :device, :enum, 1, "google.ads.googleads.v12.enums.DeviceEnum.Device" - proto3_optional :search_count, :int64, 2 - end - add_message "google.ads.googleads.v12.common.KeywordAnnotations" do - repeated :concepts, :message, 1, "google.ads.googleads.v12.common.KeywordConcept" - end - add_message "google.ads.googleads.v12.common.KeywordConcept" do - optional :name, :string, 1 - optional :concept_group, :message, 2, "google.ads.googleads.v12.common.ConceptGroup" - end - add_message "google.ads.googleads.v12.common.ConceptGroup" do - optional :name, :string, 1 - optional :type, :enum, 2, "google.ads.googleads.v12.enums.KeywordPlanConceptGroupTypeEnum.KeywordPlanConceptGroupType" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - KeywordPlanHistoricalMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.KeywordPlanHistoricalMetrics").msgclass - HistoricalMetricsOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.HistoricalMetricsOptions").msgclass - MonthlySearchVolume = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.MonthlySearchVolume").msgclass - KeywordPlanAggregateMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.KeywordPlanAggregateMetrics").msgclass - KeywordPlanAggregateMetricResults = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.KeywordPlanAggregateMetricResults").msgclass - KeywordPlanDeviceSearches = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.KeywordPlanDeviceSearches").msgclass - KeywordAnnotations = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.KeywordAnnotations").msgclass - KeywordConcept = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.KeywordConcept").msgclass - ConceptGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ConceptGroup").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/matching_function_pb.rb b/lib/google/ads/google_ads/v12/common/matching_function_pb.rb deleted file mode 100644 index 1b2099566..000000000 --- a/lib/google/ads/google_ads/v12/common/matching_function_pb.rb +++ /dev/null @@ -1,61 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/matching_function.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/matching_function_context_type_pb' -require 'google/ads/google_ads/v12/enums/matching_function_operator_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/matching_function.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.MatchingFunction" do - proto3_optional :function_string, :string, 5 - optional :operator, :enum, 4, "google.ads.googleads.v12.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator" - repeated :left_operands, :message, 2, "google.ads.googleads.v12.common.Operand" - repeated :right_operands, :message, 3, "google.ads.googleads.v12.common.Operand" - end - add_message "google.ads.googleads.v12.common.Operand" do - oneof :function_argument_operand do - optional :constant_operand, :message, 1, "google.ads.googleads.v12.common.Operand.ConstantOperand" - optional :feed_attribute_operand, :message, 2, "google.ads.googleads.v12.common.Operand.FeedAttributeOperand" - optional :function_operand, :message, 3, "google.ads.googleads.v12.common.Operand.FunctionOperand" - optional :request_context_operand, :message, 4, "google.ads.googleads.v12.common.Operand.RequestContextOperand" - end - end - add_message "google.ads.googleads.v12.common.Operand.ConstantOperand" do - oneof :constant_operand_value do - optional :string_value, :string, 5 - optional :long_value, :int64, 6 - optional :boolean_value, :bool, 7 - optional :double_value, :double, 8 - end - end - add_message "google.ads.googleads.v12.common.Operand.FeedAttributeOperand" do - proto3_optional :feed_id, :int64, 3 - proto3_optional :feed_attribute_id, :int64, 4 - end - add_message "google.ads.googleads.v12.common.Operand.FunctionOperand" do - optional :matching_function, :message, 1, "google.ads.googleads.v12.common.MatchingFunction" - end - add_message "google.ads.googleads.v12.common.Operand.RequestContextOperand" do - optional :context_type, :enum, 1, "google.ads.googleads.v12.enums.MatchingFunctionContextTypeEnum.MatchingFunctionContextType" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - MatchingFunction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.MatchingFunction").msgclass - Operand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.Operand").msgclass - Operand::ConstantOperand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.Operand.ConstantOperand").msgclass - Operand::FeedAttributeOperand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.Operand.FeedAttributeOperand").msgclass - Operand::FunctionOperand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.Operand.FunctionOperand").msgclass - Operand::RequestContextOperand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.Operand.RequestContextOperand").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/metric_goal_pb.rb b/lib/google/ads/google_ads/v12/common/metric_goal_pb.rb deleted file mode 100644 index 0b921e8be..000000000 --- a/lib/google/ads/google_ads/v12/common/metric_goal_pb.rb +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/metric_goal.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/experiment_metric_pb' -require 'google/ads/google_ads/v12/enums/experiment_metric_direction_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/metric_goal.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.MetricGoal" do - optional :metric, :enum, 1, "google.ads.googleads.v12.enums.ExperimentMetricEnum.ExperimentMetric" - optional :direction, :enum, 2, "google.ads.googleads.v12.enums.ExperimentMetricDirectionEnum.ExperimentMetricDirection" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - MetricGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.MetricGoal").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/metrics_pb.rb b/lib/google/ads/google_ads/v12/common/metrics_pb.rb deleted file mode 100644 index fbd0652a0..000000000 --- a/lib/google/ads/google_ads/v12/common/metrics_pb.rb +++ /dev/null @@ -1,175 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/metrics.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/interaction_event_type_pb' -require 'google/ads/google_ads/v12/enums/quality_score_bucket_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/metrics.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.Metrics" do - proto3_optional :absolute_top_impression_percentage, :double, 183 - proto3_optional :active_view_cpm, :double, 184 - proto3_optional :active_view_ctr, :double, 185 - proto3_optional :active_view_impressions, :int64, 186 - proto3_optional :active_view_measurability, :double, 187 - proto3_optional :active_view_measurable_cost_micros, :int64, 188 - proto3_optional :active_view_measurable_impressions, :int64, 189 - proto3_optional :active_view_viewability, :double, 190 - proto3_optional :all_conversions_from_interactions_rate, :double, 191 - proto3_optional :all_conversions_value, :double, 192 - optional :all_conversions_value_by_conversion_date, :double, 240 - proto3_optional :all_conversions, :double, 193 - optional :all_conversions_by_conversion_date, :double, 241 - proto3_optional :all_conversions_value_per_cost, :double, 194 - proto3_optional :all_conversions_from_click_to_call, :double, 195 - proto3_optional :all_conversions_from_directions, :double, 196 - proto3_optional :all_conversions_from_interactions_value_per_interaction, :double, 197 - proto3_optional :all_conversions_from_menu, :double, 198 - proto3_optional :all_conversions_from_order, :double, 199 - proto3_optional :all_conversions_from_other_engagement, :double, 200 - proto3_optional :all_conversions_from_store_visit, :double, 201 - proto3_optional :all_conversions_from_store_website, :double, 202 - proto3_optional :auction_insight_search_absolute_top_impression_percentage, :double, 258 - proto3_optional :auction_insight_search_impression_share, :double, 259 - proto3_optional :auction_insight_search_outranking_share, :double, 260 - proto3_optional :auction_insight_search_overlap_rate, :double, 261 - proto3_optional :auction_insight_search_position_above_rate, :double, 262 - proto3_optional :auction_insight_search_top_impression_percentage, :double, 263 - proto3_optional :average_cost, :double, 203 - proto3_optional :average_cpc, :double, 204 - proto3_optional :average_cpe, :double, 205 - proto3_optional :average_cpm, :double, 206 - proto3_optional :average_cpv, :double, 207 - proto3_optional :average_page_views, :double, 208 - proto3_optional :average_time_on_site, :double, 209 - proto3_optional :benchmark_average_max_cpc, :double, 210 - proto3_optional :biddable_app_install_conversions, :double, 254 - proto3_optional :biddable_app_post_install_conversions, :double, 255 - proto3_optional :benchmark_ctr, :double, 211 - proto3_optional :bounce_rate, :double, 212 - proto3_optional :clicks, :int64, 131 - proto3_optional :combined_clicks, :int64, 156 - proto3_optional :combined_clicks_per_query, :double, 157 - proto3_optional :combined_queries, :int64, 158 - proto3_optional :content_budget_lost_impression_share, :double, 159 - proto3_optional :content_impression_share, :double, 160 - proto3_optional :conversion_last_received_request_date_time, :string, 161 - proto3_optional :conversion_last_conversion_date, :string, 162 - proto3_optional :content_rank_lost_impression_share, :double, 163 - proto3_optional :conversions_from_interactions_rate, :double, 164 - proto3_optional :conversions_value, :double, 165 - optional :conversions_value_by_conversion_date, :double, 242 - proto3_optional :conversions_value_per_cost, :double, 166 - proto3_optional :conversions_from_interactions_value_per_interaction, :double, 167 - proto3_optional :conversions, :double, 168 - optional :conversions_by_conversion_date, :double, 243 - proto3_optional :cost_micros, :int64, 169 - proto3_optional :cost_per_all_conversions, :double, 170 - proto3_optional :cost_per_conversion, :double, 171 - proto3_optional :cost_per_current_model_attributed_conversion, :double, 172 - proto3_optional :cross_device_conversions, :double, 173 - proto3_optional :ctr, :double, 174 - proto3_optional :current_model_attributed_conversions, :double, 175 - proto3_optional :current_model_attributed_conversions_from_interactions_rate, :double, 176 - proto3_optional :current_model_attributed_conversions_from_interactions_value_per_interaction, :double, 177 - proto3_optional :current_model_attributed_conversions_value, :double, 178 - proto3_optional :current_model_attributed_conversions_value_per_cost, :double, 179 - proto3_optional :engagement_rate, :double, 180 - proto3_optional :engagements, :int64, 181 - proto3_optional :hotel_average_lead_value_micros, :double, 213 - proto3_optional :hotel_commission_rate_micros, :int64, 256 - proto3_optional :hotel_expected_commission_cost, :double, 257 - proto3_optional :hotel_price_difference_percentage, :double, 214 - proto3_optional :hotel_eligible_impressions, :int64, 215 - optional :historical_creative_quality_score, :enum, 80, "google.ads.googleads.v12.enums.QualityScoreBucketEnum.QualityScoreBucket" - optional :historical_landing_page_quality_score, :enum, 81, "google.ads.googleads.v12.enums.QualityScoreBucketEnum.QualityScoreBucket" - proto3_optional :historical_quality_score, :int64, 216 - optional :historical_search_predicted_ctr, :enum, 83, "google.ads.googleads.v12.enums.QualityScoreBucketEnum.QualityScoreBucket" - proto3_optional :gmail_forwards, :int64, 217 - proto3_optional :gmail_saves, :int64, 218 - proto3_optional :gmail_secondary_clicks, :int64, 219 - proto3_optional :impressions_from_store_reach, :int64, 220 - proto3_optional :impressions, :int64, 221 - proto3_optional :interaction_rate, :double, 222 - proto3_optional :interactions, :int64, 223 - repeated :interaction_event_types, :enum, 100, "google.ads.googleads.v12.enums.InteractionEventTypeEnum.InteractionEventType" - proto3_optional :invalid_click_rate, :double, 224 - proto3_optional :invalid_clicks, :int64, 225 - proto3_optional :message_chats, :int64, 226 - proto3_optional :message_impressions, :int64, 227 - proto3_optional :message_chat_rate, :double, 228 - proto3_optional :mobile_friendly_clicks_percentage, :double, 229 - proto3_optional :optimization_score_uplift, :double, 247 - proto3_optional :optimization_score_url, :string, 248 - proto3_optional :organic_clicks, :int64, 230 - proto3_optional :organic_clicks_per_query, :double, 231 - proto3_optional :organic_impressions, :int64, 232 - proto3_optional :organic_impressions_per_query, :double, 233 - proto3_optional :organic_queries, :int64, 234 - proto3_optional :percent_new_visitors, :double, 235 - proto3_optional :phone_calls, :int64, 236 - proto3_optional :phone_impressions, :int64, 237 - proto3_optional :phone_through_rate, :double, 238 - proto3_optional :relative_ctr, :double, 239 - proto3_optional :search_absolute_top_impression_share, :double, 136 - proto3_optional :search_budget_lost_absolute_top_impression_share, :double, 137 - proto3_optional :search_budget_lost_impression_share, :double, 138 - proto3_optional :search_budget_lost_top_impression_share, :double, 139 - proto3_optional :search_click_share, :double, 140 - proto3_optional :search_exact_match_impression_share, :double, 141 - proto3_optional :search_impression_share, :double, 142 - proto3_optional :search_rank_lost_absolute_top_impression_share, :double, 143 - proto3_optional :search_rank_lost_impression_share, :double, 144 - proto3_optional :search_rank_lost_top_impression_share, :double, 145 - proto3_optional :search_top_impression_share, :double, 146 - proto3_optional :speed_score, :int64, 147 - proto3_optional :top_impression_percentage, :double, 148 - proto3_optional :valid_accelerated_mobile_pages_clicks_percentage, :double, 149 - proto3_optional :value_per_all_conversions, :double, 150 - proto3_optional :value_per_all_conversions_by_conversion_date, :double, 244 - proto3_optional :value_per_conversion, :double, 151 - proto3_optional :value_per_conversions_by_conversion_date, :double, 245 - proto3_optional :value_per_current_model_attributed_conversion, :double, 152 - proto3_optional :video_quartile_p100_rate, :double, 132 - proto3_optional :video_quartile_p25_rate, :double, 133 - proto3_optional :video_quartile_p50_rate, :double, 134 - proto3_optional :video_quartile_p75_rate, :double, 135 - proto3_optional :video_view_rate, :double, 153 - proto3_optional :video_views, :int64, 154 - proto3_optional :view_through_conversions, :int64, 155 - optional :sk_ad_network_conversions, :int64, 246 - optional :publisher_purchased_clicks, :int64, 264 - optional :publisher_organic_clicks, :int64, 265 - optional :publisher_unknown_clicks, :int64, 266 - proto3_optional :all_conversions_from_location_asset_click_to_call, :double, 267 - proto3_optional :all_conversions_from_location_asset_directions, :double, 268 - proto3_optional :all_conversions_from_location_asset_menu, :double, 269 - proto3_optional :all_conversions_from_location_asset_order, :double, 270 - proto3_optional :all_conversions_from_location_asset_other_engagement, :double, 271 - proto3_optional :all_conversions_from_location_asset_store_visits, :double, 272 - proto3_optional :all_conversions_from_location_asset_website, :double, 273 - proto3_optional :eligible_impressions_from_location_asset_store_reach, :int64, 274 - proto3_optional :view_through_conversions_from_location_asset_click_to_call, :double, 275 - proto3_optional :view_through_conversions_from_location_asset_directions, :double, 276 - proto3_optional :view_through_conversions_from_location_asset_menu, :double, 277 - proto3_optional :view_through_conversions_from_location_asset_order, :double, 278 - proto3_optional :view_through_conversions_from_location_asset_other_engagement, :double, 279 - proto3_optional :view_through_conversions_from_location_asset_store_visits, :double, 280 - proto3_optional :view_through_conversions_from_location_asset_website, :double, 281 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.Metrics").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/offline_user_data_pb.rb b/lib/google/ads/google_ads/v12/common/offline_user_data_pb.rb deleted file mode 100644 index 5ee0d66b8..000000000 --- a/lib/google/ads/google_ads/v12/common/offline_user_data_pb.rb +++ /dev/null @@ -1,120 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/offline_user_data.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/user_identifier_source_pb' -require 'google/api/field_behavior_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/offline_user_data.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.OfflineUserAddressInfo" do - proto3_optional :hashed_first_name, :string, 7 - proto3_optional :hashed_last_name, :string, 8 - proto3_optional :city, :string, 9 - proto3_optional :state, :string, 10 - proto3_optional :country_code, :string, 11 - proto3_optional :postal_code, :string, 12 - proto3_optional :hashed_street_address, :string, 13 - end - add_message "google.ads.googleads.v12.common.UserIdentifier" do - optional :user_identifier_source, :enum, 6, "google.ads.googleads.v12.enums.UserIdentifierSourceEnum.UserIdentifierSource" - oneof :identifier do - optional :hashed_email, :string, 7 - optional :hashed_phone_number, :string, 8 - optional :mobile_id, :string, 9 - optional :third_party_user_id, :string, 10 - optional :address_info, :message, 5, "google.ads.googleads.v12.common.OfflineUserAddressInfo" - end - end - add_message "google.ads.googleads.v12.common.TransactionAttribute" do - proto3_optional :transaction_date_time, :string, 8 - proto3_optional :transaction_amount_micros, :double, 9 - proto3_optional :currency_code, :string, 10 - proto3_optional :conversion_action, :string, 11 - proto3_optional :order_id, :string, 12 - optional :store_attribute, :message, 6, "google.ads.googleads.v12.common.StoreAttribute" - proto3_optional :custom_value, :string, 13 - optional :item_attribute, :message, 14, "google.ads.googleads.v12.common.ItemAttribute" - end - add_message "google.ads.googleads.v12.common.StoreAttribute" do - proto3_optional :store_code, :string, 2 - end - add_message "google.ads.googleads.v12.common.ItemAttribute" do - optional :item_id, :string, 1 - proto3_optional :merchant_id, :int64, 2 - optional :country_code, :string, 3 - optional :language_code, :string, 4 - optional :quantity, :int64, 5 - end - add_message "google.ads.googleads.v12.common.UserData" do - repeated :user_identifiers, :message, 1, "google.ads.googleads.v12.common.UserIdentifier" - optional :transaction_attribute, :message, 2, "google.ads.googleads.v12.common.TransactionAttribute" - optional :user_attribute, :message, 3, "google.ads.googleads.v12.common.UserAttribute" - end - add_message "google.ads.googleads.v12.common.UserAttribute" do - proto3_optional :lifetime_value_micros, :int64, 1 - proto3_optional :lifetime_value_bucket, :int32, 2 - optional :last_purchase_date_time, :string, 3 - optional :average_purchase_count, :int32, 4 - optional :average_purchase_value_micros, :int64, 5 - optional :acquisition_date_time, :string, 6 - proto3_optional :shopping_loyalty, :message, 7, "google.ads.googleads.v12.common.ShoppingLoyalty" - optional :lifecycle_stage, :string, 8 - optional :first_purchase_date_time, :string, 9 - repeated :event_attribute, :message, 10, "google.ads.googleads.v12.common.EventAttribute" - end - add_message "google.ads.googleads.v12.common.EventAttribute" do - optional :event, :string, 1 - optional :event_date_time, :string, 2 - repeated :item_attribute, :message, 3, "google.ads.googleads.v12.common.EventItemAttribute" - end - add_message "google.ads.googleads.v12.common.EventItemAttribute" do - optional :item_id, :string, 1 - end - add_message "google.ads.googleads.v12.common.ShoppingLoyalty" do - proto3_optional :loyalty_tier, :string, 1 - end - add_message "google.ads.googleads.v12.common.CustomerMatchUserListMetadata" do - proto3_optional :user_list, :string, 2 - end - add_message "google.ads.googleads.v12.common.StoreSalesMetadata" do - proto3_optional :loyalty_fraction, :double, 5 - proto3_optional :transaction_upload_fraction, :double, 6 - proto3_optional :custom_key, :string, 7 - optional :third_party_metadata, :message, 3, "google.ads.googleads.v12.common.StoreSalesThirdPartyMetadata" - end - add_message "google.ads.googleads.v12.common.StoreSalesThirdPartyMetadata" do - proto3_optional :advertiser_upload_date_time, :string, 7 - proto3_optional :valid_transaction_fraction, :double, 8 - proto3_optional :partner_match_fraction, :double, 9 - proto3_optional :partner_upload_fraction, :double, 10 - proto3_optional :bridge_map_version_id, :string, 11 - proto3_optional :partner_id, :int64, 12 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - OfflineUserAddressInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.OfflineUserAddressInfo").msgclass - UserIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UserIdentifier").msgclass - TransactionAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TransactionAttribute").msgclass - StoreAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.StoreAttribute").msgclass - ItemAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ItemAttribute").msgclass - UserData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UserData").msgclass - UserAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UserAttribute").msgclass - EventAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.EventAttribute").msgclass - EventItemAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.EventItemAttribute").msgclass - ShoppingLoyalty = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ShoppingLoyalty").msgclass - CustomerMatchUserListMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CustomerMatchUserListMetadata").msgclass - StoreSalesMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.StoreSalesMetadata").msgclass - StoreSalesThirdPartyMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.StoreSalesThirdPartyMetadata").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/policy_pb.rb b/lib/google/ads/google_ads/v12/common/policy_pb.rb deleted file mode 100644 index 82775bb96..000000000 --- a/lib/google/ads/google_ads/v12/common/policy_pb.rb +++ /dev/null @@ -1,100 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/policy.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/policy_topic_entry_type_pb' -require 'google/ads/google_ads/v12/enums/policy_topic_evidence_destination_mismatch_url_type_pb' -require 'google/ads/google_ads/v12/enums/policy_topic_evidence_destination_not_working_device_pb' -require 'google/ads/google_ads/v12/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/policy.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.PolicyViolationKey" do - proto3_optional :policy_name, :string, 3 - proto3_optional :violating_text, :string, 4 - end - add_message "google.ads.googleads.v12.common.PolicyValidationParameter" do - repeated :ignorable_policy_topics, :string, 3 - repeated :exempt_policy_violation_keys, :message, 2, "google.ads.googleads.v12.common.PolicyViolationKey" - end - add_message "google.ads.googleads.v12.common.PolicyTopicEntry" do - proto3_optional :topic, :string, 5 - optional :type, :enum, 2, "google.ads.googleads.v12.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType" - repeated :evidences, :message, 3, "google.ads.googleads.v12.common.PolicyTopicEvidence" - repeated :constraints, :message, 4, "google.ads.googleads.v12.common.PolicyTopicConstraint" - end - add_message "google.ads.googleads.v12.common.PolicyTopicEvidence" do - oneof :value do - optional :website_list, :message, 3, "google.ads.googleads.v12.common.PolicyTopicEvidence.WebsiteList" - optional :text_list, :message, 4, "google.ads.googleads.v12.common.PolicyTopicEvidence.TextList" - optional :language_code, :string, 9 - optional :destination_text_list, :message, 6, "google.ads.googleads.v12.common.PolicyTopicEvidence.DestinationTextList" - optional :destination_mismatch, :message, 7, "google.ads.googleads.v12.common.PolicyTopicEvidence.DestinationMismatch" - optional :destination_not_working, :message, 8, "google.ads.googleads.v12.common.PolicyTopicEvidence.DestinationNotWorking" - end - end - add_message "google.ads.googleads.v12.common.PolicyTopicEvidence.TextList" do - repeated :texts, :string, 2 - end - add_message "google.ads.googleads.v12.common.PolicyTopicEvidence.WebsiteList" do - repeated :websites, :string, 2 - end - add_message "google.ads.googleads.v12.common.PolicyTopicEvidence.DestinationTextList" do - repeated :destination_texts, :string, 2 - end - add_message "google.ads.googleads.v12.common.PolicyTopicEvidence.DestinationMismatch" do - repeated :url_types, :enum, 1, "google.ads.googleads.v12.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.PolicyTopicEvidenceDestinationMismatchUrlType" - end - add_message "google.ads.googleads.v12.common.PolicyTopicEvidence.DestinationNotWorking" do - proto3_optional :expanded_url, :string, 7 - optional :device, :enum, 4, "google.ads.googleads.v12.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.PolicyTopicEvidenceDestinationNotWorkingDevice" - proto3_optional :last_checked_date_time, :string, 8 - oneof :reason do - optional :dns_error_type, :enum, 1, "google.ads.googleads.v12.enums.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum.PolicyTopicEvidenceDestinationNotWorkingDnsErrorType" - optional :http_error_code, :int64, 6 - end - end - add_message "google.ads.googleads.v12.common.PolicyTopicConstraint" do - oneof :value do - optional :country_constraint_list, :message, 1, "google.ads.googleads.v12.common.PolicyTopicConstraint.CountryConstraintList" - optional :reseller_constraint, :message, 2, "google.ads.googleads.v12.common.PolicyTopicConstraint.ResellerConstraint" - optional :certificate_missing_in_country_list, :message, 3, "google.ads.googleads.v12.common.PolicyTopicConstraint.CountryConstraintList" - optional :certificate_domain_mismatch_in_country_list, :message, 4, "google.ads.googleads.v12.common.PolicyTopicConstraint.CountryConstraintList" - end - end - add_message "google.ads.googleads.v12.common.PolicyTopicConstraint.CountryConstraintList" do - proto3_optional :total_targeted_countries, :int32, 3 - repeated :countries, :message, 2, "google.ads.googleads.v12.common.PolicyTopicConstraint.CountryConstraint" - end - add_message "google.ads.googleads.v12.common.PolicyTopicConstraint.ResellerConstraint" do - end - add_message "google.ads.googleads.v12.common.PolicyTopicConstraint.CountryConstraint" do - proto3_optional :country_criterion, :string, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - PolicyViolationKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PolicyViolationKey").msgclass - PolicyValidationParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PolicyValidationParameter").msgclass - PolicyTopicEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PolicyTopicEntry").msgclass - PolicyTopicEvidence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PolicyTopicEvidence").msgclass - PolicyTopicEvidence::TextList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PolicyTopicEvidence.TextList").msgclass - PolicyTopicEvidence::WebsiteList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PolicyTopicEvidence.WebsiteList").msgclass - PolicyTopicEvidence::DestinationTextList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PolicyTopicEvidence.DestinationTextList").msgclass - PolicyTopicEvidence::DestinationMismatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PolicyTopicEvidence.DestinationMismatch").msgclass - PolicyTopicEvidence::DestinationNotWorking = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PolicyTopicEvidence.DestinationNotWorking").msgclass - PolicyTopicConstraint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PolicyTopicConstraint").msgclass - PolicyTopicConstraint::CountryConstraintList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PolicyTopicConstraint.CountryConstraintList").msgclass - PolicyTopicConstraint::ResellerConstraint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PolicyTopicConstraint.ResellerConstraint").msgclass - PolicyTopicConstraint::CountryConstraint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PolicyTopicConstraint.CountryConstraint").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/policy_summary_pb.rb b/lib/google/ads/google_ads/v12/common/policy_summary_pb.rb deleted file mode 100644 index e9d3fb1b3..000000000 --- a/lib/google/ads/google_ads/v12/common/policy_summary_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/policy_summary.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/policy_pb' -require 'google/ads/google_ads/v12/enums/policy_approval_status_pb' -require 'google/ads/google_ads/v12/enums/policy_review_status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/policy_summary.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.PolicySummary" do - repeated :policy_topic_entries, :message, 1, "google.ads.googleads.v12.common.PolicyTopicEntry" - optional :review_status, :enum, 2, "google.ads.googleads.v12.enums.PolicyReviewStatusEnum.PolicyReviewStatus" - optional :approval_status, :enum, 3, "google.ads.googleads.v12.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - PolicySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PolicySummary").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/real_time_bidding_setting_pb.rb b/lib/google/ads/google_ads/v12/common/real_time_bidding_setting_pb.rb deleted file mode 100644 index 1fd417e4a..000000000 --- a/lib/google/ads/google_ads/v12/common/real_time_bidding_setting_pb.rb +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/real_time_bidding_setting.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/real_time_bidding_setting.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.RealTimeBiddingSetting" do - proto3_optional :opt_in, :bool, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - RealTimeBiddingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.RealTimeBiddingSetting").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/segments_pb.rb b/lib/google/ads/google_ads/v12/common/segments_pb.rb deleted file mode 100644 index 908f50b99..000000000 --- a/lib/google/ads/google_ads/v12/common/segments_pb.rb +++ /dev/null @@ -1,161 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/segments.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criteria_pb' -require 'google/ads/google_ads/v12/enums/ad_destination_type_pb' -require 'google/ads/google_ads/v12/enums/ad_network_type_pb' -require 'google/ads/google_ads/v12/enums/budget_campaign_association_status_pb' -require 'google/ads/google_ads/v12/enums/click_type_pb' -require 'google/ads/google_ads/v12/enums/conversion_action_category_pb' -require 'google/ads/google_ads/v12/enums/conversion_attribution_event_type_pb' -require 'google/ads/google_ads/v12/enums/conversion_lag_bucket_pb' -require 'google/ads/google_ads/v12/enums/conversion_or_adjustment_lag_bucket_pb' -require 'google/ads/google_ads/v12/enums/conversion_value_rule_primary_dimension_pb' -require 'google/ads/google_ads/v12/enums/day_of_week_pb' -require 'google/ads/google_ads/v12/enums/device_pb' -require 'google/ads/google_ads/v12/enums/external_conversion_source_pb' -require 'google/ads/google_ads/v12/enums/hotel_date_selection_type_pb' -require 'google/ads/google_ads/v12/enums/hotel_price_bucket_pb' -require 'google/ads/google_ads/v12/enums/hotel_rate_type_pb' -require 'google/ads/google_ads/v12/enums/month_of_year_pb' -require 'google/ads/google_ads/v12/enums/placeholder_type_pb' -require 'google/ads/google_ads/v12/enums/product_channel_pb' -require 'google/ads/google_ads/v12/enums/product_channel_exclusivity_pb' -require 'google/ads/google_ads/v12/enums/product_condition_pb' -require 'google/ads/google_ads/v12/enums/recommendation_type_pb' -require 'google/ads/google_ads/v12/enums/search_engine_results_page_type_pb' -require 'google/ads/google_ads/v12/enums/search_term_match_type_pb' -require 'google/ads/google_ads/v12/enums/sk_ad_network_ad_event_type_pb' -require 'google/ads/google_ads/v12/enums/sk_ad_network_attribution_credit_pb' -require 'google/ads/google_ads/v12/enums/sk_ad_network_user_type_pb' -require 'google/ads/google_ads/v12/enums/slot_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/segments.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.Segments" do - optional :ad_destination_type, :enum, 136, "google.ads.googleads.v12.enums.AdDestinationTypeEnum.AdDestinationType" - optional :ad_network_type, :enum, 3, "google.ads.googleads.v12.enums.AdNetworkTypeEnum.AdNetworkType" - proto3_optional :auction_insight_domain, :string, 145 - optional :budget_campaign_association_status, :message, 134, "google.ads.googleads.v12.common.BudgetCampaignAssociationStatus" - optional :click_type, :enum, 26, "google.ads.googleads.v12.enums.ClickTypeEnum.ClickType" - proto3_optional :conversion_action, :string, 113 - optional :conversion_action_category, :enum, 53, "google.ads.googleads.v12.enums.ConversionActionCategoryEnum.ConversionActionCategory" - proto3_optional :conversion_action_name, :string, 114 - proto3_optional :conversion_adjustment, :bool, 115 - optional :conversion_attribution_event_type, :enum, 2, "google.ads.googleads.v12.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType" - optional :conversion_lag_bucket, :enum, 50, "google.ads.googleads.v12.enums.ConversionLagBucketEnum.ConversionLagBucket" - optional :conversion_or_adjustment_lag_bucket, :enum, 51, "google.ads.googleads.v12.enums.ConversionOrAdjustmentLagBucketEnum.ConversionOrAdjustmentLagBucket" - proto3_optional :date, :string, 79 - optional :day_of_week, :enum, 5, "google.ads.googleads.v12.enums.DayOfWeekEnum.DayOfWeek" - optional :device, :enum, 1, "google.ads.googleads.v12.enums.DeviceEnum.Device" - optional :external_conversion_source, :enum, 55, "google.ads.googleads.v12.enums.ExternalConversionSourceEnum.ExternalConversionSource" - proto3_optional :geo_target_airport, :string, 116 - proto3_optional :geo_target_canton, :string, 117 - proto3_optional :geo_target_city, :string, 118 - proto3_optional :geo_target_country, :string, 119 - proto3_optional :geo_target_county, :string, 120 - proto3_optional :geo_target_district, :string, 121 - proto3_optional :geo_target_metro, :string, 122 - proto3_optional :geo_target_most_specific_location, :string, 123 - proto3_optional :geo_target_postal_code, :string, 124 - proto3_optional :geo_target_province, :string, 125 - proto3_optional :geo_target_region, :string, 126 - proto3_optional :geo_target_state, :string, 127 - proto3_optional :hotel_booking_window_days, :int64, 135 - proto3_optional :hotel_center_id, :int64, 80 - proto3_optional :hotel_check_in_date, :string, 81 - optional :hotel_check_in_day_of_week, :enum, 9, "google.ads.googleads.v12.enums.DayOfWeekEnum.DayOfWeek" - proto3_optional :hotel_city, :string, 82 - proto3_optional :hotel_class, :int32, 83 - proto3_optional :hotel_country, :string, 84 - optional :hotel_date_selection_type, :enum, 13, "google.ads.googleads.v12.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType" - proto3_optional :hotel_length_of_stay, :int32, 85 - proto3_optional :hotel_rate_rule_id, :string, 86 - optional :hotel_rate_type, :enum, 74, "google.ads.googleads.v12.enums.HotelRateTypeEnum.HotelRateType" - optional :hotel_price_bucket, :enum, 78, "google.ads.googleads.v12.enums.HotelPriceBucketEnum.HotelPriceBucket" - proto3_optional :hotel_state, :string, 87 - proto3_optional :hour, :int32, 88 - proto3_optional :interaction_on_this_extension, :bool, 89 - optional :keyword, :message, 61, "google.ads.googleads.v12.common.Keyword" - proto3_optional :month, :string, 90 - optional :month_of_year, :enum, 18, "google.ads.googleads.v12.enums.MonthOfYearEnum.MonthOfYear" - proto3_optional :partner_hotel_id, :string, 91 - optional :placeholder_type, :enum, 20, "google.ads.googleads.v12.enums.PlaceholderTypeEnum.PlaceholderType" - proto3_optional :product_aggregator_id, :int64, 132 - proto3_optional :product_bidding_category_level1, :string, 92 - proto3_optional :product_bidding_category_level2, :string, 93 - proto3_optional :product_bidding_category_level3, :string, 94 - proto3_optional :product_bidding_category_level4, :string, 95 - proto3_optional :product_bidding_category_level5, :string, 96 - proto3_optional :product_brand, :string, 97 - optional :product_channel, :enum, 30, "google.ads.googleads.v12.enums.ProductChannelEnum.ProductChannel" - optional :product_channel_exclusivity, :enum, 31, "google.ads.googleads.v12.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity" - optional :product_condition, :enum, 32, "google.ads.googleads.v12.enums.ProductConditionEnum.ProductCondition" - proto3_optional :product_country, :string, 98 - proto3_optional :product_custom_attribute0, :string, 99 - proto3_optional :product_custom_attribute1, :string, 100 - proto3_optional :product_custom_attribute2, :string, 101 - proto3_optional :product_custom_attribute3, :string, 102 - proto3_optional :product_custom_attribute4, :string, 103 - proto3_optional :product_item_id, :string, 104 - proto3_optional :product_language, :string, 105 - proto3_optional :product_merchant_id, :int64, 133 - proto3_optional :product_store_id, :string, 106 - proto3_optional :product_title, :string, 107 - proto3_optional :product_type_l1, :string, 108 - proto3_optional :product_type_l2, :string, 109 - proto3_optional :product_type_l3, :string, 110 - proto3_optional :product_type_l4, :string, 111 - proto3_optional :product_type_l5, :string, 112 - proto3_optional :quarter, :string, 128 - optional :recommendation_type, :enum, 140, "google.ads.googleads.v12.enums.RecommendationTypeEnum.RecommendationType" - optional :search_engine_results_page_type, :enum, 70, "google.ads.googleads.v12.enums.SearchEngineResultsPageTypeEnum.SearchEngineResultsPageType" - optional :search_term_match_type, :enum, 22, "google.ads.googleads.v12.enums.SearchTermMatchTypeEnum.SearchTermMatchType" - optional :slot, :enum, 23, "google.ads.googleads.v12.enums.SlotEnum.Slot" - optional :conversion_value_rule_primary_dimension, :enum, 138, "google.ads.googleads.v12.enums.ConversionValueRulePrimaryDimensionEnum.ConversionValueRulePrimaryDimension" - proto3_optional :webpage, :string, 129 - proto3_optional :week, :string, 130 - proto3_optional :year, :int32, 131 - proto3_optional :sk_ad_network_conversion_value, :int64, 137 - optional :sk_ad_network_user_type, :enum, 141, "google.ads.googleads.v12.enums.SkAdNetworkUserTypeEnum.SkAdNetworkUserType" - optional :sk_ad_network_ad_event_type, :enum, 142, "google.ads.googleads.v12.enums.SkAdNetworkAdEventTypeEnum.SkAdNetworkAdEventType" - proto3_optional :sk_ad_network_source_app, :message, 143, "google.ads.googleads.v12.common.SkAdNetworkSourceApp" - optional :sk_ad_network_attribution_credit, :enum, 144, "google.ads.googleads.v12.enums.SkAdNetworkAttributionCreditEnum.SkAdNetworkAttributionCredit" - proto3_optional :asset_interaction_target, :message, 139, "google.ads.googleads.v12.common.AssetInteractionTarget" - end - add_message "google.ads.googleads.v12.common.Keyword" do - proto3_optional :ad_group_criterion, :string, 3 - optional :info, :message, 2, "google.ads.googleads.v12.common.KeywordInfo" - end - add_message "google.ads.googleads.v12.common.BudgetCampaignAssociationStatus" do - proto3_optional :campaign, :string, 1 - optional :status, :enum, 2, "google.ads.googleads.v12.enums.BudgetCampaignAssociationStatusEnum.BudgetCampaignAssociationStatus" - end - add_message "google.ads.googleads.v12.common.AssetInteractionTarget" do - optional :asset, :string, 1 - optional :interaction_on_this_asset, :bool, 2 - end - add_message "google.ads.googleads.v12.common.SkAdNetworkSourceApp" do - proto3_optional :sk_ad_network_source_app_id, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - Segments = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.Segments").msgclass - Keyword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.Keyword").msgclass - BudgetCampaignAssociationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.BudgetCampaignAssociationStatus").msgclass - AssetInteractionTarget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.AssetInteractionTarget").msgclass - SkAdNetworkSourceApp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.SkAdNetworkSourceApp").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/simulation_pb.rb b/lib/google/ads/google_ads/v12/common/simulation_pb.rb deleted file mode 100644 index 85dc81f3c..000000000 --- a/lib/google/ads/google_ads/v12/common/simulation_pb.rb +++ /dev/null @@ -1,151 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/simulation.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/simulation.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.BidModifierSimulationPointList" do - repeated :points, :message, 1, "google.ads.googleads.v12.common.BidModifierSimulationPoint" - end - add_message "google.ads.googleads.v12.common.CpcBidSimulationPointList" do - repeated :points, :message, 1, "google.ads.googleads.v12.common.CpcBidSimulationPoint" - end - add_message "google.ads.googleads.v12.common.CpvBidSimulationPointList" do - repeated :points, :message, 1, "google.ads.googleads.v12.common.CpvBidSimulationPoint" - end - add_message "google.ads.googleads.v12.common.TargetCpaSimulationPointList" do - repeated :points, :message, 1, "google.ads.googleads.v12.common.TargetCpaSimulationPoint" - end - add_message "google.ads.googleads.v12.common.TargetRoasSimulationPointList" do - repeated :points, :message, 1, "google.ads.googleads.v12.common.TargetRoasSimulationPoint" - end - add_message "google.ads.googleads.v12.common.PercentCpcBidSimulationPointList" do - repeated :points, :message, 1, "google.ads.googleads.v12.common.PercentCpcBidSimulationPoint" - end - add_message "google.ads.googleads.v12.common.BudgetSimulationPointList" do - repeated :points, :message, 1, "google.ads.googleads.v12.common.BudgetSimulationPoint" - end - add_message "google.ads.googleads.v12.common.TargetImpressionShareSimulationPointList" do - repeated :points, :message, 1, "google.ads.googleads.v12.common.TargetImpressionShareSimulationPoint" - end - add_message "google.ads.googleads.v12.common.BidModifierSimulationPoint" do - proto3_optional :bid_modifier, :double, 15 - proto3_optional :biddable_conversions, :double, 16 - proto3_optional :biddable_conversions_value, :double, 17 - proto3_optional :clicks, :int64, 18 - proto3_optional :cost_micros, :int64, 19 - proto3_optional :impressions, :int64, 20 - proto3_optional :top_slot_impressions, :int64, 21 - proto3_optional :parent_biddable_conversions, :double, 22 - proto3_optional :parent_biddable_conversions_value, :double, 23 - proto3_optional :parent_clicks, :int64, 24 - proto3_optional :parent_cost_micros, :int64, 25 - proto3_optional :parent_impressions, :int64, 26 - proto3_optional :parent_top_slot_impressions, :int64, 27 - proto3_optional :parent_required_budget_micros, :int64, 28 - end - add_message "google.ads.googleads.v12.common.CpcBidSimulationPoint" do - optional :required_budget_amount_micros, :int64, 17 - proto3_optional :biddable_conversions, :double, 9 - proto3_optional :biddable_conversions_value, :double, 10 - proto3_optional :clicks, :int64, 11 - proto3_optional :cost_micros, :int64, 12 - proto3_optional :impressions, :int64, 13 - proto3_optional :top_slot_impressions, :int64, 14 - oneof :cpc_simulation_key_value do - optional :cpc_bid_micros, :int64, 15 - optional :cpc_bid_scaling_modifier, :double, 16 - end - end - add_message "google.ads.googleads.v12.common.CpvBidSimulationPoint" do - proto3_optional :cpv_bid_micros, :int64, 5 - proto3_optional :cost_micros, :int64, 6 - proto3_optional :impressions, :int64, 7 - proto3_optional :views, :int64, 8 - end - add_message "google.ads.googleads.v12.common.TargetCpaSimulationPoint" do - optional :required_budget_amount_micros, :int64, 19 - proto3_optional :biddable_conversions, :double, 9 - proto3_optional :biddable_conversions_value, :double, 10 - optional :app_installs, :double, 15 - optional :in_app_actions, :double, 16 - proto3_optional :clicks, :int64, 11 - proto3_optional :cost_micros, :int64, 12 - proto3_optional :impressions, :int64, 13 - proto3_optional :top_slot_impressions, :int64, 14 - oneof :target_cpa_simulation_key_value do - optional :target_cpa_micros, :int64, 17 - optional :target_cpa_scaling_modifier, :double, 18 - end - end - add_message "google.ads.googleads.v12.common.TargetRoasSimulationPoint" do - proto3_optional :target_roas, :double, 8 - optional :required_budget_amount_micros, :int64, 15 - proto3_optional :biddable_conversions, :double, 9 - proto3_optional :biddable_conversions_value, :double, 10 - proto3_optional :clicks, :int64, 11 - proto3_optional :cost_micros, :int64, 12 - proto3_optional :impressions, :int64, 13 - proto3_optional :top_slot_impressions, :int64, 14 - end - add_message "google.ads.googleads.v12.common.PercentCpcBidSimulationPoint" do - proto3_optional :percent_cpc_bid_micros, :int64, 1 - proto3_optional :biddable_conversions, :double, 2 - proto3_optional :biddable_conversions_value, :double, 3 - proto3_optional :clicks, :int64, 4 - proto3_optional :cost_micros, :int64, 5 - proto3_optional :impressions, :int64, 6 - proto3_optional :top_slot_impressions, :int64, 7 - end - add_message "google.ads.googleads.v12.common.BudgetSimulationPoint" do - optional :budget_amount_micros, :int64, 1 - optional :required_cpc_bid_ceiling_micros, :int64, 2 - optional :biddable_conversions, :double, 3 - optional :biddable_conversions_value, :double, 4 - optional :clicks, :int64, 5 - optional :cost_micros, :int64, 6 - optional :impressions, :int64, 7 - optional :top_slot_impressions, :int64, 8 - end - add_message "google.ads.googleads.v12.common.TargetImpressionShareSimulationPoint" do - optional :target_impression_share_micros, :int64, 1 - optional :required_cpc_bid_ceiling_micros, :int64, 2 - optional :required_budget_amount_micros, :int64, 3 - optional :biddable_conversions, :double, 4 - optional :biddable_conversions_value, :double, 5 - optional :clicks, :int64, 6 - optional :cost_micros, :int64, 7 - optional :impressions, :int64, 8 - optional :top_slot_impressions, :int64, 9 - optional :absolute_top_impressions, :int64, 10 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - BidModifierSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.BidModifierSimulationPointList").msgclass - CpcBidSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CpcBidSimulationPointList").msgclass - CpvBidSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CpvBidSimulationPointList").msgclass - TargetCpaSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TargetCpaSimulationPointList").msgclass - TargetRoasSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TargetRoasSimulationPointList").msgclass - PercentCpcBidSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PercentCpcBidSimulationPointList").msgclass - BudgetSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.BudgetSimulationPointList").msgclass - TargetImpressionShareSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TargetImpressionShareSimulationPointList").msgclass - BidModifierSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.BidModifierSimulationPoint").msgclass - CpcBidSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CpcBidSimulationPoint").msgclass - CpvBidSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CpvBidSimulationPoint").msgclass - TargetCpaSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TargetCpaSimulationPoint").msgclass - TargetRoasSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TargetRoasSimulationPoint").msgclass - PercentCpcBidSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.PercentCpcBidSimulationPoint").msgclass - BudgetSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.BudgetSimulationPoint").msgclass - TargetImpressionShareSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TargetImpressionShareSimulationPoint").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/tag_snippet_pb.rb b/lib/google/ads/google_ads/v12/common/tag_snippet_pb.rb deleted file mode 100644 index 8bc956c06..000000000 --- a/lib/google/ads/google_ads/v12/common/tag_snippet_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/tag_snippet.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/tracking_code_page_format_pb' -require 'google/ads/google_ads/v12/enums/tracking_code_type_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/tag_snippet.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.TagSnippet" do - optional :type, :enum, 1, "google.ads.googleads.v12.enums.TrackingCodeTypeEnum.TrackingCodeType" - optional :page_format, :enum, 2, "google.ads.googleads.v12.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat" - proto3_optional :global_site_tag, :string, 5 - proto3_optional :event_snippet, :string, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - TagSnippet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TagSnippet").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/targeting_setting_pb.rb b/lib/google/ads/google_ads/v12/common/targeting_setting_pb.rb deleted file mode 100644 index 72afb80fd..000000000 --- a/lib/google/ads/google_ads/v12/common/targeting_setting_pb.rb +++ /dev/null @@ -1,44 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/targeting_setting.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/targeting_dimension_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/targeting_setting.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.TargetingSetting" do - repeated :target_restrictions, :message, 1, "google.ads.googleads.v12.common.TargetRestriction" - repeated :target_restriction_operations, :message, 2, "google.ads.googleads.v12.common.TargetRestrictionOperation" - end - add_message "google.ads.googleads.v12.common.TargetRestriction" do - optional :targeting_dimension, :enum, 1, "google.ads.googleads.v12.enums.TargetingDimensionEnum.TargetingDimension" - proto3_optional :bid_only, :bool, 3 - end - add_message "google.ads.googleads.v12.common.TargetRestrictionOperation" do - optional :operator, :enum, 1, "google.ads.googleads.v12.common.TargetRestrictionOperation.Operator" - optional :value, :message, 2, "google.ads.googleads.v12.common.TargetRestriction" - end - add_enum "google.ads.googleads.v12.common.TargetRestrictionOperation.Operator" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ADD, 2 - value :REMOVE, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - TargetingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TargetingSetting").msgclass - TargetRestriction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TargetRestriction").msgclass - TargetRestrictionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TargetRestrictionOperation").msgclass - TargetRestrictionOperation::Operator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TargetRestrictionOperation.Operator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/text_label_pb.rb b/lib/google/ads/google_ads/v12/common/text_label_pb.rb deleted file mode 100644 index e82b77023..000000000 --- a/lib/google/ads/google_ads/v12/common/text_label_pb.rb +++ /dev/null @@ -1,25 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/text_label.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/text_label.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.TextLabel" do - proto3_optional :background_color, :string, 3 - proto3_optional :description, :string, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - TextLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.TextLabel").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/url_collection_pb.rb b/lib/google/ads/google_ads/v12/common/url_collection_pb.rb deleted file mode 100644 index 0a65c2dc4..000000000 --- a/lib/google/ads/google_ads/v12/common/url_collection_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/url_collection.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/url_collection.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.UrlCollection" do - proto3_optional :url_collection_id, :string, 5 - repeated :final_urls, :string, 6 - repeated :final_mobile_urls, :string, 7 - proto3_optional :tracking_url_template, :string, 8 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - UrlCollection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UrlCollection").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/user_lists_pb.rb b/lib/google/ads/google_ads/v12/common/user_lists_pb.rb deleted file mode 100644 index 1fa74d397..000000000 --- a/lib/google/ads/google_ads/v12/common/user_lists_pb.rb +++ /dev/null @@ -1,129 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/user_lists.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/customer_match_upload_key_type_pb' -require 'google/ads/google_ads/v12/enums/user_list_combined_rule_operator_pb' -require 'google/ads/google_ads/v12/enums/user_list_crm_data_source_type_pb' -require 'google/ads/google_ads/v12/enums/user_list_date_rule_item_operator_pb' -require 'google/ads/google_ads/v12/enums/user_list_flexible_rule_operator_pb' -require 'google/ads/google_ads/v12/enums/user_list_logical_rule_operator_pb' -require 'google/ads/google_ads/v12/enums/user_list_number_rule_item_operator_pb' -require 'google/ads/google_ads/v12/enums/user_list_prepopulation_status_pb' -require 'google/ads/google_ads/v12/enums/user_list_rule_type_pb' -require 'google/ads/google_ads/v12/enums/user_list_string_rule_item_operator_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/user_lists.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.SimilarUserListInfo" do - proto3_optional :seed_user_list, :string, 2 - end - add_message "google.ads.googleads.v12.common.CrmBasedUserListInfo" do - proto3_optional :app_id, :string, 4 - optional :upload_key_type, :enum, 2, "google.ads.googleads.v12.enums.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType" - optional :data_source_type, :enum, 3, "google.ads.googleads.v12.enums.UserListCrmDataSourceTypeEnum.UserListCrmDataSourceType" - end - add_message "google.ads.googleads.v12.common.UserListRuleInfo" do - optional :rule_type, :enum, 1, "google.ads.googleads.v12.enums.UserListRuleTypeEnum.UserListRuleType" - repeated :rule_item_groups, :message, 2, "google.ads.googleads.v12.common.UserListRuleItemGroupInfo" - end - add_message "google.ads.googleads.v12.common.UserListRuleItemGroupInfo" do - repeated :rule_items, :message, 1, "google.ads.googleads.v12.common.UserListRuleItemInfo" - end - add_message "google.ads.googleads.v12.common.UserListRuleItemInfo" do - proto3_optional :name, :string, 5 - oneof :rule_item do - optional :number_rule_item, :message, 2, "google.ads.googleads.v12.common.UserListNumberRuleItemInfo" - optional :string_rule_item, :message, 3, "google.ads.googleads.v12.common.UserListStringRuleItemInfo" - optional :date_rule_item, :message, 4, "google.ads.googleads.v12.common.UserListDateRuleItemInfo" - end - end - add_message "google.ads.googleads.v12.common.UserListDateRuleItemInfo" do - optional :operator, :enum, 1, "google.ads.googleads.v12.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator" - proto3_optional :value, :string, 4 - proto3_optional :offset_in_days, :int64, 5 - end - add_message "google.ads.googleads.v12.common.UserListNumberRuleItemInfo" do - optional :operator, :enum, 1, "google.ads.googleads.v12.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator" - proto3_optional :value, :double, 3 - end - add_message "google.ads.googleads.v12.common.UserListStringRuleItemInfo" do - optional :operator, :enum, 1, "google.ads.googleads.v12.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator" - proto3_optional :value, :string, 3 - end - add_message "google.ads.googleads.v12.common.CombinedRuleUserListInfo" do - optional :left_operand, :message, 1, "google.ads.googleads.v12.common.UserListRuleInfo" - optional :right_operand, :message, 2, "google.ads.googleads.v12.common.UserListRuleInfo" - optional :rule_operator, :enum, 3, "google.ads.googleads.v12.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator" - end - add_message "google.ads.googleads.v12.common.ExpressionRuleUserListInfo" do - optional :rule, :message, 1, "google.ads.googleads.v12.common.UserListRuleInfo" - end - add_message "google.ads.googleads.v12.common.FlexibleRuleOperandInfo" do - optional :rule, :message, 1, "google.ads.googleads.v12.common.UserListRuleInfo" - proto3_optional :lookback_window_days, :int64, 2 - end - add_message "google.ads.googleads.v12.common.FlexibleRuleUserListInfo" do - optional :inclusive_rule_operator, :enum, 1, "google.ads.googleads.v12.enums.UserListFlexibleRuleOperatorEnum.UserListFlexibleRuleOperator" - repeated :inclusive_operands, :message, 2, "google.ads.googleads.v12.common.FlexibleRuleOperandInfo" - repeated :exclusive_operands, :message, 3, "google.ads.googleads.v12.common.FlexibleRuleOperandInfo" - end - add_message "google.ads.googleads.v12.common.RuleBasedUserListInfo" do - optional :prepopulation_status, :enum, 1, "google.ads.googleads.v12.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus" - optional :flexible_rule_user_list, :message, 5, "google.ads.googleads.v12.common.FlexibleRuleUserListInfo" - oneof :rule_based_user_list do - optional :combined_rule_user_list, :message, 2, "google.ads.googleads.v12.common.CombinedRuleUserListInfo" - optional :expression_rule_user_list, :message, 4, "google.ads.googleads.v12.common.ExpressionRuleUserListInfo" - end - end - add_message "google.ads.googleads.v12.common.LogicalUserListInfo" do - repeated :rules, :message, 1, "google.ads.googleads.v12.common.UserListLogicalRuleInfo" - end - add_message "google.ads.googleads.v12.common.UserListLogicalRuleInfo" do - optional :operator, :enum, 1, "google.ads.googleads.v12.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator" - repeated :rule_operands, :message, 2, "google.ads.googleads.v12.common.LogicalUserListOperandInfo" - end - add_message "google.ads.googleads.v12.common.LogicalUserListOperandInfo" do - proto3_optional :user_list, :string, 2 - end - add_message "google.ads.googleads.v12.common.BasicUserListInfo" do - repeated :actions, :message, 1, "google.ads.googleads.v12.common.UserListActionInfo" - end - add_message "google.ads.googleads.v12.common.UserListActionInfo" do - oneof :user_list_action do - optional :conversion_action, :string, 3 - optional :remarketing_action, :string, 4 - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - SimilarUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.SimilarUserListInfo").msgclass - CrmBasedUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CrmBasedUserListInfo").msgclass - UserListRuleInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UserListRuleInfo").msgclass - UserListRuleItemGroupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UserListRuleItemGroupInfo").msgclass - UserListRuleItemInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UserListRuleItemInfo").msgclass - UserListDateRuleItemInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UserListDateRuleItemInfo").msgclass - UserListNumberRuleItemInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UserListNumberRuleItemInfo").msgclass - UserListStringRuleItemInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UserListStringRuleItemInfo").msgclass - CombinedRuleUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.CombinedRuleUserListInfo").msgclass - ExpressionRuleUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.ExpressionRuleUserListInfo").msgclass - FlexibleRuleOperandInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.FlexibleRuleOperandInfo").msgclass - FlexibleRuleUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.FlexibleRuleUserListInfo").msgclass - RuleBasedUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.RuleBasedUserListInfo").msgclass - LogicalUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LogicalUserListInfo").msgclass - UserListLogicalRuleInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UserListLogicalRuleInfo").msgclass - LogicalUserListOperandInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.LogicalUserListOperandInfo").msgclass - BasicUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.BasicUserListInfo").msgclass - UserListActionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.UserListActionInfo").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/common/value_pb.rb b/lib/google/ads/google_ads/v12/common/value_pb.rb deleted file mode 100644 index 46bc1ede9..000000000 --- a/lib/google/ads/google_ads/v12/common/value_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/common/value.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/common/value.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.common.Value" do - oneof :value do - optional :boolean_value, :bool, 1 - optional :int64_value, :int64, 2 - optional :float_value, :float, 3 - optional :double_value, :double, 4 - optional :string_value, :string, 5 - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Common - Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.common.Value").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/access_invitation_status_pb.rb b/lib/google/ads/google_ads/v12/enums/access_invitation_status_pb.rb deleted file mode 100644 index 261602dfa..000000000 --- a/lib/google/ads/google_ads/v12/enums/access_invitation_status_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/access_invitation_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/access_invitation_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AccessInvitationStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.AccessInvitationStatusEnum.AccessInvitationStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PENDING, 2 - value :DECLINED, 3 - value :EXPIRED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AccessInvitationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AccessInvitationStatusEnum").msgclass - AccessInvitationStatusEnum::AccessInvitationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AccessInvitationStatusEnum.AccessInvitationStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/access_reason_pb.rb b/lib/google/ads/google_ads/v12/enums/access_reason_pb.rb deleted file mode 100644 index 71b58f69b..000000000 --- a/lib/google/ads/google_ads/v12/enums/access_reason_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/access_reason.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/access_reason.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AccessReasonEnum" do - end - add_enum "google.ads.googleads.v12.enums.AccessReasonEnum.AccessReason" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :OWNED, 2 - value :SHARED, 3 - value :LICENSED, 4 - value :SUBSCRIBED, 5 - value :AFFILIATED, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AccessReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AccessReasonEnum").msgclass - AccessReasonEnum::AccessReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AccessReasonEnum.AccessReason").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/access_role_pb.rb b/lib/google/ads/google_ads/v12/enums/access_role_pb.rb deleted file mode 100644 index 62a3e820f..000000000 --- a/lib/google/ads/google_ads/v12/enums/access_role_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/access_role.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/access_role.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AccessRoleEnum" do - end - add_enum "google.ads.googleads.v12.enums.AccessRoleEnum.AccessRole" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ADMIN, 2 - value :STANDARD, 3 - value :READ_ONLY, 4 - value :EMAIL_ONLY, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AccessRoleEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AccessRoleEnum").msgclass - AccessRoleEnum::AccessRole = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AccessRoleEnum.AccessRole").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/account_budget_proposal_status_pb.rb b/lib/google/ads/google_ads/v12/enums/account_budget_proposal_status_pb.rb deleted file mode 100644 index e0f20fcd7..000000000 --- a/lib/google/ads/google_ads/v12/enums/account_budget_proposal_status_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/account_budget_proposal_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/account_budget_proposal_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AccountBudgetProposalStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PENDING, 2 - value :APPROVED_HELD, 3 - value :APPROVED, 4 - value :CANCELLED, 5 - value :REJECTED, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AccountBudgetProposalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AccountBudgetProposalStatusEnum").msgclass - AccountBudgetProposalStatusEnum::AccountBudgetProposalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/account_budget_proposal_type_pb.rb b/lib/google/ads/google_ads/v12/enums/account_budget_proposal_type_pb.rb deleted file mode 100644 index 410732f5a..000000000 --- a/lib/google/ads/google_ads/v12/enums/account_budget_proposal_type_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/account_budget_proposal_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/account_budget_proposal_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AccountBudgetProposalTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CREATE, 2 - value :UPDATE, 3 - value :END, 4 - value :REMOVE, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AccountBudgetProposalTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AccountBudgetProposalTypeEnum").msgclass - AccountBudgetProposalTypeEnum::AccountBudgetProposalType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/account_budget_status_pb.rb b/lib/google/ads/google_ads/v12/enums/account_budget_status_pb.rb deleted file mode 100644 index c61f00b42..000000000 --- a/lib/google/ads/google_ads/v12/enums/account_budget_status_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/account_budget_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/account_budget_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AccountBudgetStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.AccountBudgetStatusEnum.AccountBudgetStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PENDING, 2 - value :APPROVED, 3 - value :CANCELLED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AccountBudgetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AccountBudgetStatusEnum").msgclass - AccountBudgetStatusEnum::AccountBudgetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AccountBudgetStatusEnum.AccountBudgetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/account_link_status_pb.rb b/lib/google/ads/google_ads/v12/enums/account_link_status_pb.rb deleted file mode 100644 index 517e5f73b..000000000 --- a/lib/google/ads/google_ads/v12/enums/account_link_status_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/account_link_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/account_link_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AccountLinkStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.AccountLinkStatusEnum.AccountLinkStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - value :REQUESTED, 4 - value :PENDING_APPROVAL, 5 - value :REJECTED, 6 - value :REVOKED, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AccountLinkStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AccountLinkStatusEnum").msgclass - AccountLinkStatusEnum::AccountLinkStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AccountLinkStatusEnum.AccountLinkStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/ad_customizer_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/ad_customizer_placeholder_field_pb.rb deleted file mode 100644 index 79d41fae4..000000000 --- a/lib/google/ads/google_ads/v12/enums/ad_customizer_placeholder_field_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/ad_customizer_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/ad_customizer_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AdCustomizerPlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.AdCustomizerPlaceholderFieldEnum.AdCustomizerPlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INTEGER, 2 - value :PRICE, 3 - value :DATE, 4 - value :STRING, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AdCustomizerPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdCustomizerPlaceholderFieldEnum").msgclass - AdCustomizerPlaceholderFieldEnum::AdCustomizerPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdCustomizerPlaceholderFieldEnum.AdCustomizerPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/ad_destination_type_pb.rb b/lib/google/ads/google_ads/v12/enums/ad_destination_type_pb.rb deleted file mode 100644 index ffb6fcbd9..000000000 --- a/lib/google/ads/google_ads/v12/enums/ad_destination_type_pb.rb +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/ad_destination_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/ad_destination_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AdDestinationTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.AdDestinationTypeEnum.AdDestinationType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NOT_APPLICABLE, 2 - value :WEBSITE, 3 - value :APP_DEEP_LINK, 4 - value :APP_STORE, 5 - value :PHONE_CALL, 6 - value :MAP_DIRECTIONS, 7 - value :LOCATION_LISTING, 8 - value :MESSAGE, 9 - value :LEAD_FORM, 10 - value :YOUTUBE, 11 - value :UNMODELED_FOR_CONVERSIONS, 12 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AdDestinationTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdDestinationTypeEnum").msgclass - AdDestinationTypeEnum::AdDestinationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdDestinationTypeEnum.AdDestinationType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/ad_group_ad_rotation_mode_pb.rb b/lib/google/ads/google_ads/v12/enums/ad_group_ad_rotation_mode_pb.rb deleted file mode 100644 index 23668175c..000000000 --- a/lib/google/ads/google_ads/v12/enums/ad_group_ad_rotation_mode_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/ad_group_ad_rotation_mode.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/ad_group_ad_rotation_mode.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AdGroupAdRotationModeEnum" do - end - add_enum "google.ads.googleads.v12.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :OPTIMIZE, 2 - value :ROTATE_FOREVER, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AdGroupAdRotationModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdGroupAdRotationModeEnum").msgclass - AdGroupAdRotationModeEnum::AdGroupAdRotationMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/ad_group_ad_status_pb.rb b/lib/google/ads/google_ads/v12/enums/ad_group_ad_status_pb.rb deleted file mode 100644 index 1e862b469..000000000 --- a/lib/google/ads/google_ads/v12/enums/ad_group_ad_status_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/ad_group_ad_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/ad_group_ad_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AdGroupAdStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.AdGroupAdStatusEnum.AdGroupAdStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :PAUSED, 3 - value :REMOVED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AdGroupAdStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdGroupAdStatusEnum").msgclass - AdGroupAdStatusEnum::AdGroupAdStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdGroupAdStatusEnum.AdGroupAdStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/ad_group_criterion_approval_status_pb.rb b/lib/google/ads/google_ads/v12/enums/ad_group_criterion_approval_status_pb.rb deleted file mode 100644 index 9f8d64b58..000000000 --- a/lib/google/ads/google_ads/v12/enums/ad_group_criterion_approval_status_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/ad_group_criterion_approval_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/ad_group_criterion_approval_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AdGroupCriterionApprovalStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :APPROVED, 2 - value :DISAPPROVED, 3 - value :PENDING_REVIEW, 4 - value :UNDER_REVIEW, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AdGroupCriterionApprovalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdGroupCriterionApprovalStatusEnum").msgclass - AdGroupCriterionApprovalStatusEnum::AdGroupCriterionApprovalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/ad_group_criterion_status_pb.rb b/lib/google/ads/google_ads/v12/enums/ad_group_criterion_status_pb.rb deleted file mode 100644 index 8d196d410..000000000 --- a/lib/google/ads/google_ads/v12/enums/ad_group_criterion_status_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/ad_group_criterion_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/ad_group_criterion_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AdGroupCriterionStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :PAUSED, 3 - value :REMOVED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AdGroupCriterionStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdGroupCriterionStatusEnum").msgclass - AdGroupCriterionStatusEnum::AdGroupCriterionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/ad_group_status_pb.rb b/lib/google/ads/google_ads/v12/enums/ad_group_status_pb.rb deleted file mode 100644 index d8e6cec2e..000000000 --- a/lib/google/ads/google_ads/v12/enums/ad_group_status_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/ad_group_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/ad_group_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AdGroupStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.AdGroupStatusEnum.AdGroupStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :PAUSED, 3 - value :REMOVED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AdGroupStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdGroupStatusEnum").msgclass - AdGroupStatusEnum::AdGroupStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdGroupStatusEnum.AdGroupStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/ad_group_type_pb.rb b/lib/google/ads/google_ads/v12/enums/ad_group_type_pb.rb deleted file mode 100644 index 560610eea..000000000 --- a/lib/google/ads/google_ads/v12/enums/ad_group_type_pb.rb +++ /dev/null @@ -1,44 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/ad_group_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/ad_group_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AdGroupTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.AdGroupTypeEnum.AdGroupType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :SEARCH_STANDARD, 2 - value :DISPLAY_STANDARD, 3 - value :SHOPPING_PRODUCT_ADS, 4 - value :HOTEL_ADS, 6 - value :SHOPPING_SMART_ADS, 7 - value :VIDEO_BUMPER, 8 - value :VIDEO_TRUE_VIEW_IN_STREAM, 9 - value :VIDEO_TRUE_VIEW_IN_DISPLAY, 10 - value :VIDEO_NON_SKIPPABLE_IN_STREAM, 11 - value :VIDEO_OUTSTREAM, 12 - value :SEARCH_DYNAMIC_ADS, 13 - value :SHOPPING_COMPARISON_LISTING_ADS, 14 - value :PROMOTED_HOTEL_ADS, 15 - value :VIDEO_RESPONSIVE, 16 - value :VIDEO_EFFICIENT_REACH, 17 - value :SMART_CAMPAIGN_ADS, 18 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AdGroupTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdGroupTypeEnum").msgclass - AdGroupTypeEnum::AdGroupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdGroupTypeEnum.AdGroupType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/ad_network_type_pb.rb b/lib/google/ads/google_ads/v12/enums/ad_network_type_pb.rb deleted file mode 100644 index 66a5d3ea9..000000000 --- a/lib/google/ads/google_ads/v12/enums/ad_network_type_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/ad_network_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/ad_network_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AdNetworkTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.AdNetworkTypeEnum.AdNetworkType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :SEARCH, 2 - value :SEARCH_PARTNERS, 3 - value :CONTENT, 4 - value :YOUTUBE_SEARCH, 5 - value :YOUTUBE_WATCH, 6 - value :MIXED, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AdNetworkTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdNetworkTypeEnum").msgclass - AdNetworkTypeEnum::AdNetworkType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdNetworkTypeEnum.AdNetworkType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/ad_serving_optimization_status_pb.rb b/lib/google/ads/google_ads/v12/enums/ad_serving_optimization_status_pb.rb deleted file mode 100644 index 95edb16d9..000000000 --- a/lib/google/ads/google_ads/v12/enums/ad_serving_optimization_status_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/ad_serving_optimization_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/ad_serving_optimization_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AdServingOptimizationStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :OPTIMIZE, 2 - value :CONVERSION_OPTIMIZE, 3 - value :ROTATE, 4 - value :ROTATE_INDEFINITELY, 5 - value :UNAVAILABLE, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AdServingOptimizationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdServingOptimizationStatusEnum").msgclass - AdServingOptimizationStatusEnum::AdServingOptimizationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/ad_strength_pb.rb b/lib/google/ads/google_ads/v12/enums/ad_strength_pb.rb deleted file mode 100644 index 0edd33277..000000000 --- a/lib/google/ads/google_ads/v12/enums/ad_strength_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/ad_strength.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/ad_strength.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AdStrengthEnum" do - end - add_enum "google.ads.googleads.v12.enums.AdStrengthEnum.AdStrength" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PENDING, 2 - value :NO_ADS, 3 - value :POOR, 4 - value :AVERAGE, 5 - value :GOOD, 6 - value :EXCELLENT, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AdStrengthEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdStrengthEnum").msgclass - AdStrengthEnum::AdStrength = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdStrengthEnum.AdStrength").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/ad_type_pb.rb b/lib/google/ads/google_ads/v12/enums/ad_type_pb.rb deleted file mode 100644 index e96bd7480..000000000 --- a/lib/google/ads/google_ads/v12/enums/ad_type_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/ad_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/ad_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AdTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.AdTypeEnum.AdType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :TEXT_AD, 2 - value :EXPANDED_TEXT_AD, 3 - value :EXPANDED_DYNAMIC_SEARCH_AD, 7 - value :HOTEL_AD, 8 - value :SHOPPING_SMART_AD, 9 - value :SHOPPING_PRODUCT_AD, 10 - value :VIDEO_AD, 12 - value :IMAGE_AD, 14 - value :RESPONSIVE_SEARCH_AD, 15 - value :LEGACY_RESPONSIVE_DISPLAY_AD, 16 - value :APP_AD, 17 - value :LEGACY_APP_INSTALL_AD, 18 - value :RESPONSIVE_DISPLAY_AD, 19 - value :LOCAL_AD, 20 - value :HTML5_UPLOAD_AD, 21 - value :DYNAMIC_HTML5_AD, 22 - value :APP_ENGAGEMENT_AD, 23 - value :SHOPPING_COMPARISON_LISTING_AD, 24 - value :VIDEO_BUMPER_AD, 25 - value :VIDEO_NON_SKIPPABLE_IN_STREAM_AD, 26 - value :VIDEO_OUTSTREAM_AD, 27 - value :VIDEO_TRUEVIEW_IN_STREAM_AD, 29 - value :VIDEO_RESPONSIVE_AD, 30 - value :SMART_CAMPAIGN_AD, 31 - value :CALL_AD, 32 - value :APP_PRE_REGISTRATION_AD, 33 - value :IN_FEED_VIDEO_AD, 34 - value :DISCOVERY_MULTI_ASSET_AD, 35 - value :DISCOVERY_CAROUSEL_AD, 36 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AdTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdTypeEnum").msgclass - AdTypeEnum::AdType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdTypeEnum.AdType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/advertising_channel_sub_type_pb.rb b/lib/google/ads/google_ads/v12/enums/advertising_channel_sub_type_pb.rb deleted file mode 100644 index 11977b8d9..000000000 --- a/lib/google/ads/google_ads/v12/enums/advertising_channel_sub_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/advertising_channel_sub_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/advertising_channel_sub_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AdvertisingChannelSubTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :SEARCH_MOBILE_APP, 2 - value :DISPLAY_MOBILE_APP, 3 - value :SEARCH_EXPRESS, 4 - value :DISPLAY_EXPRESS, 5 - value :SHOPPING_SMART_ADS, 6 - value :DISPLAY_GMAIL_AD, 7 - value :DISPLAY_SMART_CAMPAIGN, 8 - value :VIDEO_OUTSTREAM, 9 - value :VIDEO_ACTION, 10 - value :VIDEO_NON_SKIPPABLE, 11 - value :APP_CAMPAIGN, 12 - value :APP_CAMPAIGN_FOR_ENGAGEMENT, 13 - value :LOCAL_CAMPAIGN, 14 - value :SHOPPING_COMPARISON_LISTING_ADS, 15 - value :SMART_CAMPAIGN, 16 - value :VIDEO_SEQUENCE, 17 - value :APP_CAMPAIGN_FOR_PRE_REGISTRATION, 18 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AdvertisingChannelSubTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdvertisingChannelSubTypeEnum").msgclass - AdvertisingChannelSubTypeEnum::AdvertisingChannelSubType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/advertising_channel_type_pb.rb b/lib/google/ads/google_ads/v12/enums/advertising_channel_type_pb.rb deleted file mode 100644 index 07f95ab69..000000000 --- a/lib/google/ads/google_ads/v12/enums/advertising_channel_type_pb.rb +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/advertising_channel_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/advertising_channel_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AdvertisingChannelTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :SEARCH, 2 - value :DISPLAY, 3 - value :SHOPPING, 4 - value :HOTEL, 5 - value :VIDEO, 6 - value :MULTI_CHANNEL, 7 - value :LOCAL, 8 - value :SMART, 9 - value :PERFORMANCE_MAX, 10 - value :LOCAL_SERVICES, 11 - value :DISCOVERY, 12 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AdvertisingChannelTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdvertisingChannelTypeEnum").msgclass - AdvertisingChannelTypeEnum::AdvertisingChannelType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/affiliate_location_feed_relationship_type_pb.rb b/lib/google/ads/google_ads/v12/enums/affiliate_location_feed_relationship_type_pb.rb deleted file mode 100644 index a60c091ad..000000000 --- a/lib/google/ads/google_ads/v12/enums/affiliate_location_feed_relationship_type_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/affiliate_location_feed_relationship_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/affiliate_location_feed_relationship_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AffiliateLocationFeedRelationshipTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :GENERAL_RETAILER, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AffiliateLocationFeedRelationshipTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AffiliateLocationFeedRelationshipTypeEnum").msgclass - AffiliateLocationFeedRelationshipTypeEnum::AffiliateLocationFeedRelationshipType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/affiliate_location_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/affiliate_location_placeholder_field_pb.rb deleted file mode 100644 index f5467ef1c..000000000 --- a/lib/google/ads/google_ads/v12/enums/affiliate_location_placeholder_field_pb.rb +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/affiliate_location_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/affiliate_location_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AffiliateLocationPlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.AffiliateLocationPlaceholderFieldEnum.AffiliateLocationPlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :BUSINESS_NAME, 2 - value :ADDRESS_LINE_1, 3 - value :ADDRESS_LINE_2, 4 - value :CITY, 5 - value :PROVINCE, 6 - value :POSTAL_CODE, 7 - value :COUNTRY_CODE, 8 - value :PHONE_NUMBER, 9 - value :LANGUAGE_CODE, 10 - value :CHAIN_ID, 11 - value :CHAIN_NAME, 12 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AffiliateLocationPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AffiliateLocationPlaceholderFieldEnum").msgclass - AffiliateLocationPlaceholderFieldEnum::AffiliateLocationPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AffiliateLocationPlaceholderFieldEnum.AffiliateLocationPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/age_range_type_pb.rb b/lib/google/ads/google_ads/v12/enums/age_range_type_pb.rb deleted file mode 100644 index 4c6fa0767..000000000 --- a/lib/google/ads/google_ads/v12/enums/age_range_type_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/age_range_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/age_range_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AgeRangeTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.AgeRangeTypeEnum.AgeRangeType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AGE_RANGE_18_24, 503001 - value :AGE_RANGE_25_34, 503002 - value :AGE_RANGE_35_44, 503003 - value :AGE_RANGE_45_54, 503004 - value :AGE_RANGE_55_64, 503005 - value :AGE_RANGE_65_UP, 503006 - value :AGE_RANGE_UNDETERMINED, 503999 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AgeRangeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AgeRangeTypeEnum").msgclass - AgeRangeTypeEnum::AgeRangeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AgeRangeTypeEnum.AgeRangeType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/app_campaign_app_store_pb.rb b/lib/google/ads/google_ads/v12/enums/app_campaign_app_store_pb.rb deleted file mode 100644 index 04663aa98..000000000 --- a/lib/google/ads/google_ads/v12/enums/app_campaign_app_store_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/app_campaign_app_store.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/app_campaign_app_store.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AppCampaignAppStoreEnum" do - end - add_enum "google.ads.googleads.v12.enums.AppCampaignAppStoreEnum.AppCampaignAppStore" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :APPLE_APP_STORE, 2 - value :GOOGLE_APP_STORE, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AppCampaignAppStoreEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AppCampaignAppStoreEnum").msgclass - AppCampaignAppStoreEnum::AppCampaignAppStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AppCampaignAppStoreEnum.AppCampaignAppStore").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/app_campaign_bidding_strategy_goal_type_pb.rb b/lib/google/ads/google_ads/v12/enums/app_campaign_bidding_strategy_goal_type_pb.rb deleted file mode 100644 index 6cb483520..000000000 --- a/lib/google/ads/google_ads/v12/enums/app_campaign_bidding_strategy_goal_type_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/app_campaign_bidding_strategy_goal_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/app_campaign_bidding_strategy_goal_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AppCampaignBiddingStrategyGoalTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :OPTIMIZE_INSTALLS_TARGET_INSTALL_COST, 2 - value :OPTIMIZE_IN_APP_CONVERSIONS_TARGET_INSTALL_COST, 3 - value :OPTIMIZE_IN_APP_CONVERSIONS_TARGET_CONVERSION_COST, 4 - value :OPTIMIZE_RETURN_ON_ADVERTISING_SPEND, 5 - value :OPTIMIZE_PRE_REGISTRATION_CONVERSION_VOLUME, 6 - value :OPTIMIZE_INSTALLS_WITHOUT_TARGET_INSTALL_COST, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AppCampaignBiddingStrategyGoalTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AppCampaignBiddingStrategyGoalTypeEnum").msgclass - AppCampaignBiddingStrategyGoalTypeEnum::AppCampaignBiddingStrategyGoalType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/app_payment_model_type_pb.rb b/lib/google/ads/google_ads/v12/enums/app_payment_model_type_pb.rb deleted file mode 100644 index 82d1a12a9..000000000 --- a/lib/google/ads/google_ads/v12/enums/app_payment_model_type_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/app_payment_model_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/app_payment_model_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AppPaymentModelTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.AppPaymentModelTypeEnum.AppPaymentModelType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PAID, 30 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AppPaymentModelTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AppPaymentModelTypeEnum").msgclass - AppPaymentModelTypeEnum::AppPaymentModelType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AppPaymentModelTypeEnum.AppPaymentModelType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/app_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/app_placeholder_field_pb.rb deleted file mode 100644 index 9d110d8ae..000000000 --- a/lib/google/ads/google_ads/v12/enums/app_placeholder_field_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/app_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/app_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AppPlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.AppPlaceholderFieldEnum.AppPlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :STORE, 2 - value :ID, 3 - value :LINK_TEXT, 4 - value :URL, 5 - value :FINAL_URLS, 6 - value :FINAL_MOBILE_URLS, 7 - value :TRACKING_URL, 8 - value :FINAL_URL_SUFFIX, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AppPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AppPlaceholderFieldEnum").msgclass - AppPlaceholderFieldEnum::AppPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AppPlaceholderFieldEnum.AppPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/app_store_pb.rb b/lib/google/ads/google_ads/v12/enums/app_store_pb.rb deleted file mode 100644 index 58d6edc20..000000000 --- a/lib/google/ads/google_ads/v12/enums/app_store_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/app_store.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/app_store.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AppStoreEnum" do - end - add_enum "google.ads.googleads.v12.enums.AppStoreEnum.AppStore" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :APPLE_ITUNES, 2 - value :GOOGLE_PLAY, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AppStoreEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AppStoreEnum").msgclass - AppStoreEnum::AppStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AppStoreEnum.AppStore").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/app_url_operating_system_type_pb.rb b/lib/google/ads/google_ads/v12/enums/app_url_operating_system_type_pb.rb deleted file mode 100644 index 8d1c5c306..000000000 --- a/lib/google/ads/google_ads/v12/enums/app_url_operating_system_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/app_url_operating_system_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/app_url_operating_system_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AppUrlOperatingSystemTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.AppUrlOperatingSystemTypeEnum.AppUrlOperatingSystemType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :IOS, 2 - value :ANDROID, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AppUrlOperatingSystemTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AppUrlOperatingSystemTypeEnum").msgclass - AppUrlOperatingSystemTypeEnum::AppUrlOperatingSystemType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AppUrlOperatingSystemTypeEnum.AppUrlOperatingSystemType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/asset_field_type_pb.rb b/lib/google/ads/google_ads/v12/enums/asset_field_type_pb.rb deleted file mode 100644 index 9526a1fb3..000000000 --- a/lib/google/ads/google_ads/v12/enums/asset_field_type_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/asset_field_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/asset_field_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AssetFieldTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.AssetFieldTypeEnum.AssetFieldType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :HEADLINE, 2 - value :DESCRIPTION, 3 - value :MANDATORY_AD_TEXT, 4 - value :MARKETING_IMAGE, 5 - value :MEDIA_BUNDLE, 6 - value :YOUTUBE_VIDEO, 7 - value :BOOK_ON_GOOGLE, 8 - value :LEAD_FORM, 9 - value :PROMOTION, 10 - value :CALLOUT, 11 - value :STRUCTURED_SNIPPET, 12 - value :SITELINK, 13 - value :MOBILE_APP, 14 - value :HOTEL_CALLOUT, 15 - value :CALL, 16 - value :PRICE, 24 - value :LONG_HEADLINE, 17 - value :BUSINESS_NAME, 18 - value :SQUARE_MARKETING_IMAGE, 19 - value :PORTRAIT_MARKETING_IMAGE, 20 - value :LOGO, 21 - value :LANDSCAPE_LOGO, 22 - value :VIDEO, 23 - value :CALL_TO_ACTION_SELECTION, 25 - value :AD_IMAGE, 26 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AssetFieldTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetFieldTypeEnum").msgclass - AssetFieldTypeEnum::AssetFieldType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetFieldTypeEnum.AssetFieldType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/asset_group_status_pb.rb b/lib/google/ads/google_ads/v12/enums/asset_group_status_pb.rb deleted file mode 100644 index 322215872..000000000 --- a/lib/google/ads/google_ads/v12/enums/asset_group_status_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/asset_group_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/asset_group_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AssetGroupStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.AssetGroupStatusEnum.AssetGroupStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :PAUSED, 3 - value :REMOVED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AssetGroupStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetGroupStatusEnum").msgclass - AssetGroupStatusEnum::AssetGroupStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetGroupStatusEnum.AssetGroupStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/asset_link_status_pb.rb b/lib/google/ads/google_ads/v12/enums/asset_link_status_pb.rb deleted file mode 100644 index b9ecbc419..000000000 --- a/lib/google/ads/google_ads/v12/enums/asset_link_status_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/asset_link_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/asset_link_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AssetLinkStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.AssetLinkStatusEnum.AssetLinkStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - value :PAUSED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AssetLinkStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetLinkStatusEnum").msgclass - AssetLinkStatusEnum::AssetLinkStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetLinkStatusEnum.AssetLinkStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/asset_performance_label_pb.rb b/lib/google/ads/google_ads/v12/enums/asset_performance_label_pb.rb deleted file mode 100644 index 39a1c11b8..000000000 --- a/lib/google/ads/google_ads/v12/enums/asset_performance_label_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/asset_performance_label.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/asset_performance_label.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AssetPerformanceLabelEnum" do - end - add_enum "google.ads.googleads.v12.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PENDING, 2 - value :LEARNING, 3 - value :LOW, 4 - value :GOOD, 5 - value :BEST, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AssetPerformanceLabelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetPerformanceLabelEnum").msgclass - AssetPerformanceLabelEnum::AssetPerformanceLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/asset_set_asset_status_pb.rb b/lib/google/ads/google_ads/v12/enums/asset_set_asset_status_pb.rb deleted file mode 100644 index 024eea900..000000000 --- a/lib/google/ads/google_ads/v12/enums/asset_set_asset_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/asset_set_asset_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/asset_set_asset_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AssetSetAssetStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.AssetSetAssetStatusEnum.AssetSetAssetStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AssetSetAssetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetSetAssetStatusEnum").msgclass - AssetSetAssetStatusEnum::AssetSetAssetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetSetAssetStatusEnum.AssetSetAssetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/asset_set_link_status_pb.rb b/lib/google/ads/google_ads/v12/enums/asset_set_link_status_pb.rb deleted file mode 100644 index 759714526..000000000 --- a/lib/google/ads/google_ads/v12/enums/asset_set_link_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/asset_set_link_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/asset_set_link_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AssetSetLinkStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.AssetSetLinkStatusEnum.AssetSetLinkStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AssetSetLinkStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetSetLinkStatusEnum").msgclass - AssetSetLinkStatusEnum::AssetSetLinkStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetSetLinkStatusEnum.AssetSetLinkStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/asset_set_status_pb.rb b/lib/google/ads/google_ads/v12/enums/asset_set_status_pb.rb deleted file mode 100644 index c0951a537..000000000 --- a/lib/google/ads/google_ads/v12/enums/asset_set_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/asset_set_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/asset_set_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AssetSetStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.AssetSetStatusEnum.AssetSetStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AssetSetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetSetStatusEnum").msgclass - AssetSetStatusEnum::AssetSetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetSetStatusEnum.AssetSetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/asset_set_type_pb.rb b/lib/google/ads/google_ads/v12/enums/asset_set_type_pb.rb deleted file mode 100644 index 5d94a3651..000000000 --- a/lib/google/ads/google_ads/v12/enums/asset_set_type_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/asset_set_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/asset_set_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AssetSetTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.AssetSetTypeEnum.AssetSetType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PAGE_FEED, 2 - value :DYNAMIC_EDUCATION, 3 - value :MERCHANT_CENTER_FEED, 4 - value :DYNAMIC_REAL_ESTATE, 5 - value :DYNAMIC_CUSTOM, 6 - value :DYNAMIC_HOTELS_AND_RENTALS, 7 - value :DYNAMIC_FLIGHTS, 8 - value :DYNAMIC_TRAVEL, 9 - value :DYNAMIC_LOCAL, 10 - value :DYNAMIC_JOBS, 11 - value :LOCATION_SYNC, 12 - value :BUSINESS_PROFILE_DYNAMIC_LOCATION_GROUP, 13 - value :CHAIN_DYNAMIC_LOCATION_GROUP, 14 - value :STATIC_LOCATION_GROUP, 15 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AssetSetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetSetTypeEnum").msgclass - AssetSetTypeEnum::AssetSetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetSetTypeEnum.AssetSetType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/asset_source_pb.rb b/lib/google/ads/google_ads/v12/enums/asset_source_pb.rb deleted file mode 100644 index 018e0b3f2..000000000 --- a/lib/google/ads/google_ads/v12/enums/asset_source_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/asset_source.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/asset_source.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AssetSourceEnum" do - end - add_enum "google.ads.googleads.v12.enums.AssetSourceEnum.AssetSource" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ADVERTISER, 2 - value :AUTOMATICALLY_CREATED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AssetSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetSourceEnum").msgclass - AssetSourceEnum::AssetSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetSourceEnum.AssetSource").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/asset_type_pb.rb b/lib/google/ads/google_ads/v12/enums/asset_type_pb.rb deleted file mode 100644 index c1bdf53c5..000000000 --- a/lib/google/ads/google_ads/v12/enums/asset_type_pb.rb +++ /dev/null @@ -1,54 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/asset_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/asset_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AssetTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.AssetTypeEnum.AssetType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :YOUTUBE_VIDEO, 2 - value :MEDIA_BUNDLE, 3 - value :IMAGE, 4 - value :TEXT, 5 - value :LEAD_FORM, 6 - value :BOOK_ON_GOOGLE, 7 - value :PROMOTION, 8 - value :CALLOUT, 9 - value :STRUCTURED_SNIPPET, 10 - value :SITELINK, 11 - value :PAGE_FEED, 12 - value :DYNAMIC_EDUCATION, 13 - value :MOBILE_APP, 14 - value :HOTEL_CALLOUT, 15 - value :CALL, 16 - value :PRICE, 17 - value :CALL_TO_ACTION, 18 - value :DYNAMIC_REAL_ESTATE, 19 - value :DYNAMIC_CUSTOM, 20 - value :DYNAMIC_HOTELS_AND_RENTALS, 21 - value :DYNAMIC_FLIGHTS, 22 - value :DISCOVERY_CAROUSEL_CARD, 23 - value :DYNAMIC_TRAVEL, 24 - value :DYNAMIC_LOCAL, 25 - value :DYNAMIC_JOBS, 26 - value :LOCATION, 27 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AssetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetTypeEnum").msgclass - AssetTypeEnum::AssetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AssetTypeEnum.AssetType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/async_action_status_pb.rb b/lib/google/ads/google_ads/v12/enums/async_action_status_pb.rb deleted file mode 100644 index d1570d4a3..000000000 --- a/lib/google/ads/google_ads/v12/enums/async_action_status_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/async_action_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/async_action_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AsyncActionStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.AsyncActionStatusEnum.AsyncActionStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NOT_STARTED, 2 - value :IN_PROGRESS, 3 - value :COMPLETED, 4 - value :FAILED, 5 - value :COMPLETED_WITH_WARNING, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AsyncActionStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AsyncActionStatusEnum").msgclass - AsyncActionStatusEnum::AsyncActionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AsyncActionStatusEnum.AsyncActionStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/attribution_model_pb.rb b/lib/google/ads/google_ads/v12/enums/attribution_model_pb.rb deleted file mode 100644 index a73706136..000000000 --- a/lib/google/ads/google_ads/v12/enums/attribution_model_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/attribution_model.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/attribution_model.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AttributionModelEnum" do - end - add_enum "google.ads.googleads.v12.enums.AttributionModelEnum.AttributionModel" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :EXTERNAL, 100 - value :GOOGLE_ADS_LAST_CLICK, 101 - value :GOOGLE_SEARCH_ATTRIBUTION_FIRST_CLICK, 102 - value :GOOGLE_SEARCH_ATTRIBUTION_LINEAR, 103 - value :GOOGLE_SEARCH_ATTRIBUTION_TIME_DECAY, 104 - value :GOOGLE_SEARCH_ATTRIBUTION_POSITION_BASED, 105 - value :GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN, 106 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AttributionModelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AttributionModelEnum").msgclass - AttributionModelEnum::AttributionModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AttributionModelEnum.AttributionModel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/audience_insights_dimension_pb.rb b/lib/google/ads/google_ads/v12/enums/audience_insights_dimension_pb.rb deleted file mode 100644 index 972ab9233..000000000 --- a/lib/google/ads/google_ads/v12/enums/audience_insights_dimension_pb.rb +++ /dev/null @@ -1,40 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/audience_insights_dimension.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/audience_insights_dimension.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AudienceInsightsDimensionEnum" do - end - add_enum "google.ads.googleads.v12.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CATEGORY, 2 - value :KNOWLEDGE_GRAPH, 3 - value :GEO_TARGET_COUNTRY, 4 - value :SUB_COUNTRY_LOCATION, 5 - value :YOUTUBE_CHANNEL, 6 - value :YOUTUBE_DYNAMIC_LINEUP, 7 - value :AFFINITY_USER_INTEREST, 8 - value :IN_MARKET_USER_INTEREST, 9 - value :PARENTAL_STATUS, 10 - value :INCOME_RANGE, 11 - value :AGE_RANGE, 12 - value :GENDER, 13 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AudienceInsightsDimensionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AudienceInsightsDimensionEnum").msgclass - AudienceInsightsDimensionEnum::AudienceInsightsDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/audience_status_pb.rb b/lib/google/ads/google_ads/v12/enums/audience_status_pb.rb deleted file mode 100644 index a0aaa8cbc..000000000 --- a/lib/google/ads/google_ads/v12/enums/audience_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/audience_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/audience_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.AudienceStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.AudienceStatusEnum.AudienceStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - AudienceStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AudienceStatusEnum").msgclass - AudienceStatusEnum::AudienceStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.AudienceStatusEnum.AudienceStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/batch_job_status_pb.rb b/lib/google/ads/google_ads/v12/enums/batch_job_status_pb.rb deleted file mode 100644 index c828a4a91..000000000 --- a/lib/google/ads/google_ads/v12/enums/batch_job_status_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/batch_job_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/batch_job_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.BatchJobStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.BatchJobStatusEnum.BatchJobStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PENDING, 2 - value :RUNNING, 3 - value :DONE, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - BatchJobStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BatchJobStatusEnum").msgclass - BatchJobStatusEnum::BatchJobStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BatchJobStatusEnum.BatchJobStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/bid_modifier_source_pb.rb b/lib/google/ads/google_ads/v12/enums/bid_modifier_source_pb.rb deleted file mode 100644 index a73369183..000000000 --- a/lib/google/ads/google_ads/v12/enums/bid_modifier_source_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/bid_modifier_source.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/bid_modifier_source.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.BidModifierSourceEnum" do - end - add_enum "google.ads.googleads.v12.enums.BidModifierSourceEnum.BidModifierSource" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CAMPAIGN, 2 - value :AD_GROUP, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - BidModifierSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BidModifierSourceEnum").msgclass - BidModifierSourceEnum::BidModifierSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BidModifierSourceEnum.BidModifierSource").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/bidding_source_pb.rb b/lib/google/ads/google_ads/v12/enums/bidding_source_pb.rb deleted file mode 100644 index d963c2611..000000000 --- a/lib/google/ads/google_ads/v12/enums/bidding_source_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/bidding_source.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/bidding_source.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.BiddingSourceEnum" do - end - add_enum "google.ads.googleads.v12.enums.BiddingSourceEnum.BiddingSource" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CAMPAIGN_BIDDING_STRATEGY, 5 - value :AD_GROUP, 6 - value :AD_GROUP_CRITERION, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - BiddingSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BiddingSourceEnum").msgclass - BiddingSourceEnum::BiddingSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BiddingSourceEnum.BiddingSource").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/bidding_strategy_status_pb.rb b/lib/google/ads/google_ads/v12/enums/bidding_strategy_status_pb.rb deleted file mode 100644 index baeadbf14..000000000 --- a/lib/google/ads/google_ads/v12/enums/bidding_strategy_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/bidding_strategy_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/bidding_strategy_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.BiddingStrategyStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.BiddingStrategyStatusEnum.BiddingStrategyStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - BiddingStrategyStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BiddingStrategyStatusEnum").msgclass - BiddingStrategyStatusEnum::BiddingStrategyStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BiddingStrategyStatusEnum.BiddingStrategyStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/bidding_strategy_system_status_pb.rb b/lib/google/ads/google_ads/v12/enums/bidding_strategy_system_status_pb.rb deleted file mode 100644 index db08861c2..000000000 --- a/lib/google/ads/google_ads/v12/enums/bidding_strategy_system_status_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/bidding_strategy_system_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/bidding_strategy_system_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.BiddingStrategySystemStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :LEARNING_NEW, 3 - value :LEARNING_SETTING_CHANGE, 4 - value :LEARNING_BUDGET_CHANGE, 5 - value :LEARNING_COMPOSITION_CHANGE, 6 - value :LEARNING_CONVERSION_TYPE_CHANGE, 7 - value :LEARNING_CONVERSION_SETTING_CHANGE, 8 - value :LIMITED_BY_CPC_BID_CEILING, 9 - value :LIMITED_BY_CPC_BID_FLOOR, 10 - value :LIMITED_BY_DATA, 11 - value :LIMITED_BY_BUDGET, 12 - value :LIMITED_BY_LOW_PRIORITY_SPEND, 13 - value :LIMITED_BY_LOW_QUALITY, 14 - value :LIMITED_BY_INVENTORY, 15 - value :MISCONFIGURED_ZERO_ELIGIBILITY, 16 - value :MISCONFIGURED_CONVERSION_TYPES, 17 - value :MISCONFIGURED_CONVERSION_SETTINGS, 18 - value :MISCONFIGURED_SHARED_BUDGET, 19 - value :MISCONFIGURED_STRATEGY_TYPE, 20 - value :PAUSED, 21 - value :UNAVAILABLE, 22 - value :MULTIPLE_LEARNING, 23 - value :MULTIPLE_LIMITED, 24 - value :MULTIPLE_MISCONFIGURED, 25 - value :MULTIPLE, 26 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - BiddingStrategySystemStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BiddingStrategySystemStatusEnum").msgclass - BiddingStrategySystemStatusEnum::BiddingStrategySystemStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/bidding_strategy_type_pb.rb b/lib/google/ads/google_ads/v12/enums/bidding_strategy_type_pb.rb deleted file mode 100644 index 8e1e7c0fe..000000000 --- a/lib/google/ads/google_ads/v12/enums/bidding_strategy_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/bidding_strategy_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/bidding_strategy_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.BiddingStrategyTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.BiddingStrategyTypeEnum.BiddingStrategyType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :COMMISSION, 16 - value :ENHANCED_CPC, 2 - value :INVALID, 17 - value :MANUAL_CPA, 18 - value :MANUAL_CPC, 3 - value :MANUAL_CPM, 4 - value :MANUAL_CPV, 13 - value :MAXIMIZE_CONVERSIONS, 10 - value :MAXIMIZE_CONVERSION_VALUE, 11 - value :PAGE_ONE_PROMOTED, 5 - value :PERCENT_CPC, 12 - value :TARGET_CPA, 6 - value :TARGET_CPM, 14 - value :TARGET_IMPRESSION_SHARE, 15 - value :TARGET_OUTRANK_SHARE, 7 - value :TARGET_ROAS, 8 - value :TARGET_SPEND, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - BiddingStrategyTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BiddingStrategyTypeEnum").msgclass - BiddingStrategyTypeEnum::BiddingStrategyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BiddingStrategyTypeEnum.BiddingStrategyType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/billing_setup_status_pb.rb b/lib/google/ads/google_ads/v12/enums/billing_setup_status_pb.rb deleted file mode 100644 index 6a6df3627..000000000 --- a/lib/google/ads/google_ads/v12/enums/billing_setup_status_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/billing_setup_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/billing_setup_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.BillingSetupStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.BillingSetupStatusEnum.BillingSetupStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PENDING, 2 - value :APPROVED_HELD, 3 - value :APPROVED, 4 - value :CANCELLED, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - BillingSetupStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BillingSetupStatusEnum").msgclass - BillingSetupStatusEnum::BillingSetupStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BillingSetupStatusEnum.BillingSetupStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/brand_safety_suitability_pb.rb b/lib/google/ads/google_ads/v12/enums/brand_safety_suitability_pb.rb deleted file mode 100644 index 3487ffd7d..000000000 --- a/lib/google/ads/google_ads/v12/enums/brand_safety_suitability_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/brand_safety_suitability.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/brand_safety_suitability.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.BrandSafetySuitabilityEnum" do - end - add_enum "google.ads.googleads.v12.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :EXPANDED_INVENTORY, 2 - value :STANDARD_INVENTORY, 3 - value :LIMITED_INVENTORY, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - BrandSafetySuitabilityEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BrandSafetySuitabilityEnum").msgclass - BrandSafetySuitabilityEnum::BrandSafetySuitability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/budget_campaign_association_status_pb.rb b/lib/google/ads/google_ads/v12/enums/budget_campaign_association_status_pb.rb deleted file mode 100644 index 74d9bbb4a..000000000 --- a/lib/google/ads/google_ads/v12/enums/budget_campaign_association_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/budget_campaign_association_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/budget_campaign_association_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.BudgetCampaignAssociationStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.BudgetCampaignAssociationStatusEnum.BudgetCampaignAssociationStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - BudgetCampaignAssociationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BudgetCampaignAssociationStatusEnum").msgclass - BudgetCampaignAssociationStatusEnum::BudgetCampaignAssociationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BudgetCampaignAssociationStatusEnum.BudgetCampaignAssociationStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/budget_delivery_method_pb.rb b/lib/google/ads/google_ads/v12/enums/budget_delivery_method_pb.rb deleted file mode 100644 index cdd650b5d..000000000 --- a/lib/google/ads/google_ads/v12/enums/budget_delivery_method_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/budget_delivery_method.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/budget_delivery_method.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.BudgetDeliveryMethodEnum" do - end - add_enum "google.ads.googleads.v12.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :STANDARD, 2 - value :ACCELERATED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - BudgetDeliveryMethodEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BudgetDeliveryMethodEnum").msgclass - BudgetDeliveryMethodEnum::BudgetDeliveryMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/budget_period_pb.rb b/lib/google/ads/google_ads/v12/enums/budget_period_pb.rb deleted file mode 100644 index abd6be456..000000000 --- a/lib/google/ads/google_ads/v12/enums/budget_period_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/budget_period.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/budget_period.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.BudgetPeriodEnum" do - end - add_enum "google.ads.googleads.v12.enums.BudgetPeriodEnum.BudgetPeriod" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DAILY, 2 - value :CUSTOM_PERIOD, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - BudgetPeriodEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BudgetPeriodEnum").msgclass - BudgetPeriodEnum::BudgetPeriod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BudgetPeriodEnum.BudgetPeriod").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/budget_status_pb.rb b/lib/google/ads/google_ads/v12/enums/budget_status_pb.rb deleted file mode 100644 index 536b86823..000000000 --- a/lib/google/ads/google_ads/v12/enums/budget_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/budget_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/budget_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.BudgetStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.BudgetStatusEnum.BudgetStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - BudgetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BudgetStatusEnum").msgclass - BudgetStatusEnum::BudgetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BudgetStatusEnum.BudgetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/budget_type_pb.rb b/lib/google/ads/google_ads/v12/enums/budget_type_pb.rb deleted file mode 100644 index 5d5d92900..000000000 --- a/lib/google/ads/google_ads/v12/enums/budget_type_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/budget_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/budget_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.BudgetTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.BudgetTypeEnum.BudgetType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :STANDARD, 2 - value :FIXED_CPA, 4 - value :SMART_CAMPAIGN, 5 - value :LOCAL_SERVICES, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - BudgetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BudgetTypeEnum").msgclass - BudgetTypeEnum::BudgetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.BudgetTypeEnum.BudgetType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/call_conversion_reporting_state_pb.rb b/lib/google/ads/google_ads/v12/enums/call_conversion_reporting_state_pb.rb deleted file mode 100644 index 03d3eaf18..000000000 --- a/lib/google/ads/google_ads/v12/enums/call_conversion_reporting_state_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/call_conversion_reporting_state.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/call_conversion_reporting_state.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CallConversionReportingStateEnum" do - end - add_enum "google.ads.googleads.v12.enums.CallConversionReportingStateEnum.CallConversionReportingState" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DISABLED, 2 - value :USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION, 3 - value :USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CallConversionReportingStateEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CallConversionReportingStateEnum").msgclass - CallConversionReportingStateEnum::CallConversionReportingState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CallConversionReportingStateEnum.CallConversionReportingState").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/call_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/call_placeholder_field_pb.rb deleted file mode 100644 index a070179ea..000000000 --- a/lib/google/ads/google_ads/v12/enums/call_placeholder_field_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/call_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/call_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CallPlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.CallPlaceholderFieldEnum.CallPlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PHONE_NUMBER, 2 - value :COUNTRY_CODE, 3 - value :TRACKED, 4 - value :CONVERSION_TYPE_ID, 5 - value :CONVERSION_REPORTING_STATE, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CallPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CallPlaceholderFieldEnum").msgclass - CallPlaceholderFieldEnum::CallPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CallPlaceholderFieldEnum.CallPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/call_to_action_type_pb.rb b/lib/google/ads/google_ads/v12/enums/call_to_action_type_pb.rb deleted file mode 100644 index 3c5a90b62..000000000 --- a/lib/google/ads/google_ads/v12/enums/call_to_action_type_pb.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/call_to_action_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/call_to_action_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CallToActionTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.CallToActionTypeEnum.CallToActionType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :LEARN_MORE, 2 - value :GET_QUOTE, 3 - value :APPLY_NOW, 4 - value :SIGN_UP, 5 - value :CONTACT_US, 6 - value :SUBSCRIBE, 7 - value :DOWNLOAD, 8 - value :BOOK_NOW, 9 - value :SHOP_NOW, 10 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CallToActionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CallToActionTypeEnum").msgclass - CallToActionTypeEnum::CallToActionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CallToActionTypeEnum.CallToActionType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/call_tracking_display_location_pb.rb b/lib/google/ads/google_ads/v12/enums/call_tracking_display_location_pb.rb deleted file mode 100644 index 8fa086b0c..000000000 --- a/lib/google/ads/google_ads/v12/enums/call_tracking_display_location_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/call_tracking_display_location.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/call_tracking_display_location.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CallTrackingDisplayLocationEnum" do - end - add_enum "google.ads.googleads.v12.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AD, 2 - value :LANDING_PAGE, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CallTrackingDisplayLocationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CallTrackingDisplayLocationEnum").msgclass - CallTrackingDisplayLocationEnum::CallTrackingDisplayLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/call_type_pb.rb b/lib/google/ads/google_ads/v12/enums/call_type_pb.rb deleted file mode 100644 index a45b10d91..000000000 --- a/lib/google/ads/google_ads/v12/enums/call_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/call_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/call_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CallTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.CallTypeEnum.CallType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :MANUALLY_DIALED, 2 - value :HIGH_END_MOBILE_SEARCH, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CallTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CallTypeEnum").msgclass - CallTypeEnum::CallType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CallTypeEnum.CallType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/callout_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/callout_placeholder_field_pb.rb deleted file mode 100644 index 719d62338..000000000 --- a/lib/google/ads/google_ads/v12/enums/callout_placeholder_field_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/callout_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/callout_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CalloutPlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.CalloutPlaceholderFieldEnum.CalloutPlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CALLOUT_TEXT, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CalloutPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CalloutPlaceholderFieldEnum").msgclass - CalloutPlaceholderFieldEnum::CalloutPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CalloutPlaceholderFieldEnum.CalloutPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/campaign_criterion_status_pb.rb b/lib/google/ads/google_ads/v12/enums/campaign_criterion_status_pb.rb deleted file mode 100644 index c083638c6..000000000 --- a/lib/google/ads/google_ads/v12/enums/campaign_criterion_status_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/campaign_criterion_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/campaign_criterion_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CampaignCriterionStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :PAUSED, 3 - value :REMOVED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CampaignCriterionStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignCriterionStatusEnum").msgclass - CampaignCriterionStatusEnum::CampaignCriterionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/campaign_draft_status_pb.rb b/lib/google/ads/google_ads/v12/enums/campaign_draft_status_pb.rb deleted file mode 100644 index 804f25fd8..000000000 --- a/lib/google/ads/google_ads/v12/enums/campaign_draft_status_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/campaign_draft_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/campaign_draft_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CampaignDraftStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.CampaignDraftStatusEnum.CampaignDraftStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PROPOSED, 2 - value :REMOVED, 3 - value :PROMOTING, 5 - value :PROMOTED, 4 - value :PROMOTE_FAILED, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CampaignDraftStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignDraftStatusEnum").msgclass - CampaignDraftStatusEnum::CampaignDraftStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignDraftStatusEnum.CampaignDraftStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/campaign_experiment_type_pb.rb b/lib/google/ads/google_ads/v12/enums/campaign_experiment_type_pb.rb deleted file mode 100644 index d757cda81..000000000 --- a/lib/google/ads/google_ads/v12/enums/campaign_experiment_type_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/campaign_experiment_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/campaign_experiment_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CampaignExperimentTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.CampaignExperimentTypeEnum.CampaignExperimentType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :BASE, 2 - value :DRAFT, 3 - value :EXPERIMENT, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CampaignExperimentTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignExperimentTypeEnum").msgclass - CampaignExperimentTypeEnum::CampaignExperimentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignExperimentTypeEnum.CampaignExperimentType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/campaign_group_status_pb.rb b/lib/google/ads/google_ads/v12/enums/campaign_group_status_pb.rb deleted file mode 100644 index b5a778eab..000000000 --- a/lib/google/ads/google_ads/v12/enums/campaign_group_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/campaign_group_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/campaign_group_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CampaignGroupStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.CampaignGroupStatusEnum.CampaignGroupStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CampaignGroupStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignGroupStatusEnum").msgclass - CampaignGroupStatusEnum::CampaignGroupStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignGroupStatusEnum.CampaignGroupStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/campaign_primary_status_pb.rb b/lib/google/ads/google_ads/v12/enums/campaign_primary_status_pb.rb deleted file mode 100644 index 3344ce3c1..000000000 --- a/lib/google/ads/google_ads/v12/enums/campaign_primary_status_pb.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/campaign_primary_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/campaign_primary_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CampaignPrimaryStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ELIGIBLE, 2 - value :PAUSED, 3 - value :REMOVED, 4 - value :ENDED, 5 - value :PENDING, 6 - value :MISCONFIGURED, 7 - value :LIMITED, 8 - value :LEARNING, 9 - value :NOT_ELIGIBLE, 10 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CampaignPrimaryStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignPrimaryStatusEnum").msgclass - CampaignPrimaryStatusEnum::CampaignPrimaryStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/campaign_primary_status_reason_pb.rb b/lib/google/ads/google_ads/v12/enums/campaign_primary_status_reason_pb.rb deleted file mode 100644 index 17e88a3a2..000000000 --- a/lib/google/ads/google_ads/v12/enums/campaign_primary_status_reason_pb.rb +++ /dev/null @@ -1,60 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/campaign_primary_status_reason.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/campaign_primary_status_reason.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CampaignPrimaryStatusReasonEnum" do - end - add_enum "google.ads.googleads.v12.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CAMPAIGN_REMOVED, 2 - value :CAMPAIGN_PAUSED, 3 - value :CAMPAIGN_PENDING, 4 - value :CAMPAIGN_ENDED, 5 - value :CAMPAIGN_DRAFT, 6 - value :BIDDING_STRATEGY_MISCONFIGURED, 7 - value :BIDDING_STRATEGY_LIMITED, 8 - value :BIDDING_STRATEGY_LEARNING, 9 - value :BIDDING_STRATEGY_CONSTRAINED, 10 - value :BUDGET_CONSTRAINED, 11 - value :BUDGET_MISCONFIGURED, 12 - value :SEARCH_VOLUME_LIMITED, 13 - value :AD_GROUPS_PAUSED, 14 - value :NO_AD_GROUPS, 15 - value :KEYWORDS_PAUSED, 16 - value :NO_KEYWORDS, 17 - value :AD_GROUP_ADS_PAUSED, 18 - value :NO_AD_GROUP_ADS, 19 - value :HAS_ADS_LIMITED_BY_POLICY, 20 - value :HAS_ADS_DISAPPROVED, 21 - value :MOST_ADS_UNDER_REVIEW, 22 - value :MISSING_LEAD_FORM_EXTENSION, 23 - value :MISSING_CALL_EXTENSION, 24 - value :LEAD_FORM_EXTENSION_UNDER_REVIEW, 25 - value :LEAD_FORM_EXTENSION_DISAPPROVED, 26 - value :CALL_EXTENSION_UNDER_REVIEW, 27 - value :CALL_EXTENSION_DISAPPROVED, 28 - value :NO_MOBILE_APPLICATION_AD_GROUP_CRITERIA, 29 - value :CAMPAIGN_GROUP_PAUSED, 30 - value :CAMPAIGN_GROUP_ALL_GROUP_BUDGETS_ENDED, 31 - value :APP_NOT_RELEASED, 32 - value :APP_PARTIALLY_RELEASED, 33 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CampaignPrimaryStatusReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignPrimaryStatusReasonEnum").msgclass - CampaignPrimaryStatusReasonEnum::CampaignPrimaryStatusReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/campaign_serving_status_pb.rb b/lib/google/ads/google_ads/v12/enums/campaign_serving_status_pb.rb deleted file mode 100644 index 465588bd8..000000000 --- a/lib/google/ads/google_ads/v12/enums/campaign_serving_status_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/campaign_serving_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/campaign_serving_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CampaignServingStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.CampaignServingStatusEnum.CampaignServingStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :SERVING, 2 - value :NONE, 3 - value :ENDED, 4 - value :PENDING, 5 - value :SUSPENDED, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CampaignServingStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignServingStatusEnum").msgclass - CampaignServingStatusEnum::CampaignServingStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignServingStatusEnum.CampaignServingStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/campaign_shared_set_status_pb.rb b/lib/google/ads/google_ads/v12/enums/campaign_shared_set_status_pb.rb deleted file mode 100644 index aa5ab0027..000000000 --- a/lib/google/ads/google_ads/v12/enums/campaign_shared_set_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/campaign_shared_set_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/campaign_shared_set_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CampaignSharedSetStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.CampaignSharedSetStatusEnum.CampaignSharedSetStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CampaignSharedSetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignSharedSetStatusEnum").msgclass - CampaignSharedSetStatusEnum::CampaignSharedSetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignSharedSetStatusEnum.CampaignSharedSetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/campaign_status_pb.rb b/lib/google/ads/google_ads/v12/enums/campaign_status_pb.rb deleted file mode 100644 index bafd2c648..000000000 --- a/lib/google/ads/google_ads/v12/enums/campaign_status_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/campaign_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/campaign_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CampaignStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.CampaignStatusEnum.CampaignStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :PAUSED, 3 - value :REMOVED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CampaignStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignStatusEnum").msgclass - CampaignStatusEnum::CampaignStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CampaignStatusEnum.CampaignStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/chain_relationship_type_pb.rb b/lib/google/ads/google_ads/v12/enums/chain_relationship_type_pb.rb deleted file mode 100644 index f1c8c8bf1..000000000 --- a/lib/google/ads/google_ads/v12/enums/chain_relationship_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/chain_relationship_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/chain_relationship_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ChainRelationshipTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ChainRelationshipTypeEnum.ChainRelationshipType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AUTO_DEALERS, 2 - value :GENERAL_RETAILERS, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ChainRelationshipTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ChainRelationshipTypeEnum").msgclass - ChainRelationshipTypeEnum::ChainRelationshipType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ChainRelationshipTypeEnum.ChainRelationshipType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/change_client_type_pb.rb b/lib/google/ads/google_ads/v12/enums/change_client_type_pb.rb deleted file mode 100644 index 513d1a0ab..000000000 --- a/lib/google/ads/google_ads/v12/enums/change_client_type_pb.rb +++ /dev/null @@ -1,40 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/change_client_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/change_client_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ChangeClientTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ChangeClientTypeEnum.ChangeClientType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :GOOGLE_ADS_WEB_CLIENT, 2 - value :GOOGLE_ADS_AUTOMATED_RULE, 3 - value :GOOGLE_ADS_SCRIPTS, 4 - value :GOOGLE_ADS_BULK_UPLOAD, 5 - value :GOOGLE_ADS_API, 6 - value :GOOGLE_ADS_EDITOR, 7 - value :GOOGLE_ADS_MOBILE_APP, 8 - value :GOOGLE_ADS_RECOMMENDATIONS, 9 - value :SEARCH_ADS_360_SYNC, 10 - value :SEARCH_ADS_360_POST, 11 - value :INTERNAL_TOOL, 12 - value :OTHER, 13 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ChangeClientTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ChangeClientTypeEnum").msgclass - ChangeClientTypeEnum::ChangeClientType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ChangeClientTypeEnum.ChangeClientType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/change_event_resource_type_pb.rb b/lib/google/ads/google_ads/v12/enums/change_event_resource_type_pb.rb deleted file mode 100644 index e72b8d882..000000000 --- a/lib/google/ads/google_ads/v12/enums/change_event_resource_type_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/change_event_resource_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/change_event_resource_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ChangeEventResourceTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ChangeEventResourceTypeEnum.ChangeEventResourceType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AD, 2 - value :AD_GROUP, 3 - value :AD_GROUP_CRITERION, 4 - value :CAMPAIGN, 5 - value :CAMPAIGN_BUDGET, 6 - value :AD_GROUP_BID_MODIFIER, 7 - value :CAMPAIGN_CRITERION, 8 - value :FEED, 9 - value :FEED_ITEM, 10 - value :CAMPAIGN_FEED, 11 - value :AD_GROUP_FEED, 12 - value :AD_GROUP_AD, 13 - value :ASSET, 14 - value :CUSTOMER_ASSET, 15 - value :CAMPAIGN_ASSET, 16 - value :AD_GROUP_ASSET, 17 - value :ASSET_SET, 18 - value :ASSET_SET_ASSET, 19 - value :CAMPAIGN_ASSET_SET, 20 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ChangeEventResourceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ChangeEventResourceTypeEnum").msgclass - ChangeEventResourceTypeEnum::ChangeEventResourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ChangeEventResourceTypeEnum.ChangeEventResourceType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/change_status_operation_pb.rb b/lib/google/ads/google_ads/v12/enums/change_status_operation_pb.rb deleted file mode 100644 index e5591d66b..000000000 --- a/lib/google/ads/google_ads/v12/enums/change_status_operation_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/change_status_operation.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/change_status_operation.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ChangeStatusOperationEnum" do - end - add_enum "google.ads.googleads.v12.enums.ChangeStatusOperationEnum.ChangeStatusOperation" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ADDED, 2 - value :CHANGED, 3 - value :REMOVED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ChangeStatusOperationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ChangeStatusOperationEnum").msgclass - ChangeStatusOperationEnum::ChangeStatusOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ChangeStatusOperationEnum.ChangeStatusOperation").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/change_status_resource_type_pb.rb b/lib/google/ads/google_ads/v12/enums/change_status_resource_type_pb.rb deleted file mode 100644 index 09ddcf2b6..000000000 --- a/lib/google/ads/google_ads/v12/enums/change_status_resource_type_pb.rb +++ /dev/null @@ -1,44 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/change_status_resource_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/change_status_resource_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ChangeStatusResourceTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AD_GROUP, 3 - value :AD_GROUP_AD, 4 - value :AD_GROUP_CRITERION, 5 - value :CAMPAIGN, 6 - value :CAMPAIGN_CRITERION, 7 - value :FEED, 9 - value :FEED_ITEM, 10 - value :AD_GROUP_FEED, 11 - value :CAMPAIGN_FEED, 12 - value :AD_GROUP_BID_MODIFIER, 13 - value :SHARED_SET, 14 - value :CAMPAIGN_SHARED_SET, 15 - value :ASSET, 16 - value :CUSTOMER_ASSET, 17 - value :CAMPAIGN_ASSET, 18 - value :AD_GROUP_ASSET, 19 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ChangeStatusResourceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ChangeStatusResourceTypeEnum").msgclass - ChangeStatusResourceTypeEnum::ChangeStatusResourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/click_type_pb.rb b/lib/google/ads/google_ads/v12/enums/click_type_pb.rb deleted file mode 100644 index 110ba90ea..000000000 --- a/lib/google/ads/google_ads/v12/enums/click_type_pb.rb +++ /dev/null @@ -1,82 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/click_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/click_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ClickTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ClickTypeEnum.ClickType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :APP_DEEPLINK, 2 - value :BREADCRUMBS, 3 - value :BROADBAND_PLAN, 4 - value :CALL_TRACKING, 5 - value :CALLS, 6 - value :CLICK_ON_ENGAGEMENT_AD, 7 - value :GET_DIRECTIONS, 8 - value :LOCATION_EXPANSION, 9 - value :LOCATION_FORMAT_CALL, 10 - value :LOCATION_FORMAT_DIRECTIONS, 11 - value :LOCATION_FORMAT_IMAGE, 12 - value :LOCATION_FORMAT_LANDING_PAGE, 13 - value :LOCATION_FORMAT_MAP, 14 - value :LOCATION_FORMAT_STORE_INFO, 15 - value :LOCATION_FORMAT_TEXT, 16 - value :MOBILE_CALL_TRACKING, 17 - value :OFFER_PRINTS, 18 - value :OTHER, 19 - value :PRODUCT_EXTENSION_CLICKS, 20 - value :PRODUCT_LISTING_AD_CLICKS, 21 - value :SITELINKS, 22 - value :STORE_LOCATOR, 23 - value :URL_CLICKS, 25 - value :VIDEO_APP_STORE_CLICKS, 26 - value :VIDEO_CALL_TO_ACTION_CLICKS, 27 - value :VIDEO_CARD_ACTION_HEADLINE_CLICKS, 28 - value :VIDEO_END_CAP_CLICKS, 29 - value :VIDEO_WEBSITE_CLICKS, 30 - value :VISUAL_SITELINKS, 31 - value :WIRELESS_PLAN, 32 - value :PRODUCT_LISTING_AD_LOCAL, 33 - value :PRODUCT_LISTING_AD_MULTICHANNEL_LOCAL, 34 - value :PRODUCT_LISTING_AD_MULTICHANNEL_ONLINE, 35 - value :PRODUCT_LISTING_ADS_COUPON, 36 - value :PRODUCT_LISTING_AD_TRANSACTABLE, 37 - value :PRODUCT_AD_APP_DEEPLINK, 38 - value :SHOWCASE_AD_CATEGORY_LINK, 39 - value :SHOWCASE_AD_LOCAL_STOREFRONT_LINK, 40 - value :SHOWCASE_AD_ONLINE_PRODUCT_LINK, 42 - value :SHOWCASE_AD_LOCAL_PRODUCT_LINK, 43 - value :PROMOTION_EXTENSION, 44 - value :SWIPEABLE_GALLERY_AD_HEADLINE, 45 - value :SWIPEABLE_GALLERY_AD_SWIPES, 46 - value :SWIPEABLE_GALLERY_AD_SEE_MORE, 47 - value :SWIPEABLE_GALLERY_AD_SITELINK_ONE, 48 - value :SWIPEABLE_GALLERY_AD_SITELINK_TWO, 49 - value :SWIPEABLE_GALLERY_AD_SITELINK_THREE, 50 - value :SWIPEABLE_GALLERY_AD_SITELINK_FOUR, 51 - value :SWIPEABLE_GALLERY_AD_SITELINK_FIVE, 52 - value :HOTEL_PRICE, 53 - value :PRICE_EXTENSION, 54 - value :HOTEL_BOOK_ON_GOOGLE_ROOM_SELECTION, 55 - value :SHOPPING_COMPARISON_LISTING, 56 - value :CROSS_NETWORK, 57 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ClickTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ClickTypeEnum").msgclass - ClickTypeEnum::ClickType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ClickTypeEnum.ClickType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/combined_audience_status_pb.rb b/lib/google/ads/google_ads/v12/enums/combined_audience_status_pb.rb deleted file mode 100644 index 2c7565b6d..000000000 --- a/lib/google/ads/google_ads/v12/enums/combined_audience_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/combined_audience_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/combined_audience_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CombinedAudienceStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.CombinedAudienceStatusEnum.CombinedAudienceStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CombinedAudienceStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CombinedAudienceStatusEnum").msgclass - CombinedAudienceStatusEnum::CombinedAudienceStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CombinedAudienceStatusEnum.CombinedAudienceStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/content_label_type_pb.rb b/lib/google/ads/google_ads/v12/enums/content_label_type_pb.rb deleted file mode 100644 index 3e4bea9a9..000000000 --- a/lib/google/ads/google_ads/v12/enums/content_label_type_pb.rb +++ /dev/null @@ -1,43 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/content_label_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/content_label_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ContentLabelTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ContentLabelTypeEnum.ContentLabelType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :SEXUALLY_SUGGESTIVE, 2 - value :BELOW_THE_FOLD, 3 - value :PARKED_DOMAIN, 4 - value :JUVENILE, 6 - value :PROFANITY, 7 - value :TRAGEDY, 8 - value :VIDEO, 9 - value :VIDEO_RATING_DV_G, 10 - value :VIDEO_RATING_DV_PG, 11 - value :VIDEO_RATING_DV_T, 12 - value :VIDEO_RATING_DV_MA, 13 - value :VIDEO_NOT_YET_RATED, 14 - value :EMBEDDED_VIDEO, 15 - value :LIVE_STREAMING_VIDEO, 16 - value :SOCIAL_ISSUES, 17 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ContentLabelTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ContentLabelTypeEnum").msgclass - ContentLabelTypeEnum::ContentLabelType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ContentLabelTypeEnum.ContentLabelType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/conversion_action_category_pb.rb b/lib/google/ads/google_ads/v12/enums/conversion_action_category_pb.rb deleted file mode 100644 index ae9c4ed49..000000000 --- a/lib/google/ads/google_ads/v12/enums/conversion_action_category_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/conversion_action_category.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/conversion_action_category.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ConversionActionCategoryEnum" do - end - add_enum "google.ads.googleads.v12.enums.ConversionActionCategoryEnum.ConversionActionCategory" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DEFAULT, 2 - value :PAGE_VIEW, 3 - value :PURCHASE, 4 - value :SIGNUP, 5 - value :DOWNLOAD, 7 - value :ADD_TO_CART, 8 - value :BEGIN_CHECKOUT, 9 - value :SUBSCRIBE_PAID, 10 - value :PHONE_CALL_LEAD, 11 - value :IMPORTED_LEAD, 12 - value :SUBMIT_LEAD_FORM, 13 - value :BOOK_APPOINTMENT, 14 - value :REQUEST_QUOTE, 15 - value :GET_DIRECTIONS, 16 - value :OUTBOUND_CLICK, 17 - value :CONTACT, 18 - value :ENGAGEMENT, 19 - value :STORE_VISIT, 20 - value :STORE_SALE, 21 - value :QUALIFIED_LEAD, 22 - value :CONVERTED_LEAD, 23 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ConversionActionCategoryEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionActionCategoryEnum").msgclass - ConversionActionCategoryEnum::ConversionActionCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionActionCategoryEnum.ConversionActionCategory").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/conversion_action_counting_type_pb.rb b/lib/google/ads/google_ads/v12/enums/conversion_action_counting_type_pb.rb deleted file mode 100644 index 06c775cbc..000000000 --- a/lib/google/ads/google_ads/v12/enums/conversion_action_counting_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/conversion_action_counting_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/conversion_action_counting_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ConversionActionCountingTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ONE_PER_CLICK, 2 - value :MANY_PER_CLICK, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ConversionActionCountingTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionActionCountingTypeEnum").msgclass - ConversionActionCountingTypeEnum::ConversionActionCountingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/conversion_action_status_pb.rb b/lib/google/ads/google_ads/v12/enums/conversion_action_status_pb.rb deleted file mode 100644 index 1b9fe9898..000000000 --- a/lib/google/ads/google_ads/v12/enums/conversion_action_status_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/conversion_action_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/conversion_action_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ConversionActionStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.ConversionActionStatusEnum.ConversionActionStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - value :HIDDEN, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ConversionActionStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionActionStatusEnum").msgclass - ConversionActionStatusEnum::ConversionActionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionActionStatusEnum.ConversionActionStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/conversion_action_type_pb.rb b/lib/google/ads/google_ads/v12/enums/conversion_action_type_pb.rb deleted file mode 100644 index 725c9f02e..000000000 --- a/lib/google/ads/google_ads/v12/enums/conversion_action_type_pb.rb +++ /dev/null @@ -1,63 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/conversion_action_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/conversion_action_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ConversionActionTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ConversionActionTypeEnum.ConversionActionType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AD_CALL, 2 - value :CLICK_TO_CALL, 3 - value :GOOGLE_PLAY_DOWNLOAD, 4 - value :GOOGLE_PLAY_IN_APP_PURCHASE, 5 - value :UPLOAD_CALLS, 6 - value :UPLOAD_CLICKS, 7 - value :WEBPAGE, 8 - value :WEBSITE_CALL, 9 - value :STORE_SALES_DIRECT_UPLOAD, 10 - value :STORE_SALES, 11 - value :FIREBASE_ANDROID_FIRST_OPEN, 12 - value :FIREBASE_ANDROID_IN_APP_PURCHASE, 13 - value :FIREBASE_ANDROID_CUSTOM, 14 - value :FIREBASE_IOS_FIRST_OPEN, 15 - value :FIREBASE_IOS_IN_APP_PURCHASE, 16 - value :FIREBASE_IOS_CUSTOM, 17 - value :THIRD_PARTY_APP_ANALYTICS_ANDROID_FIRST_OPEN, 18 - value :THIRD_PARTY_APP_ANALYTICS_ANDROID_IN_APP_PURCHASE, 19 - value :THIRD_PARTY_APP_ANALYTICS_ANDROID_CUSTOM, 20 - value :THIRD_PARTY_APP_ANALYTICS_IOS_FIRST_OPEN, 21 - value :THIRD_PARTY_APP_ANALYTICS_IOS_IN_APP_PURCHASE, 22 - value :THIRD_PARTY_APP_ANALYTICS_IOS_CUSTOM, 23 - value :ANDROID_APP_PRE_REGISTRATION, 24 - value :ANDROID_INSTALLS_ALL_OTHER_APPS, 25 - value :FLOODLIGHT_ACTION, 26 - value :FLOODLIGHT_TRANSACTION, 27 - value :GOOGLE_HOSTED, 28 - value :LEAD_FORM_SUBMIT, 29 - value :SALESFORCE, 30 - value :SEARCH_ADS_360, 31 - value :SMART_CAMPAIGN_AD_CLICKS_TO_CALL, 32 - value :SMART_CAMPAIGN_MAP_CLICKS_TO_CALL, 33 - value :SMART_CAMPAIGN_MAP_DIRECTIONS, 34 - value :SMART_CAMPAIGN_TRACKED_CALLS, 35 - value :STORE_VISITS, 36 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ConversionActionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionActionTypeEnum").msgclass - ConversionActionTypeEnum::ConversionActionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionActionTypeEnum.ConversionActionType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/conversion_adjustment_type_pb.rb b/lib/google/ads/google_ads/v12/enums/conversion_adjustment_type_pb.rb deleted file mode 100644 index 5399a7a71..000000000 --- a/lib/google/ads/google_ads/v12/enums/conversion_adjustment_type_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/conversion_adjustment_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/conversion_adjustment_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ConversionAdjustmentTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :RETRACTION, 2 - value :RESTATEMENT, 3 - value :ENHANCEMENT, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ConversionAdjustmentTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionAdjustmentTypeEnum").msgclass - ConversionAdjustmentTypeEnum::ConversionAdjustmentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/conversion_attribution_event_type_pb.rb b/lib/google/ads/google_ads/v12/enums/conversion_attribution_event_type_pb.rb deleted file mode 100644 index 2b806dd5a..000000000 --- a/lib/google/ads/google_ads/v12/enums/conversion_attribution_event_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/conversion_attribution_event_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/conversion_attribution_event_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ConversionAttributionEventTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :IMPRESSION, 2 - value :INTERACTION, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ConversionAttributionEventTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionAttributionEventTypeEnum").msgclass - ConversionAttributionEventTypeEnum::ConversionAttributionEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/conversion_custom_variable_status_pb.rb b/lib/google/ads/google_ads/v12/enums/conversion_custom_variable_status_pb.rb deleted file mode 100644 index 860844b3f..000000000 --- a/lib/google/ads/google_ads/v12/enums/conversion_custom_variable_status_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/conversion_custom_variable_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/conversion_custom_variable_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ConversionCustomVariableStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.ConversionCustomVariableStatusEnum.ConversionCustomVariableStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ACTIVATION_NEEDED, 2 - value :ENABLED, 3 - value :PAUSED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ConversionCustomVariableStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionCustomVariableStatusEnum").msgclass - ConversionCustomVariableStatusEnum::ConversionCustomVariableStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionCustomVariableStatusEnum.ConversionCustomVariableStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/conversion_environment_enum_pb.rb b/lib/google/ads/google_ads/v12/enums/conversion_environment_enum_pb.rb deleted file mode 100644 index dfdff9c97..000000000 --- a/lib/google/ads/google_ads/v12/enums/conversion_environment_enum_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/conversion_environment_enum.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/conversion_environment_enum.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ConversionEnvironmentEnum" do - end - add_enum "google.ads.googleads.v12.enums.ConversionEnvironmentEnum.ConversionEnvironment" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :APP, 2 - value :WEB, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ConversionEnvironmentEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionEnvironmentEnum").msgclass - ConversionEnvironmentEnum::ConversionEnvironment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionEnvironmentEnum.ConversionEnvironment").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/conversion_lag_bucket_pb.rb b/lib/google/ads/google_ads/v12/enums/conversion_lag_bucket_pb.rb deleted file mode 100644 index dff5fd88b..000000000 --- a/lib/google/ads/google_ads/v12/enums/conversion_lag_bucket_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/conversion_lag_bucket.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/conversion_lag_bucket.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ConversionLagBucketEnum" do - end - add_enum "google.ads.googleads.v12.enums.ConversionLagBucketEnum.ConversionLagBucket" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :LESS_THAN_ONE_DAY, 2 - value :ONE_TO_TWO_DAYS, 3 - value :TWO_TO_THREE_DAYS, 4 - value :THREE_TO_FOUR_DAYS, 5 - value :FOUR_TO_FIVE_DAYS, 6 - value :FIVE_TO_SIX_DAYS, 7 - value :SIX_TO_SEVEN_DAYS, 8 - value :SEVEN_TO_EIGHT_DAYS, 9 - value :EIGHT_TO_NINE_DAYS, 10 - value :NINE_TO_TEN_DAYS, 11 - value :TEN_TO_ELEVEN_DAYS, 12 - value :ELEVEN_TO_TWELVE_DAYS, 13 - value :TWELVE_TO_THIRTEEN_DAYS, 14 - value :THIRTEEN_TO_FOURTEEN_DAYS, 15 - value :FOURTEEN_TO_TWENTY_ONE_DAYS, 16 - value :TWENTY_ONE_TO_THIRTY_DAYS, 17 - value :THIRTY_TO_FORTY_FIVE_DAYS, 18 - value :FORTY_FIVE_TO_SIXTY_DAYS, 19 - value :SIXTY_TO_NINETY_DAYS, 20 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ConversionLagBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionLagBucketEnum").msgclass - ConversionLagBucketEnum::ConversionLagBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionLagBucketEnum.ConversionLagBucket").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/conversion_or_adjustment_lag_bucket_pb.rb b/lib/google/ads/google_ads/v12/enums/conversion_or_adjustment_lag_bucket_pb.rb deleted file mode 100644 index 1e86f1d75..000000000 --- a/lib/google/ads/google_ads/v12/enums/conversion_or_adjustment_lag_bucket_pb.rb +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/conversion_or_adjustment_lag_bucket.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/conversion_or_adjustment_lag_bucket.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ConversionOrAdjustmentLagBucketEnum" do - end - add_enum "google.ads.googleads.v12.enums.ConversionOrAdjustmentLagBucketEnum.ConversionOrAdjustmentLagBucket" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CONVERSION_LESS_THAN_ONE_DAY, 2 - value :CONVERSION_ONE_TO_TWO_DAYS, 3 - value :CONVERSION_TWO_TO_THREE_DAYS, 4 - value :CONVERSION_THREE_TO_FOUR_DAYS, 5 - value :CONVERSION_FOUR_TO_FIVE_DAYS, 6 - value :CONVERSION_FIVE_TO_SIX_DAYS, 7 - value :CONVERSION_SIX_TO_SEVEN_DAYS, 8 - value :CONVERSION_SEVEN_TO_EIGHT_DAYS, 9 - value :CONVERSION_EIGHT_TO_NINE_DAYS, 10 - value :CONVERSION_NINE_TO_TEN_DAYS, 11 - value :CONVERSION_TEN_TO_ELEVEN_DAYS, 12 - value :CONVERSION_ELEVEN_TO_TWELVE_DAYS, 13 - value :CONVERSION_TWELVE_TO_THIRTEEN_DAYS, 14 - value :CONVERSION_THIRTEEN_TO_FOURTEEN_DAYS, 15 - value :CONVERSION_FOURTEEN_TO_TWENTY_ONE_DAYS, 16 - value :CONVERSION_TWENTY_ONE_TO_THIRTY_DAYS, 17 - value :CONVERSION_THIRTY_TO_FORTY_FIVE_DAYS, 18 - value :CONVERSION_FORTY_FIVE_TO_SIXTY_DAYS, 19 - value :CONVERSION_SIXTY_TO_NINETY_DAYS, 20 - value :ADJUSTMENT_LESS_THAN_ONE_DAY, 21 - value :ADJUSTMENT_ONE_TO_TWO_DAYS, 22 - value :ADJUSTMENT_TWO_TO_THREE_DAYS, 23 - value :ADJUSTMENT_THREE_TO_FOUR_DAYS, 24 - value :ADJUSTMENT_FOUR_TO_FIVE_DAYS, 25 - value :ADJUSTMENT_FIVE_TO_SIX_DAYS, 26 - value :ADJUSTMENT_SIX_TO_SEVEN_DAYS, 27 - value :ADJUSTMENT_SEVEN_TO_EIGHT_DAYS, 28 - value :ADJUSTMENT_EIGHT_TO_NINE_DAYS, 29 - value :ADJUSTMENT_NINE_TO_TEN_DAYS, 30 - value :ADJUSTMENT_TEN_TO_ELEVEN_DAYS, 31 - value :ADJUSTMENT_ELEVEN_TO_TWELVE_DAYS, 32 - value :ADJUSTMENT_TWELVE_TO_THIRTEEN_DAYS, 33 - value :ADJUSTMENT_THIRTEEN_TO_FOURTEEN_DAYS, 34 - value :ADJUSTMENT_FOURTEEN_TO_TWENTY_ONE_DAYS, 35 - value :ADJUSTMENT_TWENTY_ONE_TO_THIRTY_DAYS, 36 - value :ADJUSTMENT_THIRTY_TO_FORTY_FIVE_DAYS, 37 - value :ADJUSTMENT_FORTY_FIVE_TO_SIXTY_DAYS, 38 - value :ADJUSTMENT_SIXTY_TO_NINETY_DAYS, 39 - value :ADJUSTMENT_NINETY_TO_ONE_HUNDRED_AND_FORTY_FIVE_DAYS, 40 - value :CONVERSION_UNKNOWN, 41 - value :ADJUSTMENT_UNKNOWN, 42 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ConversionOrAdjustmentLagBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionOrAdjustmentLagBucketEnum").msgclass - ConversionOrAdjustmentLagBucketEnum::ConversionOrAdjustmentLagBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionOrAdjustmentLagBucketEnum.ConversionOrAdjustmentLagBucket").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/conversion_origin_pb.rb b/lib/google/ads/google_ads/v12/enums/conversion_origin_pb.rb deleted file mode 100644 index 472f77a51..000000000 --- a/lib/google/ads/google_ads/v12/enums/conversion_origin_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/conversion_origin.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/conversion_origin.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ConversionOriginEnum" do - end - add_enum "google.ads.googleads.v12.enums.ConversionOriginEnum.ConversionOrigin" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :WEBSITE, 2 - value :GOOGLE_HOSTED, 3 - value :APP, 4 - value :CALL_FROM_ADS, 5 - value :STORE, 6 - value :YOUTUBE_HOSTED, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ConversionOriginEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionOriginEnum").msgclass - ConversionOriginEnum::ConversionOrigin = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionOriginEnum.ConversionOrigin").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/conversion_tracking_status_enum_pb.rb b/lib/google/ads/google_ads/v12/enums/conversion_tracking_status_enum_pb.rb deleted file mode 100644 index d197b8c2f..000000000 --- a/lib/google/ads/google_ads/v12/enums/conversion_tracking_status_enum_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/conversion_tracking_status_enum.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/conversion_tracking_status_enum.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ConversionTrackingStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NOT_CONVERSION_TRACKED, 2 - value :CONVERSION_TRACKING_MANAGED_BY_SELF, 3 - value :CONVERSION_TRACKING_MANAGED_BY_THIS_MANAGER, 4 - value :CONVERSION_TRACKING_MANAGED_BY_ANOTHER_MANAGER, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ConversionTrackingStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionTrackingStatusEnum").msgclass - ConversionTrackingStatusEnum::ConversionTrackingStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/conversion_value_rule_primary_dimension_pb.rb b/lib/google/ads/google_ads/v12/enums/conversion_value_rule_primary_dimension_pb.rb deleted file mode 100644 index 2a2a43b55..000000000 --- a/lib/google/ads/google_ads/v12/enums/conversion_value_rule_primary_dimension_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/conversion_value_rule_primary_dimension.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/conversion_value_rule_primary_dimension.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ConversionValueRulePrimaryDimensionEnum" do - end - add_enum "google.ads.googleads.v12.enums.ConversionValueRulePrimaryDimensionEnum.ConversionValueRulePrimaryDimension" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NO_RULE_APPLIED, 2 - value :ORIGINAL, 3 - value :NEW_VS_RETURNING_USER, 4 - value :GEO_LOCATION, 5 - value :DEVICE, 6 - value :AUDIENCE, 7 - value :MULTIPLE, 8 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ConversionValueRulePrimaryDimensionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionValueRulePrimaryDimensionEnum").msgclass - ConversionValueRulePrimaryDimensionEnum::ConversionValueRulePrimaryDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionValueRulePrimaryDimensionEnum.ConversionValueRulePrimaryDimension").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/conversion_value_rule_set_status_pb.rb b/lib/google/ads/google_ads/v12/enums/conversion_value_rule_set_status_pb.rb deleted file mode 100644 index adc5d56dd..000000000 --- a/lib/google/ads/google_ads/v12/enums/conversion_value_rule_set_status_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/conversion_value_rule_set_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/conversion_value_rule_set_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ConversionValueRuleSetStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - value :PAUSED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ConversionValueRuleSetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionValueRuleSetStatusEnum").msgclass - ConversionValueRuleSetStatusEnum::ConversionValueRuleSetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/conversion_value_rule_status_pb.rb b/lib/google/ads/google_ads/v12/enums/conversion_value_rule_status_pb.rb deleted file mode 100644 index 571da29ee..000000000 --- a/lib/google/ads/google_ads/v12/enums/conversion_value_rule_status_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/conversion_value_rule_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/conversion_value_rule_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ConversionValueRuleStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - value :PAUSED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ConversionValueRuleStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionValueRuleStatusEnum").msgclass - ConversionValueRuleStatusEnum::ConversionValueRuleStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/criterion_category_channel_availability_mode_pb.rb b/lib/google/ads/google_ads/v12/enums/criterion_category_channel_availability_mode_pb.rb deleted file mode 100644 index ff0146cd7..000000000 --- a/lib/google/ads/google_ads/v12/enums/criterion_category_channel_availability_mode_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/criterion_category_channel_availability_mode.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/criterion_category_channel_availability_mode.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CriterionCategoryChannelAvailabilityModeEnum" do - end - add_enum "google.ads.googleads.v12.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ALL_CHANNELS, 2 - value :CHANNEL_TYPE_AND_ALL_SUBTYPES, 3 - value :CHANNEL_TYPE_AND_SUBSET_SUBTYPES, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CriterionCategoryChannelAvailabilityModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CriterionCategoryChannelAvailabilityModeEnum").msgclass - CriterionCategoryChannelAvailabilityModeEnum::CriterionCategoryChannelAvailabilityMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/criterion_category_locale_availability_mode_pb.rb b/lib/google/ads/google_ads/v12/enums/criterion_category_locale_availability_mode_pb.rb deleted file mode 100644 index 5c1a98431..000000000 --- a/lib/google/ads/google_ads/v12/enums/criterion_category_locale_availability_mode_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/criterion_category_locale_availability_mode.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/criterion_category_locale_availability_mode.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CriterionCategoryLocaleAvailabilityModeEnum" do - end - add_enum "google.ads.googleads.v12.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ALL_LOCALES, 2 - value :COUNTRY_AND_ALL_LANGUAGES, 3 - value :LANGUAGE_AND_ALL_COUNTRIES, 4 - value :COUNTRY_AND_LANGUAGE, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CriterionCategoryLocaleAvailabilityModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CriterionCategoryLocaleAvailabilityModeEnum").msgclass - CriterionCategoryLocaleAvailabilityModeEnum::CriterionCategoryLocaleAvailabilityMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/criterion_system_serving_status_pb.rb b/lib/google/ads/google_ads/v12/enums/criterion_system_serving_status_pb.rb deleted file mode 100644 index d17ef8fb0..000000000 --- a/lib/google/ads/google_ads/v12/enums/criterion_system_serving_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/criterion_system_serving_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/criterion_system_serving_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CriterionSystemServingStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ELIGIBLE, 2 - value :RARELY_SERVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CriterionSystemServingStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CriterionSystemServingStatusEnum").msgclass - CriterionSystemServingStatusEnum::CriterionSystemServingStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/criterion_type_pb.rb b/lib/google/ads/google_ads/v12/enums/criterion_type_pb.rb deleted file mode 100644 index 952039f12..000000000 --- a/lib/google/ads/google_ads/v12/enums/criterion_type_pb.rb +++ /dev/null @@ -1,62 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/criterion_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/criterion_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CriterionTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.CriterionTypeEnum.CriterionType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :KEYWORD, 2 - value :PLACEMENT, 3 - value :MOBILE_APP_CATEGORY, 4 - value :MOBILE_APPLICATION, 5 - value :DEVICE, 6 - value :LOCATION, 7 - value :LISTING_GROUP, 8 - value :AD_SCHEDULE, 9 - value :AGE_RANGE, 10 - value :GENDER, 11 - value :INCOME_RANGE, 12 - value :PARENTAL_STATUS, 13 - value :YOUTUBE_VIDEO, 14 - value :YOUTUBE_CHANNEL, 15 - value :USER_LIST, 16 - value :PROXIMITY, 17 - value :TOPIC, 18 - value :LISTING_SCOPE, 19 - value :LANGUAGE, 20 - value :IP_BLOCK, 21 - value :CONTENT_LABEL, 22 - value :CARRIER, 23 - value :USER_INTEREST, 24 - value :WEBPAGE, 25 - value :OPERATING_SYSTEM_VERSION, 26 - value :APP_PAYMENT_MODEL, 27 - value :MOBILE_DEVICE, 28 - value :CUSTOM_AFFINITY, 29 - value :CUSTOM_INTENT, 30 - value :LOCATION_GROUP, 31 - value :CUSTOM_AUDIENCE, 32 - value :COMBINED_AUDIENCE, 33 - value :KEYWORD_THEME, 34 - value :AUDIENCE, 35 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CriterionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CriterionTypeEnum").msgclass - CriterionTypeEnum::CriterionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CriterionTypeEnum.CriterionType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/custom_audience_member_type_pb.rb b/lib/google/ads/google_ads/v12/enums/custom_audience_member_type_pb.rb deleted file mode 100644 index 1b990a082..000000000 --- a/lib/google/ads/google_ads/v12/enums/custom_audience_member_type_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/custom_audience_member_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/custom_audience_member_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CustomAudienceMemberTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :KEYWORD, 2 - value :URL, 3 - value :PLACE_CATEGORY, 4 - value :APP, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CustomAudienceMemberTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomAudienceMemberTypeEnum").msgclass - CustomAudienceMemberTypeEnum::CustomAudienceMemberType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/custom_audience_status_pb.rb b/lib/google/ads/google_ads/v12/enums/custom_audience_status_pb.rb deleted file mode 100644 index 1bd561947..000000000 --- a/lib/google/ads/google_ads/v12/enums/custom_audience_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/custom_audience_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/custom_audience_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CustomAudienceStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.CustomAudienceStatusEnum.CustomAudienceStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CustomAudienceStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomAudienceStatusEnum").msgclass - CustomAudienceStatusEnum::CustomAudienceStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomAudienceStatusEnum.CustomAudienceStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/custom_audience_type_pb.rb b/lib/google/ads/google_ads/v12/enums/custom_audience_type_pb.rb deleted file mode 100644 index d8b871704..000000000 --- a/lib/google/ads/google_ads/v12/enums/custom_audience_type_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/custom_audience_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/custom_audience_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CustomAudienceTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.CustomAudienceTypeEnum.CustomAudienceType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AUTO, 2 - value :INTEREST, 3 - value :PURCHASE_INTENT, 4 - value :SEARCH, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CustomAudienceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomAudienceTypeEnum").msgclass - CustomAudienceTypeEnum::CustomAudienceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomAudienceTypeEnum.CustomAudienceType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/custom_conversion_goal_status_pb.rb b/lib/google/ads/google_ads/v12/enums/custom_conversion_goal_status_pb.rb deleted file mode 100644 index cf396d2ac..000000000 --- a/lib/google/ads/google_ads/v12/enums/custom_conversion_goal_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/custom_conversion_goal_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/custom_conversion_goal_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CustomConversionGoalStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CustomConversionGoalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomConversionGoalStatusEnum").msgclass - CustomConversionGoalStatusEnum::CustomConversionGoalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/custom_interest_member_type_pb.rb b/lib/google/ads/google_ads/v12/enums/custom_interest_member_type_pb.rb deleted file mode 100644 index 97997b730..000000000 --- a/lib/google/ads/google_ads/v12/enums/custom_interest_member_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/custom_interest_member_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/custom_interest_member_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CustomInterestMemberTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.CustomInterestMemberTypeEnum.CustomInterestMemberType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :KEYWORD, 2 - value :URL, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CustomInterestMemberTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomInterestMemberTypeEnum").msgclass - CustomInterestMemberTypeEnum::CustomInterestMemberType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomInterestMemberTypeEnum.CustomInterestMemberType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/custom_interest_status_pb.rb b/lib/google/ads/google_ads/v12/enums/custom_interest_status_pb.rb deleted file mode 100644 index 164514d9f..000000000 --- a/lib/google/ads/google_ads/v12/enums/custom_interest_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/custom_interest_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/custom_interest_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CustomInterestStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.CustomInterestStatusEnum.CustomInterestStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CustomInterestStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomInterestStatusEnum").msgclass - CustomInterestStatusEnum::CustomInterestStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomInterestStatusEnum.CustomInterestStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/custom_interest_type_pb.rb b/lib/google/ads/google_ads/v12/enums/custom_interest_type_pb.rb deleted file mode 100644 index a525c9c61..000000000 --- a/lib/google/ads/google_ads/v12/enums/custom_interest_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/custom_interest_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/custom_interest_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CustomInterestTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.CustomInterestTypeEnum.CustomInterestType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CUSTOM_AFFINITY, 2 - value :CUSTOM_INTENT, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CustomInterestTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomInterestTypeEnum").msgclass - CustomInterestTypeEnum::CustomInterestType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomInterestTypeEnum.CustomInterestType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/custom_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/custom_placeholder_field_pb.rb deleted file mode 100644 index 364bf7e93..000000000 --- a/lib/google/ads/google_ads/v12/enums/custom_placeholder_field_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/custom_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/custom_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CustomPlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.CustomPlaceholderFieldEnum.CustomPlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ID, 2 - value :ID2, 3 - value :ITEM_TITLE, 4 - value :ITEM_SUBTITLE, 5 - value :ITEM_DESCRIPTION, 6 - value :ITEM_ADDRESS, 7 - value :PRICE, 8 - value :FORMATTED_PRICE, 9 - value :SALE_PRICE, 10 - value :FORMATTED_SALE_PRICE, 11 - value :IMAGE_URL, 12 - value :ITEM_CATEGORY, 13 - value :FINAL_URLS, 14 - value :FINAL_MOBILE_URLS, 15 - value :TRACKING_URL, 16 - value :CONTEXTUAL_KEYWORDS, 17 - value :ANDROID_APP_LINK, 18 - value :SIMILAR_IDS, 19 - value :IOS_APP_LINK, 20 - value :IOS_APP_STORE_ID, 21 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CustomPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomPlaceholderFieldEnum").msgclass - CustomPlaceholderFieldEnum::CustomPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomPlaceholderFieldEnum.CustomPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/customer_match_upload_key_type_pb.rb b/lib/google/ads/google_ads/v12/enums/customer_match_upload_key_type_pb.rb deleted file mode 100644 index 643c8bc26..000000000 --- a/lib/google/ads/google_ads/v12/enums/customer_match_upload_key_type_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/customer_match_upload_key_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/customer_match_upload_key_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CustomerMatchUploadKeyTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CONTACT_INFO, 2 - value :CRM_ID, 3 - value :MOBILE_ADVERTISING_ID, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CustomerMatchUploadKeyTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomerMatchUploadKeyTypeEnum").msgclass - CustomerMatchUploadKeyTypeEnum::CustomerMatchUploadKeyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/customer_pay_per_conversion_eligibility_failure_reason_pb.rb b/lib/google/ads/google_ads/v12/enums/customer_pay_per_conversion_eligibility_failure_reason_pb.rb deleted file mode 100644 index 7381c4eeb..000000000 --- a/lib/google/ads/google_ads/v12/enums/customer_pay_per_conversion_eligibility_failure_reason_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/customer_pay_per_conversion_eligibility_failure_reason.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/customer_pay_per_conversion_eligibility_failure_reason.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CustomerPayPerConversionEligibilityFailureReasonEnum" do - end - add_enum "google.ads.googleads.v12.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NOT_ENOUGH_CONVERSIONS, 2 - value :CONVERSION_LAG_TOO_HIGH, 3 - value :HAS_CAMPAIGN_WITH_SHARED_BUDGET, 4 - value :HAS_UPLOAD_CLICKS_CONVERSION, 5 - value :AVERAGE_DAILY_SPEND_TOO_HIGH, 6 - value :ANALYSIS_NOT_COMPLETE, 7 - value :OTHER, 8 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CustomerPayPerConversionEligibilityFailureReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomerPayPerConversionEligibilityFailureReasonEnum").msgclass - CustomerPayPerConversionEligibilityFailureReasonEnum::CustomerPayPerConversionEligibilityFailureReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/customer_status_pb.rb b/lib/google/ads/google_ads/v12/enums/customer_status_pb.rb deleted file mode 100644 index e27c7987c..000000000 --- a/lib/google/ads/google_ads/v12/enums/customer_status_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/customer_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/customer_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CustomerStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.CustomerStatusEnum.CustomerStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :CANCELED, 3 - value :SUSPENDED, 4 - value :CLOSED, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CustomerStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomerStatusEnum").msgclass - CustomerStatusEnum::CustomerStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomerStatusEnum.CustomerStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/customizer_attribute_status_pb.rb b/lib/google/ads/google_ads/v12/enums/customizer_attribute_status_pb.rb deleted file mode 100644 index c02faefdc..000000000 --- a/lib/google/ads/google_ads/v12/enums/customizer_attribute_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/customizer_attribute_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/customizer_attribute_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CustomizerAttributeStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.CustomizerAttributeStatusEnum.CustomizerAttributeStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CustomizerAttributeStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomizerAttributeStatusEnum").msgclass - CustomizerAttributeStatusEnum::CustomizerAttributeStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomizerAttributeStatusEnum.CustomizerAttributeStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/customizer_attribute_type_pb.rb b/lib/google/ads/google_ads/v12/enums/customizer_attribute_type_pb.rb deleted file mode 100644 index 6e74a289e..000000000 --- a/lib/google/ads/google_ads/v12/enums/customizer_attribute_type_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/customizer_attribute_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/customizer_attribute_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CustomizerAttributeTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.CustomizerAttributeTypeEnum.CustomizerAttributeType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :TEXT, 2 - value :NUMBER, 3 - value :PRICE, 4 - value :PERCENT, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CustomizerAttributeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomizerAttributeTypeEnum").msgclass - CustomizerAttributeTypeEnum::CustomizerAttributeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomizerAttributeTypeEnum.CustomizerAttributeType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/customizer_value_status_pb.rb b/lib/google/ads/google_ads/v12/enums/customizer_value_status_pb.rb deleted file mode 100644 index 4b5769ecf..000000000 --- a/lib/google/ads/google_ads/v12/enums/customizer_value_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/customizer_value_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/customizer_value_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.CustomizerValueStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.CustomizerValueStatusEnum.CustomizerValueStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - CustomizerValueStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomizerValueStatusEnum").msgclass - CustomizerValueStatusEnum::CustomizerValueStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.CustomizerValueStatusEnum.CustomizerValueStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/data_driven_model_status_pb.rb b/lib/google/ads/google_ads/v12/enums/data_driven_model_status_pb.rb deleted file mode 100644 index 6eb12896d..000000000 --- a/lib/google/ads/google_ads/v12/enums/data_driven_model_status_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/data_driven_model_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/data_driven_model_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.DataDrivenModelStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AVAILABLE, 2 - value :STALE, 3 - value :EXPIRED, 4 - value :NEVER_GENERATED, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - DataDrivenModelStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.DataDrivenModelStatusEnum").msgclass - DataDrivenModelStatusEnum::DataDrivenModelStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/day_of_week_pb.rb b/lib/google/ads/google_ads/v12/enums/day_of_week_pb.rb deleted file mode 100644 index 7da316b0b..000000000 --- a/lib/google/ads/google_ads/v12/enums/day_of_week_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/day_of_week.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/day_of_week.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.DayOfWeekEnum" do - end - add_enum "google.ads.googleads.v12.enums.DayOfWeekEnum.DayOfWeek" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :MONDAY, 2 - value :TUESDAY, 3 - value :WEDNESDAY, 4 - value :THURSDAY, 5 - value :FRIDAY, 6 - value :SATURDAY, 7 - value :SUNDAY, 8 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - DayOfWeekEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.DayOfWeekEnum").msgclass - DayOfWeekEnum::DayOfWeek = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.DayOfWeekEnum.DayOfWeek").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/device_pb.rb b/lib/google/ads/google_ads/v12/enums/device_pb.rb deleted file mode 100644 index a87465da2..000000000 --- a/lib/google/ads/google_ads/v12/enums/device_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/device.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/device.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.DeviceEnum" do - end - add_enum "google.ads.googleads.v12.enums.DeviceEnum.Device" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :MOBILE, 2 - value :TABLET, 3 - value :DESKTOP, 4 - value :CONNECTED_TV, 6 - value :OTHER, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - DeviceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.DeviceEnum").msgclass - DeviceEnum::Device = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.DeviceEnum.Device").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/display_ad_format_setting_pb.rb b/lib/google/ads/google_ads/v12/enums/display_ad_format_setting_pb.rb deleted file mode 100644 index 395dcd1e9..000000000 --- a/lib/google/ads/google_ads/v12/enums/display_ad_format_setting_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/display_ad_format_setting.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/display_ad_format_setting.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.DisplayAdFormatSettingEnum" do - end - add_enum "google.ads.googleads.v12.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ALL_FORMATS, 2 - value :NON_NATIVE, 3 - value :NATIVE, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - DisplayAdFormatSettingEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.DisplayAdFormatSettingEnum").msgclass - DisplayAdFormatSettingEnum::DisplayAdFormatSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/display_upload_product_type_pb.rb b/lib/google/ads/google_ads/v12/enums/display_upload_product_type_pb.rb deleted file mode 100644 index 26f49ffb6..000000000 --- a/lib/google/ads/google_ads/v12/enums/display_upload_product_type_pb.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/display_upload_product_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/display_upload_product_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.DisplayUploadProductTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.DisplayUploadProductTypeEnum.DisplayUploadProductType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :HTML5_UPLOAD_AD, 2 - value :DYNAMIC_HTML5_EDUCATION_AD, 3 - value :DYNAMIC_HTML5_FLIGHT_AD, 4 - value :DYNAMIC_HTML5_HOTEL_RENTAL_AD, 5 - value :DYNAMIC_HTML5_JOB_AD, 6 - value :DYNAMIC_HTML5_LOCAL_AD, 7 - value :DYNAMIC_HTML5_REAL_ESTATE_AD, 8 - value :DYNAMIC_HTML5_CUSTOM_AD, 9 - value :DYNAMIC_HTML5_TRAVEL_AD, 10 - value :DYNAMIC_HTML5_HOTEL_AD, 11 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - DisplayUploadProductTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.DisplayUploadProductTypeEnum").msgclass - DisplayUploadProductTypeEnum::DisplayUploadProductType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.DisplayUploadProductTypeEnum.DisplayUploadProductType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/distance_bucket_pb.rb b/lib/google/ads/google_ads/v12/enums/distance_bucket_pb.rb deleted file mode 100644 index 324dfab18..000000000 --- a/lib/google/ads/google_ads/v12/enums/distance_bucket_pb.rb +++ /dev/null @@ -1,55 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/distance_bucket.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/distance_bucket.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.DistanceBucketEnum" do - end - add_enum "google.ads.googleads.v12.enums.DistanceBucketEnum.DistanceBucket" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :WITHIN_700M, 2 - value :WITHIN_1KM, 3 - value :WITHIN_5KM, 4 - value :WITHIN_10KM, 5 - value :WITHIN_15KM, 6 - value :WITHIN_20KM, 7 - value :WITHIN_25KM, 8 - value :WITHIN_30KM, 9 - value :WITHIN_35KM, 10 - value :WITHIN_40KM, 11 - value :WITHIN_45KM, 12 - value :WITHIN_50KM, 13 - value :WITHIN_55KM, 14 - value :WITHIN_60KM, 15 - value :WITHIN_65KM, 16 - value :BEYOND_65KM, 17 - value :WITHIN_0_7MILES, 18 - value :WITHIN_1MILE, 19 - value :WITHIN_5MILES, 20 - value :WITHIN_10MILES, 21 - value :WITHIN_15MILES, 22 - value :WITHIN_20MILES, 23 - value :WITHIN_25MILES, 24 - value :WITHIN_30MILES, 25 - value :WITHIN_35MILES, 26 - value :WITHIN_40MILES, 27 - value :BEYOND_40MILES, 28 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - DistanceBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.DistanceBucketEnum").msgclass - DistanceBucketEnum::DistanceBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.DistanceBucketEnum.DistanceBucket").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/dsa_page_feed_criterion_field_pb.rb b/lib/google/ads/google_ads/v12/enums/dsa_page_feed_criterion_field_pb.rb deleted file mode 100644 index 52c95c3e9..000000000 --- a/lib/google/ads/google_ads/v12/enums/dsa_page_feed_criterion_field_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/dsa_page_feed_criterion_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/dsa_page_feed_criterion_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.DsaPageFeedCriterionFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.DsaPageFeedCriterionFieldEnum.DsaPageFeedCriterionField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PAGE_URL, 2 - value :LABEL, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - DsaPageFeedCriterionFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.DsaPageFeedCriterionFieldEnum").msgclass - DsaPageFeedCriterionFieldEnum::DsaPageFeedCriterionField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.DsaPageFeedCriterionFieldEnum.DsaPageFeedCriterionField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/education_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/education_placeholder_field_pb.rb deleted file mode 100644 index 72c748bbe..000000000 --- a/lib/google/ads/google_ads/v12/enums/education_placeholder_field_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/education_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/education_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.EducationPlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.EducationPlaceholderFieldEnum.EducationPlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PROGRAM_ID, 2 - value :LOCATION_ID, 3 - value :PROGRAM_NAME, 4 - value :AREA_OF_STUDY, 5 - value :PROGRAM_DESCRIPTION, 6 - value :SCHOOL_NAME, 7 - value :ADDRESS, 8 - value :THUMBNAIL_IMAGE_URL, 9 - value :ALTERNATIVE_THUMBNAIL_IMAGE_URL, 10 - value :FINAL_URLS, 11 - value :FINAL_MOBILE_URLS, 12 - value :TRACKING_URL, 13 - value :CONTEXTUAL_KEYWORDS, 14 - value :ANDROID_APP_LINK, 15 - value :SIMILAR_PROGRAM_IDS, 16 - value :IOS_APP_LINK, 17 - value :IOS_APP_STORE_ID, 18 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - EducationPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.EducationPlaceholderFieldEnum").msgclass - EducationPlaceholderFieldEnum::EducationPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.EducationPlaceholderFieldEnum.EducationPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/experiment_metric_direction_pb.rb b/lib/google/ads/google_ads/v12/enums/experiment_metric_direction_pb.rb deleted file mode 100644 index 30bd62999..000000000 --- a/lib/google/ads/google_ads/v12/enums/experiment_metric_direction_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/experiment_metric_direction.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/experiment_metric_direction.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ExperimentMetricDirectionEnum" do - end - add_enum "google.ads.googleads.v12.enums.ExperimentMetricDirectionEnum.ExperimentMetricDirection" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NO_CHANGE, 2 - value :INCREASE, 3 - value :DECREASE, 4 - value :NO_CHANGE_OR_INCREASE, 5 - value :NO_CHANGE_OR_DECREASE, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ExperimentMetricDirectionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ExperimentMetricDirectionEnum").msgclass - ExperimentMetricDirectionEnum::ExperimentMetricDirection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ExperimentMetricDirectionEnum.ExperimentMetricDirection").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/experiment_metric_pb.rb b/lib/google/ads/google_ads/v12/enums/experiment_metric_pb.rb deleted file mode 100644 index e5b3cdcdb..000000000 --- a/lib/google/ads/google_ads/v12/enums/experiment_metric_pb.rb +++ /dev/null @@ -1,41 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/experiment_metric.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/experiment_metric.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ExperimentMetricEnum" do - end - add_enum "google.ads.googleads.v12.enums.ExperimentMetricEnum.ExperimentMetric" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CLICKS, 2 - value :IMPRESSIONS, 3 - value :COST, 4 - value :CONVERSIONS_PER_INTERACTION_RATE, 5 - value :COST_PER_CONVERSION, 6 - value :CONVERSIONS_VALUE_PER_COST, 7 - value :AVERAGE_CPC, 8 - value :CTR, 9 - value :INCREMENTAL_CONVERSIONS, 10 - value :COMPLETED_VIDEO_VIEWS, 11 - value :CUSTOM_ALGORITHMS, 12 - value :CONVERSIONS, 13 - value :CONVERSION_VALUE, 14 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ExperimentMetricEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ExperimentMetricEnum").msgclass - ExperimentMetricEnum::ExperimentMetric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ExperimentMetricEnum.ExperimentMetric").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/experiment_status_pb.rb b/lib/google/ads/google_ads/v12/enums/experiment_status_pb.rb deleted file mode 100644 index be53b7800..000000000 --- a/lib/google/ads/google_ads/v12/enums/experiment_status_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/experiment_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/experiment_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ExperimentStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.ExperimentStatusEnum.ExperimentStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - value :HALTED, 4 - value :PROMOTED, 5 - value :SETUP, 6 - value :INITIATED, 7 - value :GRADUATED, 8 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ExperimentStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ExperimentStatusEnum").msgclass - ExperimentStatusEnum::ExperimentStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ExperimentStatusEnum.ExperimentStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/experiment_type_pb.rb b/lib/google/ads/google_ads/v12/enums/experiment_type_pb.rb deleted file mode 100644 index 245b2bcd3..000000000 --- a/lib/google/ads/google_ads/v12/enums/experiment_type_pb.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/experiment_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/experiment_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ExperimentTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ExperimentTypeEnum.ExperimentType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DISPLAY_AND_VIDEO_360, 2 - value :AD_VARIATION, 3 - value :YOUTUBE_CUSTOM, 5 - value :DISPLAY_CUSTOM, 6 - value :SEARCH_CUSTOM, 7 - value :DISPLAY_AUTOMATED_BIDDING_STRATEGY, 8 - value :SEARCH_AUTOMATED_BIDDING_STRATEGY, 9 - value :SHOPPING_AUTOMATED_BIDDING_STRATEGY, 10 - value :SMART_MATCHING, 11 - value :HOTEL_CUSTOM, 12 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ExperimentTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ExperimentTypeEnum").msgclass - ExperimentTypeEnum::ExperimentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ExperimentTypeEnum.ExperimentType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/extension_setting_device_pb.rb b/lib/google/ads/google_ads/v12/enums/extension_setting_device_pb.rb deleted file mode 100644 index 18117fa55..000000000 --- a/lib/google/ads/google_ads/v12/enums/extension_setting_device_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/extension_setting_device.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/extension_setting_device.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ExtensionSettingDeviceEnum" do - end - add_enum "google.ads.googleads.v12.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :MOBILE, 2 - value :DESKTOP, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ExtensionSettingDeviceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ExtensionSettingDeviceEnum").msgclass - ExtensionSettingDeviceEnum::ExtensionSettingDevice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/extension_type_pb.rb b/lib/google/ads/google_ads/v12/enums/extension_type_pb.rb deleted file mode 100644 index 96d0f3374..000000000 --- a/lib/google/ads/google_ads/v12/enums/extension_type_pb.rb +++ /dev/null @@ -1,41 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/extension_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/extension_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ExtensionTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ExtensionTypeEnum.ExtensionType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NONE, 2 - value :APP, 3 - value :CALL, 4 - value :CALLOUT, 5 - value :MESSAGE, 6 - value :PRICE, 7 - value :PROMOTION, 8 - value :SITELINK, 10 - value :STRUCTURED_SNIPPET, 11 - value :LOCATION, 12 - value :AFFILIATE_LOCATION, 13 - value :HOTEL_CALLOUT, 15 - value :IMAGE, 16 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ExtensionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ExtensionTypeEnum").msgclass - ExtensionTypeEnum::ExtensionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ExtensionTypeEnum.ExtensionType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/external_conversion_source_pb.rb b/lib/google/ads/google_ads/v12/enums/external_conversion_source_pb.rb deleted file mode 100644 index ba49c761a..000000000 --- a/lib/google/ads/google_ads/v12/enums/external_conversion_source_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/external_conversion_source.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/external_conversion_source.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ExternalConversionSourceEnum" do - end - add_enum "google.ads.googleads.v12.enums.ExternalConversionSourceEnum.ExternalConversionSource" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :WEBPAGE, 2 - value :ANALYTICS, 3 - value :UPLOAD, 4 - value :AD_CALL_METRICS, 5 - value :WEBSITE_CALL_METRICS, 6 - value :STORE_VISITS, 7 - value :ANDROID_IN_APP, 8 - value :IOS_IN_APP, 9 - value :IOS_FIRST_OPEN, 10 - value :APP_UNSPECIFIED, 11 - value :ANDROID_FIRST_OPEN, 12 - value :UPLOAD_CALLS, 13 - value :FIREBASE, 14 - value :CLICK_TO_CALL, 15 - value :SALESFORCE, 16 - value :STORE_SALES_CRM, 17 - value :STORE_SALES_PAYMENT_NETWORK, 18 - value :GOOGLE_PLAY, 19 - value :THIRD_PARTY_APP_ANALYTICS, 20 - value :GOOGLE_ATTRIBUTION, 21 - value :STORE_SALES_DIRECT_UPLOAD, 23 - value :STORE_SALES, 24 - value :SEARCH_ADS_360, 25 - value :GOOGLE_HOSTED, 27 - value :FLOODLIGHT, 29 - value :ANALYTICS_SEARCH_ADS_360, 31 - value :FIREBASE_SEARCH_ADS_360, 33 - value :DISPLAY_AND_VIDEO_360_FLOODLIGHT, 34 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ExternalConversionSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ExternalConversionSourceEnum").msgclass - ExternalConversionSourceEnum::ExternalConversionSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ExternalConversionSourceEnum.ExternalConversionSource").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/feed_attribute_type_pb.rb b/lib/google/ads/google_ads/v12/enums/feed_attribute_type_pb.rb deleted file mode 100644 index b549d95ed..000000000 --- a/lib/google/ads/google_ads/v12/enums/feed_attribute_type_pb.rb +++ /dev/null @@ -1,41 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/feed_attribute_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/feed_attribute_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FeedAttributeTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.FeedAttributeTypeEnum.FeedAttributeType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INT64, 2 - value :DOUBLE, 3 - value :STRING, 4 - value :BOOLEAN, 5 - value :URL, 6 - value :DATE_TIME, 7 - value :INT64_LIST, 8 - value :DOUBLE_LIST, 9 - value :STRING_LIST, 10 - value :BOOLEAN_LIST, 11 - value :URL_LIST, 12 - value :DATE_TIME_LIST, 13 - value :PRICE, 14 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FeedAttributeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedAttributeTypeEnum").msgclass - FeedAttributeTypeEnum::FeedAttributeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedAttributeTypeEnum.FeedAttributeType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/feed_item_quality_approval_status_pb.rb b/lib/google/ads/google_ads/v12/enums/feed_item_quality_approval_status_pb.rb deleted file mode 100644 index 86240ab8a..000000000 --- a/lib/google/ads/google_ads/v12/enums/feed_item_quality_approval_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/feed_item_quality_approval_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/feed_item_quality_approval_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FeedItemQualityApprovalStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :APPROVED, 2 - value :DISAPPROVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FeedItemQualityApprovalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemQualityApprovalStatusEnum").msgclass - FeedItemQualityApprovalStatusEnum::FeedItemQualityApprovalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/feed_item_quality_disapproval_reason_pb.rb b/lib/google/ads/google_ads/v12/enums/feed_item_quality_disapproval_reason_pb.rb deleted file mode 100644 index 3fb5fa134..000000000 --- a/lib/google/ads/google_ads/v12/enums/feed_item_quality_disapproval_reason_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/feed_item_quality_disapproval_reason.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/feed_item_quality_disapproval_reason.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FeedItemQualityDisapprovalReasonEnum" do - end - add_enum "google.ads.googleads.v12.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PRICE_TABLE_REPETITIVE_HEADERS, 2 - value :PRICE_TABLE_REPETITIVE_DESCRIPTION, 3 - value :PRICE_TABLE_INCONSISTENT_ROWS, 4 - value :PRICE_DESCRIPTION_HAS_PRICE_QUALIFIERS, 5 - value :PRICE_UNSUPPORTED_LANGUAGE, 6 - value :PRICE_TABLE_ROW_HEADER_TABLE_TYPE_MISMATCH, 7 - value :PRICE_TABLE_ROW_HEADER_HAS_PROMOTIONAL_TEXT, 8 - value :PRICE_TABLE_ROW_DESCRIPTION_NOT_RELEVANT, 9 - value :PRICE_TABLE_ROW_DESCRIPTION_HAS_PROMOTIONAL_TEXT, 10 - value :PRICE_TABLE_ROW_HEADER_DESCRIPTION_REPETITIVE, 11 - value :PRICE_TABLE_ROW_UNRATEABLE, 12 - value :PRICE_TABLE_ROW_PRICE_INVALID, 13 - value :PRICE_TABLE_ROW_URL_INVALID, 14 - value :PRICE_HEADER_OR_DESCRIPTION_HAS_PRICE, 15 - value :STRUCTURED_SNIPPETS_HEADER_POLICY_VIOLATED, 16 - value :STRUCTURED_SNIPPETS_REPEATED_VALUES, 17 - value :STRUCTURED_SNIPPETS_EDITORIAL_GUIDELINES, 18 - value :STRUCTURED_SNIPPETS_HAS_PROMOTIONAL_TEXT, 19 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FeedItemQualityDisapprovalReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemQualityDisapprovalReasonEnum").msgclass - FeedItemQualityDisapprovalReasonEnum::FeedItemQualityDisapprovalReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/feed_item_set_status_pb.rb b/lib/google/ads/google_ads/v12/enums/feed_item_set_status_pb.rb deleted file mode 100644 index 44062f2bb..000000000 --- a/lib/google/ads/google_ads/v12/enums/feed_item_set_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/feed_item_set_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/feed_item_set_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FeedItemSetStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.FeedItemSetStatusEnum.FeedItemSetStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FeedItemSetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemSetStatusEnum").msgclass - FeedItemSetStatusEnum::FeedItemSetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemSetStatusEnum.FeedItemSetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/feed_item_set_string_filter_type_pb.rb b/lib/google/ads/google_ads/v12/enums/feed_item_set_string_filter_type_pb.rb deleted file mode 100644 index f7ba3b1f1..000000000 --- a/lib/google/ads/google_ads/v12/enums/feed_item_set_string_filter_type_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/feed_item_set_string_filter_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/feed_item_set_string_filter_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FeedItemSetStringFilterTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.FeedItemSetStringFilterTypeEnum.FeedItemSetStringFilterType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :EXACT, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FeedItemSetStringFilterTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemSetStringFilterTypeEnum").msgclass - FeedItemSetStringFilterTypeEnum::FeedItemSetStringFilterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemSetStringFilterTypeEnum.FeedItemSetStringFilterType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/feed_item_status_pb.rb b/lib/google/ads/google_ads/v12/enums/feed_item_status_pb.rb deleted file mode 100644 index 5108d5a20..000000000 --- a/lib/google/ads/google_ads/v12/enums/feed_item_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/feed_item_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/feed_item_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FeedItemStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.FeedItemStatusEnum.FeedItemStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FeedItemStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemStatusEnum").msgclass - FeedItemStatusEnum::FeedItemStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemStatusEnum.FeedItemStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/feed_item_target_device_pb.rb b/lib/google/ads/google_ads/v12/enums/feed_item_target_device_pb.rb deleted file mode 100644 index 1384d7e2d..000000000 --- a/lib/google/ads/google_ads/v12/enums/feed_item_target_device_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/feed_item_target_device.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/feed_item_target_device.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FeedItemTargetDeviceEnum" do - end - add_enum "google.ads.googleads.v12.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :MOBILE, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FeedItemTargetDeviceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemTargetDeviceEnum").msgclass - FeedItemTargetDeviceEnum::FeedItemTargetDevice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/feed_item_target_status_pb.rb b/lib/google/ads/google_ads/v12/enums/feed_item_target_status_pb.rb deleted file mode 100644 index 70b14d04d..000000000 --- a/lib/google/ads/google_ads/v12/enums/feed_item_target_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/feed_item_target_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/feed_item_target_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FeedItemTargetStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.FeedItemTargetStatusEnum.FeedItemTargetStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FeedItemTargetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemTargetStatusEnum").msgclass - FeedItemTargetStatusEnum::FeedItemTargetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemTargetStatusEnum.FeedItemTargetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/feed_item_target_type_pb.rb b/lib/google/ads/google_ads/v12/enums/feed_item_target_type_pb.rb deleted file mode 100644 index 645f22492..000000000 --- a/lib/google/ads/google_ads/v12/enums/feed_item_target_type_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/feed_item_target_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/feed_item_target_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FeedItemTargetTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.FeedItemTargetTypeEnum.FeedItemTargetType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CAMPAIGN, 2 - value :AD_GROUP, 3 - value :CRITERION, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FeedItemTargetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemTargetTypeEnum").msgclass - FeedItemTargetTypeEnum::FeedItemTargetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemTargetTypeEnum.FeedItemTargetType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/feed_item_validation_status_pb.rb b/lib/google/ads/google_ads/v12/enums/feed_item_validation_status_pb.rb deleted file mode 100644 index 1df7ca018..000000000 --- a/lib/google/ads/google_ads/v12/enums/feed_item_validation_status_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/feed_item_validation_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/feed_item_validation_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FeedItemValidationStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PENDING, 2 - value :INVALID, 3 - value :VALID, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FeedItemValidationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemValidationStatusEnum").msgclass - FeedItemValidationStatusEnum::FeedItemValidationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/feed_link_status_pb.rb b/lib/google/ads/google_ads/v12/enums/feed_link_status_pb.rb deleted file mode 100644 index b9a718e47..000000000 --- a/lib/google/ads/google_ads/v12/enums/feed_link_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/feed_link_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/feed_link_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FeedLinkStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.FeedLinkStatusEnum.FeedLinkStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FeedLinkStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedLinkStatusEnum").msgclass - FeedLinkStatusEnum::FeedLinkStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedLinkStatusEnum.FeedLinkStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/feed_mapping_criterion_type_pb.rb b/lib/google/ads/google_ads/v12/enums/feed_mapping_criterion_type_pb.rb deleted file mode 100644 index 63d6ec05b..000000000 --- a/lib/google/ads/google_ads/v12/enums/feed_mapping_criterion_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/feed_mapping_criterion_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/feed_mapping_criterion_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FeedMappingCriterionTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.FeedMappingCriterionTypeEnum.FeedMappingCriterionType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :LOCATION_EXTENSION_TARGETING, 4 - value :DSA_PAGE_FEED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FeedMappingCriterionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedMappingCriterionTypeEnum").msgclass - FeedMappingCriterionTypeEnum::FeedMappingCriterionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedMappingCriterionTypeEnum.FeedMappingCriterionType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/feed_mapping_status_pb.rb b/lib/google/ads/google_ads/v12/enums/feed_mapping_status_pb.rb deleted file mode 100644 index c88860e08..000000000 --- a/lib/google/ads/google_ads/v12/enums/feed_mapping_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/feed_mapping_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/feed_mapping_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FeedMappingStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.FeedMappingStatusEnum.FeedMappingStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FeedMappingStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedMappingStatusEnum").msgclass - FeedMappingStatusEnum::FeedMappingStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedMappingStatusEnum.FeedMappingStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/feed_origin_pb.rb b/lib/google/ads/google_ads/v12/enums/feed_origin_pb.rb deleted file mode 100644 index 3ac03474e..000000000 --- a/lib/google/ads/google_ads/v12/enums/feed_origin_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/feed_origin.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/feed_origin.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FeedOriginEnum" do - end - add_enum "google.ads.googleads.v12.enums.FeedOriginEnum.FeedOrigin" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :USER, 2 - value :GOOGLE, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FeedOriginEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedOriginEnum").msgclass - FeedOriginEnum::FeedOrigin = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedOriginEnum.FeedOrigin").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/feed_status_pb.rb b/lib/google/ads/google_ads/v12/enums/feed_status_pb.rb deleted file mode 100644 index 7159c17d5..000000000 --- a/lib/google/ads/google_ads/v12/enums/feed_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/feed_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/feed_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FeedStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.FeedStatusEnum.FeedStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FeedStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedStatusEnum").msgclass - FeedStatusEnum::FeedStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FeedStatusEnum.FeedStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/flight_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/flight_placeholder_field_pb.rb deleted file mode 100644 index 553786a54..000000000 --- a/lib/google/ads/google_ads/v12/enums/flight_placeholder_field_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/flight_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/flight_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FlightPlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.FlightPlaceholderFieldEnum.FlightPlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DESTINATION_ID, 2 - value :ORIGIN_ID, 3 - value :FLIGHT_DESCRIPTION, 4 - value :ORIGIN_NAME, 5 - value :DESTINATION_NAME, 6 - value :FLIGHT_PRICE, 7 - value :FORMATTED_PRICE, 8 - value :FLIGHT_SALE_PRICE, 9 - value :FORMATTED_SALE_PRICE, 10 - value :IMAGE_URL, 11 - value :FINAL_URLS, 12 - value :FINAL_MOBILE_URLS, 13 - value :TRACKING_URL, 14 - value :ANDROID_APP_LINK, 15 - value :SIMILAR_DESTINATION_IDS, 16 - value :IOS_APP_LINK, 17 - value :IOS_APP_STORE_ID, 18 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FlightPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FlightPlaceholderFieldEnum").msgclass - FlightPlaceholderFieldEnum::FlightPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FlightPlaceholderFieldEnum.FlightPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/frequency_cap_event_type_pb.rb b/lib/google/ads/google_ads/v12/enums/frequency_cap_event_type_pb.rb deleted file mode 100644 index 81593ec29..000000000 --- a/lib/google/ads/google_ads/v12/enums/frequency_cap_event_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/frequency_cap_event_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/frequency_cap_event_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FrequencyCapEventTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.FrequencyCapEventTypeEnum.FrequencyCapEventType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :IMPRESSION, 2 - value :VIDEO_VIEW, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FrequencyCapEventTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FrequencyCapEventTypeEnum").msgclass - FrequencyCapEventTypeEnum::FrequencyCapEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FrequencyCapEventTypeEnum.FrequencyCapEventType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/frequency_cap_level_pb.rb b/lib/google/ads/google_ads/v12/enums/frequency_cap_level_pb.rb deleted file mode 100644 index f3bb86b8d..000000000 --- a/lib/google/ads/google_ads/v12/enums/frequency_cap_level_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/frequency_cap_level.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/frequency_cap_level.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FrequencyCapLevelEnum" do - end - add_enum "google.ads.googleads.v12.enums.FrequencyCapLevelEnum.FrequencyCapLevel" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AD_GROUP_AD, 2 - value :AD_GROUP, 3 - value :CAMPAIGN, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FrequencyCapLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FrequencyCapLevelEnum").msgclass - FrequencyCapLevelEnum::FrequencyCapLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FrequencyCapLevelEnum.FrequencyCapLevel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/frequency_cap_time_unit_pb.rb b/lib/google/ads/google_ads/v12/enums/frequency_cap_time_unit_pb.rb deleted file mode 100644 index ff7af9bb7..000000000 --- a/lib/google/ads/google_ads/v12/enums/frequency_cap_time_unit_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/frequency_cap_time_unit.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/frequency_cap_time_unit.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.FrequencyCapTimeUnitEnum" do - end - add_enum "google.ads.googleads.v12.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DAY, 2 - value :WEEK, 3 - value :MONTH, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - FrequencyCapTimeUnitEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FrequencyCapTimeUnitEnum").msgclass - FrequencyCapTimeUnitEnum::FrequencyCapTimeUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/gender_type_pb.rb b/lib/google/ads/google_ads/v12/enums/gender_type_pb.rb deleted file mode 100644 index d2ed9e433..000000000 --- a/lib/google/ads/google_ads/v12/enums/gender_type_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/gender_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/gender_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.GenderTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.GenderTypeEnum.GenderType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :MALE, 10 - value :FEMALE, 11 - value :UNDETERMINED, 20 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - GenderTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.GenderTypeEnum").msgclass - GenderTypeEnum::GenderType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.GenderTypeEnum.GenderType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/geo_target_constant_status_pb.rb b/lib/google/ads/google_ads/v12/enums/geo_target_constant_status_pb.rb deleted file mode 100644 index b7cf0a179..000000000 --- a/lib/google/ads/google_ads/v12/enums/geo_target_constant_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/geo_target_constant_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/geo_target_constant_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.GeoTargetConstantStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVAL_PLANNED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - GeoTargetConstantStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.GeoTargetConstantStatusEnum").msgclass - GeoTargetConstantStatusEnum::GeoTargetConstantStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/geo_targeting_restriction_pb.rb b/lib/google/ads/google_ads/v12/enums/geo_targeting_restriction_pb.rb deleted file mode 100644 index 13b53bdfd..000000000 --- a/lib/google/ads/google_ads/v12/enums/geo_targeting_restriction_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/geo_targeting_restriction.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/geo_targeting_restriction.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.GeoTargetingRestrictionEnum" do - end - add_enum "google.ads.googleads.v12.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :LOCATION_OF_PRESENCE, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - GeoTargetingRestrictionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.GeoTargetingRestrictionEnum").msgclass - GeoTargetingRestrictionEnum::GeoTargetingRestriction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/geo_targeting_type_pb.rb b/lib/google/ads/google_ads/v12/enums/geo_targeting_type_pb.rb deleted file mode 100644 index f8e199443..000000000 --- a/lib/google/ads/google_ads/v12/enums/geo_targeting_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/geo_targeting_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/geo_targeting_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.GeoTargetingTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.GeoTargetingTypeEnum.GeoTargetingType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AREA_OF_INTEREST, 2 - value :LOCATION_OF_PRESENCE, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - GeoTargetingTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.GeoTargetingTypeEnum").msgclass - GeoTargetingTypeEnum::GeoTargetingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.GeoTargetingTypeEnum.GeoTargetingType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/goal_config_level_pb.rb b/lib/google/ads/google_ads/v12/enums/goal_config_level_pb.rb deleted file mode 100644 index 6d3ab1c48..000000000 --- a/lib/google/ads/google_ads/v12/enums/goal_config_level_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/goal_config_level.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/goal_config_level.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.GoalConfigLevelEnum" do - end - add_enum "google.ads.googleads.v12.enums.GoalConfigLevelEnum.GoalConfigLevel" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CUSTOMER, 2 - value :CAMPAIGN, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - GoalConfigLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.GoalConfigLevelEnum").msgclass - GoalConfigLevelEnum::GoalConfigLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.GoalConfigLevelEnum.GoalConfigLevel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/google_ads_field_category_pb.rb b/lib/google/ads/google_ads/v12/enums/google_ads_field_category_pb.rb deleted file mode 100644 index f3b64a7cf..000000000 --- a/lib/google/ads/google_ads/v12/enums/google_ads_field_category_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/google_ads_field_category.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/google_ads_field_category.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.GoogleAdsFieldCategoryEnum" do - end - add_enum "google.ads.googleads.v12.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :RESOURCE, 2 - value :ATTRIBUTE, 3 - value :SEGMENT, 5 - value :METRIC, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - GoogleAdsFieldCategoryEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.GoogleAdsFieldCategoryEnum").msgclass - GoogleAdsFieldCategoryEnum::GoogleAdsFieldCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/google_ads_field_data_type_pb.rb b/lib/google/ads/google_ads/v12/enums/google_ads_field_data_type_pb.rb deleted file mode 100644 index 9de313e39..000000000 --- a/lib/google/ads/google_ads/v12/enums/google_ads_field_data_type_pb.rb +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/google_ads_field_data_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/google_ads_field_data_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.GoogleAdsFieldDataTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :BOOLEAN, 2 - value :DATE, 3 - value :DOUBLE, 4 - value :ENUM, 5 - value :FLOAT, 6 - value :INT32, 7 - value :INT64, 8 - value :MESSAGE, 9 - value :RESOURCE_NAME, 10 - value :STRING, 11 - value :UINT64, 12 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - GoogleAdsFieldDataTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.GoogleAdsFieldDataTypeEnum").msgclass - GoogleAdsFieldDataTypeEnum::GoogleAdsFieldDataType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/google_voice_call_status_pb.rb b/lib/google/ads/google_ads/v12/enums/google_voice_call_status_pb.rb deleted file mode 100644 index 6cba55bcb..000000000 --- a/lib/google/ads/google_ads/v12/enums/google_voice_call_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/google_voice_call_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/google_voice_call_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.GoogleVoiceCallStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :MISSED, 2 - value :RECEIVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - GoogleVoiceCallStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.GoogleVoiceCallStatusEnum").msgclass - GoogleVoiceCallStatusEnum::GoogleVoiceCallStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/hotel_date_selection_type_pb.rb b/lib/google/ads/google_ads/v12/enums/hotel_date_selection_type_pb.rb deleted file mode 100644 index c4eee430d..000000000 --- a/lib/google/ads/google_ads/v12/enums/hotel_date_selection_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/hotel_date_selection_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/hotel_date_selection_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.HotelDateSelectionTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DEFAULT_SELECTION, 50 - value :USER_SELECTED, 51 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - HotelDateSelectionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.HotelDateSelectionTypeEnum").msgclass - HotelDateSelectionTypeEnum::HotelDateSelectionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/hotel_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/hotel_placeholder_field_pb.rb deleted file mode 100644 index 60cff4801..000000000 --- a/lib/google/ads/google_ads/v12/enums/hotel_placeholder_field_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/hotel_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/hotel_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.HotelPlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.HotelPlaceholderFieldEnum.HotelPlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PROPERTY_ID, 2 - value :PROPERTY_NAME, 3 - value :DESTINATION_NAME, 4 - value :DESCRIPTION, 5 - value :ADDRESS, 6 - value :PRICE, 7 - value :FORMATTED_PRICE, 8 - value :SALE_PRICE, 9 - value :FORMATTED_SALE_PRICE, 10 - value :IMAGE_URL, 11 - value :CATEGORY, 12 - value :STAR_RATING, 13 - value :CONTEXTUAL_KEYWORDS, 14 - value :FINAL_URLS, 15 - value :FINAL_MOBILE_URLS, 16 - value :TRACKING_URL, 17 - value :ANDROID_APP_LINK, 18 - value :SIMILAR_PROPERTY_IDS, 19 - value :IOS_APP_LINK, 20 - value :IOS_APP_STORE_ID, 21 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - HotelPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.HotelPlaceholderFieldEnum").msgclass - HotelPlaceholderFieldEnum::HotelPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.HotelPlaceholderFieldEnum.HotelPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/hotel_price_bucket_pb.rb b/lib/google/ads/google_ads/v12/enums/hotel_price_bucket_pb.rb deleted file mode 100644 index e58b921cd..000000000 --- a/lib/google/ads/google_ads/v12/enums/hotel_price_bucket_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/hotel_price_bucket.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/hotel_price_bucket.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.HotelPriceBucketEnum" do - end - add_enum "google.ads.googleads.v12.enums.HotelPriceBucketEnum.HotelPriceBucket" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :LOWEST_UNIQUE, 2 - value :LOWEST_TIED, 3 - value :NOT_LOWEST, 4 - value :ONLY_PARTNER_SHOWN, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - HotelPriceBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.HotelPriceBucketEnum").msgclass - HotelPriceBucketEnum::HotelPriceBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.HotelPriceBucketEnum.HotelPriceBucket").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/hotel_rate_type_pb.rb b/lib/google/ads/google_ads/v12/enums/hotel_rate_type_pb.rb deleted file mode 100644 index 2bafd9a88..000000000 --- a/lib/google/ads/google_ads/v12/enums/hotel_rate_type_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/hotel_rate_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/hotel_rate_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.HotelRateTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.HotelRateTypeEnum.HotelRateType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :UNAVAILABLE, 2 - value :PUBLIC_RATE, 3 - value :QUALIFIED_RATE, 4 - value :PRIVATE_RATE, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - HotelRateTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.HotelRateTypeEnum").msgclass - HotelRateTypeEnum::HotelRateType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.HotelRateTypeEnum.HotelRateType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/hotel_reconciliation_status_pb.rb b/lib/google/ads/google_ads/v12/enums/hotel_reconciliation_status_pb.rb deleted file mode 100644 index 2ac5f0941..000000000 --- a/lib/google/ads/google_ads/v12/enums/hotel_reconciliation_status_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/hotel_reconciliation_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/hotel_reconciliation_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.HotelReconciliationStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.HotelReconciliationStatusEnum.HotelReconciliationStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :RESERVATION_ENABLED, 2 - value :RECONCILIATION_NEEDED, 3 - value :RECONCILED, 4 - value :CANCELED, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - HotelReconciliationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.HotelReconciliationStatusEnum").msgclass - HotelReconciliationStatusEnum::HotelReconciliationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.HotelReconciliationStatusEnum.HotelReconciliationStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/image_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/image_placeholder_field_pb.rb deleted file mode 100644 index 489ea733e..000000000 --- a/lib/google/ads/google_ads/v12/enums/image_placeholder_field_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/image_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/image_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ImagePlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.ImagePlaceholderFieldEnum.ImagePlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ASSET_ID, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ImagePlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ImagePlaceholderFieldEnum").msgclass - ImagePlaceholderFieldEnum::ImagePlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ImagePlaceholderFieldEnum.ImagePlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/income_range_type_pb.rb b/lib/google/ads/google_ads/v12/enums/income_range_type_pb.rb deleted file mode 100644 index d0d25c0d9..000000000 --- a/lib/google/ads/google_ads/v12/enums/income_range_type_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/income_range_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/income_range_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.IncomeRangeTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.IncomeRangeTypeEnum.IncomeRangeType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INCOME_RANGE_0_50, 510001 - value :INCOME_RANGE_50_60, 510002 - value :INCOME_RANGE_60_70, 510003 - value :INCOME_RANGE_70_80, 510004 - value :INCOME_RANGE_80_90, 510005 - value :INCOME_RANGE_90_UP, 510006 - value :INCOME_RANGE_UNDETERMINED, 510000 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - IncomeRangeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.IncomeRangeTypeEnum").msgclass - IncomeRangeTypeEnum::IncomeRangeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.IncomeRangeTypeEnum.IncomeRangeType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/interaction_event_type_pb.rb b/lib/google/ads/google_ads/v12/enums/interaction_event_type_pb.rb deleted file mode 100644 index 738d4c976..000000000 --- a/lib/google/ads/google_ads/v12/enums/interaction_event_type_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/interaction_event_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/interaction_event_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.InteractionEventTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.InteractionEventTypeEnum.InteractionEventType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CLICK, 2 - value :ENGAGEMENT, 3 - value :VIDEO_VIEW, 4 - value :NONE, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - InteractionEventTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.InteractionEventTypeEnum").msgclass - InteractionEventTypeEnum::InteractionEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.InteractionEventTypeEnum.InteractionEventType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/interaction_type_pb.rb b/lib/google/ads/google_ads/v12/enums/interaction_type_pb.rb deleted file mode 100644 index ea1a324dc..000000000 --- a/lib/google/ads/google_ads/v12/enums/interaction_type_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/interaction_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/interaction_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.InteractionTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.InteractionTypeEnum.InteractionType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CALLS, 8000 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - InteractionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.InteractionTypeEnum").msgclass - InteractionTypeEnum::InteractionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.InteractionTypeEnum.InteractionType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/invoice_type_pb.rb b/lib/google/ads/google_ads/v12/enums/invoice_type_pb.rb deleted file mode 100644 index 6a5825974..000000000 --- a/lib/google/ads/google_ads/v12/enums/invoice_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/invoice_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/invoice_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.InvoiceTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.InvoiceTypeEnum.InvoiceType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CREDIT_MEMO, 2 - value :INVOICE, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - InvoiceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.InvoiceTypeEnum").msgclass - InvoiceTypeEnum::InvoiceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.InvoiceTypeEnum.InvoiceType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/job_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/job_placeholder_field_pb.rb deleted file mode 100644 index ce8bcd41b..000000000 --- a/lib/google/ads/google_ads/v12/enums/job_placeholder_field_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/job_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/job_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.JobPlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.JobPlaceholderFieldEnum.JobPlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :JOB_ID, 2 - value :LOCATION_ID, 3 - value :TITLE, 4 - value :SUBTITLE, 5 - value :DESCRIPTION, 6 - value :IMAGE_URL, 7 - value :CATEGORY, 8 - value :CONTEXTUAL_KEYWORDS, 9 - value :ADDRESS, 10 - value :SALARY, 11 - value :FINAL_URLS, 12 - value :FINAL_MOBILE_URLS, 14 - value :TRACKING_URL, 15 - value :ANDROID_APP_LINK, 16 - value :SIMILAR_JOB_IDS, 17 - value :IOS_APP_LINK, 18 - value :IOS_APP_STORE_ID, 19 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - JobPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.JobPlaceholderFieldEnum").msgclass - JobPlaceholderFieldEnum::JobPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.JobPlaceholderFieldEnum.JobPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/keyword_match_type_pb.rb b/lib/google/ads/google_ads/v12/enums/keyword_match_type_pb.rb deleted file mode 100644 index 631ec4047..000000000 --- a/lib/google/ads/google_ads/v12/enums/keyword_match_type_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/keyword_match_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/keyword_match_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.KeywordMatchTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.KeywordMatchTypeEnum.KeywordMatchType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :EXACT, 2 - value :PHRASE, 3 - value :BROAD, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - KeywordMatchTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.KeywordMatchTypeEnum").msgclass - KeywordMatchTypeEnum::KeywordMatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.KeywordMatchTypeEnum.KeywordMatchType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/keyword_plan_aggregate_metric_type_pb.rb b/lib/google/ads/google_ads/v12/enums/keyword_plan_aggregate_metric_type_pb.rb deleted file mode 100644 index e7095983b..000000000 --- a/lib/google/ads/google_ads/v12/enums/keyword_plan_aggregate_metric_type_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/keyword_plan_aggregate_metric_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/keyword_plan_aggregate_metric_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.KeywordPlanAggregateMetricTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DEVICE, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - KeywordPlanAggregateMetricTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.KeywordPlanAggregateMetricTypeEnum").msgclass - KeywordPlanAggregateMetricTypeEnum::KeywordPlanAggregateMetricType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/keyword_plan_competition_level_pb.rb b/lib/google/ads/google_ads/v12/enums/keyword_plan_competition_level_pb.rb deleted file mode 100644 index e859f2305..000000000 --- a/lib/google/ads/google_ads/v12/enums/keyword_plan_competition_level_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/keyword_plan_competition_level.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/keyword_plan_competition_level.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.KeywordPlanCompetitionLevelEnum" do - end - add_enum "google.ads.googleads.v12.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :LOW, 2 - value :MEDIUM, 3 - value :HIGH, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - KeywordPlanCompetitionLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.KeywordPlanCompetitionLevelEnum").msgclass - KeywordPlanCompetitionLevelEnum::KeywordPlanCompetitionLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/keyword_plan_concept_group_type_pb.rb b/lib/google/ads/google_ads/v12/enums/keyword_plan_concept_group_type_pb.rb deleted file mode 100644 index 33cbf8407..000000000 --- a/lib/google/ads/google_ads/v12/enums/keyword_plan_concept_group_type_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/keyword_plan_concept_group_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/keyword_plan_concept_group_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.KeywordPlanConceptGroupTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.KeywordPlanConceptGroupTypeEnum.KeywordPlanConceptGroupType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :BRAND, 2 - value :OTHER_BRANDS, 3 - value :NON_BRAND, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - KeywordPlanConceptGroupTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.KeywordPlanConceptGroupTypeEnum").msgclass - KeywordPlanConceptGroupTypeEnum::KeywordPlanConceptGroupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.KeywordPlanConceptGroupTypeEnum.KeywordPlanConceptGroupType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/keyword_plan_forecast_interval_pb.rb b/lib/google/ads/google_ads/v12/enums/keyword_plan_forecast_interval_pb.rb deleted file mode 100644 index 37cc446e2..000000000 --- a/lib/google/ads/google_ads/v12/enums/keyword_plan_forecast_interval_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/keyword_plan_forecast_interval.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/keyword_plan_forecast_interval.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.KeywordPlanForecastIntervalEnum" do - end - add_enum "google.ads.googleads.v12.enums.KeywordPlanForecastIntervalEnum.KeywordPlanForecastInterval" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NEXT_WEEK, 3 - value :NEXT_MONTH, 4 - value :NEXT_QUARTER, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - KeywordPlanForecastIntervalEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.KeywordPlanForecastIntervalEnum").msgclass - KeywordPlanForecastIntervalEnum::KeywordPlanForecastInterval = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.KeywordPlanForecastIntervalEnum.KeywordPlanForecastInterval").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/keyword_plan_keyword_annotation_pb.rb b/lib/google/ads/google_ads/v12/enums/keyword_plan_keyword_annotation_pb.rb deleted file mode 100644 index 4b844271f..000000000 --- a/lib/google/ads/google_ads/v12/enums/keyword_plan_keyword_annotation_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/keyword_plan_keyword_annotation.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/keyword_plan_keyword_annotation.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.KeywordPlanKeywordAnnotationEnum" do - end - add_enum "google.ads.googleads.v12.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :KEYWORD_CONCEPT, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - KeywordPlanKeywordAnnotationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.KeywordPlanKeywordAnnotationEnum").msgclass - KeywordPlanKeywordAnnotationEnum::KeywordPlanKeywordAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/keyword_plan_network_pb.rb b/lib/google/ads/google_ads/v12/enums/keyword_plan_network_pb.rb deleted file mode 100644 index 046a4c345..000000000 --- a/lib/google/ads/google_ads/v12/enums/keyword_plan_network_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/keyword_plan_network.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/keyword_plan_network.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.KeywordPlanNetworkEnum" do - end - add_enum "google.ads.googleads.v12.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :GOOGLE_SEARCH, 2 - value :GOOGLE_SEARCH_AND_PARTNERS, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - KeywordPlanNetworkEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.KeywordPlanNetworkEnum").msgclass - KeywordPlanNetworkEnum::KeywordPlanNetwork = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/label_status_pb.rb b/lib/google/ads/google_ads/v12/enums/label_status_pb.rb deleted file mode 100644 index 5ce3ecb42..000000000 --- a/lib/google/ads/google_ads/v12/enums/label_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/label_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/label_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.LabelStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.LabelStatusEnum.LabelStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - LabelStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LabelStatusEnum").msgclass - LabelStatusEnum::LabelStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LabelStatusEnum.LabelStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/lead_form_call_to_action_type_pb.rb b/lib/google/ads/google_ads/v12/enums/lead_form_call_to_action_type_pb.rb deleted file mode 100644 index a4e3f38af..000000000 --- a/lib/google/ads/google_ads/v12/enums/lead_form_call_to_action_type_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/lead_form_call_to_action_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/lead_form_call_to_action_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.LeadFormCallToActionTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.LeadFormCallToActionTypeEnum.LeadFormCallToActionType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :LEARN_MORE, 2 - value :GET_QUOTE, 3 - value :APPLY_NOW, 4 - value :SIGN_UP, 5 - value :CONTACT_US, 6 - value :SUBSCRIBE, 7 - value :DOWNLOAD, 8 - value :BOOK_NOW, 9 - value :GET_OFFER, 10 - value :REGISTER, 11 - value :GET_INFO, 12 - value :REQUEST_DEMO, 13 - value :JOIN_NOW, 14 - value :GET_STARTED, 15 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - LeadFormCallToActionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LeadFormCallToActionTypeEnum").msgclass - LeadFormCallToActionTypeEnum::LeadFormCallToActionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LeadFormCallToActionTypeEnum.LeadFormCallToActionType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/lead_form_desired_intent_pb.rb b/lib/google/ads/google_ads/v12/enums/lead_form_desired_intent_pb.rb deleted file mode 100644 index 0d1c2cc29..000000000 --- a/lib/google/ads/google_ads/v12/enums/lead_form_desired_intent_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/lead_form_desired_intent.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/lead_form_desired_intent.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.LeadFormDesiredIntentEnum" do - end - add_enum "google.ads.googleads.v12.enums.LeadFormDesiredIntentEnum.LeadFormDesiredIntent" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :LOW_INTENT, 2 - value :HIGH_INTENT, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - LeadFormDesiredIntentEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LeadFormDesiredIntentEnum").msgclass - LeadFormDesiredIntentEnum::LeadFormDesiredIntent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LeadFormDesiredIntentEnum.LeadFormDesiredIntent").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/lead_form_field_user_input_type_pb.rb b/lib/google/ads/google_ads/v12/enums/lead_form_field_user_input_type_pb.rb deleted file mode 100644 index 8418cd2be..000000000 --- a/lib/google/ads/google_ads/v12/enums/lead_form_field_user_input_type_pb.rb +++ /dev/null @@ -1,144 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/lead_form_field_user_input_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/lead_form_field_user_input_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.LeadFormFieldUserInputTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.LeadFormFieldUserInputTypeEnum.LeadFormFieldUserInputType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :FULL_NAME, 2 - value :EMAIL, 3 - value :PHONE_NUMBER, 4 - value :POSTAL_CODE, 5 - value :STREET_ADDRESS, 8 - value :CITY, 9 - value :REGION, 10 - value :COUNTRY, 11 - value :WORK_EMAIL, 12 - value :COMPANY_NAME, 13 - value :WORK_PHONE, 14 - value :JOB_TITLE, 15 - value :GOVERNMENT_ISSUED_ID_CPF_BR, 16 - value :GOVERNMENT_ISSUED_ID_DNI_AR, 17 - value :GOVERNMENT_ISSUED_ID_DNI_PE, 18 - value :GOVERNMENT_ISSUED_ID_RUT_CL, 19 - value :GOVERNMENT_ISSUED_ID_CC_CO, 20 - value :GOVERNMENT_ISSUED_ID_CI_EC, 21 - value :GOVERNMENT_ISSUED_ID_RFC_MX, 22 - value :FIRST_NAME, 23 - value :LAST_NAME, 24 - value :VEHICLE_MODEL, 1001 - value :VEHICLE_TYPE, 1002 - value :PREFERRED_DEALERSHIP, 1003 - value :VEHICLE_PURCHASE_TIMELINE, 1004 - value :VEHICLE_OWNERSHIP, 1005 - value :VEHICLE_PAYMENT_TYPE, 1009 - value :VEHICLE_CONDITION, 1010 - value :COMPANY_SIZE, 1006 - value :ANNUAL_SALES, 1007 - value :YEARS_IN_BUSINESS, 1008 - value :JOB_DEPARTMENT, 1011 - value :JOB_ROLE, 1012 - value :OVER_18_AGE, 1078 - value :OVER_19_AGE, 1079 - value :OVER_20_AGE, 1080 - value :OVER_21_AGE, 1081 - value :OVER_22_AGE, 1082 - value :OVER_23_AGE, 1083 - value :OVER_24_AGE, 1084 - value :OVER_25_AGE, 1085 - value :OVER_26_AGE, 1086 - value :OVER_27_AGE, 1087 - value :OVER_28_AGE, 1088 - value :OVER_29_AGE, 1089 - value :OVER_30_AGE, 1090 - value :OVER_31_AGE, 1091 - value :OVER_32_AGE, 1092 - value :OVER_33_AGE, 1093 - value :OVER_34_AGE, 1094 - value :OVER_35_AGE, 1095 - value :OVER_36_AGE, 1096 - value :OVER_37_AGE, 1097 - value :OVER_38_AGE, 1098 - value :OVER_39_AGE, 1099 - value :OVER_40_AGE, 1100 - value :OVER_41_AGE, 1101 - value :OVER_42_AGE, 1102 - value :OVER_43_AGE, 1103 - value :OVER_44_AGE, 1104 - value :OVER_45_AGE, 1105 - value :OVER_46_AGE, 1106 - value :OVER_47_AGE, 1107 - value :OVER_48_AGE, 1108 - value :OVER_49_AGE, 1109 - value :OVER_50_AGE, 1110 - value :OVER_51_AGE, 1111 - value :OVER_52_AGE, 1112 - value :OVER_53_AGE, 1113 - value :OVER_54_AGE, 1114 - value :OVER_55_AGE, 1115 - value :OVER_56_AGE, 1116 - value :OVER_57_AGE, 1117 - value :OVER_58_AGE, 1118 - value :OVER_59_AGE, 1119 - value :OVER_60_AGE, 1120 - value :OVER_61_AGE, 1121 - value :OVER_62_AGE, 1122 - value :OVER_63_AGE, 1123 - value :OVER_64_AGE, 1124 - value :OVER_65_AGE, 1125 - value :EDUCATION_PROGRAM, 1013 - value :EDUCATION_COURSE, 1014 - value :PRODUCT, 1016 - value :SERVICE, 1017 - value :OFFER, 1018 - value :CATEGORY, 1019 - value :PREFERRED_CONTACT_METHOD, 1020 - value :PREFERRED_LOCATION, 1021 - value :PREFERRED_CONTACT_TIME, 1022 - value :PURCHASE_TIMELINE, 1023 - value :YEARS_OF_EXPERIENCE, 1048 - value :JOB_INDUSTRY, 1049 - value :LEVEL_OF_EDUCATION, 1050 - value :PROPERTY_TYPE, 1024 - value :REALTOR_HELP_GOAL, 1025 - value :PROPERTY_COMMUNITY, 1026 - value :PRICE_RANGE, 1027 - value :NUMBER_OF_BEDROOMS, 1028 - value :FURNISHED_PROPERTY, 1029 - value :PETS_ALLOWED_PROPERTY, 1030 - value :NEXT_PLANNED_PURCHASE, 1031 - value :EVENT_SIGNUP_INTEREST, 1033 - value :PREFERRED_SHOPPING_PLACES, 1034 - value :FAVORITE_BRAND, 1035 - value :TRANSPORTATION_COMMERCIAL_LICENSE_TYPE, 1036 - value :EVENT_BOOKING_INTEREST, 1038 - value :DESTINATION_COUNTRY, 1039 - value :DESTINATION_CITY, 1040 - value :DEPARTURE_COUNTRY, 1041 - value :DEPARTURE_CITY, 1042 - value :DEPARTURE_DATE, 1043 - value :RETURN_DATE, 1044 - value :NUMBER_OF_TRAVELERS, 1045 - value :TRAVEL_BUDGET, 1046 - value :TRAVEL_ACCOMMODATION, 1047 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - LeadFormFieldUserInputTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LeadFormFieldUserInputTypeEnum").msgclass - LeadFormFieldUserInputTypeEnum::LeadFormFieldUserInputType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LeadFormFieldUserInputTypeEnum.LeadFormFieldUserInputType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/lead_form_post_submit_call_to_action_type_pb.rb b/lib/google/ads/google_ads/v12/enums/lead_form_post_submit_call_to_action_type_pb.rb deleted file mode 100644 index 0ddf3c3a0..000000000 --- a/lib/google/ads/google_ads/v12/enums/lead_form_post_submit_call_to_action_type_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/lead_form_post_submit_call_to_action_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/lead_form_post_submit_call_to_action_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.LeadFormPostSubmitCallToActionTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.LeadFormPostSubmitCallToActionTypeEnum.LeadFormPostSubmitCallToActionType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :VISIT_SITE, 2 - value :DOWNLOAD, 3 - value :LEARN_MORE, 4 - value :SHOP_NOW, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - LeadFormPostSubmitCallToActionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LeadFormPostSubmitCallToActionTypeEnum").msgclass - LeadFormPostSubmitCallToActionTypeEnum::LeadFormPostSubmitCallToActionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LeadFormPostSubmitCallToActionTypeEnum.LeadFormPostSubmitCallToActionType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/legacy_app_install_ad_app_store_pb.rb b/lib/google/ads/google_ads/v12/enums/legacy_app_install_ad_app_store_pb.rb deleted file mode 100644 index c19277644..000000000 --- a/lib/google/ads/google_ads/v12/enums/legacy_app_install_ad_app_store_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/legacy_app_install_ad_app_store.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/legacy_app_install_ad_app_store.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.LegacyAppInstallAdAppStoreEnum" do - end - add_enum "google.ads.googleads.v12.enums.LegacyAppInstallAdAppStoreEnum.LegacyAppInstallAdAppStore" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :APPLE_APP_STORE, 2 - value :GOOGLE_PLAY, 3 - value :WINDOWS_STORE, 4 - value :WINDOWS_PHONE_STORE, 5 - value :CN_APP_STORE, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - LegacyAppInstallAdAppStoreEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LegacyAppInstallAdAppStoreEnum").msgclass - LegacyAppInstallAdAppStoreEnum::LegacyAppInstallAdAppStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LegacyAppInstallAdAppStoreEnum.LegacyAppInstallAdAppStore").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/linked_account_type_pb.rb b/lib/google/ads/google_ads/v12/enums/linked_account_type_pb.rb deleted file mode 100644 index c7dfb2623..000000000 --- a/lib/google/ads/google_ads/v12/enums/linked_account_type_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/linked_account_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/linked_account_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.LinkedAccountTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.LinkedAccountTypeEnum.LinkedAccountType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :THIRD_PARTY_APP_ANALYTICS, 2 - value :DATA_PARTNER, 3 - value :GOOGLE_ADS, 4 - value :HOTEL_CENTER, 5 - value :ADVERTISING_PARTNER, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - LinkedAccountTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LinkedAccountTypeEnum").msgclass - LinkedAccountTypeEnum::LinkedAccountType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LinkedAccountTypeEnum.LinkedAccountType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/listing_group_filter_bidding_category_level_pb.rb b/lib/google/ads/google_ads/v12/enums/listing_group_filter_bidding_category_level_pb.rb deleted file mode 100644 index 92d01c74b..000000000 --- a/lib/google/ads/google_ads/v12/enums/listing_group_filter_bidding_category_level_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/listing_group_filter_bidding_category_level.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/listing_group_filter_bidding_category_level.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ListingGroupFilterBiddingCategoryLevelEnum" do - end - add_enum "google.ads.googleads.v12.enums.ListingGroupFilterBiddingCategoryLevelEnum.ListingGroupFilterBiddingCategoryLevel" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :LEVEL1, 2 - value :LEVEL2, 3 - value :LEVEL3, 4 - value :LEVEL4, 5 - value :LEVEL5, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ListingGroupFilterBiddingCategoryLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ListingGroupFilterBiddingCategoryLevelEnum").msgclass - ListingGroupFilterBiddingCategoryLevelEnum::ListingGroupFilterBiddingCategoryLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ListingGroupFilterBiddingCategoryLevelEnum.ListingGroupFilterBiddingCategoryLevel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/listing_group_filter_custom_attribute_index_pb.rb b/lib/google/ads/google_ads/v12/enums/listing_group_filter_custom_attribute_index_pb.rb deleted file mode 100644 index ebf05a21f..000000000 --- a/lib/google/ads/google_ads/v12/enums/listing_group_filter_custom_attribute_index_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/listing_group_filter_custom_attribute_index.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/listing_group_filter_custom_attribute_index.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ListingGroupFilterCustomAttributeIndexEnum" do - end - add_enum "google.ads.googleads.v12.enums.ListingGroupFilterCustomAttributeIndexEnum.ListingGroupFilterCustomAttributeIndex" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INDEX0, 2 - value :INDEX1, 3 - value :INDEX2, 4 - value :INDEX3, 5 - value :INDEX4, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ListingGroupFilterCustomAttributeIndexEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ListingGroupFilterCustomAttributeIndexEnum").msgclass - ListingGroupFilterCustomAttributeIndexEnum::ListingGroupFilterCustomAttributeIndex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ListingGroupFilterCustomAttributeIndexEnum.ListingGroupFilterCustomAttributeIndex").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/listing_group_filter_product_channel_pb.rb b/lib/google/ads/google_ads/v12/enums/listing_group_filter_product_channel_pb.rb deleted file mode 100644 index f2e6bd1a9..000000000 --- a/lib/google/ads/google_ads/v12/enums/listing_group_filter_product_channel_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/listing_group_filter_product_channel.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/listing_group_filter_product_channel.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ListingGroupFilterProductChannelEnum" do - end - add_enum "google.ads.googleads.v12.enums.ListingGroupFilterProductChannelEnum.ListingGroupFilterProductChannel" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ONLINE, 2 - value :LOCAL, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ListingGroupFilterProductChannelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ListingGroupFilterProductChannelEnum").msgclass - ListingGroupFilterProductChannelEnum::ListingGroupFilterProductChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ListingGroupFilterProductChannelEnum.ListingGroupFilterProductChannel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/listing_group_filter_product_condition_pb.rb b/lib/google/ads/google_ads/v12/enums/listing_group_filter_product_condition_pb.rb deleted file mode 100644 index ad362a3e5..000000000 --- a/lib/google/ads/google_ads/v12/enums/listing_group_filter_product_condition_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/listing_group_filter_product_condition.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/listing_group_filter_product_condition.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ListingGroupFilterProductConditionEnum" do - end - add_enum "google.ads.googleads.v12.enums.ListingGroupFilterProductConditionEnum.ListingGroupFilterProductCondition" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NEW, 2 - value :REFURBISHED, 3 - value :USED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ListingGroupFilterProductConditionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ListingGroupFilterProductConditionEnum").msgclass - ListingGroupFilterProductConditionEnum::ListingGroupFilterProductCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ListingGroupFilterProductConditionEnum.ListingGroupFilterProductCondition").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/listing_group_filter_product_type_level_pb.rb b/lib/google/ads/google_ads/v12/enums/listing_group_filter_product_type_level_pb.rb deleted file mode 100644 index 071c25bf5..000000000 --- a/lib/google/ads/google_ads/v12/enums/listing_group_filter_product_type_level_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/listing_group_filter_product_type_level.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/listing_group_filter_product_type_level.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ListingGroupFilterProductTypeLevelEnum" do - end - add_enum "google.ads.googleads.v12.enums.ListingGroupFilterProductTypeLevelEnum.ListingGroupFilterProductTypeLevel" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :LEVEL1, 2 - value :LEVEL2, 3 - value :LEVEL3, 4 - value :LEVEL4, 5 - value :LEVEL5, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ListingGroupFilterProductTypeLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ListingGroupFilterProductTypeLevelEnum").msgclass - ListingGroupFilterProductTypeLevelEnum::ListingGroupFilterProductTypeLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ListingGroupFilterProductTypeLevelEnum.ListingGroupFilterProductTypeLevel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/listing_group_filter_type_enum_pb.rb b/lib/google/ads/google_ads/v12/enums/listing_group_filter_type_enum_pb.rb deleted file mode 100644 index 79e6138be..000000000 --- a/lib/google/ads/google_ads/v12/enums/listing_group_filter_type_enum_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/listing_group_filter_type_enum.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/listing_group_filter_type_enum.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ListingGroupFilterTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ListingGroupFilterTypeEnum.ListingGroupFilterType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :SUBDIVISION, 2 - value :UNIT_INCLUDED, 3 - value :UNIT_EXCLUDED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ListingGroupFilterTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ListingGroupFilterTypeEnum").msgclass - ListingGroupFilterTypeEnum::ListingGroupFilterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ListingGroupFilterTypeEnum.ListingGroupFilterType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/listing_group_filter_vertical_pb.rb b/lib/google/ads/google_ads/v12/enums/listing_group_filter_vertical_pb.rb deleted file mode 100644 index 18242df8a..000000000 --- a/lib/google/ads/google_ads/v12/enums/listing_group_filter_vertical_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/listing_group_filter_vertical.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/listing_group_filter_vertical.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ListingGroupFilterVerticalEnum" do - end - add_enum "google.ads.googleads.v12.enums.ListingGroupFilterVerticalEnum.ListingGroupFilterVertical" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :SHOPPING, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ListingGroupFilterVerticalEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ListingGroupFilterVerticalEnum").msgclass - ListingGroupFilterVerticalEnum::ListingGroupFilterVertical = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ListingGroupFilterVerticalEnum.ListingGroupFilterVertical").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/listing_group_type_pb.rb b/lib/google/ads/google_ads/v12/enums/listing_group_type_pb.rb deleted file mode 100644 index a14fbd096..000000000 --- a/lib/google/ads/google_ads/v12/enums/listing_group_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/listing_group_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/listing_group_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ListingGroupTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ListingGroupTypeEnum.ListingGroupType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :SUBDIVISION, 2 - value :UNIT, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ListingGroupTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ListingGroupTypeEnum").msgclass - ListingGroupTypeEnum::ListingGroupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ListingGroupTypeEnum.ListingGroupType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/local_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/local_placeholder_field_pb.rb deleted file mode 100644 index ae9e94aa4..000000000 --- a/lib/google/ads/google_ads/v12/enums/local_placeholder_field_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/local_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/local_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.LocalPlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.LocalPlaceholderFieldEnum.LocalPlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DEAL_ID, 2 - value :DEAL_NAME, 3 - value :SUBTITLE, 4 - value :DESCRIPTION, 5 - value :PRICE, 6 - value :FORMATTED_PRICE, 7 - value :SALE_PRICE, 8 - value :FORMATTED_SALE_PRICE, 9 - value :IMAGE_URL, 10 - value :ADDRESS, 11 - value :CATEGORY, 12 - value :CONTEXTUAL_KEYWORDS, 13 - value :FINAL_URLS, 14 - value :FINAL_MOBILE_URLS, 15 - value :TRACKING_URL, 16 - value :ANDROID_APP_LINK, 17 - value :SIMILAR_DEAL_IDS, 18 - value :IOS_APP_LINK, 19 - value :IOS_APP_STORE_ID, 20 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - LocalPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LocalPlaceholderFieldEnum").msgclass - LocalPlaceholderFieldEnum::LocalPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LocalPlaceholderFieldEnum.LocalPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/location_extension_targeting_criterion_field_pb.rb b/lib/google/ads/google_ads/v12/enums/location_extension_targeting_criterion_field_pb.rb deleted file mode 100644 index dd42df087..000000000 --- a/lib/google/ads/google_ads/v12/enums/location_extension_targeting_criterion_field_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/location_extension_targeting_criterion_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/location_extension_targeting_criterion_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.LocationExtensionTargetingCriterionFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.LocationExtensionTargetingCriterionFieldEnum.LocationExtensionTargetingCriterionField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ADDRESS_LINE_1, 2 - value :ADDRESS_LINE_2, 3 - value :CITY, 4 - value :PROVINCE, 5 - value :POSTAL_CODE, 6 - value :COUNTRY_CODE, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - LocationExtensionTargetingCriterionFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LocationExtensionTargetingCriterionFieldEnum").msgclass - LocationExtensionTargetingCriterionFieldEnum::LocationExtensionTargetingCriterionField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LocationExtensionTargetingCriterionFieldEnum.LocationExtensionTargetingCriterionField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/location_group_radius_units_pb.rb b/lib/google/ads/google_ads/v12/enums/location_group_radius_units_pb.rb deleted file mode 100644 index 8705df33c..000000000 --- a/lib/google/ads/google_ads/v12/enums/location_group_radius_units_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/location_group_radius_units.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/location_group_radius_units.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.LocationGroupRadiusUnitsEnum" do - end - add_enum "google.ads.googleads.v12.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :METERS, 2 - value :MILES, 3 - value :MILLI_MILES, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - LocationGroupRadiusUnitsEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LocationGroupRadiusUnitsEnum").msgclass - LocationGroupRadiusUnitsEnum::LocationGroupRadiusUnits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/location_ownership_type_pb.rb b/lib/google/ads/google_ads/v12/enums/location_ownership_type_pb.rb deleted file mode 100644 index 80a327012..000000000 --- a/lib/google/ads/google_ads/v12/enums/location_ownership_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/location_ownership_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/location_ownership_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.LocationOwnershipTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.LocationOwnershipTypeEnum.LocationOwnershipType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :BUSINESS_OWNER, 2 - value :AFFILIATE, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - LocationOwnershipTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LocationOwnershipTypeEnum").msgclass - LocationOwnershipTypeEnum::LocationOwnershipType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LocationOwnershipTypeEnum.LocationOwnershipType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/location_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/location_placeholder_field_pb.rb deleted file mode 100644 index ee5fec1ff..000000000 --- a/lib/google/ads/google_ads/v12/enums/location_placeholder_field_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/location_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/location_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.LocationPlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.LocationPlaceholderFieldEnum.LocationPlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :BUSINESS_NAME, 2 - value :ADDRESS_LINE_1, 3 - value :ADDRESS_LINE_2, 4 - value :CITY, 5 - value :PROVINCE, 6 - value :POSTAL_CODE, 7 - value :COUNTRY_CODE, 8 - value :PHONE_NUMBER, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - LocationPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LocationPlaceholderFieldEnum").msgclass - LocationPlaceholderFieldEnum::LocationPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LocationPlaceholderFieldEnum.LocationPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/location_source_type_pb.rb b/lib/google/ads/google_ads/v12/enums/location_source_type_pb.rb deleted file mode 100644 index 4ed431170..000000000 --- a/lib/google/ads/google_ads/v12/enums/location_source_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/location_source_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/location_source_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.LocationSourceTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.LocationSourceTypeEnum.LocationSourceType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :GOOGLE_MY_BUSINESS, 2 - value :AFFILIATE, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - LocationSourceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LocationSourceTypeEnum").msgclass - LocationSourceTypeEnum::LocationSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LocationSourceTypeEnum.LocationSourceType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/location_string_filter_type_pb.rb b/lib/google/ads/google_ads/v12/enums/location_string_filter_type_pb.rb deleted file mode 100644 index 4fc548683..000000000 --- a/lib/google/ads/google_ads/v12/enums/location_string_filter_type_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/location_string_filter_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/location_string_filter_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.LocationStringFilterTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.LocationStringFilterTypeEnum.LocationStringFilterType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :EXACT, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - LocationStringFilterTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LocationStringFilterTypeEnum").msgclass - LocationStringFilterTypeEnum::LocationStringFilterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.LocationStringFilterTypeEnum.LocationStringFilterType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/manager_link_status_pb.rb b/lib/google/ads/google_ads/v12/enums/manager_link_status_pb.rb deleted file mode 100644 index 1e0987066..000000000 --- a/lib/google/ads/google_ads/v12/enums/manager_link_status_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/manager_link_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/manager_link_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ManagerLinkStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.ManagerLinkStatusEnum.ManagerLinkStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ACTIVE, 2 - value :INACTIVE, 3 - value :PENDING, 4 - value :REFUSED, 5 - value :CANCELED, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ManagerLinkStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ManagerLinkStatusEnum").msgclass - ManagerLinkStatusEnum::ManagerLinkStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ManagerLinkStatusEnum.ManagerLinkStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/matching_function_context_type_pb.rb b/lib/google/ads/google_ads/v12/enums/matching_function_context_type_pb.rb deleted file mode 100644 index 8f8ff639f..000000000 --- a/lib/google/ads/google_ads/v12/enums/matching_function_context_type_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/matching_function_context_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/matching_function_context_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.MatchingFunctionContextTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.MatchingFunctionContextTypeEnum.MatchingFunctionContextType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :FEED_ITEM_ID, 2 - value :DEVICE_NAME, 3 - value :FEED_ITEM_SET_ID, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - MatchingFunctionContextTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MatchingFunctionContextTypeEnum").msgclass - MatchingFunctionContextTypeEnum::MatchingFunctionContextType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MatchingFunctionContextTypeEnum.MatchingFunctionContextType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/matching_function_operator_pb.rb b/lib/google/ads/google_ads/v12/enums/matching_function_operator_pb.rb deleted file mode 100644 index 724802817..000000000 --- a/lib/google/ads/google_ads/v12/enums/matching_function_operator_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/matching_function_operator.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/matching_function_operator.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.MatchingFunctionOperatorEnum" do - end - add_enum "google.ads.googleads.v12.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :IN, 2 - value :IDENTITY, 3 - value :EQUALS, 4 - value :AND, 5 - value :CONTAINS_ANY, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - MatchingFunctionOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MatchingFunctionOperatorEnum").msgclass - MatchingFunctionOperatorEnum::MatchingFunctionOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/media_type_pb.rb b/lib/google/ads/google_ads/v12/enums/media_type_pb.rb deleted file mode 100644 index 2b432308a..000000000 --- a/lib/google/ads/google_ads/v12/enums/media_type_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/media_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/media_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.MediaTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.MediaTypeEnum.MediaType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :IMAGE, 2 - value :ICON, 3 - value :MEDIA_BUNDLE, 4 - value :AUDIO, 5 - value :VIDEO, 6 - value :DYNAMIC_IMAGE, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - MediaTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MediaTypeEnum").msgclass - MediaTypeEnum::MediaType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MediaTypeEnum.MediaType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/merchant_center_link_status_pb.rb b/lib/google/ads/google_ads/v12/enums/merchant_center_link_status_pb.rb deleted file mode 100644 index 0096b98b2..000000000 --- a/lib/google/ads/google_ads/v12/enums/merchant_center_link_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/merchant_center_link_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/merchant_center_link_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.MerchantCenterLinkStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.MerchantCenterLinkStatusEnum.MerchantCenterLinkStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :PENDING, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - MerchantCenterLinkStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MerchantCenterLinkStatusEnum").msgclass - MerchantCenterLinkStatusEnum::MerchantCenterLinkStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MerchantCenterLinkStatusEnum.MerchantCenterLinkStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/message_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/message_placeholder_field_pb.rb deleted file mode 100644 index 8065299ea..000000000 --- a/lib/google/ads/google_ads/v12/enums/message_placeholder_field_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/message_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/message_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.MessagePlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.MessagePlaceholderFieldEnum.MessagePlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :BUSINESS_NAME, 2 - value :COUNTRY_CODE, 3 - value :PHONE_NUMBER, 4 - value :MESSAGE_EXTENSION_TEXT, 5 - value :MESSAGE_TEXT, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - MessagePlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MessagePlaceholderFieldEnum").msgclass - MessagePlaceholderFieldEnum::MessagePlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MessagePlaceholderFieldEnum.MessagePlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/mime_type_pb.rb b/lib/google/ads/google_ads/v12/enums/mime_type_pb.rb deleted file mode 100644 index 1e32ad93a..000000000 --- a/lib/google/ads/google_ads/v12/enums/mime_type_pb.rb +++ /dev/null @@ -1,40 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/mime_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/mime_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.MimeTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.MimeTypeEnum.MimeType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :IMAGE_JPEG, 2 - value :IMAGE_GIF, 3 - value :IMAGE_PNG, 4 - value :FLASH, 5 - value :TEXT_HTML, 6 - value :PDF, 7 - value :MSWORD, 8 - value :MSEXCEL, 9 - value :RTF, 10 - value :AUDIO_WAV, 11 - value :AUDIO_MP3, 12 - value :HTML5_AD_ZIP, 13 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - MimeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MimeTypeEnum").msgclass - MimeTypeEnum::MimeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MimeTypeEnum.MimeType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/minute_of_hour_pb.rb b/lib/google/ads/google_ads/v12/enums/minute_of_hour_pb.rb deleted file mode 100644 index 8986847c6..000000000 --- a/lib/google/ads/google_ads/v12/enums/minute_of_hour_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/minute_of_hour.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/minute_of_hour.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.MinuteOfHourEnum" do - end - add_enum "google.ads.googleads.v12.enums.MinuteOfHourEnum.MinuteOfHour" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ZERO, 2 - value :FIFTEEN, 3 - value :THIRTY, 4 - value :FORTY_FIVE, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - MinuteOfHourEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MinuteOfHourEnum").msgclass - MinuteOfHourEnum::MinuteOfHour = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MinuteOfHourEnum.MinuteOfHour").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/mobile_app_vendor_pb.rb b/lib/google/ads/google_ads/v12/enums/mobile_app_vendor_pb.rb deleted file mode 100644 index 10370a875..000000000 --- a/lib/google/ads/google_ads/v12/enums/mobile_app_vendor_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/mobile_app_vendor.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/mobile_app_vendor.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.MobileAppVendorEnum" do - end - add_enum "google.ads.googleads.v12.enums.MobileAppVendorEnum.MobileAppVendor" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :APPLE_APP_STORE, 2 - value :GOOGLE_APP_STORE, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - MobileAppVendorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MobileAppVendorEnum").msgclass - MobileAppVendorEnum::MobileAppVendor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MobileAppVendorEnum.MobileAppVendor").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/mobile_device_type_pb.rb b/lib/google/ads/google_ads/v12/enums/mobile_device_type_pb.rb deleted file mode 100644 index e0aed7fc2..000000000 --- a/lib/google/ads/google_ads/v12/enums/mobile_device_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/mobile_device_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/mobile_device_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.MobileDeviceTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.MobileDeviceTypeEnum.MobileDeviceType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :MOBILE, 2 - value :TABLET, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - MobileDeviceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MobileDeviceTypeEnum").msgclass - MobileDeviceTypeEnum::MobileDeviceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MobileDeviceTypeEnum.MobileDeviceType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/month_of_year_pb.rb b/lib/google/ads/google_ads/v12/enums/month_of_year_pb.rb deleted file mode 100644 index 25528a020..000000000 --- a/lib/google/ads/google_ads/v12/enums/month_of_year_pb.rb +++ /dev/null @@ -1,40 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/month_of_year.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/month_of_year.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.MonthOfYearEnum" do - end - add_enum "google.ads.googleads.v12.enums.MonthOfYearEnum.MonthOfYear" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :JANUARY, 2 - value :FEBRUARY, 3 - value :MARCH, 4 - value :APRIL, 5 - value :MAY, 6 - value :JUNE, 7 - value :JULY, 8 - value :AUGUST, 9 - value :SEPTEMBER, 10 - value :OCTOBER, 11 - value :NOVEMBER, 12 - value :DECEMBER, 13 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - MonthOfYearEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MonthOfYearEnum").msgclass - MonthOfYearEnum::MonthOfYear = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.MonthOfYearEnum.MonthOfYear").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/negative_geo_target_type_pb.rb b/lib/google/ads/google_ads/v12/enums/negative_geo_target_type_pb.rb deleted file mode 100644 index 4ec900ca4..000000000 --- a/lib/google/ads/google_ads/v12/enums/negative_geo_target_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/negative_geo_target_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/negative_geo_target_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.NegativeGeoTargetTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PRESENCE_OR_INTEREST, 4 - value :PRESENCE, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - NegativeGeoTargetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.NegativeGeoTargetTypeEnum").msgclass - NegativeGeoTargetTypeEnum::NegativeGeoTargetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/offline_user_data_job_failure_reason_pb.rb b/lib/google/ads/google_ads/v12/enums/offline_user_data_job_failure_reason_pb.rb deleted file mode 100644 index 545996c30..000000000 --- a/lib/google/ads/google_ads/v12/enums/offline_user_data_job_failure_reason_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/offline_user_data_job_failure_reason.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/offline_user_data_job_failure_reason.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.OfflineUserDataJobFailureReasonEnum" do - end - add_enum "google.ads.googleads.v12.enums.OfflineUserDataJobFailureReasonEnum.OfflineUserDataJobFailureReason" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INSUFFICIENT_MATCHED_TRANSACTIONS, 2 - value :INSUFFICIENT_TRANSACTIONS, 3 - value :HIGH_AVERAGE_TRANSACTION_VALUE, 4 - value :LOW_AVERAGE_TRANSACTION_VALUE, 5 - value :NEWLY_OBSERVED_CURRENCY_CODE, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - OfflineUserDataJobFailureReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.OfflineUserDataJobFailureReasonEnum").msgclass - OfflineUserDataJobFailureReasonEnum::OfflineUserDataJobFailureReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.OfflineUserDataJobFailureReasonEnum.OfflineUserDataJobFailureReason").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/offline_user_data_job_match_rate_range_pb.rb b/lib/google/ads/google_ads/v12/enums/offline_user_data_job_match_rate_range_pb.rb deleted file mode 100644 index 0634f01cb..000000000 --- a/lib/google/ads/google_ads/v12/enums/offline_user_data_job_match_rate_range_pb.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/offline_user_data_job_match_rate_range.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/offline_user_data_job_match_rate_range.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.OfflineUserDataJobMatchRateRangeEnum" do - end - add_enum "google.ads.googleads.v12.enums.OfflineUserDataJobMatchRateRangeEnum.OfflineUserDataJobMatchRateRange" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :MATCH_RANGE_LESS_THAN_20, 2 - value :MATCH_RANGE_20_TO_30, 3 - value :MATCH_RANGE_31_TO_40, 4 - value :MATCH_RANGE_41_TO_50, 5 - value :MATCH_RANGE_51_TO_60, 6 - value :MATCH_RANGE_61_TO_70, 7 - value :MATCH_RANGE_71_TO_80, 8 - value :MATCH_RANGE_81_TO_90, 9 - value :MATCH_RANGE_91_TO_100, 10 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - OfflineUserDataJobMatchRateRangeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.OfflineUserDataJobMatchRateRangeEnum").msgclass - OfflineUserDataJobMatchRateRangeEnum::OfflineUserDataJobMatchRateRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.OfflineUserDataJobMatchRateRangeEnum.OfflineUserDataJobMatchRateRange").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/offline_user_data_job_status_pb.rb b/lib/google/ads/google_ads/v12/enums/offline_user_data_job_status_pb.rb deleted file mode 100644 index 20ea80328..000000000 --- a/lib/google/ads/google_ads/v12/enums/offline_user_data_job_status_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/offline_user_data_job_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/offline_user_data_job_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.OfflineUserDataJobStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.OfflineUserDataJobStatusEnum.OfflineUserDataJobStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PENDING, 2 - value :RUNNING, 3 - value :SUCCESS, 4 - value :FAILED, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - OfflineUserDataJobStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.OfflineUserDataJobStatusEnum").msgclass - OfflineUserDataJobStatusEnum::OfflineUserDataJobStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.OfflineUserDataJobStatusEnum.OfflineUserDataJobStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/offline_user_data_job_type_pb.rb b/lib/google/ads/google_ads/v12/enums/offline_user_data_job_type_pb.rb deleted file mode 100644 index 4b80180f1..000000000 --- a/lib/google/ads/google_ads/v12/enums/offline_user_data_job_type_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/offline_user_data_job_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/offline_user_data_job_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.OfflineUserDataJobTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.OfflineUserDataJobTypeEnum.OfflineUserDataJobType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :STORE_SALES_UPLOAD_FIRST_PARTY, 2 - value :STORE_SALES_UPLOAD_THIRD_PARTY, 3 - value :CUSTOMER_MATCH_USER_LIST, 4 - value :CUSTOMER_MATCH_WITH_ATTRIBUTES, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - OfflineUserDataJobTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.OfflineUserDataJobTypeEnum").msgclass - OfflineUserDataJobTypeEnum::OfflineUserDataJobType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.OfflineUserDataJobTypeEnum.OfflineUserDataJobType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/operating_system_version_operator_type_pb.rb b/lib/google/ads/google_ads/v12/enums/operating_system_version_operator_type_pb.rb deleted file mode 100644 index 954098c67..000000000 --- a/lib/google/ads/google_ads/v12/enums/operating_system_version_operator_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/operating_system_version_operator_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/operating_system_version_operator_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.OperatingSystemVersionOperatorTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :EQUALS_TO, 2 - value :GREATER_THAN_EQUALS_TO, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - OperatingSystemVersionOperatorTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.OperatingSystemVersionOperatorTypeEnum").msgclass - OperatingSystemVersionOperatorTypeEnum::OperatingSystemVersionOperatorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/optimization_goal_type_pb.rb b/lib/google/ads/google_ads/v12/enums/optimization_goal_type_pb.rb deleted file mode 100644 index a6ab1a5c4..000000000 --- a/lib/google/ads/google_ads/v12/enums/optimization_goal_type_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/optimization_goal_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/optimization_goal_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.OptimizationGoalTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.OptimizationGoalTypeEnum.OptimizationGoalType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CALL_CLICKS, 2 - value :DRIVING_DIRECTIONS, 3 - value :APP_PRE_REGISTRATION, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - OptimizationGoalTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.OptimizationGoalTypeEnum").msgclass - OptimizationGoalTypeEnum::OptimizationGoalType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.OptimizationGoalTypeEnum.OptimizationGoalType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/parental_status_type_pb.rb b/lib/google/ads/google_ads/v12/enums/parental_status_type_pb.rb deleted file mode 100644 index 66e55350a..000000000 --- a/lib/google/ads/google_ads/v12/enums/parental_status_type_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/parental_status_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/parental_status_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ParentalStatusTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ParentalStatusTypeEnum.ParentalStatusType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PARENT, 300 - value :NOT_A_PARENT, 301 - value :UNDETERMINED, 302 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ParentalStatusTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ParentalStatusTypeEnum").msgclass - ParentalStatusTypeEnum::ParentalStatusType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ParentalStatusTypeEnum.ParentalStatusType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/payment_mode_pb.rb b/lib/google/ads/google_ads/v12/enums/payment_mode_pb.rb deleted file mode 100644 index adfd35f76..000000000 --- a/lib/google/ads/google_ads/v12/enums/payment_mode_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/payment_mode.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/payment_mode.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PaymentModeEnum" do - end - add_enum "google.ads.googleads.v12.enums.PaymentModeEnum.PaymentMode" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CLICKS, 4 - value :CONVERSION_VALUE, 5 - value :CONVERSIONS, 6 - value :GUEST_STAY, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PaymentModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PaymentModeEnum").msgclass - PaymentModeEnum::PaymentMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PaymentModeEnum.PaymentMode").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/performance_max_upgrade_status_pb.rb b/lib/google/ads/google_ads/v12/enums/performance_max_upgrade_status_pb.rb deleted file mode 100644 index 53215461c..000000000 --- a/lib/google/ads/google_ads/v12/enums/performance_max_upgrade_status_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/performance_max_upgrade_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/performance_max_upgrade_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PerformanceMaxUpgradeStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :UPGRADE_ELIBIGLE, 2 - value :UPGRADE_IN_PROGRESS, 3 - value :UPGRADE_COMPLETE, 4 - value :UPGRADE_FAILED, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PerformanceMaxUpgradeStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PerformanceMaxUpgradeStatusEnum").msgclass - PerformanceMaxUpgradeStatusEnum::PerformanceMaxUpgradeStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/placeholder_type_pb.rb b/lib/google/ads/google_ads/v12/enums/placeholder_type_pb.rb deleted file mode 100644 index 42456081b..000000000 --- a/lib/google/ads/google_ads/v12/enums/placeholder_type_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/placeholder_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/placeholder_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PlaceholderTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.PlaceholderTypeEnum.PlaceholderType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :SITELINK, 2 - value :CALL, 3 - value :APP, 4 - value :LOCATION, 5 - value :AFFILIATE_LOCATION, 6 - value :CALLOUT, 7 - value :STRUCTURED_SNIPPET, 8 - value :MESSAGE, 9 - value :PRICE, 10 - value :PROMOTION, 11 - value :AD_CUSTOMIZER, 12 - value :DYNAMIC_EDUCATION, 13 - value :DYNAMIC_FLIGHT, 14 - value :DYNAMIC_CUSTOM, 15 - value :DYNAMIC_HOTEL, 16 - value :DYNAMIC_REAL_ESTATE, 17 - value :DYNAMIC_TRAVEL, 18 - value :DYNAMIC_LOCAL, 19 - value :DYNAMIC_JOB, 20 - value :IMAGE, 21 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PlaceholderTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PlaceholderTypeEnum").msgclass - PlaceholderTypeEnum::PlaceholderType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PlaceholderTypeEnum.PlaceholderType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/placement_type_pb.rb b/lib/google/ads/google_ads/v12/enums/placement_type_pb.rb deleted file mode 100644 index 08e0c59e6..000000000 --- a/lib/google/ads/google_ads/v12/enums/placement_type_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/placement_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/placement_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PlacementTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.PlacementTypeEnum.PlacementType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :WEBSITE, 2 - value :MOBILE_APP_CATEGORY, 3 - value :MOBILE_APPLICATION, 4 - value :YOUTUBE_VIDEO, 5 - value :YOUTUBE_CHANNEL, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PlacementTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PlacementTypeEnum").msgclass - PlacementTypeEnum::PlacementType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PlacementTypeEnum.PlacementType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/policy_approval_status_pb.rb b/lib/google/ads/google_ads/v12/enums/policy_approval_status_pb.rb deleted file mode 100644 index a9970a149..000000000 --- a/lib/google/ads/google_ads/v12/enums/policy_approval_status_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/policy_approval_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/policy_approval_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PolicyApprovalStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DISAPPROVED, 2 - value :APPROVED_LIMITED, 3 - value :APPROVED, 4 - value :AREA_OF_INTEREST_ONLY, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PolicyApprovalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PolicyApprovalStatusEnum").msgclass - PolicyApprovalStatusEnum::PolicyApprovalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/policy_review_status_pb.rb b/lib/google/ads/google_ads/v12/enums/policy_review_status_pb.rb deleted file mode 100644 index e528531cb..000000000 --- a/lib/google/ads/google_ads/v12/enums/policy_review_status_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/policy_review_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/policy_review_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PolicyReviewStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.PolicyReviewStatusEnum.PolicyReviewStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :REVIEW_IN_PROGRESS, 2 - value :REVIEWED, 3 - value :UNDER_APPEAL, 4 - value :ELIGIBLE_MAY_SERVE, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PolicyReviewStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PolicyReviewStatusEnum").msgclass - PolicyReviewStatusEnum::PolicyReviewStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PolicyReviewStatusEnum.PolicyReviewStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/policy_topic_entry_type_pb.rb b/lib/google/ads/google_ads/v12/enums/policy_topic_entry_type_pb.rb deleted file mode 100644 index 933f97384..000000000 --- a/lib/google/ads/google_ads/v12/enums/policy_topic_entry_type_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/policy_topic_entry_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/policy_topic_entry_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PolicyTopicEntryTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PROHIBITED, 2 - value :LIMITED, 4 - value :FULLY_LIMITED, 8 - value :DESCRIPTIVE, 5 - value :BROADENING, 6 - value :AREA_OF_INTEREST_ONLY, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PolicyTopicEntryTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PolicyTopicEntryTypeEnum").msgclass - PolicyTopicEntryTypeEnum::PolicyTopicEntryType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/policy_topic_evidence_destination_mismatch_url_type_pb.rb b/lib/google/ads/google_ads/v12/enums/policy_topic_evidence_destination_mismatch_url_type_pb.rb deleted file mode 100644 index dcf8e118e..000000000 --- a/lib/google/ads/google_ads/v12/enums/policy_topic_evidence_destination_mismatch_url_type_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/policy_topic_evidence_destination_mismatch_url_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/policy_topic_evidence_destination_mismatch_url_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.PolicyTopicEvidenceDestinationMismatchUrlType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DISPLAY_URL, 2 - value :FINAL_URL, 3 - value :FINAL_MOBILE_URL, 4 - value :TRACKING_URL, 5 - value :MOBILE_TRACKING_URL, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PolicyTopicEvidenceDestinationMismatchUrlTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum").msgclass - PolicyTopicEvidenceDestinationMismatchUrlTypeEnum::PolicyTopicEvidenceDestinationMismatchUrlType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.PolicyTopicEvidenceDestinationMismatchUrlType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/policy_topic_evidence_destination_not_working_device_pb.rb b/lib/google/ads/google_ads/v12/enums/policy_topic_evidence_destination_not_working_device_pb.rb deleted file mode 100644 index 2de0a1b75..000000000 --- a/lib/google/ads/google_ads/v12/enums/policy_topic_evidence_destination_not_working_device_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/policy_topic_evidence_destination_not_working_device.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/policy_topic_evidence_destination_not_working_device.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum" do - end - add_enum "google.ads.googleads.v12.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.PolicyTopicEvidenceDestinationNotWorkingDevice" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DESKTOP, 2 - value :ANDROID, 3 - value :IOS, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PolicyTopicEvidenceDestinationNotWorkingDeviceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum").msgclass - PolicyTopicEvidenceDestinationNotWorkingDeviceEnum::PolicyTopicEvidenceDestinationNotWorkingDevice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.PolicyTopicEvidenceDestinationNotWorkingDevice").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb.rb b/lib/google/ads/google_ads/v12/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb.rb deleted file mode 100644 index 29165673b..000000000 --- a/lib/google/ads/google_ads/v12/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum.PolicyTopicEvidenceDestinationNotWorkingDnsErrorType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :HOSTNAME_NOT_FOUND, 2 - value :GOOGLE_CRAWLER_DNS_ISSUE, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum").msgclass - PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum::PolicyTopicEvidenceDestinationNotWorkingDnsErrorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum.PolicyTopicEvidenceDestinationNotWorkingDnsErrorType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/positive_geo_target_type_pb.rb b/lib/google/ads/google_ads/v12/enums/positive_geo_target_type_pb.rb deleted file mode 100644 index 76d83d44f..000000000 --- a/lib/google/ads/google_ads/v12/enums/positive_geo_target_type_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/positive_geo_target_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/positive_geo_target_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PositiveGeoTargetTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PRESENCE_OR_INTEREST, 5 - value :SEARCH_INTEREST, 6 - value :PRESENCE, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PositiveGeoTargetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PositiveGeoTargetTypeEnum").msgclass - PositiveGeoTargetTypeEnum::PositiveGeoTargetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/preferred_content_type_pb.rb b/lib/google/ads/google_ads/v12/enums/preferred_content_type_pb.rb deleted file mode 100644 index 6a1e947bf..000000000 --- a/lib/google/ads/google_ads/v12/enums/preferred_content_type_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/preferred_content_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/preferred_content_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PreferredContentTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.PreferredContentTypeEnum.PreferredContentType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :YOUTUBE_TOP_CONTENT, 400 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PreferredContentTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PreferredContentTypeEnum").msgclass - PreferredContentTypeEnum::PreferredContentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PreferredContentTypeEnum.PreferredContentType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/price_extension_price_qualifier_pb.rb b/lib/google/ads/google_ads/v12/enums/price_extension_price_qualifier_pb.rb deleted file mode 100644 index 3ddce8ccf..000000000 --- a/lib/google/ads/google_ads/v12/enums/price_extension_price_qualifier_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/price_extension_price_qualifier.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/price_extension_price_qualifier.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PriceExtensionPriceQualifierEnum" do - end - add_enum "google.ads.googleads.v12.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :FROM, 2 - value :UP_TO, 3 - value :AVERAGE, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PriceExtensionPriceQualifierEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PriceExtensionPriceQualifierEnum").msgclass - PriceExtensionPriceQualifierEnum::PriceExtensionPriceQualifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/price_extension_price_unit_pb.rb b/lib/google/ads/google_ads/v12/enums/price_extension_price_unit_pb.rb deleted file mode 100644 index f07452621..000000000 --- a/lib/google/ads/google_ads/v12/enums/price_extension_price_unit_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/price_extension_price_unit.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/price_extension_price_unit.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PriceExtensionPriceUnitEnum" do - end - add_enum "google.ads.googleads.v12.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PER_HOUR, 2 - value :PER_DAY, 3 - value :PER_WEEK, 4 - value :PER_MONTH, 5 - value :PER_YEAR, 6 - value :PER_NIGHT, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PriceExtensionPriceUnitEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PriceExtensionPriceUnitEnum").msgclass - PriceExtensionPriceUnitEnum::PriceExtensionPriceUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/price_extension_type_pb.rb b/lib/google/ads/google_ads/v12/enums/price_extension_type_pb.rb deleted file mode 100644 index d7694f8ae..000000000 --- a/lib/google/ads/google_ads/v12/enums/price_extension_type_pb.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/price_extension_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/price_extension_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PriceExtensionTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.PriceExtensionTypeEnum.PriceExtensionType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :BRANDS, 2 - value :EVENTS, 3 - value :LOCATIONS, 4 - value :NEIGHBORHOODS, 5 - value :PRODUCT_CATEGORIES, 6 - value :PRODUCT_TIERS, 7 - value :SERVICES, 8 - value :SERVICE_CATEGORIES, 9 - value :SERVICE_TIERS, 10 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PriceExtensionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PriceExtensionTypeEnum").msgclass - PriceExtensionTypeEnum::PriceExtensionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PriceExtensionTypeEnum.PriceExtensionType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/price_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/price_placeholder_field_pb.rb deleted file mode 100644 index d1531aba0..000000000 --- a/lib/google/ads/google_ads/v12/enums/price_placeholder_field_pb.rb +++ /dev/null @@ -1,81 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/price_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/price_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PricePlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.PricePlaceholderFieldEnum.PricePlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :TYPE, 2 - value :PRICE_QUALIFIER, 3 - value :TRACKING_TEMPLATE, 4 - value :LANGUAGE, 5 - value :FINAL_URL_SUFFIX, 6 - value :ITEM_1_HEADER, 100 - value :ITEM_1_DESCRIPTION, 101 - value :ITEM_1_PRICE, 102 - value :ITEM_1_UNIT, 103 - value :ITEM_1_FINAL_URLS, 104 - value :ITEM_1_FINAL_MOBILE_URLS, 105 - value :ITEM_2_HEADER, 200 - value :ITEM_2_DESCRIPTION, 201 - value :ITEM_2_PRICE, 202 - value :ITEM_2_UNIT, 203 - value :ITEM_2_FINAL_URLS, 204 - value :ITEM_2_FINAL_MOBILE_URLS, 205 - value :ITEM_3_HEADER, 300 - value :ITEM_3_DESCRIPTION, 301 - value :ITEM_3_PRICE, 302 - value :ITEM_3_UNIT, 303 - value :ITEM_3_FINAL_URLS, 304 - value :ITEM_3_FINAL_MOBILE_URLS, 305 - value :ITEM_4_HEADER, 400 - value :ITEM_4_DESCRIPTION, 401 - value :ITEM_4_PRICE, 402 - value :ITEM_4_UNIT, 403 - value :ITEM_4_FINAL_URLS, 404 - value :ITEM_4_FINAL_MOBILE_URLS, 405 - value :ITEM_5_HEADER, 500 - value :ITEM_5_DESCRIPTION, 501 - value :ITEM_5_PRICE, 502 - value :ITEM_5_UNIT, 503 - value :ITEM_5_FINAL_URLS, 504 - value :ITEM_5_FINAL_MOBILE_URLS, 505 - value :ITEM_6_HEADER, 600 - value :ITEM_6_DESCRIPTION, 601 - value :ITEM_6_PRICE, 602 - value :ITEM_6_UNIT, 603 - value :ITEM_6_FINAL_URLS, 604 - value :ITEM_6_FINAL_MOBILE_URLS, 605 - value :ITEM_7_HEADER, 700 - value :ITEM_7_DESCRIPTION, 701 - value :ITEM_7_PRICE, 702 - value :ITEM_7_UNIT, 703 - value :ITEM_7_FINAL_URLS, 704 - value :ITEM_7_FINAL_MOBILE_URLS, 705 - value :ITEM_8_HEADER, 800 - value :ITEM_8_DESCRIPTION, 801 - value :ITEM_8_PRICE, 802 - value :ITEM_8_UNIT, 803 - value :ITEM_8_FINAL_URLS, 804 - value :ITEM_8_FINAL_MOBILE_URLS, 805 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PricePlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PricePlaceholderFieldEnum").msgclass - PricePlaceholderFieldEnum::PricePlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PricePlaceholderFieldEnum.PricePlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/product_bidding_category_level_pb.rb b/lib/google/ads/google_ads/v12/enums/product_bidding_category_level_pb.rb deleted file mode 100644 index 95b70294f..000000000 --- a/lib/google/ads/google_ads/v12/enums/product_bidding_category_level_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/product_bidding_category_level.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/product_bidding_category_level.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ProductBiddingCategoryLevelEnum" do - end - add_enum "google.ads.googleads.v12.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :LEVEL1, 2 - value :LEVEL2, 3 - value :LEVEL3, 4 - value :LEVEL4, 5 - value :LEVEL5, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ProductBiddingCategoryLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ProductBiddingCategoryLevelEnum").msgclass - ProductBiddingCategoryLevelEnum::ProductBiddingCategoryLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/product_bidding_category_status_pb.rb b/lib/google/ads/google_ads/v12/enums/product_bidding_category_status_pb.rb deleted file mode 100644 index b3f5ba538..000000000 --- a/lib/google/ads/google_ads/v12/enums/product_bidding_category_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/product_bidding_category_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/product_bidding_category_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ProductBiddingCategoryStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.ProductBiddingCategoryStatusEnum.ProductBiddingCategoryStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ACTIVE, 2 - value :OBSOLETE, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ProductBiddingCategoryStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ProductBiddingCategoryStatusEnum").msgclass - ProductBiddingCategoryStatusEnum::ProductBiddingCategoryStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ProductBiddingCategoryStatusEnum.ProductBiddingCategoryStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/product_channel_exclusivity_pb.rb b/lib/google/ads/google_ads/v12/enums/product_channel_exclusivity_pb.rb deleted file mode 100644 index 87c0febf7..000000000 --- a/lib/google/ads/google_ads/v12/enums/product_channel_exclusivity_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/product_channel_exclusivity.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/product_channel_exclusivity.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ProductChannelExclusivityEnum" do - end - add_enum "google.ads.googleads.v12.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :SINGLE_CHANNEL, 2 - value :MULTI_CHANNEL, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ProductChannelExclusivityEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ProductChannelExclusivityEnum").msgclass - ProductChannelExclusivityEnum::ProductChannelExclusivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/product_channel_pb.rb b/lib/google/ads/google_ads/v12/enums/product_channel_pb.rb deleted file mode 100644 index fedaf8432..000000000 --- a/lib/google/ads/google_ads/v12/enums/product_channel_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/product_channel.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/product_channel.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ProductChannelEnum" do - end - add_enum "google.ads.googleads.v12.enums.ProductChannelEnum.ProductChannel" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ONLINE, 2 - value :LOCAL, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ProductChannelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ProductChannelEnum").msgclass - ProductChannelEnum::ProductChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ProductChannelEnum.ProductChannel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/product_condition_pb.rb b/lib/google/ads/google_ads/v12/enums/product_condition_pb.rb deleted file mode 100644 index 0cb56914d..000000000 --- a/lib/google/ads/google_ads/v12/enums/product_condition_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/product_condition.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/product_condition.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ProductConditionEnum" do - end - add_enum "google.ads.googleads.v12.enums.ProductConditionEnum.ProductCondition" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NEW, 3 - value :REFURBISHED, 4 - value :USED, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ProductConditionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ProductConditionEnum").msgclass - ProductConditionEnum::ProductCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ProductConditionEnum.ProductCondition").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/product_custom_attribute_index_pb.rb b/lib/google/ads/google_ads/v12/enums/product_custom_attribute_index_pb.rb deleted file mode 100644 index afee47a49..000000000 --- a/lib/google/ads/google_ads/v12/enums/product_custom_attribute_index_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/product_custom_attribute_index.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/product_custom_attribute_index.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ProductCustomAttributeIndexEnum" do - end - add_enum "google.ads.googleads.v12.enums.ProductCustomAttributeIndexEnum.ProductCustomAttributeIndex" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INDEX0, 7 - value :INDEX1, 8 - value :INDEX2, 9 - value :INDEX3, 10 - value :INDEX4, 11 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ProductCustomAttributeIndexEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ProductCustomAttributeIndexEnum").msgclass - ProductCustomAttributeIndexEnum::ProductCustomAttributeIndex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ProductCustomAttributeIndexEnum.ProductCustomAttributeIndex").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/product_type_level_pb.rb b/lib/google/ads/google_ads/v12/enums/product_type_level_pb.rb deleted file mode 100644 index 635d3943d..000000000 --- a/lib/google/ads/google_ads/v12/enums/product_type_level_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/product_type_level.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/product_type_level.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ProductTypeLevelEnum" do - end - add_enum "google.ads.googleads.v12.enums.ProductTypeLevelEnum.ProductTypeLevel" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :LEVEL1, 7 - value :LEVEL2, 8 - value :LEVEL3, 9 - value :LEVEL4, 10 - value :LEVEL5, 11 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ProductTypeLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ProductTypeLevelEnum").msgclass - ProductTypeLevelEnum::ProductTypeLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ProductTypeLevelEnum.ProductTypeLevel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/promotion_extension_discount_modifier_pb.rb b/lib/google/ads/google_ads/v12/enums/promotion_extension_discount_modifier_pb.rb deleted file mode 100644 index 08f48c4d9..000000000 --- a/lib/google/ads/google_ads/v12/enums/promotion_extension_discount_modifier_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/promotion_extension_discount_modifier.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/promotion_extension_discount_modifier.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PromotionExtensionDiscountModifierEnum" do - end - add_enum "google.ads.googleads.v12.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :UP_TO, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PromotionExtensionDiscountModifierEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PromotionExtensionDiscountModifierEnum").msgclass - PromotionExtensionDiscountModifierEnum::PromotionExtensionDiscountModifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/promotion_extension_occasion_pb.rb b/lib/google/ads/google_ads/v12/enums/promotion_extension_occasion_pb.rb deleted file mode 100644 index d5e7c0062..000000000 --- a/lib/google/ads/google_ads/v12/enums/promotion_extension_occasion_pb.rb +++ /dev/null @@ -1,65 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/promotion_extension_occasion.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/promotion_extension_occasion.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PromotionExtensionOccasionEnum" do - end - add_enum "google.ads.googleads.v12.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NEW_YEARS, 2 - value :CHINESE_NEW_YEAR, 3 - value :VALENTINES_DAY, 4 - value :EASTER, 5 - value :MOTHERS_DAY, 6 - value :FATHERS_DAY, 7 - value :LABOR_DAY, 8 - value :BACK_TO_SCHOOL, 9 - value :HALLOWEEN, 10 - value :BLACK_FRIDAY, 11 - value :CYBER_MONDAY, 12 - value :CHRISTMAS, 13 - value :BOXING_DAY, 14 - value :INDEPENDENCE_DAY, 15 - value :NATIONAL_DAY, 16 - value :END_OF_SEASON, 17 - value :WINTER_SALE, 18 - value :SUMMER_SALE, 19 - value :FALL_SALE, 20 - value :SPRING_SALE, 21 - value :RAMADAN, 22 - value :EID_AL_FITR, 23 - value :EID_AL_ADHA, 24 - value :SINGLES_DAY, 25 - value :WOMENS_DAY, 26 - value :HOLI, 27 - value :PARENTS_DAY, 28 - value :ST_NICHOLAS_DAY, 29 - value :CARNIVAL, 30 - value :EPIPHANY, 31 - value :ROSH_HASHANAH, 32 - value :PASSOVER, 33 - value :HANUKKAH, 34 - value :DIWALI, 35 - value :NAVRATRI, 36 - value :SONGKRAN, 37 - value :YEAR_END_GIFT, 38 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PromotionExtensionOccasionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PromotionExtensionOccasionEnum").msgclass - PromotionExtensionOccasionEnum::PromotionExtensionOccasion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/promotion_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/promotion_placeholder_field_pb.rb deleted file mode 100644 index 78769efdb..000000000 --- a/lib/google/ads/google_ads/v12/enums/promotion_placeholder_field_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/promotion_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/promotion_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.PromotionPlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.PromotionPlaceholderFieldEnum.PromotionPlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PROMOTION_TARGET, 2 - value :DISCOUNT_MODIFIER, 3 - value :PERCENT_OFF, 4 - value :MONEY_AMOUNT_OFF, 5 - value :PROMOTION_CODE, 6 - value :ORDERS_OVER_AMOUNT, 7 - value :PROMOTION_START, 8 - value :PROMOTION_END, 9 - value :OCCASION, 10 - value :FINAL_URLS, 11 - value :FINAL_MOBILE_URLS, 12 - value :TRACKING_URL, 13 - value :LANGUAGE, 14 - value :FINAL_URL_SUFFIX, 15 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - PromotionPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PromotionPlaceholderFieldEnum").msgclass - PromotionPlaceholderFieldEnum::PromotionPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.PromotionPlaceholderFieldEnum.PromotionPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/proximity_radius_units_pb.rb b/lib/google/ads/google_ads/v12/enums/proximity_radius_units_pb.rb deleted file mode 100644 index 7f17926dd..000000000 --- a/lib/google/ads/google_ads/v12/enums/proximity_radius_units_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/proximity_radius_units.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/proximity_radius_units.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ProximityRadiusUnitsEnum" do - end - add_enum "google.ads.googleads.v12.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :MILES, 2 - value :KILOMETERS, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ProximityRadiusUnitsEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ProximityRadiusUnitsEnum").msgclass - ProximityRadiusUnitsEnum::ProximityRadiusUnits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/quality_score_bucket_pb.rb b/lib/google/ads/google_ads/v12/enums/quality_score_bucket_pb.rb deleted file mode 100644 index 38ddc428a..000000000 --- a/lib/google/ads/google_ads/v12/enums/quality_score_bucket_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/quality_score_bucket.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/quality_score_bucket.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.QualityScoreBucketEnum" do - end - add_enum "google.ads.googleads.v12.enums.QualityScoreBucketEnum.QualityScoreBucket" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :BELOW_AVERAGE, 2 - value :AVERAGE, 3 - value :ABOVE_AVERAGE, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - QualityScoreBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.QualityScoreBucketEnum").msgclass - QualityScoreBucketEnum::QualityScoreBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.QualityScoreBucketEnum.QualityScoreBucket").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/reach_plan_age_range_pb.rb b/lib/google/ads/google_ads/v12/enums/reach_plan_age_range_pb.rb deleted file mode 100644 index eef44aa3a..000000000 --- a/lib/google/ads/google_ads/v12/enums/reach_plan_age_range_pb.rb +++ /dev/null @@ -1,54 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/reach_plan_age_range.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/reach_plan_age_range.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ReachPlanAgeRangeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AGE_RANGE_18_24, 503001 - value :AGE_RANGE_18_34, 2 - value :AGE_RANGE_18_44, 3 - value :AGE_RANGE_18_49, 4 - value :AGE_RANGE_18_54, 5 - value :AGE_RANGE_18_64, 6 - value :AGE_RANGE_18_65_UP, 7 - value :AGE_RANGE_21_34, 8 - value :AGE_RANGE_25_34, 503002 - value :AGE_RANGE_25_44, 9 - value :AGE_RANGE_25_49, 10 - value :AGE_RANGE_25_54, 11 - value :AGE_RANGE_25_64, 12 - value :AGE_RANGE_25_65_UP, 13 - value :AGE_RANGE_35_44, 503003 - value :AGE_RANGE_35_49, 14 - value :AGE_RANGE_35_54, 15 - value :AGE_RANGE_35_64, 16 - value :AGE_RANGE_35_65_UP, 17 - value :AGE_RANGE_45_54, 503004 - value :AGE_RANGE_45_64, 18 - value :AGE_RANGE_45_65_UP, 19 - value :AGE_RANGE_50_65_UP, 20 - value :AGE_RANGE_55_64, 503005 - value :AGE_RANGE_55_65_UP, 21 - value :AGE_RANGE_65_UP, 503006 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ReachPlanAgeRangeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ReachPlanAgeRangeEnum").msgclass - ReachPlanAgeRangeEnum::ReachPlanAgeRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/reach_plan_network_pb.rb b/lib/google/ads/google_ads/v12/enums/reach_plan_network_pb.rb deleted file mode 100644 index 808e6ea8e..000000000 --- a/lib/google/ads/google_ads/v12/enums/reach_plan_network_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/reach_plan_network.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/reach_plan_network.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ReachPlanNetworkEnum" do - end - add_enum "google.ads.googleads.v12.enums.ReachPlanNetworkEnum.ReachPlanNetwork" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :YOUTUBE, 2 - value :GOOGLE_VIDEO_PARTNERS, 3 - value :YOUTUBE_AND_GOOGLE_VIDEO_PARTNERS, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ReachPlanNetworkEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ReachPlanNetworkEnum").msgclass - ReachPlanNetworkEnum::ReachPlanNetwork = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ReachPlanNetworkEnum.ReachPlanNetwork").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/real_estate_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/real_estate_placeholder_field_pb.rb deleted file mode 100644 index 4fc16b110..000000000 --- a/lib/google/ads/google_ads/v12/enums/real_estate_placeholder_field_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/real_estate_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/real_estate_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.RealEstatePlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.RealEstatePlaceholderFieldEnum.RealEstatePlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :LISTING_ID, 2 - value :LISTING_NAME, 3 - value :CITY_NAME, 4 - value :DESCRIPTION, 5 - value :ADDRESS, 6 - value :PRICE, 7 - value :FORMATTED_PRICE, 8 - value :IMAGE_URL, 9 - value :PROPERTY_TYPE, 10 - value :LISTING_TYPE, 11 - value :CONTEXTUAL_KEYWORDS, 12 - value :FINAL_URLS, 13 - value :FINAL_MOBILE_URLS, 14 - value :TRACKING_URL, 15 - value :ANDROID_APP_LINK, 16 - value :SIMILAR_LISTING_IDS, 17 - value :IOS_APP_LINK, 18 - value :IOS_APP_STORE_ID, 19 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - RealEstatePlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.RealEstatePlaceholderFieldEnum").msgclass - RealEstatePlaceholderFieldEnum::RealEstatePlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.RealEstatePlaceholderFieldEnum.RealEstatePlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/recommendation_type_pb.rb b/lib/google/ads/google_ads/v12/enums/recommendation_type_pb.rb deleted file mode 100644 index 373dca452..000000000 --- a/lib/google/ads/google_ads/v12/enums/recommendation_type_pb.rb +++ /dev/null @@ -1,54 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/recommendation_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/recommendation_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.RecommendationTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.RecommendationTypeEnum.RecommendationType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CAMPAIGN_BUDGET, 2 - value :KEYWORD, 3 - value :TEXT_AD, 4 - value :TARGET_CPA_OPT_IN, 5 - value :MAXIMIZE_CONVERSIONS_OPT_IN, 6 - value :ENHANCED_CPC_OPT_IN, 7 - value :SEARCH_PARTNERS_OPT_IN, 8 - value :MAXIMIZE_CLICKS_OPT_IN, 9 - value :OPTIMIZE_AD_ROTATION, 10 - value :CALLOUT_EXTENSION, 11 - value :SITELINK_EXTENSION, 12 - value :CALL_EXTENSION, 13 - value :KEYWORD_MATCH_TYPE, 14 - value :MOVE_UNUSED_BUDGET, 15 - value :FORECASTING_CAMPAIGN_BUDGET, 16 - value :TARGET_ROAS_OPT_IN, 17 - value :RESPONSIVE_SEARCH_AD, 18 - value :MARGINAL_ROI_CAMPAIGN_BUDGET, 19 - value :USE_BROAD_MATCH_KEYWORD, 20 - value :RESPONSIVE_SEARCH_AD_ASSET, 21 - value :UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX, 22 - value :RESPONSIVE_SEARCH_AD_IMPROVE_AD_STRENGTH, 23 - value :DISPLAY_EXPANSION_OPT_IN, 24 - value :UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX, 25 - value :RAISE_TARGET_CPA_BID_TOO_LOW, 26 - value :FORECASTING_SET_TARGET_ROAS, 27 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - RecommendationTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.RecommendationTypeEnum").msgclass - RecommendationTypeEnum::RecommendationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.RecommendationTypeEnum.RecommendationType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/resource_change_operation_pb.rb b/lib/google/ads/google_ads/v12/enums/resource_change_operation_pb.rb deleted file mode 100644 index 4ef29d1bb..000000000 --- a/lib/google/ads/google_ads/v12/enums/resource_change_operation_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/resource_change_operation.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/resource_change_operation.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ResourceChangeOperationEnum" do - end - add_enum "google.ads.googleads.v12.enums.ResourceChangeOperationEnum.ResourceChangeOperation" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CREATE, 2 - value :UPDATE, 3 - value :REMOVE, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ResourceChangeOperationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ResourceChangeOperationEnum").msgclass - ResourceChangeOperationEnum::ResourceChangeOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ResourceChangeOperationEnum.ResourceChangeOperation").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/resource_limit_type_pb.rb b/lib/google/ads/google_ads/v12/enums/resource_limit_type_pb.rb deleted file mode 100644 index 238c210d5..000000000 --- a/lib/google/ads/google_ads/v12/enums/resource_limit_type_pb.rb +++ /dev/null @@ -1,160 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/resource_limit_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/resource_limit_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ResourceLimitTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ResourceLimitTypeEnum.ResourceLimitType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CAMPAIGNS_PER_CUSTOMER, 2 - value :BASE_CAMPAIGNS_PER_CUSTOMER, 3 - value :EXPERIMENT_CAMPAIGNS_PER_CUSTOMER, 105 - value :HOTEL_CAMPAIGNS_PER_CUSTOMER, 4 - value :SMART_SHOPPING_CAMPAIGNS_PER_CUSTOMER, 5 - value :AD_GROUPS_PER_CAMPAIGN, 6 - value :AD_GROUPS_PER_SHOPPING_CAMPAIGN, 8 - value :AD_GROUPS_PER_HOTEL_CAMPAIGN, 9 - value :REPORTING_AD_GROUPS_PER_LOCAL_CAMPAIGN, 10 - value :REPORTING_AD_GROUPS_PER_APP_CAMPAIGN, 11 - value :MANAGED_AD_GROUPS_PER_SMART_CAMPAIGN, 52 - value :AD_GROUP_CRITERIA_PER_CUSTOMER, 12 - value :BASE_AD_GROUP_CRITERIA_PER_CUSTOMER, 13 - value :EXPERIMENT_AD_GROUP_CRITERIA_PER_CUSTOMER, 107 - value :AD_GROUP_CRITERIA_PER_CAMPAIGN, 14 - value :CAMPAIGN_CRITERIA_PER_CUSTOMER, 15 - value :BASE_CAMPAIGN_CRITERIA_PER_CUSTOMER, 16 - value :EXPERIMENT_CAMPAIGN_CRITERIA_PER_CUSTOMER, 108 - value :WEBPAGE_CRITERIA_PER_CUSTOMER, 17 - value :BASE_WEBPAGE_CRITERIA_PER_CUSTOMER, 18 - value :EXPERIMENT_WEBPAGE_CRITERIA_PER_CUSTOMER, 19 - value :COMBINED_AUDIENCE_CRITERIA_PER_AD_GROUP, 20 - value :CUSTOMER_NEGATIVE_PLACEMENT_CRITERIA_PER_CUSTOMER, 21 - value :CUSTOMER_NEGATIVE_YOUTUBE_CHANNEL_CRITERIA_PER_CUSTOMER, 22 - value :CRITERIA_PER_AD_GROUP, 23 - value :LISTING_GROUPS_PER_AD_GROUP, 24 - value :EXPLICITLY_SHARED_BUDGETS_PER_CUSTOMER, 25 - value :IMPLICITLY_SHARED_BUDGETS_PER_CUSTOMER, 26 - value :COMBINED_AUDIENCE_CRITERIA_PER_CAMPAIGN, 27 - value :NEGATIVE_KEYWORDS_PER_CAMPAIGN, 28 - value :NEGATIVE_PLACEMENTS_PER_CAMPAIGN, 29 - value :GEO_TARGETS_PER_CAMPAIGN, 30 - value :NEGATIVE_IP_BLOCKS_PER_CAMPAIGN, 32 - value :PROXIMITIES_PER_CAMPAIGN, 33 - value :LISTING_SCOPES_PER_SHOPPING_CAMPAIGN, 34 - value :LISTING_SCOPES_PER_NON_SHOPPING_CAMPAIGN, 35 - value :NEGATIVE_KEYWORDS_PER_SHARED_SET, 36 - value :NEGATIVE_PLACEMENTS_PER_SHARED_SET, 37 - value :SHARED_SETS_PER_CUSTOMER_FOR_TYPE_DEFAULT, 40 - value :SHARED_SETS_PER_CUSTOMER_FOR_NEGATIVE_PLACEMENT_LIST_LOWER, 41 - value :HOTEL_ADVANCE_BOOKING_WINDOW_BID_MODIFIERS_PER_AD_GROUP, 44 - value :BIDDING_STRATEGIES_PER_CUSTOMER, 45 - value :BASIC_USER_LISTS_PER_CUSTOMER, 47 - value :LOGICAL_USER_LISTS_PER_CUSTOMER, 48 - value :RULE_BASED_USER_LISTS_PER_CUSTOMER, 153 - value :BASE_AD_GROUP_ADS_PER_CUSTOMER, 53 - value :EXPERIMENT_AD_GROUP_ADS_PER_CUSTOMER, 54 - value :AD_GROUP_ADS_PER_CAMPAIGN, 55 - value :TEXT_AND_OTHER_ADS_PER_AD_GROUP, 56 - value :IMAGE_ADS_PER_AD_GROUP, 57 - value :SHOPPING_SMART_ADS_PER_AD_GROUP, 58 - value :RESPONSIVE_SEARCH_ADS_PER_AD_GROUP, 59 - value :APP_ADS_PER_AD_GROUP, 60 - value :APP_ENGAGEMENT_ADS_PER_AD_GROUP, 61 - value :LOCAL_ADS_PER_AD_GROUP, 62 - value :VIDEO_ADS_PER_AD_GROUP, 63 - value :LEAD_FORM_CAMPAIGN_ASSETS_PER_CAMPAIGN, 143 - value :PROMOTION_CUSTOMER_ASSETS_PER_CUSTOMER, 79 - value :PROMOTION_CAMPAIGN_ASSETS_PER_CAMPAIGN, 80 - value :PROMOTION_AD_GROUP_ASSETS_PER_AD_GROUP, 81 - value :CALLOUT_CUSTOMER_ASSETS_PER_CUSTOMER, 134 - value :CALLOUT_CAMPAIGN_ASSETS_PER_CAMPAIGN, 135 - value :CALLOUT_AD_GROUP_ASSETS_PER_AD_GROUP, 136 - value :SITELINK_CUSTOMER_ASSETS_PER_CUSTOMER, 137 - value :SITELINK_CAMPAIGN_ASSETS_PER_CAMPAIGN, 138 - value :SITELINK_AD_GROUP_ASSETS_PER_AD_GROUP, 139 - value :STRUCTURED_SNIPPET_CUSTOMER_ASSETS_PER_CUSTOMER, 140 - value :STRUCTURED_SNIPPET_CAMPAIGN_ASSETS_PER_CAMPAIGN, 141 - value :STRUCTURED_SNIPPET_AD_GROUP_ASSETS_PER_AD_GROUP, 142 - value :MOBILE_APP_CUSTOMER_ASSETS_PER_CUSTOMER, 144 - value :MOBILE_APP_CAMPAIGN_ASSETS_PER_CAMPAIGN, 145 - value :MOBILE_APP_AD_GROUP_ASSETS_PER_AD_GROUP, 146 - value :HOTEL_CALLOUT_CUSTOMER_ASSETS_PER_CUSTOMER, 147 - value :HOTEL_CALLOUT_CAMPAIGN_ASSETS_PER_CAMPAIGN, 148 - value :HOTEL_CALLOUT_AD_GROUP_ASSETS_PER_AD_GROUP, 149 - value :CALL_CUSTOMER_ASSETS_PER_CUSTOMER, 150 - value :CALL_CAMPAIGN_ASSETS_PER_CAMPAIGN, 151 - value :CALL_AD_GROUP_ASSETS_PER_AD_GROUP, 152 - value :PRICE_CUSTOMER_ASSETS_PER_CUSTOMER, 154 - value :PRICE_CAMPAIGN_ASSETS_PER_CAMPAIGN, 155 - value :PRICE_AD_GROUP_ASSETS_PER_AD_GROUP, 156 - value :AD_IMAGE_CAMPAIGN_ASSETS_PER_CAMPAIGN, 175 - value :AD_IMAGE_AD_GROUP_ASSETS_PER_AD_GROUP, 176 - value :PAGE_FEED_ASSET_SETS_PER_CUSTOMER, 157 - value :DYNAMIC_EDUCATION_FEED_ASSET_SETS_PER_CUSTOMER, 158 - value :ASSETS_PER_PAGE_FEED_ASSET_SET, 159 - value :ASSETS_PER_DYNAMIC_EDUCATION_FEED_ASSET_SET, 160 - value :DYNAMIC_REAL_ESTATE_ASSET_SETS_PER_CUSTOMER, 161 - value :ASSETS_PER_DYNAMIC_REAL_ESTATE_ASSET_SET, 162 - value :DYNAMIC_CUSTOM_ASSET_SETS_PER_CUSTOMER, 163 - value :ASSETS_PER_DYNAMIC_CUSTOM_ASSET_SET, 164 - value :DYNAMIC_HOTELS_AND_RENTALS_ASSET_SETS_PER_CUSTOMER, 165 - value :ASSETS_PER_DYNAMIC_HOTELS_AND_RENTALS_ASSET_SET, 166 - value :DYNAMIC_LOCAL_ASSET_SETS_PER_CUSTOMER, 167 - value :ASSETS_PER_DYNAMIC_LOCAL_ASSET_SET, 168 - value :DYNAMIC_FLIGHTS_ASSET_SETS_PER_CUSTOMER, 169 - value :ASSETS_PER_DYNAMIC_FLIGHTS_ASSET_SET, 170 - value :DYNAMIC_TRAVEL_ASSET_SETS_PER_CUSTOMER, 171 - value :ASSETS_PER_DYNAMIC_TRAVEL_ASSET_SET, 172 - value :DYNAMIC_JOBS_ASSET_SETS_PER_CUSTOMER, 173 - value :ASSETS_PER_DYNAMIC_JOBS_ASSET_SET, 174 - value :VERSIONS_PER_AD, 82 - value :USER_FEEDS_PER_CUSTOMER, 90 - value :SYSTEM_FEEDS_PER_CUSTOMER, 91 - value :FEED_ATTRIBUTES_PER_FEED, 92 - value :FEED_ITEMS_PER_CUSTOMER, 94 - value :CAMPAIGN_FEEDS_PER_CUSTOMER, 95 - value :BASE_CAMPAIGN_FEEDS_PER_CUSTOMER, 96 - value :EXPERIMENT_CAMPAIGN_FEEDS_PER_CUSTOMER, 109 - value :AD_GROUP_FEEDS_PER_CUSTOMER, 97 - value :BASE_AD_GROUP_FEEDS_PER_CUSTOMER, 98 - value :EXPERIMENT_AD_GROUP_FEEDS_PER_CUSTOMER, 110 - value :AD_GROUP_FEEDS_PER_CAMPAIGN, 99 - value :FEED_ITEM_SETS_PER_CUSTOMER, 100 - value :FEED_ITEMS_PER_FEED_ITEM_SET, 101 - value :CAMPAIGN_EXPERIMENTS_PER_CUSTOMER, 112 - value :EXPERIMENT_ARMS_PER_VIDEO_EXPERIMENT, 113 - value :OWNED_LABELS_PER_CUSTOMER, 115 - value :LABELS_PER_CAMPAIGN, 117 - value :LABELS_PER_AD_GROUP, 118 - value :LABELS_PER_AD_GROUP_AD, 119 - value :LABELS_PER_AD_GROUP_CRITERION, 120 - value :TARGET_CUSTOMERS_PER_LABEL, 121 - value :KEYWORD_PLANS_PER_USER_PER_CUSTOMER, 122 - value :KEYWORD_PLAN_AD_GROUP_KEYWORDS_PER_KEYWORD_PLAN, 123 - value :KEYWORD_PLAN_AD_GROUPS_PER_KEYWORD_PLAN, 124 - value :KEYWORD_PLAN_NEGATIVE_KEYWORDS_PER_KEYWORD_PLAN, 125 - value :KEYWORD_PLAN_CAMPAIGNS_PER_KEYWORD_PLAN, 126 - value :CONVERSION_ACTIONS_PER_CUSTOMER, 128 - value :BATCH_JOB_OPERATIONS_PER_JOB, 130 - value :BATCH_JOBS_PER_CUSTOMER, 131 - value :HOTEL_CHECK_IN_DATE_RANGE_BID_MODIFIERS_PER_AD_GROUP, 132 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ResourceLimitTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ResourceLimitTypeEnum").msgclass - ResourceLimitTypeEnum::ResourceLimitType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ResourceLimitTypeEnum.ResourceLimitType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/response_content_type_pb.rb b/lib/google/ads/google_ads/v12/enums/response_content_type_pb.rb deleted file mode 100644 index 040d78a44..000000000 --- a/lib/google/ads/google_ads/v12/enums/response_content_type_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/response_content_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/response_content_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ResponseContentTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" do - value :UNSPECIFIED, 0 - value :RESOURCE_NAME_ONLY, 1 - value :MUTABLE_RESOURCE, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ResponseContentTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ResponseContentTypeEnum").msgclass - ResponseContentTypeEnum::ResponseContentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/search_engine_results_page_type_pb.rb b/lib/google/ads/google_ads/v12/enums/search_engine_results_page_type_pb.rb deleted file mode 100644 index 5467d10c4..000000000 --- a/lib/google/ads/google_ads/v12/enums/search_engine_results_page_type_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/search_engine_results_page_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/search_engine_results_page_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SearchEngineResultsPageTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.SearchEngineResultsPageTypeEnum.SearchEngineResultsPageType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ADS_ONLY, 2 - value :ORGANIC_ONLY, 3 - value :ADS_AND_ORGANIC, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SearchEngineResultsPageTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SearchEngineResultsPageTypeEnum").msgclass - SearchEngineResultsPageTypeEnum::SearchEngineResultsPageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SearchEngineResultsPageTypeEnum.SearchEngineResultsPageType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/search_term_match_type_pb.rb b/lib/google/ads/google_ads/v12/enums/search_term_match_type_pb.rb deleted file mode 100644 index c1637ff7a..000000000 --- a/lib/google/ads/google_ads/v12/enums/search_term_match_type_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/search_term_match_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/search_term_match_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SearchTermMatchTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.SearchTermMatchTypeEnum.SearchTermMatchType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :BROAD, 2 - value :EXACT, 3 - value :PHRASE, 4 - value :NEAR_EXACT, 5 - value :NEAR_PHRASE, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SearchTermMatchTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SearchTermMatchTypeEnum").msgclass - SearchTermMatchTypeEnum::SearchTermMatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SearchTermMatchTypeEnum.SearchTermMatchType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/search_term_targeting_status_pb.rb b/lib/google/ads/google_ads/v12/enums/search_term_targeting_status_pb.rb deleted file mode 100644 index fda951f33..000000000 --- a/lib/google/ads/google_ads/v12/enums/search_term_targeting_status_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/search_term_targeting_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/search_term_targeting_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SearchTermTargetingStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.SearchTermTargetingStatusEnum.SearchTermTargetingStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ADDED, 2 - value :EXCLUDED, 3 - value :ADDED_EXCLUDED, 4 - value :NONE, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SearchTermTargetingStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SearchTermTargetingStatusEnum").msgclass - SearchTermTargetingStatusEnum::SearchTermTargetingStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SearchTermTargetingStatusEnum.SearchTermTargetingStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/seasonality_event_scope_pb.rb b/lib/google/ads/google_ads/v12/enums/seasonality_event_scope_pb.rb deleted file mode 100644 index 9ce6c3d73..000000000 --- a/lib/google/ads/google_ads/v12/enums/seasonality_event_scope_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/seasonality_event_scope.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/seasonality_event_scope.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SeasonalityEventScopeEnum" do - end - add_enum "google.ads.googleads.v12.enums.SeasonalityEventScopeEnum.SeasonalityEventScope" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CUSTOMER, 2 - value :CAMPAIGN, 4 - value :CHANNEL, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SeasonalityEventScopeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SeasonalityEventScopeEnum").msgclass - SeasonalityEventScopeEnum::SeasonalityEventScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SeasonalityEventScopeEnum.SeasonalityEventScope").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/seasonality_event_status_pb.rb b/lib/google/ads/google_ads/v12/enums/seasonality_event_status_pb.rb deleted file mode 100644 index 2d0ec096a..000000000 --- a/lib/google/ads/google_ads/v12/enums/seasonality_event_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/seasonality_event_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/seasonality_event_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SeasonalityEventStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.SeasonalityEventStatusEnum.SeasonalityEventStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SeasonalityEventStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SeasonalityEventStatusEnum").msgclass - SeasonalityEventStatusEnum::SeasonalityEventStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SeasonalityEventStatusEnum.SeasonalityEventStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/served_asset_field_type_pb.rb b/lib/google/ads/google_ads/v12/enums/served_asset_field_type_pb.rb deleted file mode 100644 index 4d9ebec9c..000000000 --- a/lib/google/ads/google_ads/v12/enums/served_asset_field_type_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/served_asset_field_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/served_asset_field_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ServedAssetFieldTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :HEADLINE_1, 2 - value :HEADLINE_2, 3 - value :HEADLINE_3, 4 - value :DESCRIPTION_1, 5 - value :DESCRIPTION_2, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ServedAssetFieldTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ServedAssetFieldTypeEnum").msgclass - ServedAssetFieldTypeEnum::ServedAssetFieldType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/shared_set_status_pb.rb b/lib/google/ads/google_ads/v12/enums/shared_set_status_pb.rb deleted file mode 100644 index e50934935..000000000 --- a/lib/google/ads/google_ads/v12/enums/shared_set_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/shared_set_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/shared_set_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SharedSetStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.SharedSetStatusEnum.SharedSetStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :REMOVED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SharedSetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SharedSetStatusEnum").msgclass - SharedSetStatusEnum::SharedSetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SharedSetStatusEnum.SharedSetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/shared_set_type_pb.rb b/lib/google/ads/google_ads/v12/enums/shared_set_type_pb.rb deleted file mode 100644 index 8b2ec4c90..000000000 --- a/lib/google/ads/google_ads/v12/enums/shared_set_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/shared_set_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/shared_set_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SharedSetTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.SharedSetTypeEnum.SharedSetType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NEGATIVE_KEYWORDS, 2 - value :NEGATIVE_PLACEMENTS, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SharedSetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SharedSetTypeEnum").msgclass - SharedSetTypeEnum::SharedSetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SharedSetTypeEnum.SharedSetType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/simulation_modification_method_pb.rb b/lib/google/ads/google_ads/v12/enums/simulation_modification_method_pb.rb deleted file mode 100644 index 88c55d88d..000000000 --- a/lib/google/ads/google_ads/v12/enums/simulation_modification_method_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/simulation_modification_method.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/simulation_modification_method.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SimulationModificationMethodEnum" do - end - add_enum "google.ads.googleads.v12.enums.SimulationModificationMethodEnum.SimulationModificationMethod" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :UNIFORM, 2 - value :DEFAULT, 3 - value :SCALING, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SimulationModificationMethodEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SimulationModificationMethodEnum").msgclass - SimulationModificationMethodEnum::SimulationModificationMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SimulationModificationMethodEnum.SimulationModificationMethod").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/simulation_type_pb.rb b/lib/google/ads/google_ads/v12/enums/simulation_type_pb.rb deleted file mode 100644 index 4602d65ea..000000000 --- a/lib/google/ads/google_ads/v12/enums/simulation_type_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/simulation_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/simulation_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SimulationTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.SimulationTypeEnum.SimulationType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CPC_BID, 2 - value :CPV_BID, 3 - value :TARGET_CPA, 4 - value :BID_MODIFIER, 5 - value :TARGET_ROAS, 6 - value :PERCENT_CPC_BID, 7 - value :TARGET_IMPRESSION_SHARE, 8 - value :BUDGET, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SimulationTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SimulationTypeEnum").msgclass - SimulationTypeEnum::SimulationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SimulationTypeEnum.SimulationType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/sitelink_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/sitelink_placeholder_field_pb.rb deleted file mode 100644 index 1ef97bb41..000000000 --- a/lib/google/ads/google_ads/v12/enums/sitelink_placeholder_field_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/sitelink_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/sitelink_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SitelinkPlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.SitelinkPlaceholderFieldEnum.SitelinkPlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :TEXT, 2 - value :LINE_1, 3 - value :LINE_2, 4 - value :FINAL_URLS, 5 - value :FINAL_MOBILE_URLS, 6 - value :TRACKING_URL, 7 - value :FINAL_URL_SUFFIX, 8 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SitelinkPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SitelinkPlaceholderFieldEnum").msgclass - SitelinkPlaceholderFieldEnum::SitelinkPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SitelinkPlaceholderFieldEnum.SitelinkPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/sk_ad_network_ad_event_type_pb.rb b/lib/google/ads/google_ads/v12/enums/sk_ad_network_ad_event_type_pb.rb deleted file mode 100644 index 5104d7040..000000000 --- a/lib/google/ads/google_ads/v12/enums/sk_ad_network_ad_event_type_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/sk_ad_network_ad_event_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/sk_ad_network_ad_event_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SkAdNetworkAdEventTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.SkAdNetworkAdEventTypeEnum.SkAdNetworkAdEventType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :UNAVAILABLE, 2 - value :INTERACTION, 3 - value :VIEW, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SkAdNetworkAdEventTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SkAdNetworkAdEventTypeEnum").msgclass - SkAdNetworkAdEventTypeEnum::SkAdNetworkAdEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SkAdNetworkAdEventTypeEnum.SkAdNetworkAdEventType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/sk_ad_network_attribution_credit_pb.rb b/lib/google/ads/google_ads/v12/enums/sk_ad_network_attribution_credit_pb.rb deleted file mode 100644 index 282014f2d..000000000 --- a/lib/google/ads/google_ads/v12/enums/sk_ad_network_attribution_credit_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/sk_ad_network_attribution_credit.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/sk_ad_network_attribution_credit.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SkAdNetworkAttributionCreditEnum" do - end - add_enum "google.ads.googleads.v12.enums.SkAdNetworkAttributionCreditEnum.SkAdNetworkAttributionCredit" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :UNAVAILABLE, 2 - value :WON, 3 - value :CONTRIBUTED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SkAdNetworkAttributionCreditEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SkAdNetworkAttributionCreditEnum").msgclass - SkAdNetworkAttributionCreditEnum::SkAdNetworkAttributionCredit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SkAdNetworkAttributionCreditEnum.SkAdNetworkAttributionCredit").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/sk_ad_network_user_type_pb.rb b/lib/google/ads/google_ads/v12/enums/sk_ad_network_user_type_pb.rb deleted file mode 100644 index 7e2c197d5..000000000 --- a/lib/google/ads/google_ads/v12/enums/sk_ad_network_user_type_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/sk_ad_network_user_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/sk_ad_network_user_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SkAdNetworkUserTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.SkAdNetworkUserTypeEnum.SkAdNetworkUserType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :UNAVAILABLE, 2 - value :NEW_INSTALLER, 3 - value :REINSTALLER, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SkAdNetworkUserTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SkAdNetworkUserTypeEnum").msgclass - SkAdNetworkUserTypeEnum::SkAdNetworkUserType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SkAdNetworkUserTypeEnum.SkAdNetworkUserType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/slot_pb.rb b/lib/google/ads/google_ads/v12/enums/slot_pb.rb deleted file mode 100644 index 2d6d4a1d0..000000000 --- a/lib/google/ads/google_ads/v12/enums/slot_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/slot.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/slot.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SlotEnum" do - end - add_enum "google.ads.googleads.v12.enums.SlotEnum.Slot" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :SEARCH_SIDE, 2 - value :SEARCH_TOP, 3 - value :SEARCH_OTHER, 4 - value :CONTENT, 5 - value :SEARCH_PARTNER_TOP, 6 - value :SEARCH_PARTNER_OTHER, 7 - value :MIXED, 8 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SlotEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SlotEnum").msgclass - SlotEnum::Slot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SlotEnum.Slot").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/spending_limit_type_pb.rb b/lib/google/ads/google_ads/v12/enums/spending_limit_type_pb.rb deleted file mode 100644 index 7076e0001..000000000 --- a/lib/google/ads/google_ads/v12/enums/spending_limit_type_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/spending_limit_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/spending_limit_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SpendingLimitTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.SpendingLimitTypeEnum.SpendingLimitType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INFINITE, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SpendingLimitTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SpendingLimitTypeEnum").msgclass - SpendingLimitTypeEnum::SpendingLimitType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SpendingLimitTypeEnum.SpendingLimitType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/structured_snippet_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/structured_snippet_placeholder_field_pb.rb deleted file mode 100644 index b0835ffbc..000000000 --- a/lib/google/ads/google_ads/v12/enums/structured_snippet_placeholder_field_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/structured_snippet_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/structured_snippet_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.StructuredSnippetPlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.StructuredSnippetPlaceholderFieldEnum.StructuredSnippetPlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :HEADER, 2 - value :SNIPPETS, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - StructuredSnippetPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.StructuredSnippetPlaceholderFieldEnum").msgclass - StructuredSnippetPlaceholderFieldEnum::StructuredSnippetPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.StructuredSnippetPlaceholderFieldEnum.StructuredSnippetPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/summary_row_setting_pb.rb b/lib/google/ads/google_ads/v12/enums/summary_row_setting_pb.rb deleted file mode 100644 index ff3b031af..000000000 --- a/lib/google/ads/google_ads/v12/enums/summary_row_setting_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/summary_row_setting.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/summary_row_setting.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SummaryRowSettingEnum" do - end - add_enum "google.ads.googleads.v12.enums.SummaryRowSettingEnum.SummaryRowSetting" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NO_SUMMARY_ROW, 2 - value :SUMMARY_ROW_WITH_RESULTS, 3 - value :SUMMARY_ROW_ONLY, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SummaryRowSettingEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SummaryRowSettingEnum").msgclass - SummaryRowSettingEnum::SummaryRowSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SummaryRowSettingEnum.SummaryRowSetting").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/system_managed_entity_source_pb.rb b/lib/google/ads/google_ads/v12/enums/system_managed_entity_source_pb.rb deleted file mode 100644 index a98684018..000000000 --- a/lib/google/ads/google_ads/v12/enums/system_managed_entity_source_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/system_managed_entity_source.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/system_managed_entity_source.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.SystemManagedResourceSourceEnum" do - end - add_enum "google.ads.googleads.v12.enums.SystemManagedResourceSourceEnum.SystemManagedResourceSource" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AD_VARIATIONS, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - SystemManagedResourceSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SystemManagedResourceSourceEnum").msgclass - SystemManagedResourceSourceEnum::SystemManagedResourceSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.SystemManagedResourceSourceEnum.SystemManagedResourceSource").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/target_cpa_opt_in_recommendation_goal_pb.rb b/lib/google/ads/google_ads/v12/enums/target_cpa_opt_in_recommendation_goal_pb.rb deleted file mode 100644 index 4c96f1cce..000000000 --- a/lib/google/ads/google_ads/v12/enums/target_cpa_opt_in_recommendation_goal_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/target_cpa_opt_in_recommendation_goal.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/target_cpa_opt_in_recommendation_goal.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.TargetCpaOptInRecommendationGoalEnum" do - end - add_enum "google.ads.googleads.v12.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :SAME_COST, 2 - value :SAME_CONVERSIONS, 3 - value :SAME_CPA, 4 - value :CLOSEST_CPA, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - TargetCpaOptInRecommendationGoalEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.TargetCpaOptInRecommendationGoalEnum").msgclass - TargetCpaOptInRecommendationGoalEnum::TargetCpaOptInRecommendationGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/target_impression_share_location_pb.rb b/lib/google/ads/google_ads/v12/enums/target_impression_share_location_pb.rb deleted file mode 100644 index 3b0249736..000000000 --- a/lib/google/ads/google_ads/v12/enums/target_impression_share_location_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/target_impression_share_location.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/target_impression_share_location.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.TargetImpressionShareLocationEnum" do - end - add_enum "google.ads.googleads.v12.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ANYWHERE_ON_PAGE, 2 - value :TOP_OF_PAGE, 3 - value :ABSOLUTE_TOP_OF_PAGE, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - TargetImpressionShareLocationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.TargetImpressionShareLocationEnum").msgclass - TargetImpressionShareLocationEnum::TargetImpressionShareLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/targeting_dimension_pb.rb b/lib/google/ads/google_ads/v12/enums/targeting_dimension_pb.rb deleted file mode 100644 index 8e2ea9e19..000000000 --- a/lib/google/ads/google_ads/v12/enums/targeting_dimension_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/targeting_dimension.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/targeting_dimension.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.TargetingDimensionEnum" do - end - add_enum "google.ads.googleads.v12.enums.TargetingDimensionEnum.TargetingDimension" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :KEYWORD, 2 - value :AUDIENCE, 3 - value :TOPIC, 4 - value :GENDER, 5 - value :AGE_RANGE, 6 - value :PLACEMENT, 7 - value :PARENTAL_STATUS, 8 - value :INCOME_RANGE, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - TargetingDimensionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.TargetingDimensionEnum").msgclass - TargetingDimensionEnum::TargetingDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.TargetingDimensionEnum.TargetingDimension").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/time_type_pb.rb b/lib/google/ads/google_ads/v12/enums/time_type_pb.rb deleted file mode 100644 index bc92c1df3..000000000 --- a/lib/google/ads/google_ads/v12/enums/time_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/time_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/time_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.TimeTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.TimeTypeEnum.TimeType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NOW, 2 - value :FOREVER, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - TimeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.TimeTypeEnum").msgclass - TimeTypeEnum::TimeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.TimeTypeEnum.TimeType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/tracking_code_page_format_pb.rb b/lib/google/ads/google_ads/v12/enums/tracking_code_page_format_pb.rb deleted file mode 100644 index e294ae4e3..000000000 --- a/lib/google/ads/google_ads/v12/enums/tracking_code_page_format_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/tracking_code_page_format.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/tracking_code_page_format.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.TrackingCodePageFormatEnum" do - end - add_enum "google.ads.googleads.v12.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :HTML, 2 - value :AMP, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - TrackingCodePageFormatEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.TrackingCodePageFormatEnum").msgclass - TrackingCodePageFormatEnum::TrackingCodePageFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/tracking_code_type_pb.rb b/lib/google/ads/google_ads/v12/enums/tracking_code_type_pb.rb deleted file mode 100644 index 012c99596..000000000 --- a/lib/google/ads/google_ads/v12/enums/tracking_code_type_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/tracking_code_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/tracking_code_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.TrackingCodeTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.TrackingCodeTypeEnum.TrackingCodeType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :WEBPAGE, 2 - value :WEBPAGE_ONCLICK, 3 - value :CLICK_TO_CALL, 4 - value :WEBSITE_CALL, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - TrackingCodeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.TrackingCodeTypeEnum").msgclass - TrackingCodeTypeEnum::TrackingCodeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.TrackingCodeTypeEnum.TrackingCodeType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/travel_placeholder_field_pb.rb b/lib/google/ads/google_ads/v12/enums/travel_placeholder_field_pb.rb deleted file mode 100644 index ea2a3bd2d..000000000 --- a/lib/google/ads/google_ads/v12/enums/travel_placeholder_field_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/travel_placeholder_field.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/travel_placeholder_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.TravelPlaceholderFieldEnum" do - end - add_enum "google.ads.googleads.v12.enums.TravelPlaceholderFieldEnum.TravelPlaceholderField" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DESTINATION_ID, 2 - value :ORIGIN_ID, 3 - value :TITLE, 4 - value :DESTINATION_NAME, 5 - value :ORIGIN_NAME, 6 - value :PRICE, 7 - value :FORMATTED_PRICE, 8 - value :SALE_PRICE, 9 - value :FORMATTED_SALE_PRICE, 10 - value :IMAGE_URL, 11 - value :CATEGORY, 12 - value :CONTEXTUAL_KEYWORDS, 13 - value :DESTINATION_ADDRESS, 14 - value :FINAL_URL, 15 - value :FINAL_MOBILE_URLS, 16 - value :TRACKING_URL, 17 - value :ANDROID_APP_LINK, 18 - value :SIMILAR_DESTINATION_IDS, 19 - value :IOS_APP_LINK, 20 - value :IOS_APP_STORE_ID, 21 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - TravelPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.TravelPlaceholderFieldEnum").msgclass - TravelPlaceholderFieldEnum::TravelPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.TravelPlaceholderFieldEnum.TravelPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/user_identifier_source_pb.rb b/lib/google/ads/google_ads/v12/enums/user_identifier_source_pb.rb deleted file mode 100644 index 464fef7a9..000000000 --- a/lib/google/ads/google_ads/v12/enums/user_identifier_source_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/user_identifier_source.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/user_identifier_source.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.UserIdentifierSourceEnum" do - end - add_enum "google.ads.googleads.v12.enums.UserIdentifierSourceEnum.UserIdentifierSource" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :FIRST_PARTY, 2 - value :THIRD_PARTY, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - UserIdentifierSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserIdentifierSourceEnum").msgclass - UserIdentifierSourceEnum::UserIdentifierSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserIdentifierSourceEnum.UserIdentifierSource").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/user_interest_taxonomy_type_pb.rb b/lib/google/ads/google_ads/v12/enums/user_interest_taxonomy_type_pb.rb deleted file mode 100644 index 6b3c5bab3..000000000 --- a/lib/google/ads/google_ads/v12/enums/user_interest_taxonomy_type_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/user_interest_taxonomy_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/user_interest_taxonomy_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.UserInterestTaxonomyTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AFFINITY, 2 - value :IN_MARKET, 3 - value :MOBILE_APP_INSTALL_USER, 4 - value :VERTICAL_GEO, 5 - value :NEW_SMART_PHONE_USER, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - UserInterestTaxonomyTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserInterestTaxonomyTypeEnum").msgclass - UserInterestTaxonomyTypeEnum::UserInterestTaxonomyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/user_list_access_status_pb.rb b/lib/google/ads/google_ads/v12/enums/user_list_access_status_pb.rb deleted file mode 100644 index 090f11fe5..000000000 --- a/lib/google/ads/google_ads/v12/enums/user_list_access_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/user_list_access_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/user_list_access_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.UserListAccessStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.UserListAccessStatusEnum.UserListAccessStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENABLED, 2 - value :DISABLED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - UserListAccessStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListAccessStatusEnum").msgclass - UserListAccessStatusEnum::UserListAccessStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListAccessStatusEnum.UserListAccessStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/user_list_closing_reason_pb.rb b/lib/google/ads/google_ads/v12/enums/user_list_closing_reason_pb.rb deleted file mode 100644 index 5500fb954..000000000 --- a/lib/google/ads/google_ads/v12/enums/user_list_closing_reason_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/user_list_closing_reason.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/user_list_closing_reason.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.UserListClosingReasonEnum" do - end - add_enum "google.ads.googleads.v12.enums.UserListClosingReasonEnum.UserListClosingReason" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :UNUSED, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - UserListClosingReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListClosingReasonEnum").msgclass - UserListClosingReasonEnum::UserListClosingReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListClosingReasonEnum.UserListClosingReason").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/user_list_combined_rule_operator_pb.rb b/lib/google/ads/google_ads/v12/enums/user_list_combined_rule_operator_pb.rb deleted file mode 100644 index af5f1c464..000000000 --- a/lib/google/ads/google_ads/v12/enums/user_list_combined_rule_operator_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/user_list_combined_rule_operator.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/user_list_combined_rule_operator.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.UserListCombinedRuleOperatorEnum" do - end - add_enum "google.ads.googleads.v12.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AND, 2 - value :AND_NOT, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - UserListCombinedRuleOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListCombinedRuleOperatorEnum").msgclass - UserListCombinedRuleOperatorEnum::UserListCombinedRuleOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/user_list_crm_data_source_type_pb.rb b/lib/google/ads/google_ads/v12/enums/user_list_crm_data_source_type_pb.rb deleted file mode 100644 index a80137c24..000000000 --- a/lib/google/ads/google_ads/v12/enums/user_list_crm_data_source_type_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/user_list_crm_data_source_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/user_list_crm_data_source_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.UserListCrmDataSourceTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.UserListCrmDataSourceTypeEnum.UserListCrmDataSourceType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :FIRST_PARTY, 2 - value :THIRD_PARTY_CREDIT_BUREAU, 3 - value :THIRD_PARTY_VOTER_FILE, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - UserListCrmDataSourceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListCrmDataSourceTypeEnum").msgclass - UserListCrmDataSourceTypeEnum::UserListCrmDataSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListCrmDataSourceTypeEnum.UserListCrmDataSourceType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/user_list_date_rule_item_operator_pb.rb b/lib/google/ads/google_ads/v12/enums/user_list_date_rule_item_operator_pb.rb deleted file mode 100644 index df9e98b64..000000000 --- a/lib/google/ads/google_ads/v12/enums/user_list_date_rule_item_operator_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/user_list_date_rule_item_operator.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/user_list_date_rule_item_operator.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.UserListDateRuleItemOperatorEnum" do - end - add_enum "google.ads.googleads.v12.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :EQUALS, 2 - value :NOT_EQUALS, 3 - value :BEFORE, 4 - value :AFTER, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - UserListDateRuleItemOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListDateRuleItemOperatorEnum").msgclass - UserListDateRuleItemOperatorEnum::UserListDateRuleItemOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/user_list_flexible_rule_operator_pb.rb b/lib/google/ads/google_ads/v12/enums/user_list_flexible_rule_operator_pb.rb deleted file mode 100644 index d925359c2..000000000 --- a/lib/google/ads/google_ads/v12/enums/user_list_flexible_rule_operator_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/user_list_flexible_rule_operator.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/user_list_flexible_rule_operator.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.UserListFlexibleRuleOperatorEnum" do - end - add_enum "google.ads.googleads.v12.enums.UserListFlexibleRuleOperatorEnum.UserListFlexibleRuleOperator" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AND, 2 - value :OR, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - UserListFlexibleRuleOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListFlexibleRuleOperatorEnum").msgclass - UserListFlexibleRuleOperatorEnum::UserListFlexibleRuleOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListFlexibleRuleOperatorEnum.UserListFlexibleRuleOperator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/user_list_logical_rule_operator_pb.rb b/lib/google/ads/google_ads/v12/enums/user_list_logical_rule_operator_pb.rb deleted file mode 100644 index 95b2d96e5..000000000 --- a/lib/google/ads/google_ads/v12/enums/user_list_logical_rule_operator_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/user_list_logical_rule_operator.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/user_list_logical_rule_operator.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.UserListLogicalRuleOperatorEnum" do - end - add_enum "google.ads.googleads.v12.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ALL, 2 - value :ANY, 3 - value :NONE, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - UserListLogicalRuleOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListLogicalRuleOperatorEnum").msgclass - UserListLogicalRuleOperatorEnum::UserListLogicalRuleOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/user_list_membership_status_pb.rb b/lib/google/ads/google_ads/v12/enums/user_list_membership_status_pb.rb deleted file mode 100644 index 0e1adb249..000000000 --- a/lib/google/ads/google_ads/v12/enums/user_list_membership_status_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/user_list_membership_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/user_list_membership_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.UserListMembershipStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.UserListMembershipStatusEnum.UserListMembershipStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :OPEN, 2 - value :CLOSED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - UserListMembershipStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListMembershipStatusEnum").msgclass - UserListMembershipStatusEnum::UserListMembershipStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListMembershipStatusEnum.UserListMembershipStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/user_list_number_rule_item_operator_pb.rb b/lib/google/ads/google_ads/v12/enums/user_list_number_rule_item_operator_pb.rb deleted file mode 100644 index d19d32f99..000000000 --- a/lib/google/ads/google_ads/v12/enums/user_list_number_rule_item_operator_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/user_list_number_rule_item_operator.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/user_list_number_rule_item_operator.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.UserListNumberRuleItemOperatorEnum" do - end - add_enum "google.ads.googleads.v12.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :GREATER_THAN, 2 - value :GREATER_THAN_OR_EQUAL, 3 - value :EQUALS, 4 - value :NOT_EQUALS, 5 - value :LESS_THAN, 6 - value :LESS_THAN_OR_EQUAL, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - UserListNumberRuleItemOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListNumberRuleItemOperatorEnum").msgclass - UserListNumberRuleItemOperatorEnum::UserListNumberRuleItemOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/user_list_prepopulation_status_pb.rb b/lib/google/ads/google_ads/v12/enums/user_list_prepopulation_status_pb.rb deleted file mode 100644 index defac3cf0..000000000 --- a/lib/google/ads/google_ads/v12/enums/user_list_prepopulation_status_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/user_list_prepopulation_status.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/user_list_prepopulation_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.UserListPrepopulationStatusEnum" do - end - add_enum "google.ads.googleads.v12.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :REQUESTED, 2 - value :FINISHED, 3 - value :FAILED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - UserListPrepopulationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListPrepopulationStatusEnum").msgclass - UserListPrepopulationStatusEnum::UserListPrepopulationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/user_list_rule_type_pb.rb b/lib/google/ads/google_ads/v12/enums/user_list_rule_type_pb.rb deleted file mode 100644 index 73c1ab10a..000000000 --- a/lib/google/ads/google_ads/v12/enums/user_list_rule_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/user_list_rule_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/user_list_rule_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.UserListRuleTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.UserListRuleTypeEnum.UserListRuleType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AND_OF_ORS, 2 - value :OR_OF_ANDS, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - UserListRuleTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListRuleTypeEnum").msgclass - UserListRuleTypeEnum::UserListRuleType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListRuleTypeEnum.UserListRuleType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/user_list_size_range_pb.rb b/lib/google/ads/google_ads/v12/enums/user_list_size_range_pb.rb deleted file mode 100644 index b7ebaffd6..000000000 --- a/lib/google/ads/google_ads/v12/enums/user_list_size_range_pb.rb +++ /dev/null @@ -1,44 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/user_list_size_range.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/user_list_size_range.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.UserListSizeRangeEnum" do - end - add_enum "google.ads.googleads.v12.enums.UserListSizeRangeEnum.UserListSizeRange" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :LESS_THAN_FIVE_HUNDRED, 2 - value :LESS_THAN_ONE_THOUSAND, 3 - value :ONE_THOUSAND_TO_TEN_THOUSAND, 4 - value :TEN_THOUSAND_TO_FIFTY_THOUSAND, 5 - value :FIFTY_THOUSAND_TO_ONE_HUNDRED_THOUSAND, 6 - value :ONE_HUNDRED_THOUSAND_TO_THREE_HUNDRED_THOUSAND, 7 - value :THREE_HUNDRED_THOUSAND_TO_FIVE_HUNDRED_THOUSAND, 8 - value :FIVE_HUNDRED_THOUSAND_TO_ONE_MILLION, 9 - value :ONE_MILLION_TO_TWO_MILLION, 10 - value :TWO_MILLION_TO_THREE_MILLION, 11 - value :THREE_MILLION_TO_FIVE_MILLION, 12 - value :FIVE_MILLION_TO_TEN_MILLION, 13 - value :TEN_MILLION_TO_TWENTY_MILLION, 14 - value :TWENTY_MILLION_TO_THIRTY_MILLION, 15 - value :THIRTY_MILLION_TO_FIFTY_MILLION, 16 - value :OVER_FIFTY_MILLION, 17 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - UserListSizeRangeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListSizeRangeEnum").msgclass - UserListSizeRangeEnum::UserListSizeRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListSizeRangeEnum.UserListSizeRange").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/user_list_string_rule_item_operator_pb.rb b/lib/google/ads/google_ads/v12/enums/user_list_string_rule_item_operator_pb.rb deleted file mode 100644 index 64cba1e09..000000000 --- a/lib/google/ads/google_ads/v12/enums/user_list_string_rule_item_operator_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/user_list_string_rule_item_operator.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/user_list_string_rule_item_operator.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.UserListStringRuleItemOperatorEnum" do - end - add_enum "google.ads.googleads.v12.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CONTAINS, 2 - value :EQUALS, 3 - value :STARTS_WITH, 4 - value :ENDS_WITH, 5 - value :NOT_EQUALS, 6 - value :NOT_CONTAINS, 7 - value :NOT_STARTS_WITH, 8 - value :NOT_ENDS_WITH, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - UserListStringRuleItemOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListStringRuleItemOperatorEnum").msgclass - UserListStringRuleItemOperatorEnum::UserListStringRuleItemOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/user_list_type_pb.rb b/lib/google/ads/google_ads/v12/enums/user_list_type_pb.rb deleted file mode 100644 index 02b0083ae..000000000 --- a/lib/google/ads/google_ads/v12/enums/user_list_type_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/user_list_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/user_list_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.UserListTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.UserListTypeEnum.UserListType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :REMARKETING, 2 - value :LOGICAL, 3 - value :EXTERNAL_REMARKETING, 4 - value :RULE_BASED, 5 - value :SIMILAR, 6 - value :CRM_BASED, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - UserListTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListTypeEnum").msgclass - UserListTypeEnum::UserListType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.UserListTypeEnum.UserListType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/value_rule_device_type_pb.rb b/lib/google/ads/google_ads/v12/enums/value_rule_device_type_pb.rb deleted file mode 100644 index 765e23366..000000000 --- a/lib/google/ads/google_ads/v12/enums/value_rule_device_type_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/value_rule_device_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/value_rule_device_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ValueRuleDeviceTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :MOBILE, 2 - value :DESKTOP, 3 - value :TABLET, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ValueRuleDeviceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ValueRuleDeviceTypeEnum").msgclass - ValueRuleDeviceTypeEnum::ValueRuleDeviceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/value_rule_geo_location_match_type_pb.rb b/lib/google/ads/google_ads/v12/enums/value_rule_geo_location_match_type_pb.rb deleted file mode 100644 index 8b93f8c2e..000000000 --- a/lib/google/ads/google_ads/v12/enums/value_rule_geo_location_match_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/value_rule_geo_location_match_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/value_rule_geo_location_match_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ValueRuleGeoLocationMatchTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ANY, 2 - value :LOCATION_OF_PRESENCE, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ValueRuleGeoLocationMatchTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ValueRuleGeoLocationMatchTypeEnum").msgclass - ValueRuleGeoLocationMatchTypeEnum::ValueRuleGeoLocationMatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/value_rule_operation_pb.rb b/lib/google/ads/google_ads/v12/enums/value_rule_operation_pb.rb deleted file mode 100644 index aae739bc8..000000000 --- a/lib/google/ads/google_ads/v12/enums/value_rule_operation_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/value_rule_operation.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/value_rule_operation.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ValueRuleOperationEnum" do - end - add_enum "google.ads.googleads.v12.enums.ValueRuleOperationEnum.ValueRuleOperation" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ADD, 2 - value :MULTIPLY, 3 - value :SET, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ValueRuleOperationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ValueRuleOperationEnum").msgclass - ValueRuleOperationEnum::ValueRuleOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ValueRuleOperationEnum.ValueRuleOperation").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/value_rule_set_attachment_type_pb.rb b/lib/google/ads/google_ads/v12/enums/value_rule_set_attachment_type_pb.rb deleted file mode 100644 index 4abaf2a52..000000000 --- a/lib/google/ads/google_ads/v12/enums/value_rule_set_attachment_type_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/value_rule_set_attachment_type.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/value_rule_set_attachment_type.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ValueRuleSetAttachmentTypeEnum" do - end - add_enum "google.ads.googleads.v12.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CUSTOMER, 2 - value :CAMPAIGN, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ValueRuleSetAttachmentTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ValueRuleSetAttachmentTypeEnum").msgclass - ValueRuleSetAttachmentTypeEnum::ValueRuleSetAttachmentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/value_rule_set_dimension_pb.rb b/lib/google/ads/google_ads/v12/enums/value_rule_set_dimension_pb.rb deleted file mode 100644 index 33cf14655..000000000 --- a/lib/google/ads/google_ads/v12/enums/value_rule_set_dimension_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/value_rule_set_dimension.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/value_rule_set_dimension.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.ValueRuleSetDimensionEnum" do - end - add_enum "google.ads.googleads.v12.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :GEO_LOCATION, 2 - value :DEVICE, 3 - value :AUDIENCE, 4 - value :NO_CONDITION, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - ValueRuleSetDimensionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ValueRuleSetDimensionEnum").msgclass - ValueRuleSetDimensionEnum::ValueRuleSetDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/vanity_pharma_display_url_mode_pb.rb b/lib/google/ads/google_ads/v12/enums/vanity_pharma_display_url_mode_pb.rb deleted file mode 100644 index e345d3a6e..000000000 --- a/lib/google/ads/google_ads/v12/enums/vanity_pharma_display_url_mode_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/vanity_pharma_display_url_mode.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/vanity_pharma_display_url_mode.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.VanityPharmaDisplayUrlModeEnum" do - end - add_enum "google.ads.googleads.v12.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :MANUFACTURER_WEBSITE_URL, 2 - value :WEBSITE_DESCRIPTION, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - VanityPharmaDisplayUrlModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.VanityPharmaDisplayUrlModeEnum").msgclass - VanityPharmaDisplayUrlModeEnum::VanityPharmaDisplayUrlMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/vanity_pharma_text_pb.rb b/lib/google/ads/google_ads/v12/enums/vanity_pharma_text_pb.rb deleted file mode 100644 index 1734a1505..000000000 --- a/lib/google/ads/google_ads/v12/enums/vanity_pharma_text_pb.rb +++ /dev/null @@ -1,40 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/vanity_pharma_text.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/vanity_pharma_text.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.VanityPharmaTextEnum" do - end - add_enum "google.ads.googleads.v12.enums.VanityPharmaTextEnum.VanityPharmaText" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PRESCRIPTION_TREATMENT_WEBSITE_EN, 2 - value :PRESCRIPTION_TREATMENT_WEBSITE_ES, 3 - value :PRESCRIPTION_DEVICE_WEBSITE_EN, 4 - value :PRESCRIPTION_DEVICE_WEBSITE_ES, 5 - value :MEDICAL_DEVICE_WEBSITE_EN, 6 - value :MEDICAL_DEVICE_WEBSITE_ES, 7 - value :PREVENTATIVE_TREATMENT_WEBSITE_EN, 8 - value :PREVENTATIVE_TREATMENT_WEBSITE_ES, 9 - value :PRESCRIPTION_CONTRACEPTION_WEBSITE_EN, 10 - value :PRESCRIPTION_CONTRACEPTION_WEBSITE_ES, 11 - value :PRESCRIPTION_VACCINE_WEBSITE_EN, 12 - value :PRESCRIPTION_VACCINE_WEBSITE_ES, 13 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - VanityPharmaTextEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.VanityPharmaTextEnum").msgclass - VanityPharmaTextEnum::VanityPharmaText = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.VanityPharmaTextEnum.VanityPharmaText").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/video_thumbnail_pb.rb b/lib/google/ads/google_ads/v12/enums/video_thumbnail_pb.rb deleted file mode 100644 index 51933e504..000000000 --- a/lib/google/ads/google_ads/v12/enums/video_thumbnail_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/video_thumbnail.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/video_thumbnail.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.VideoThumbnailEnum" do - end - add_enum "google.ads.googleads.v12.enums.VideoThumbnailEnum.VideoThumbnail" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DEFAULT_THUMBNAIL, 2 - value :THUMBNAIL_1, 3 - value :THUMBNAIL_2, 4 - value :THUMBNAIL_3, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - VideoThumbnailEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.VideoThumbnailEnum").msgclass - VideoThumbnailEnum::VideoThumbnail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.VideoThumbnailEnum.VideoThumbnail").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/webpage_condition_operand_pb.rb b/lib/google/ads/google_ads/v12/enums/webpage_condition_operand_pb.rb deleted file mode 100644 index bb462eaea..000000000 --- a/lib/google/ads/google_ads/v12/enums/webpage_condition_operand_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/webpage_condition_operand.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/webpage_condition_operand.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.WebpageConditionOperandEnum" do - end - add_enum "google.ads.googleads.v12.enums.WebpageConditionOperandEnum.WebpageConditionOperand" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :URL, 2 - value :CATEGORY, 3 - value :PAGE_TITLE, 4 - value :PAGE_CONTENT, 5 - value :CUSTOM_LABEL, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - WebpageConditionOperandEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.WebpageConditionOperandEnum").msgclass - WebpageConditionOperandEnum::WebpageConditionOperand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.WebpageConditionOperandEnum.WebpageConditionOperand").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/enums/webpage_condition_operator_pb.rb b/lib/google/ads/google_ads/v12/enums/webpage_condition_operator_pb.rb deleted file mode 100644 index 93786cfe3..000000000 --- a/lib/google/ads/google_ads/v12/enums/webpage_condition_operator_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/enums/webpage_condition_operator.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/enums/webpage_condition_operator.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.enums.WebpageConditionOperatorEnum" do - end - add_enum "google.ads.googleads.v12.enums.WebpageConditionOperatorEnum.WebpageConditionOperator" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :EQUALS, 2 - value :CONTAINS, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Enums - WebpageConditionOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.WebpageConditionOperatorEnum").msgclass - WebpageConditionOperatorEnum::WebpageConditionOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.enums.WebpageConditionOperatorEnum.WebpageConditionOperator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/access_invitation_error_pb.rb b/lib/google/ads/google_ads/v12/errors/access_invitation_error_pb.rb deleted file mode 100644 index 70811f582..000000000 --- a/lib/google/ads/google_ads/v12/errors/access_invitation_error_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/access_invitation_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/access_invitation_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AccessInvitationErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AccessInvitationErrorEnum.AccessInvitationError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_EMAIL_ADDRESS, 2 - value :EMAIL_ADDRESS_ALREADY_HAS_ACCESS, 3 - value :INVALID_INVITATION_STATUS, 4 - value :GOOGLE_CONSUMER_ACCOUNT_NOT_ALLOWED, 5 - value :INVALID_INVITATION_ID, 6 - value :EMAIL_ADDRESS_ALREADY_HAS_PENDING_INVITATION, 7 - value :PENDING_INVITATIONS_LIMIT_EXCEEDED, 8 - value :EMAIL_DOMAIN_POLICY_VIOLATED, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AccessInvitationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AccessInvitationErrorEnum").msgclass - AccessInvitationErrorEnum::AccessInvitationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AccessInvitationErrorEnum.AccessInvitationError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/account_budget_proposal_error_pb.rb b/lib/google/ads/google_ads/v12/errors/account_budget_proposal_error_pb.rb deleted file mode 100644 index 7c42b34ca..000000000 --- a/lib/google/ads/google_ads/v12/errors/account_budget_proposal_error_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/account_budget_proposal_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/account_budget_proposal_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AccountBudgetProposalErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AccountBudgetProposalErrorEnum.AccountBudgetProposalError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :FIELD_MASK_NOT_ALLOWED, 2 - value :IMMUTABLE_FIELD, 3 - value :REQUIRED_FIELD_MISSING, 4 - value :CANNOT_CANCEL_APPROVED_PROPOSAL, 5 - value :CANNOT_REMOVE_UNAPPROVED_BUDGET, 6 - value :CANNOT_REMOVE_RUNNING_BUDGET, 7 - value :CANNOT_END_UNAPPROVED_BUDGET, 8 - value :CANNOT_END_INACTIVE_BUDGET, 9 - value :BUDGET_NAME_REQUIRED, 10 - value :CANNOT_UPDATE_OLD_BUDGET, 11 - value :CANNOT_END_IN_PAST, 12 - value :CANNOT_EXTEND_END_TIME, 13 - value :PURCHASE_ORDER_NUMBER_REQUIRED, 14 - value :PENDING_UPDATE_PROPOSAL_EXISTS, 15 - value :MULTIPLE_BUDGETS_NOT_ALLOWED_FOR_UNAPPROVED_BILLING_SETUP, 16 - value :CANNOT_UPDATE_START_TIME_FOR_STARTED_BUDGET, 17 - value :SPENDING_LIMIT_LOWER_THAN_ACCRUED_COST_NOT_ALLOWED, 18 - value :UPDATE_IS_NO_OP, 19 - value :END_TIME_MUST_FOLLOW_START_TIME, 20 - value :BUDGET_DATE_RANGE_INCOMPATIBLE_WITH_BILLING_SETUP, 21 - value :NOT_AUTHORIZED, 22 - value :INVALID_BILLING_SETUP, 23 - value :OVERLAPS_EXISTING_BUDGET, 24 - value :CANNOT_CREATE_BUDGET_THROUGH_API, 25 - value :INVALID_MASTER_SERVICE_AGREEMENT, 26 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AccountBudgetProposalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AccountBudgetProposalErrorEnum").msgclass - AccountBudgetProposalErrorEnum::AccountBudgetProposalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AccountBudgetProposalErrorEnum.AccountBudgetProposalError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/account_link_error_pb.rb b/lib/google/ads/google_ads/v12/errors/account_link_error_pb.rb deleted file mode 100644 index a287b3222..000000000 --- a/lib/google/ads/google_ads/v12/errors/account_link_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/account_link_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/account_link_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AccountLinkErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AccountLinkErrorEnum.AccountLinkError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_STATUS, 2 - value :PERMISSION_DENIED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AccountLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AccountLinkErrorEnum").msgclass - AccountLinkErrorEnum::AccountLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AccountLinkErrorEnum.AccountLinkError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/ad_customizer_error_pb.rb b/lib/google/ads/google_ads/v12/errors/ad_customizer_error_pb.rb deleted file mode 100644 index 80acc8a68..000000000 --- a/lib/google/ads/google_ads/v12/errors/ad_customizer_error_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/ad_customizer_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/ad_customizer_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AdCustomizerErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AdCustomizerErrorEnum.AdCustomizerError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :COUNTDOWN_INVALID_DATE_FORMAT, 2 - value :COUNTDOWN_DATE_IN_PAST, 3 - value :COUNTDOWN_INVALID_LOCALE, 4 - value :COUNTDOWN_INVALID_START_DAYS_BEFORE, 5 - value :UNKNOWN_USER_LIST, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AdCustomizerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdCustomizerErrorEnum").msgclass - AdCustomizerErrorEnum::AdCustomizerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdCustomizerErrorEnum.AdCustomizerError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/ad_error_pb.rb b/lib/google/ads/google_ads/v12/errors/ad_error_pb.rb deleted file mode 100644 index e958cbae8..000000000 --- a/lib/google/ads/google_ads/v12/errors/ad_error_pb.rb +++ /dev/null @@ -1,180 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/ad_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/ad_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AdErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AdErrorEnum.AdError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE, 2 - value :APPROXIMATELY_TOO_LONG, 3 - value :APPROXIMATELY_TOO_SHORT, 4 - value :BAD_SNIPPET, 5 - value :CANNOT_MODIFY_AD, 6 - value :CANNOT_SET_BUSINESS_NAME_IF_URL_SET, 7 - value :CANNOT_SET_FIELD, 8 - value :CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET, 9 - value :CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING, 10 - value :CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE, 11 - value :CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING, 12 - value :CANNOT_SET_URL, 13 - value :CANNOT_SET_WITHOUT_FINAL_URLS, 14 - value :CANNOT_SET_WITH_FINAL_URLS, 15 - value :CANNOT_SET_WITH_URL_DATA, 17 - value :CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR, 18 - value :CUSTOMER_NOT_APPROVED_MOBILEADS, 19 - value :CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS, 20 - value :CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS, 21 - value :CUSTOMER_NOT_ELIGIBLE, 22 - value :CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL, 23 - value :DIMENSION_ALREADY_IN_UNION, 24 - value :DIMENSION_MUST_BE_SET, 25 - value :DIMENSION_NOT_IN_UNION, 26 - value :DISPLAY_URL_CANNOT_BE_SPECIFIED, 27 - value :DOMESTIC_PHONE_NUMBER_FORMAT, 28 - value :EMERGENCY_PHONE_NUMBER, 29 - value :EMPTY_FIELD, 30 - value :FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID, 31 - value :FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH, 32 - value :ILLEGAL_AD_CUSTOMIZER_TAG_USE, 33 - value :ILLEGAL_TAG_USE, 34 - value :INCONSISTENT_DIMENSIONS, 35 - value :INCONSISTENT_STATUS_IN_TEMPLATE_UNION, 36 - value :INCORRECT_LENGTH, 37 - value :INELIGIBLE_FOR_UPGRADE, 38 - value :INVALID_AD_ADDRESS_CAMPAIGN_TARGET, 39 - value :INVALID_AD_TYPE, 40 - value :INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE, 41 - value :INVALID_ATTRIBUTES_FOR_MOBILE_TEXT, 42 - value :INVALID_CALL_TO_ACTION_TEXT, 43 - value :INVALID_CHARACTER_FOR_URL, 44 - value :INVALID_COUNTRY_CODE, 45 - value :INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG, 47 - value :INVALID_INPUT, 48 - value :INVALID_MARKUP_LANGUAGE, 49 - value :INVALID_MOBILE_CARRIER, 50 - value :INVALID_MOBILE_CARRIER_TARGET, 51 - value :INVALID_NUMBER_OF_ELEMENTS, 52 - value :INVALID_PHONE_NUMBER_FORMAT, 53 - value :INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID, 54 - value :INVALID_TEMPLATE_DATA, 55 - value :INVALID_TEMPLATE_ELEMENT_FIELD_TYPE, 56 - value :INVALID_TEMPLATE_ID, 57 - value :LINE_TOO_WIDE, 58 - value :MISSING_AD_CUSTOMIZER_MAPPING, 59 - value :MISSING_ADDRESS_COMPONENT, 60 - value :MISSING_ADVERTISEMENT_NAME, 61 - value :MISSING_BUSINESS_NAME, 62 - value :MISSING_DESCRIPTION1, 63 - value :MISSING_DESCRIPTION2, 64 - value :MISSING_DESTINATION_URL_TAG, 65 - value :MISSING_LANDING_PAGE_URL_TAG, 66 - value :MISSING_DIMENSION, 67 - value :MISSING_DISPLAY_URL, 68 - value :MISSING_HEADLINE, 69 - value :MISSING_HEIGHT, 70 - value :MISSING_IMAGE, 71 - value :MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS, 72 - value :MISSING_MARKUP_LANGUAGES, 73 - value :MISSING_MOBILE_CARRIER, 74 - value :MISSING_PHONE, 75 - value :MISSING_REQUIRED_TEMPLATE_FIELDS, 76 - value :MISSING_TEMPLATE_FIELD_VALUE, 77 - value :MISSING_TEXT, 78 - value :MISSING_VISIBLE_URL, 79 - value :MISSING_WIDTH, 80 - value :MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED, 81 - value :MUST_USE_TEMP_AD_UNION_ID_ON_ADD, 82 - value :TOO_LONG, 83 - value :TOO_SHORT, 84 - value :UNION_DIMENSIONS_CANNOT_CHANGE, 85 - value :UNKNOWN_ADDRESS_COMPONENT, 86 - value :UNKNOWN_FIELD_NAME, 87 - value :UNKNOWN_UNIQUE_NAME, 88 - value :UNSUPPORTED_DIMENSIONS, 89 - value :URL_INVALID_SCHEME, 90 - value :URL_INVALID_TOP_LEVEL_DOMAIN, 91 - value :URL_MALFORMED, 92 - value :URL_NO_HOST, 93 - value :URL_NOT_EQUIVALENT, 94 - value :URL_HOST_NAME_TOO_LONG, 95 - value :URL_NO_SCHEME, 96 - value :URL_NO_TOP_LEVEL_DOMAIN, 97 - value :URL_PATH_NOT_ALLOWED, 98 - value :URL_PORT_NOT_ALLOWED, 99 - value :URL_QUERY_NOT_ALLOWED, 100 - value :URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG, 102 - value :USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE, 103 - value :INCONSISTENT_EXPANDABLE_SETTINGS, 104 - value :INVALID_FORMAT, 105 - value :INVALID_FIELD_TEXT, 106 - value :ELEMENT_NOT_PRESENT, 107 - value :IMAGE_ERROR, 108 - value :VALUE_NOT_IN_RANGE, 109 - value :FIELD_NOT_PRESENT, 110 - value :ADDRESS_NOT_COMPLETE, 111 - value :ADDRESS_INVALID, 112 - value :VIDEO_RETRIEVAL_ERROR, 113 - value :AUDIO_ERROR, 114 - value :INVALID_YOUTUBE_DISPLAY_URL, 115 - value :TOO_MANY_PRODUCT_IMAGES, 116 - value :TOO_MANY_PRODUCT_VIDEOS, 117 - value :INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE, 118 - value :CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY, 119 - value :CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED, 120 - value :DISALLOWED_NUMBER_TYPE, 121 - value :PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY, 122 - value :PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY, 123 - value :PREMIUM_RATE_NUMBER_NOT_ALLOWED, 124 - value :VANITY_PHONE_NUMBER_NOT_ALLOWED, 125 - value :INVALID_CALL_CONVERSION_TYPE_ID, 126 - value :CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID, 127 - value :CANNOT_SET_PATH2_WITHOUT_PATH1, 128 - value :MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME, 129 - value :INCOMPATIBLE_WITH_RESTRICTION_TYPE, 130 - value :CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED, 131 - value :MISSING_IMAGE_OR_MEDIA_BUNDLE, 132 - value :PRODUCT_TYPE_NOT_SUPPORTED_IN_THIS_CAMPAIGN, 133 - value :PLACEHOLDER_CANNOT_HAVE_EMPTY_DEFAULT_VALUE, 134 - value :PLACEHOLDER_COUNTDOWN_FUNCTION_CANNOT_HAVE_DEFAULT_VALUE, 135 - value :PLACEHOLDER_DEFAULT_VALUE_MISSING, 136 - value :UNEXPECTED_PLACEHOLDER_DEFAULT_VALUE, 137 - value :AD_CUSTOMIZERS_MAY_NOT_BE_ADJACENT, 138 - value :UPDATING_AD_WITH_NO_ENABLED_ASSOCIATION, 139 - value :CALL_AD_VERIFICATION_URL_FINAL_URL_DOES_NOT_HAVE_SAME_DOMAIN, 140 - value :CALL_AD_FINAL_URL_AND_VERIFICATION_URL_CANNOT_BOTH_BE_EMPTY, 154 - value :TOO_MANY_AD_CUSTOMIZERS, 141 - value :INVALID_AD_CUSTOMIZER_FORMAT, 142 - value :NESTED_AD_CUSTOMIZER_SYNTAX, 143 - value :UNSUPPORTED_AD_CUSTOMIZER_SYNTAX, 144 - value :UNPAIRED_BRACE_IN_AD_CUSTOMIZER_TAG, 145 - value :MORE_THAN_ONE_COUNTDOWN_TAG_TYPE_EXISTS, 146 - value :DATE_TIME_IN_COUNTDOWN_TAG_IS_INVALID, 147 - value :DATE_TIME_IN_COUNTDOWN_TAG_IS_PAST, 148 - value :UNRECOGNIZED_AD_CUSTOMIZER_TAG_FOUND, 149 - value :CUSTOMIZER_TYPE_FORBIDDEN_FOR_FIELD, 150 - value :INVALID_CUSTOMIZER_ATTRIBUTE_NAME, 151 - value :STORE_MISMATCH, 152 - value :MISSING_REQUIRED_IMAGE_ASPECT_RATIO, 153 - value :MISMATCHED_ASPECT_RATIOS, 155 - value :DUPLICATE_IMAGE_ACROSS_CAROUSEL_CARDS, 156 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AdErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdErrorEnum").msgclass - AdErrorEnum::AdError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdErrorEnum.AdError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/ad_group_ad_error_pb.rb b/lib/google/ads/google_ads/v12/errors/ad_group_ad_error_pb.rb deleted file mode 100644 index 46405b85d..000000000 --- a/lib/google/ads/google_ads/v12/errors/ad_group_ad_error_pb.rb +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/ad_group_ad_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/ad_group_ad_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AdGroupAdErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AdGroupAdErrorEnum.AdGroupAdError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AD_GROUP_AD_LABEL_DOES_NOT_EXIST, 2 - value :AD_GROUP_AD_LABEL_ALREADY_EXISTS, 3 - value :AD_NOT_UNDER_ADGROUP, 4 - value :CANNOT_OPERATE_ON_REMOVED_ADGROUPAD, 5 - value :CANNOT_CREATE_DEPRECATED_ADS, 6 - value :CANNOT_CREATE_TEXT_ADS, 7 - value :EMPTY_FIELD, 8 - value :RESOURCE_REFERENCED_IN_MULTIPLE_OPS, 9 - value :AD_TYPE_CANNOT_BE_PAUSED, 10 - value :AD_TYPE_CANNOT_BE_REMOVED, 11 - value :CANNOT_UPDATE_DEPRECATED_ADS, 12 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AdGroupAdErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdGroupAdErrorEnum").msgclass - AdGroupAdErrorEnum::AdGroupAdError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdGroupAdErrorEnum.AdGroupAdError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/ad_group_bid_modifier_error_pb.rb b/lib/google/ads/google_ads/v12/errors/ad_group_bid_modifier_error_pb.rb deleted file mode 100644 index e3de5b550..000000000 --- a/lib/google/ads/google_ads/v12/errors/ad_group_bid_modifier_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/ad_group_bid_modifier_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/ad_group_bid_modifier_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AdGroupBidModifierErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AdGroupBidModifierErrorEnum.AdGroupBidModifierError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CRITERION_ID_NOT_SUPPORTED, 2 - value :CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AdGroupBidModifierErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdGroupBidModifierErrorEnum").msgclass - AdGroupBidModifierErrorEnum::AdGroupBidModifierError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdGroupBidModifierErrorEnum.AdGroupBidModifierError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/ad_group_criterion_customizer_error_pb.rb b/lib/google/ads/google_ads/v12/errors/ad_group_criterion_customizer_error_pb.rb deleted file mode 100644 index c5239f0ba..000000000 --- a/lib/google/ads/google_ads/v12/errors/ad_group_criterion_customizer_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/ad_group_criterion_customizer_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/ad_group_criterion_customizer_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AdGroupCriterionCustomizerErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AdGroupCriterionCustomizerErrorEnum.AdGroupCriterionCustomizerError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CRITERION_IS_NOT_KEYWORD, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AdGroupCriterionCustomizerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdGroupCriterionCustomizerErrorEnum").msgclass - AdGroupCriterionCustomizerErrorEnum::AdGroupCriterionCustomizerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdGroupCriterionCustomizerErrorEnum.AdGroupCriterionCustomizerError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/ad_group_criterion_error_pb.rb b/lib/google/ads/google_ads/v12/errors/ad_group_criterion_error_pb.rb deleted file mode 100644 index 0c927bae3..000000000 --- a/lib/google/ads/google_ads/v12/errors/ad_group_criterion_error_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/ad_group_criterion_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/ad_group_criterion_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AdGroupCriterionErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AdGroupCriterionErrorEnum.AdGroupCriterionError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AD_GROUP_CRITERION_LABEL_DOES_NOT_EXIST, 2 - value :AD_GROUP_CRITERION_LABEL_ALREADY_EXISTS, 3 - value :CANNOT_ADD_LABEL_TO_NEGATIVE_CRITERION, 4 - value :TOO_MANY_OPERATIONS, 5 - value :CANT_UPDATE_NEGATIVE, 6 - value :CONCRETE_TYPE_REQUIRED, 7 - value :BID_INCOMPATIBLE_WITH_ADGROUP, 8 - value :CANNOT_TARGET_AND_EXCLUDE, 9 - value :ILLEGAL_URL, 10 - value :INVALID_KEYWORD_TEXT, 11 - value :INVALID_DESTINATION_URL, 12 - value :MISSING_DESTINATION_URL_TAG, 13 - value :KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM, 14 - value :INVALID_USER_STATUS, 15 - value :CANNOT_ADD_CRITERIA_TYPE, 16 - value :CANNOT_EXCLUDE_CRITERIA_TYPE, 17 - value :CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE, 27 - value :OPERATIONS_FOR_TOO_MANY_SHOPPING_ADGROUPS, 28 - value :CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS, 29 - value :CANNOT_SET_WITHOUT_FINAL_URLS, 30 - value :CANNOT_CLEAR_FINAL_URLS_IF_FINAL_MOBILE_URLS_EXIST, 31 - value :CANNOT_CLEAR_FINAL_URLS_IF_FINAL_APP_URLS_EXIST, 32 - value :CANNOT_CLEAR_FINAL_URLS_IF_TRACKING_URL_TEMPLATE_EXISTS, 33 - value :CANNOT_CLEAR_FINAL_URLS_IF_URL_CUSTOM_PARAMETERS_EXIST, 34 - value :CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS, 35 - value :CANNOT_SET_BOTH_DESTINATION_URL_AND_TRACKING_URL_TEMPLATE, 36 - value :FINAL_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE, 37 - value :FINAL_MOBILE_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE, 38 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AdGroupCriterionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdGroupCriterionErrorEnum").msgclass - AdGroupCriterionErrorEnum::AdGroupCriterionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdGroupCriterionErrorEnum.AdGroupCriterionError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/ad_group_customizer_error_pb.rb b/lib/google/ads/google_ads/v12/errors/ad_group_customizer_error_pb.rb deleted file mode 100644 index b7c4c5125..000000000 --- a/lib/google/ads/google_ads/v12/errors/ad_group_customizer_error_pb.rb +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/ad_group_customizer_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/ad_group_customizer_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AdGroupCustomizerErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AdGroupCustomizerErrorEnum.AdGroupCustomizerError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AdGroupCustomizerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdGroupCustomizerErrorEnum").msgclass - AdGroupCustomizerErrorEnum::AdGroupCustomizerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdGroupCustomizerErrorEnum.AdGroupCustomizerError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/ad_group_error_pb.rb b/lib/google/ads/google_ads/v12/errors/ad_group_error_pb.rb deleted file mode 100644 index ef9623148..000000000 --- a/lib/google/ads/google_ads/v12/errors/ad_group_error_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/ad_group_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/ad_group_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AdGroupErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AdGroupErrorEnum.AdGroupError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DUPLICATE_ADGROUP_NAME, 2 - value :INVALID_ADGROUP_NAME, 3 - value :ADVERTISER_NOT_ON_CONTENT_NETWORK, 5 - value :BID_TOO_BIG, 6 - value :BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH, 7 - value :MISSING_ADGROUP_NAME, 8 - value :ADGROUP_LABEL_DOES_NOT_EXIST, 9 - value :ADGROUP_LABEL_ALREADY_EXISTS, 10 - value :INVALID_CONTENT_BID_CRITERION_TYPE_GROUP, 11 - value :AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE, 12 - value :ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY, 13 - value :CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING, 14 - value :PROMOTED_HOTEL_AD_GROUPS_NOT_AVAILABLE_FOR_CUSTOMER, 15 - value :INVALID_EXCLUDED_PARENT_ASSET_FIELD_TYPE, 16 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AdGroupErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdGroupErrorEnum").msgclass - AdGroupErrorEnum::AdGroupError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdGroupErrorEnum.AdGroupError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/ad_group_feed_error_pb.rb b/lib/google/ads/google_ads/v12/errors/ad_group_feed_error_pb.rb deleted file mode 100644 index 4db9baf38..000000000 --- a/lib/google/ads/google_ads/v12/errors/ad_group_feed_error_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/ad_group_feed_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/ad_group_feed_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AdGroupFeedErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AdGroupFeedErrorEnum.AdGroupFeedError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE, 2 - value :CANNOT_CREATE_FOR_REMOVED_FEED, 3 - value :ADGROUP_FEED_ALREADY_EXISTS, 4 - value :CANNOT_OPERATE_ON_REMOVED_ADGROUP_FEED, 5 - value :INVALID_PLACEHOLDER_TYPE, 6 - value :MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE, 7 - value :NO_EXISTING_LOCATION_CUSTOMER_FEED, 8 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AdGroupFeedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdGroupFeedErrorEnum").msgclass - AdGroupFeedErrorEnum::AdGroupFeedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdGroupFeedErrorEnum.AdGroupFeedError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/ad_parameter_error_pb.rb b/lib/google/ads/google_ads/v12/errors/ad_parameter_error_pb.rb deleted file mode 100644 index 17a930d60..000000000 --- a/lib/google/ads/google_ads/v12/errors/ad_parameter_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/ad_parameter_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/ad_parameter_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AdParameterErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AdParameterErrorEnum.AdParameterError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AD_GROUP_CRITERION_MUST_BE_KEYWORD, 2 - value :INVALID_INSERTION_TEXT_FORMAT, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AdParameterErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdParameterErrorEnum").msgclass - AdParameterErrorEnum::AdParameterError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdParameterErrorEnum.AdParameterError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/ad_sharing_error_pb.rb b/lib/google/ads/google_ads/v12/errors/ad_sharing_error_pb.rb deleted file mode 100644 index a5e2952ad..000000000 --- a/lib/google/ads/google_ads/v12/errors/ad_sharing_error_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/ad_sharing_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/ad_sharing_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AdSharingErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AdSharingErrorEnum.AdSharingError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AD_GROUP_ALREADY_CONTAINS_AD, 2 - value :INCOMPATIBLE_AD_UNDER_AD_GROUP, 3 - value :CANNOT_SHARE_INACTIVE_AD, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AdSharingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdSharingErrorEnum").msgclass - AdSharingErrorEnum::AdSharingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdSharingErrorEnum.AdSharingError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/adx_error_pb.rb b/lib/google/ads/google_ads/v12/errors/adx_error_pb.rb deleted file mode 100644 index e1bb8517d..000000000 --- a/lib/google/ads/google_ads/v12/errors/adx_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/adx_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/adx_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AdxErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AdxErrorEnum.AdxError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :UNSUPPORTED_FEATURE, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AdxErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdxErrorEnum").msgclass - AdxErrorEnum::AdxError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AdxErrorEnum.AdxError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/asset_error_pb.rb b/lib/google/ads/google_ads/v12/errors/asset_error_pb.rb deleted file mode 100644 index f0e279134..000000000 --- a/lib/google/ads/google_ads/v12/errors/asset_error_pb.rb +++ /dev/null @@ -1,62 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/asset_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/asset_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AssetErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AssetErrorEnum.AssetError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CUSTOMER_NOT_ON_ALLOWLIST_FOR_ASSET_TYPE, 13 - value :DUPLICATE_ASSET, 3 - value :DUPLICATE_ASSET_NAME, 4 - value :ASSET_DATA_IS_MISSING, 5 - value :CANNOT_MODIFY_ASSET_NAME, 6 - value :FIELD_INCOMPATIBLE_WITH_ASSET_TYPE, 7 - value :INVALID_CALL_TO_ACTION_TEXT, 8 - value :LEAD_FORM_INVALID_FIELDS_COMBINATION, 9 - value :LEAD_FORM_MISSING_AGREEMENT, 10 - value :INVALID_ASSET_STATUS, 11 - value :FIELD_CANNOT_BE_MODIFIED_FOR_ASSET_TYPE, 12 - value :SCHEDULES_CANNOT_OVERLAP, 14 - value :PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF, 15 - value :PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT, 16 - value :TOO_MANY_DECIMAL_PLACES_SPECIFIED, 17 - value :DUPLICATE_ASSETS_WITH_DIFFERENT_FIELD_VALUE, 18 - value :CALL_CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED, 19 - value :CALL_CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED, 20 - value :CALL_DISALLOWED_NUMBER_TYPE, 21 - value :CALL_INVALID_CONVERSION_ACTION, 22 - value :CALL_INVALID_COUNTRY_CODE, 23 - value :CALL_INVALID_DOMESTIC_PHONE_NUMBER_FORMAT, 24 - value :CALL_INVALID_PHONE_NUMBER, 25 - value :CALL_PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY, 26 - value :CALL_PREMIUM_RATE_NUMBER_NOT_ALLOWED, 27 - value :CALL_VANITY_PHONE_NUMBER_NOT_ALLOWED, 28 - value :PRICE_HEADER_SAME_AS_DESCRIPTION, 29 - value :MOBILE_APP_INVALID_APP_ID, 30 - value :MOBILE_APP_INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL, 31 - value :NAME_REQUIRED_FOR_ASSET_TYPE, 32 - value :LEAD_FORM_LEGACY_QUALIFYING_QUESTIONS_DISALLOWED, 33 - value :NAME_CONFLICT_FOR_ASSET_TYPE, 34 - value :CANNOT_MODIFY_ASSET_SOURCE, 35 - value :CANNOT_MODIFY_AUTOMATICALLY_CREATED_ASSET, 36 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AssetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AssetErrorEnum").msgclass - AssetErrorEnum::AssetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AssetErrorEnum.AssetError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/asset_group_asset_error_pb.rb b/lib/google/ads/google_ads/v12/errors/asset_group_asset_error_pb.rb deleted file mode 100644 index e94c83763..000000000 --- a/lib/google/ads/google_ads/v12/errors/asset_group_asset_error_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/asset_group_asset_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/asset_group_asset_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AssetGroupAssetErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AssetGroupAssetErrorEnum.AssetGroupAssetError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DUPLICATE_RESOURCE, 2 - value :EXPANDABLE_TAGS_NOT_ALLOWED_IN_DESCRIPTION, 3 - value :AD_CUSTOMIZER_NOT_SUPPORTED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AssetGroupAssetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AssetGroupAssetErrorEnum").msgclass - AssetGroupAssetErrorEnum::AssetGroupAssetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AssetGroupAssetErrorEnum.AssetGroupAssetError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/asset_group_error_pb.rb b/lib/google/ads/google_ads/v12/errors/asset_group_error_pb.rb deleted file mode 100644 index f94b9e0d1..000000000 --- a/lib/google/ads/google_ads/v12/errors/asset_group_error_pb.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/asset_group_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/asset_group_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AssetGroupErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AssetGroupErrorEnum.AssetGroupError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DUPLICATE_NAME, 2 - value :CANNOT_ADD_ASSET_GROUP_FOR_CAMPAIGN_TYPE, 3 - value :NOT_ENOUGH_HEADLINE_ASSET, 4 - value :NOT_ENOUGH_LONG_HEADLINE_ASSET, 5 - value :NOT_ENOUGH_DESCRIPTION_ASSET, 6 - value :NOT_ENOUGH_BUSINESS_NAME_ASSET, 7 - value :NOT_ENOUGH_MARKETING_IMAGE_ASSET, 8 - value :NOT_ENOUGH_SQUARE_MARKETING_IMAGE_ASSET, 9 - value :NOT_ENOUGH_LOGO_ASSET, 10 - value :FINAL_URL_SHOPPING_MERCHANT_HOME_PAGE_URL_DOMAINS_DIFFER, 11 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AssetGroupErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AssetGroupErrorEnum").msgclass - AssetGroupErrorEnum::AssetGroupError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AssetGroupErrorEnum.AssetGroupError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/asset_group_listing_group_filter_error_pb.rb b/lib/google/ads/google_ads/v12/errors/asset_group_listing_group_filter_error_pb.rb deleted file mode 100644 index d5cbd6805..000000000 --- a/lib/google/ads/google_ads/v12/errors/asset_group_listing_group_filter_error_pb.rb +++ /dev/null @@ -1,41 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/asset_group_listing_group_filter_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/asset_group_listing_group_filter_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AssetGroupListingGroupFilterErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AssetGroupListingGroupFilterErrorEnum.AssetGroupListingGroupFilterError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :TREE_TOO_DEEP, 2 - value :UNIT_CANNOT_HAVE_CHILDREN, 3 - value :SUBDIVISION_MUST_HAVE_EVERYTHING_ELSE_CHILD, 4 - value :DIFFERENT_DIMENSION_TYPE_BETWEEN_SIBLINGS, 5 - value :SAME_DIMENSION_VALUE_BETWEEN_SIBLINGS, 6 - value :SAME_DIMENSION_TYPE_BETWEEN_ANCESTORS, 7 - value :MULTIPLE_ROOTS, 8 - value :INVALID_DIMENSION_VALUE, 9 - value :MUST_REFINE_HIERARCHICAL_PARENT_TYPE, 10 - value :INVALID_PRODUCT_BIDDING_CATEGORY, 11 - value :CHANGING_CASE_VALUE_WITH_CHILDREN, 12 - value :SUBDIVISION_HAS_CHILDREN, 13 - value :CANNOT_REFINE_HIERARCHICAL_EVERYTHING_ELSE, 14 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AssetGroupListingGroupFilterErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AssetGroupListingGroupFilterErrorEnum").msgclass - AssetGroupListingGroupFilterErrorEnum::AssetGroupListingGroupFilterError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AssetGroupListingGroupFilterErrorEnum.AssetGroupListingGroupFilterError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/asset_link_error_pb.rb b/lib/google/ads/google_ads/v12/errors/asset_link_error_pb.rb deleted file mode 100644 index 013c39231..000000000 --- a/lib/google/ads/google_ads/v12/errors/asset_link_error_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/asset_link_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/asset_link_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AssetLinkErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AssetLinkErrorEnum.AssetLinkError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PINNING_UNSUPPORTED, 2 - value :UNSUPPORTED_FIELD_TYPE, 3 - value :FIELD_TYPE_INCOMPATIBLE_WITH_ASSET_TYPE, 4 - value :FIELD_TYPE_INCOMPATIBLE_WITH_CAMPAIGN_TYPE, 5 - value :INCOMPATIBLE_ADVERTISING_CHANNEL_TYPE, 6 - value :IMAGE_NOT_WITHIN_SPECIFIED_DIMENSION_RANGE, 7 - value :INVALID_PINNED_FIELD, 8 - value :MEDIA_BUNDLE_ASSET_FILE_SIZE_TOO_LARGE, 9 - value :NOT_ENOUGH_AVAILABLE_ASSET_LINKS_FOR_VALID_COMBINATION, 10 - value :NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK, 11 - value :NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK_FOR_VALID_COMBINATION, 12 - value :YOUTUBE_VIDEO_REMOVED, 13 - value :YOUTUBE_VIDEO_TOO_LONG, 14 - value :YOUTUBE_VIDEO_TOO_SHORT, 15 - value :EXCLUDED_PARENT_FIELD_TYPE, 16 - value :INVALID_STATUS, 17 - value :YOUTUBE_VIDEO_DURATION_NOT_DEFINED, 18 - value :CANNOT_CREATE_AUTOMATICALLY_CREATED_LINKS, 19 - value :CANNOT_LINK_TO_AUTOMATICALLY_CREATED_ASSET, 20 - value :CANNOT_MODIFY_ASSET_LINK_SOURCE, 21 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AssetLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AssetLinkErrorEnum").msgclass - AssetLinkErrorEnum::AssetLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AssetLinkErrorEnum.AssetLinkError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/asset_set_asset_error_pb.rb b/lib/google/ads/google_ads/v12/errors/asset_set_asset_error_pb.rb deleted file mode 100644 index 4547f69e1..000000000 --- a/lib/google/ads/google_ads/v12/errors/asset_set_asset_error_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/asset_set_asset_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/asset_set_asset_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AssetSetAssetErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AssetSetAssetErrorEnum.AssetSetAssetError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_ASSET_TYPE, 2 - value :INVALID_ASSET_SET_TYPE, 3 - value :DUPLICATE_EXTERNAL_KEY, 4 - value :PARENT_LINKAGE_DOES_NOT_EXIST, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AssetSetAssetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AssetSetAssetErrorEnum").msgclass - AssetSetAssetErrorEnum::AssetSetAssetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AssetSetAssetErrorEnum.AssetSetAssetError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/asset_set_error_pb.rb b/lib/google/ads/google_ads/v12/errors/asset_set_error_pb.rb deleted file mode 100644 index eccaff75e..000000000 --- a/lib/google/ads/google_ads/v12/errors/asset_set_error_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/asset_set_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/asset_set_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AssetSetErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AssetSetErrorEnum.AssetSetError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DUPLICATE_ASSET_SET_NAME, 2 - value :INVALID_PARENT_ASSET_SET_TYPE, 3 - value :ASSET_SET_SOURCE_INCOMPATIBLE_WITH_PARENT_ASSET_SET, 4 - value :ASSET_SET_TYPE_CANNOT_BE_LINKED_TO_CUSTOMER, 5 - value :INVALID_CHAIN_IDS, 6 - value :LOCATION_SYNC_ASSET_SET_DOES_NOT_SUPPORT_RELATIONSHIP_TYPE, 7 - value :NOT_UNIQUE_ENABLED_LOCATION_SYNC_TYPED_ASSET_SET, 8 - value :INVALID_PLACE_IDS, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AssetSetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AssetSetErrorEnum").msgclass - AssetSetErrorEnum::AssetSetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AssetSetErrorEnum.AssetSetError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/asset_set_link_error_pb.rb b/lib/google/ads/google_ads/v12/errors/asset_set_link_error_pb.rb deleted file mode 100644 index 1f52a896b..000000000 --- a/lib/google/ads/google_ads/v12/errors/asset_set_link_error_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/asset_set_link_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/asset_set_link_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AssetSetLinkErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AssetSetLinkErrorEnum.AssetSetLinkError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INCOMPATIBLE_ADVERTISING_CHANNEL_TYPE, 2 - value :DUPLICATE_FEED_LINK, 3 - value :INCOMPATIBLE_ASSET_SET_TYPE_WITH_CAMPAIGN_TYPE, 4 - value :DUPLICATE_ASSET_SET_LINK, 5 - value :ASSET_SET_LINK_CANNOT_BE_REMOVED, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AssetSetLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AssetSetLinkErrorEnum").msgclass - AssetSetLinkErrorEnum::AssetSetLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AssetSetLinkErrorEnum.AssetSetLinkError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/audience_error_pb.rb b/lib/google/ads/google_ads/v12/errors/audience_error_pb.rb deleted file mode 100644 index 24e6b2bcf..000000000 --- a/lib/google/ads/google_ads/v12/errors/audience_error_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/audience_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/audience_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AudienceErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AudienceErrorEnum.AudienceError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NAME_ALREADY_IN_USE, 2 - value :DIMENSION_INVALID, 3 - value :AUDIENCE_SEGMENT_NOT_FOUND, 4 - value :AUDIENCE_SEGMENT_TYPE_NOT_SUPPORTED, 5 - value :DUPLICATE_AUDIENCE_SEGMENT, 6 - value :TOO_MANY_SEGMENTS, 7 - value :TOO_MANY_DIMENSIONS_OF_SAME_TYPE, 8 - value :IN_USE, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AudienceErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AudienceErrorEnum").msgclass - AudienceErrorEnum::AudienceError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AudienceErrorEnum.AudienceError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/audience_insights_error_pb.rb b/lib/google/ads/google_ads/v12/errors/audience_insights_error_pb.rb deleted file mode 100644 index e6914deba..000000000 --- a/lib/google/ads/google_ads/v12/errors/audience_insights_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/audience_insights_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/audience_insights_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AudienceInsightsErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AudienceInsightsErrorEnum.AudienceInsightsError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DIMENSION_INCOMPATIBLE_WITH_TOPIC_AUDIENCE_COMBINATIONS, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AudienceInsightsErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AudienceInsightsErrorEnum").msgclass - AudienceInsightsErrorEnum::AudienceInsightsError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AudienceInsightsErrorEnum.AudienceInsightsError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/authentication_error_pb.rb b/lib/google/ads/google_ads/v12/errors/authentication_error_pb.rb deleted file mode 100644 index b1dccb3ce..000000000 --- a/lib/google/ads/google_ads/v12/errors/authentication_error_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/authentication_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/authentication_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AuthenticationErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AuthenticationErrorEnum.AuthenticationError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :AUTHENTICATION_ERROR, 2 - value :CLIENT_CUSTOMER_ID_INVALID, 5 - value :CUSTOMER_NOT_FOUND, 8 - value :GOOGLE_ACCOUNT_DELETED, 9 - value :GOOGLE_ACCOUNT_COOKIE_INVALID, 10 - value :GOOGLE_ACCOUNT_AUTHENTICATION_FAILED, 25 - value :GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH, 12 - value :LOGIN_COOKIE_REQUIRED, 13 - value :NOT_ADS_USER, 14 - value :OAUTH_TOKEN_INVALID, 15 - value :OAUTH_TOKEN_EXPIRED, 16 - value :OAUTH_TOKEN_DISABLED, 17 - value :OAUTH_TOKEN_REVOKED, 18 - value :OAUTH_TOKEN_HEADER_INVALID, 19 - value :LOGIN_COOKIE_INVALID, 20 - value :USER_ID_INVALID, 22 - value :TWO_STEP_VERIFICATION_NOT_ENROLLED, 23 - value :ADVANCED_PROTECTION_NOT_ENROLLED, 24 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AuthenticationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AuthenticationErrorEnum").msgclass - AuthenticationErrorEnum::AuthenticationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AuthenticationErrorEnum.AuthenticationError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/authorization_error_pb.rb b/lib/google/ads/google_ads/v12/errors/authorization_error_pb.rb deleted file mode 100644 index d48fe4fc1..000000000 --- a/lib/google/ads/google_ads/v12/errors/authorization_error_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/authorization_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/authorization_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.AuthorizationErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.AuthorizationErrorEnum.AuthorizationError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :USER_PERMISSION_DENIED, 2 - value :DEVELOPER_TOKEN_NOT_ON_ALLOWLIST, 13 - value :DEVELOPER_TOKEN_PROHIBITED, 4 - value :PROJECT_DISABLED, 5 - value :AUTHORIZATION_ERROR, 6 - value :ACTION_NOT_PERMITTED, 7 - value :INCOMPLETE_SIGNUP, 8 - value :CUSTOMER_NOT_ENABLED, 24 - value :MISSING_TOS, 9 - value :DEVELOPER_TOKEN_NOT_APPROVED, 10 - value :INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION, 11 - value :SERVICE_ACCESS_DENIED, 12 - value :ACCESS_DENIED_FOR_ACCOUNT_TYPE, 25 - value :METRIC_ACCESS_DENIED, 26 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - AuthorizationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AuthorizationErrorEnum").msgclass - AuthorizationErrorEnum::AuthorizationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.AuthorizationErrorEnum.AuthorizationError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/batch_job_error_pb.rb b/lib/google/ads/google_ads/v12/errors/batch_job_error_pb.rb deleted file mode 100644 index 62c1f2df6..000000000 --- a/lib/google/ads/google_ads/v12/errors/batch_job_error_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/batch_job_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/batch_job_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.BatchJobErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.BatchJobErrorEnum.BatchJobError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING, 2 - value :EMPTY_OPERATIONS, 3 - value :INVALID_SEQUENCE_TOKEN, 4 - value :RESULTS_NOT_READY, 5 - value :INVALID_PAGE_SIZE, 6 - value :CAN_ONLY_REMOVE_PENDING_JOB, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - BatchJobErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.BatchJobErrorEnum").msgclass - BatchJobErrorEnum::BatchJobError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.BatchJobErrorEnum.BatchJobError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/bidding_error_pb.rb b/lib/google/ads/google_ads/v12/errors/bidding_error_pb.rb deleted file mode 100644 index 29ab8b3cb..000000000 --- a/lib/google/ads/google_ads/v12/errors/bidding_error_pb.rb +++ /dev/null @@ -1,55 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/bidding_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/bidding_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.BiddingErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.BiddingErrorEnum.BiddingError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :BIDDING_STRATEGY_TRANSITION_NOT_ALLOWED, 2 - value :CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN, 7 - value :INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE, 10 - value :INVALID_BIDDING_STRATEGY_TYPE, 14 - value :INVALID_BID, 17 - value :BIDDING_STRATEGY_NOT_AVAILABLE_FOR_ACCOUNT_TYPE, 18 - value :CONVERSION_TRACKING_NOT_ENABLED, 19 - value :NOT_ENOUGH_CONVERSIONS, 20 - value :CANNOT_CREATE_CAMPAIGN_WITH_BIDDING_STRATEGY, 21 - value :CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CAMPAIGN_LEVEL_POP_BIDDING_STRATEGY, 23 - value :BIDDING_STRATEGY_NOT_SUPPORTED_WITH_AD_SCHEDULE, 24 - value :PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER, 25 - value :PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA, 26 - value :BIDDING_STRATEGY_NOT_ALLOWED_FOR_SEARCH_ONLY_CAMPAIGNS, 27 - value :BIDDING_STRATEGY_NOT_SUPPORTED_IN_DRAFTS_OR_EXPERIMENTS, 28 - value :BIDDING_STRATEGY_TYPE_DOES_NOT_SUPPORT_PRODUCT_TYPE_ADGROUP_CRITERION, 29 - value :BID_TOO_SMALL, 30 - value :BID_TOO_BIG, 31 - value :BID_TOO_MANY_FRACTIONAL_DIGITS, 32 - value :INVALID_DOMAIN_NAME, 33 - value :NOT_COMPATIBLE_WITH_PAYMENT_MODE, 34 - value :NOT_COMPATIBLE_WITH_BUDGET_TYPE, 35 - value :NOT_COMPATIBLE_WITH_BIDDING_STRATEGY_TYPE, 36 - value :BIDDING_STRATEGY_TYPE_INCOMPATIBLE_WITH_SHARED_BUDGET, 37 - value :BIDDING_STRATEGY_AND_BUDGET_MUST_BE_ALIGNED, 38 - value :BIDDING_STRATEGY_AND_BUDGET_MUST_BE_ATTACHED_TO_THE_SAME_CAMPAIGNS_TO_ALIGN, 39 - value :BIDDING_STRATEGY_AND_BUDGET_MUST_BE_REMOVED_TOGETHER, 40 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - BiddingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.BiddingErrorEnum").msgclass - BiddingErrorEnum::BiddingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.BiddingErrorEnum.BiddingError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/bidding_strategy_error_pb.rb b/lib/google/ads/google_ads/v12/errors/bidding_strategy_error_pb.rb deleted file mode 100644 index b789b390a..000000000 --- a/lib/google/ads/google_ads/v12/errors/bidding_strategy_error_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/bidding_strategy_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/bidding_strategy_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.BiddingStrategyErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.BiddingStrategyErrorEnum.BiddingStrategyError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DUPLICATE_NAME, 2 - value :CANNOT_CHANGE_BIDDING_STRATEGY_TYPE, 3 - value :CANNOT_REMOVE_ASSOCIATED_STRATEGY, 4 - value :BIDDING_STRATEGY_NOT_SUPPORTED, 5 - value :INCOMPATIBLE_BIDDING_STRATEGY_AND_BIDDING_STRATEGY_GOAL_TYPE, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - BiddingStrategyErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.BiddingStrategyErrorEnum").msgclass - BiddingStrategyErrorEnum::BiddingStrategyError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.BiddingStrategyErrorEnum.BiddingStrategyError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/billing_setup_error_pb.rb b/lib/google/ads/google_ads/v12/errors/billing_setup_error_pb.rb deleted file mode 100644 index be1e85d2d..000000000 --- a/lib/google/ads/google_ads/v12/errors/billing_setup_error_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/billing_setup_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/billing_setup_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.BillingSetupErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.BillingSetupErrorEnum.BillingSetupError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CANNOT_USE_EXISTING_AND_NEW_ACCOUNT, 2 - value :CANNOT_REMOVE_STARTED_BILLING_SETUP, 3 - value :CANNOT_CHANGE_BILLING_TO_SAME_PAYMENTS_ACCOUNT, 4 - value :BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_STATUS, 5 - value :INVALID_PAYMENTS_ACCOUNT, 6 - value :BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_CATEGORY, 7 - value :INVALID_START_TIME_TYPE, 8 - value :THIRD_PARTY_ALREADY_HAS_BILLING, 9 - value :BILLING_SETUP_IN_PROGRESS, 10 - value :NO_SIGNUP_PERMISSION, 11 - value :CHANGE_OF_BILL_TO_IN_PROGRESS, 12 - value :PAYMENTS_PROFILE_NOT_FOUND, 13 - value :PAYMENTS_ACCOUNT_NOT_FOUND, 14 - value :PAYMENTS_PROFILE_INELIGIBLE, 15 - value :PAYMENTS_ACCOUNT_INELIGIBLE, 16 - value :CUSTOMER_NEEDS_INTERNAL_APPROVAL, 17 - value :PAYMENTS_ACCOUNT_INELIGIBLE_CURRENCY_CODE_MISMATCH, 19 - value :FUTURE_START_TIME_PROHIBITED, 20 - value :TOO_MANY_BILLING_SETUPS_FOR_PAYMENTS_ACCOUNT, 21 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - BillingSetupErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.BillingSetupErrorEnum").msgclass - BillingSetupErrorEnum::BillingSetupError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.BillingSetupErrorEnum.BillingSetupError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/campaign_budget_error_pb.rb b/lib/google/ads/google_ads/v12/errors/campaign_budget_error_pb.rb deleted file mode 100644 index d92ff6c85..000000000 --- a/lib/google/ads/google_ads/v12/errors/campaign_budget_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/campaign_budget_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/campaign_budget_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CampaignBudgetErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CampaignBudgetErrorEnum.CampaignBudgetError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CAMPAIGN_BUDGET_CANNOT_BE_SHARED, 17 - value :CAMPAIGN_BUDGET_REMOVED, 2 - value :CAMPAIGN_BUDGET_IN_USE, 3 - value :CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE, 4 - value :CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET, 6 - value :CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED, 7 - value :CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME, 8 - value :CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED, 9 - value :CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS, 10 - value :DUPLICATE_NAME, 11 - value :MONEY_AMOUNT_IN_WRONG_CURRENCY, 12 - value :MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC, 13 - value :MONEY_AMOUNT_TOO_LARGE, 14 - value :NEGATIVE_MONEY_AMOUNT, 15 - value :NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT, 16 - value :TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY, 18 - value :INVALID_PERIOD, 19 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CampaignBudgetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignBudgetErrorEnum").msgclass - CampaignBudgetErrorEnum::CampaignBudgetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignBudgetErrorEnum.CampaignBudgetError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/campaign_conversion_goal_error_pb.rb b/lib/google/ads/google_ads/v12/errors/campaign_conversion_goal_error_pb.rb deleted file mode 100644 index 340686423..000000000 --- a/lib/google/ads/google_ads/v12/errors/campaign_conversion_goal_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/campaign_conversion_goal_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/campaign_conversion_goal_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CampaignConversionGoalErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CampaignConversionGoalErrorEnum.CampaignConversionGoalError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CANNOT_USE_CAMPAIGN_GOAL_FOR_SEARCH_ADS_360_MANAGED_CAMPAIGN, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CampaignConversionGoalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignConversionGoalErrorEnum").msgclass - CampaignConversionGoalErrorEnum::CampaignConversionGoalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignConversionGoalErrorEnum.CampaignConversionGoalError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/campaign_criterion_error_pb.rb b/lib/google/ads/google_ads/v12/errors/campaign_criterion_error_pb.rb deleted file mode 100644 index 85ff8e6ba..000000000 --- a/lib/google/ads/google_ads/v12/errors/campaign_criterion_error_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/campaign_criterion_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/campaign_criterion_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CampaignCriterionErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CampaignCriterionErrorEnum.CampaignCriterionError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CONCRETE_TYPE_REQUIRED, 2 - value :INVALID_PLACEMENT_URL, 3 - value :CANNOT_EXCLUDE_CRITERIA_TYPE, 4 - value :CANNOT_SET_STATUS_FOR_CRITERIA_TYPE, 5 - value :CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA, 6 - value :CANNOT_TARGET_AND_EXCLUDE, 7 - value :TOO_MANY_OPERATIONS, 8 - value :OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE, 9 - value :SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL, 10 - value :CANNOT_ADD_EXISTING_FIELD, 11 - value :CANNOT_UPDATE_NEGATIVE_CRITERION, 12 - value :CANNOT_SET_NEGATIVE_KEYWORD_THEME_CONSTANT_CRITERION, 13 - value :INVALID_KEYWORD_THEME_CONSTANT, 14 - value :MISSING_KEYWORD_THEME_CONSTANT_OR_FREE_FORM_KEYWORD_THEME, 15 - value :CANNOT_TARGET_BOTH_PROXIMITY_AND_LOCATION_CRITERIA_FOR_SMART_CAMPAIGN, 16 - value :CANNOT_TARGET_MULTIPLE_PROXIMITY_CRITERIA_FOR_SMART_CAMPAIGN, 17 - value :LOCATION_NOT_LAUNCHED_FOR_LOCAL_SERVICES_CAMPAIGN, 18 - value :LOCATION_INVALID_FOR_LOCAL_SERVICES_CAMPAIGN, 19 - value :CANNOT_TARGET_COUNTRY_FOR_LOCAL_SERVICES_CAMPAIGN, 20 - value :LOCATION_NOT_IN_HOME_COUNTRY_FOR_LOCAL_SERVICES_CAMPAIGN, 21 - value :CANNOT_ADD_OR_REMOVE_LOCATION_FOR_LOCAL_SERVICES_CAMPAIGN, 22 - value :AT_LEAST_ONE_POSITIVE_LOCATION_REQUIRED_FOR_LOCAL_SERVICES_CAMPAIGN, 23 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CampaignCriterionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignCriterionErrorEnum").msgclass - CampaignCriterionErrorEnum::CampaignCriterionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignCriterionErrorEnum.CampaignCriterionError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/campaign_customizer_error_pb.rb b/lib/google/ads/google_ads/v12/errors/campaign_customizer_error_pb.rb deleted file mode 100644 index e6f466d4e..000000000 --- a/lib/google/ads/google_ads/v12/errors/campaign_customizer_error_pb.rb +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/campaign_customizer_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/campaign_customizer_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CampaignCustomizerErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CampaignCustomizerErrorEnum.CampaignCustomizerError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CampaignCustomizerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignCustomizerErrorEnum").msgclass - CampaignCustomizerErrorEnum::CampaignCustomizerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignCustomizerErrorEnum.CampaignCustomizerError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/campaign_draft_error_pb.rb b/lib/google/ads/google_ads/v12/errors/campaign_draft_error_pb.rb deleted file mode 100644 index 1f3355d5d..000000000 --- a/lib/google/ads/google_ads/v12/errors/campaign_draft_error_pb.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/campaign_draft_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/campaign_draft_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CampaignDraftErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CampaignDraftErrorEnum.CampaignDraftError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DUPLICATE_DRAFT_NAME, 2 - value :INVALID_STATUS_TRANSITION_FROM_REMOVED, 3 - value :INVALID_STATUS_TRANSITION_FROM_PROMOTED, 4 - value :INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED, 5 - value :CUSTOMER_CANNOT_CREATE_DRAFT, 6 - value :CAMPAIGN_CANNOT_CREATE_DRAFT, 7 - value :INVALID_DRAFT_CHANGE, 8 - value :INVALID_STATUS_TRANSITION, 9 - value :MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED, 10 - value :LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY, 11 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CampaignDraftErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignDraftErrorEnum").msgclass - CampaignDraftErrorEnum::CampaignDraftError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignDraftErrorEnum.CampaignDraftError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/campaign_error_pb.rb b/lib/google/ads/google_ads/v12/errors/campaign_error_pb.rb deleted file mode 100644 index 31b5ca3db..000000000 --- a/lib/google/ads/google_ads/v12/errors/campaign_error_pb.rb +++ /dev/null @@ -1,77 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/campaign_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/campaign_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CampaignErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CampaignErrorEnum.CampaignError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CANNOT_TARGET_CONTENT_NETWORK, 3 - value :CANNOT_TARGET_SEARCH_NETWORK, 4 - value :CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH, 5 - value :CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN, 6 - value :CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK, 7 - value :CANNOT_TARGET_PARTNER_SEARCH_NETWORK, 8 - value :CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY, 9 - value :CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS, 10 - value :CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN, 11 - value :DUPLICATE_CAMPAIGN_NAME, 12 - value :INCOMPATIBLE_CAMPAIGN_FIELD, 13 - value :INVALID_CAMPAIGN_NAME, 14 - value :INVALID_AD_SERVING_OPTIMIZATION_STATUS, 15 - value :INVALID_TRACKING_URL, 16 - value :CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING, 17 - value :MAX_IMPRESSIONS_NOT_IN_RANGE, 18 - value :TIME_UNIT_NOT_SUPPORTED, 19 - value :INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED, 20 - value :BUDGET_CANNOT_BE_SHARED, 21 - value :CAMPAIGN_CANNOT_USE_SHARED_BUDGET, 22 - value :CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS, 23 - value :CAMPAIGN_LABEL_DOES_NOT_EXIST, 24 - value :CAMPAIGN_LABEL_ALREADY_EXISTS, 25 - value :MISSING_SHOPPING_SETTING, 26 - value :INVALID_SHOPPING_SALES_COUNTRY, 27 - value :ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE, 31 - value :INVALID_ADVERTISING_CHANNEL_SUB_TYPE, 32 - value :AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED, 33 - value :CANNOT_SET_AD_ROTATION_MODE, 34 - value :CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED, 35 - value :CANNOT_SET_DATE_TO_PAST, 36 - value :MISSING_HOTEL_CUSTOMER_LINK, 37 - value :INVALID_HOTEL_CUSTOMER_LINK, 38 - value :MISSING_HOTEL_SETTING, 39 - value :CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP, 40 - value :APP_NOT_FOUND, 41 - value :SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE, 42 - value :MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS, 43 - value :INSUFFICIENT_APP_INSTALLS_COUNT, 44 - value :SENSITIVE_CATEGORY_APP, 45 - value :HEC_AGREEMENT_REQUIRED, 46 - value :NOT_COMPATIBLE_WITH_VIEW_THROUGH_CONVERSION_OPTIMIZATION, 49 - value :INVALID_EXCLUDED_PARENT_ASSET_FIELD_TYPE, 48 - value :CANNOT_CREATE_APP_PRE_REGISTRATION_FOR_NON_ANDROID_APP, 50 - value :APP_NOT_AVAILABLE_TO_CREATE_APP_PRE_REGISTRATION_CAMPAIGN, 51 - value :INCOMPATIBLE_BUDGET_TYPE, 52 - value :LOCAL_SERVICES_DUPLICATE_CATEGORY_BID, 53 - value :LOCAL_SERVICES_INVALID_CATEGORY_BID, 54 - value :LOCAL_SERVICES_MISSING_CATEGORY_BID, 55 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CampaignErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignErrorEnum").msgclass - CampaignErrorEnum::CampaignError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignErrorEnum.CampaignError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/campaign_experiment_error_pb.rb b/lib/google/ads/google_ads/v12/errors/campaign_experiment_error_pb.rb deleted file mode 100644 index 220661921..000000000 --- a/lib/google/ads/google_ads/v12/errors/campaign_experiment_error_pb.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/campaign_experiment_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/campaign_experiment_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CampaignExperimentErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CampaignExperimentErrorEnum.CampaignExperimentError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DUPLICATE_NAME, 2 - value :INVALID_TRANSITION, 3 - value :CANNOT_CREATE_EXPERIMENT_WITH_SHARED_BUDGET, 4 - value :CANNOT_CREATE_EXPERIMENT_FOR_REMOVED_BASE_CAMPAIGN, 5 - value :CANNOT_CREATE_EXPERIMENT_FOR_NON_PROPOSED_DRAFT, 6 - value :CUSTOMER_CANNOT_CREATE_EXPERIMENT, 7 - value :CAMPAIGN_CANNOT_CREATE_EXPERIMENT, 8 - value :EXPERIMENT_DURATIONS_MUST_NOT_OVERLAP, 9 - value :EXPERIMENT_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION, 10 - value :CANNOT_MUTATE_EXPERIMENT_DUE_TO_STATUS, 11 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CampaignExperimentErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignExperimentErrorEnum").msgclass - CampaignExperimentErrorEnum::CampaignExperimentError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignExperimentErrorEnum.CampaignExperimentError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/campaign_feed_error_pb.rb b/lib/google/ads/google_ads/v12/errors/campaign_feed_error_pb.rb deleted file mode 100644 index 7c34a47c6..000000000 --- a/lib/google/ads/google_ads/v12/errors/campaign_feed_error_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/campaign_feed_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/campaign_feed_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CampaignFeedErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CampaignFeedErrorEnum.CampaignFeedError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE, 2 - value :CANNOT_CREATE_FOR_REMOVED_FEED, 4 - value :CANNOT_CREATE_ALREADY_EXISTING_CAMPAIGN_FEED, 5 - value :CANNOT_MODIFY_REMOVED_CAMPAIGN_FEED, 6 - value :INVALID_PLACEHOLDER_TYPE, 7 - value :MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE, 8 - value :NO_EXISTING_LOCATION_CUSTOMER_FEED, 9 - value :LEGACY_FEED_TYPE_READ_ONLY, 10 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CampaignFeedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignFeedErrorEnum").msgclass - CampaignFeedErrorEnum::CampaignFeedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignFeedErrorEnum.CampaignFeedError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/campaign_shared_set_error_pb.rb b/lib/google/ads/google_ads/v12/errors/campaign_shared_set_error_pb.rb deleted file mode 100644 index 20ab41170..000000000 --- a/lib/google/ads/google_ads/v12/errors/campaign_shared_set_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/campaign_shared_set_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/campaign_shared_set_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CampaignSharedSetErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CampaignSharedSetErrorEnum.CampaignSharedSetError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :SHARED_SET_ACCESS_DENIED, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CampaignSharedSetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignSharedSetErrorEnum").msgclass - CampaignSharedSetErrorEnum::CampaignSharedSetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CampaignSharedSetErrorEnum.CampaignSharedSetError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/change_event_error_pb.rb b/lib/google/ads/google_ads/v12/errors/change_event_error_pb.rb deleted file mode 100644 index c0e0f2b50..000000000 --- a/lib/google/ads/google_ads/v12/errors/change_event_error_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/change_event_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/change_event_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ChangeEventErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ChangeEventErrorEnum.ChangeEventError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :START_DATE_TOO_OLD, 2 - value :CHANGE_DATE_RANGE_INFINITE, 3 - value :CHANGE_DATE_RANGE_NEGATIVE, 4 - value :LIMIT_NOT_SPECIFIED, 5 - value :INVALID_LIMIT_CLAUSE, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ChangeEventErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ChangeEventErrorEnum").msgclass - ChangeEventErrorEnum::ChangeEventError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ChangeEventErrorEnum.ChangeEventError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/change_status_error_pb.rb b/lib/google/ads/google_ads/v12/errors/change_status_error_pb.rb deleted file mode 100644 index fc425eeb9..000000000 --- a/lib/google/ads/google_ads/v12/errors/change_status_error_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/change_status_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/change_status_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ChangeStatusErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ChangeStatusErrorEnum.ChangeStatusError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :START_DATE_TOO_OLD, 3 - value :CHANGE_DATE_RANGE_INFINITE, 4 - value :CHANGE_DATE_RANGE_NEGATIVE, 5 - value :LIMIT_NOT_SPECIFIED, 6 - value :INVALID_LIMIT_CLAUSE, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ChangeStatusErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ChangeStatusErrorEnum").msgclass - ChangeStatusErrorEnum::ChangeStatusError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ChangeStatusErrorEnum.ChangeStatusError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/collection_size_error_pb.rb b/lib/google/ads/google_ads/v12/errors/collection_size_error_pb.rb deleted file mode 100644 index 4ae65f08b..000000000 --- a/lib/google/ads/google_ads/v12/errors/collection_size_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/collection_size_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/collection_size_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CollectionSizeErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CollectionSizeErrorEnum.CollectionSizeError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :TOO_FEW, 2 - value :TOO_MANY, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CollectionSizeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CollectionSizeErrorEnum").msgclass - CollectionSizeErrorEnum::CollectionSizeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CollectionSizeErrorEnum.CollectionSizeError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/context_error_pb.rb b/lib/google/ads/google_ads/v12/errors/context_error_pb.rb deleted file mode 100644 index 4ab37402d..000000000 --- a/lib/google/ads/google_ads/v12/errors/context_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/context_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/context_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ContextErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ContextErrorEnum.ContextError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :OPERATION_NOT_PERMITTED_FOR_CONTEXT, 2 - value :OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ContextErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ContextErrorEnum").msgclass - ContextErrorEnum::ContextError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ContextErrorEnum.ContextError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/conversion_action_error_pb.rb b/lib/google/ads/google_ads/v12/errors/conversion_action_error_pb.rb deleted file mode 100644 index c3544d038..000000000 --- a/lib/google/ads/google_ads/v12/errors/conversion_action_error_pb.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/conversion_action_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/conversion_action_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ConversionActionErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ConversionActionErrorEnum.ConversionActionError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DUPLICATE_NAME, 2 - value :DUPLICATE_APP_ID, 3 - value :TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD, 4 - value :BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION, 5 - value :DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED, 6 - value :DATA_DRIVEN_MODEL_EXPIRED, 7 - value :DATA_DRIVEN_MODEL_STALE, 8 - value :DATA_DRIVEN_MODEL_UNKNOWN, 9 - value :CREATION_NOT_SUPPORTED, 10 - value :UPDATE_NOT_SUPPORTED, 11 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ConversionActionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ConversionActionErrorEnum").msgclass - ConversionActionErrorEnum::ConversionActionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ConversionActionErrorEnum.ConversionActionError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/conversion_adjustment_upload_error_pb.rb b/lib/google/ads/google_ads/v12/errors/conversion_adjustment_upload_error_pb.rb deleted file mode 100644 index 9d3858ccd..000000000 --- a/lib/google/ads/google_ads/v12/errors/conversion_adjustment_upload_error_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/conversion_adjustment_upload_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/conversion_adjustment_upload_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ConversionAdjustmentUploadErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :TOO_RECENT_CONVERSION_ACTION, 2 - value :INVALID_CONVERSION_ACTION, 3 - value :CONVERSION_ALREADY_RETRACTED, 4 - value :CONVERSION_NOT_FOUND, 5 - value :CONVERSION_EXPIRED, 6 - value :ADJUSTMENT_PRECEDES_CONVERSION, 7 - value :MORE_RECENT_RESTATEMENT_FOUND, 8 - value :TOO_RECENT_CONVERSION, 9 - value :CANNOT_RESTATE_CONVERSION_ACTION_THAT_ALWAYS_USES_DEFAULT_CONVERSION_VALUE, 10 - value :TOO_MANY_ADJUSTMENTS_IN_REQUEST, 11 - value :TOO_MANY_ADJUSTMENTS, 12 - value :RESTATEMENT_ALREADY_EXISTS, 13 - value :DUPLICATE_ADJUSTMENT_IN_REQUEST, 14 - value :CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS, 15 - value :CONVERSION_ACTION_NOT_ELIGIBLE_FOR_ENHANCEMENT, 16 - value :INVALID_USER_IDENTIFIER, 17 - value :UNSUPPORTED_USER_IDENTIFIER, 18 - value :GCLID_DATE_TIME_PAIR_AND_ORDER_ID_BOTH_SET, 20 - value :CONVERSION_ALREADY_ENHANCED, 21 - value :DUPLICATE_ENHANCEMENT_IN_REQUEST, 22 - value :CUSTOMER_DATA_POLICY_PROHIBITS_ENHANCEMENT, 23 - value :MISSING_ORDER_ID_FOR_WEBPAGE, 24 - value :ORDER_ID_CONTAINS_PII, 25 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ConversionAdjustmentUploadErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ConversionAdjustmentUploadErrorEnum").msgclass - ConversionAdjustmentUploadErrorEnum::ConversionAdjustmentUploadError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/conversion_custom_variable_error_pb.rb b/lib/google/ads/google_ads/v12/errors/conversion_custom_variable_error_pb.rb deleted file mode 100644 index f728aa5b0..000000000 --- a/lib/google/ads/google_ads/v12/errors/conversion_custom_variable_error_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/conversion_custom_variable_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/conversion_custom_variable_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ConversionCustomVariableErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ConversionCustomVariableErrorEnum.ConversionCustomVariableError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DUPLICATE_NAME, 2 - value :DUPLICATE_TAG, 3 - value :RESERVED_TAG, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ConversionCustomVariableErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ConversionCustomVariableErrorEnum").msgclass - ConversionCustomVariableErrorEnum::ConversionCustomVariableError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ConversionCustomVariableErrorEnum.ConversionCustomVariableError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/conversion_goal_campaign_config_error_pb.rb b/lib/google/ads/google_ads/v12/errors/conversion_goal_campaign_config_error_pb.rb deleted file mode 100644 index 0413e4bba..000000000 --- a/lib/google/ads/google_ads/v12/errors/conversion_goal_campaign_config_error_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/conversion_goal_campaign_config_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/conversion_goal_campaign_config_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ConversionGoalCampaignConfigErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ConversionGoalCampaignConfigErrorEnum.ConversionGoalCampaignConfigError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CANNOT_USE_CAMPAIGN_GOAL_FOR_SEARCH_ADS_360_MANAGED_CAMPAIGN, 2 - value :CUSTOM_GOAL_DOES_NOT_BELONG_TO_GOOGLE_ADS_CONVERSION_CUSTOMER, 3 - value :CAMPAIGN_CANNOT_USE_UNIFIED_GOALS, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ConversionGoalCampaignConfigErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ConversionGoalCampaignConfigErrorEnum").msgclass - ConversionGoalCampaignConfigErrorEnum::ConversionGoalCampaignConfigError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ConversionGoalCampaignConfigErrorEnum.ConversionGoalCampaignConfigError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/conversion_upload_error_pb.rb b/lib/google/ads/google_ads/v12/errors/conversion_upload_error_pb.rb deleted file mode 100644 index 390cd6a4b..000000000 --- a/lib/google/ads/google_ads/v12/errors/conversion_upload_error_pb.rb +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/conversion_upload_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/conversion_upload_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ConversionUploadErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ConversionUploadErrorEnum.ConversionUploadError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :TOO_MANY_CONVERSIONS_IN_REQUEST, 2 - value :UNPARSEABLE_GCLID, 3 - value :CONVERSION_PRECEDES_EVENT, 42 - value :EXPIRED_EVENT, 43 - value :TOO_RECENT_EVENT, 44 - value :EVENT_NOT_FOUND, 45 - value :UNAUTHORIZED_CUSTOMER, 8 - value :INVALID_CONVERSION_ACTION, 9 - value :TOO_RECENT_CONVERSION_ACTION, 10 - value :CONVERSION_TRACKING_NOT_ENABLED_AT_IMPRESSION_TIME, 11 - value :EXTERNAL_ATTRIBUTION_DATA_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION, 12 - value :EXTERNAL_ATTRIBUTION_DATA_NOT_SET_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION, 13 - value :ORDER_ID_NOT_PERMITTED_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION, 14 - value :ORDER_ID_ALREADY_IN_USE, 15 - value :DUPLICATE_ORDER_ID, 16 - value :TOO_RECENT_CALL, 17 - value :EXPIRED_CALL, 18 - value :CALL_NOT_FOUND, 19 - value :CONVERSION_PRECEDES_CALL, 20 - value :CONVERSION_TRACKING_NOT_ENABLED_AT_CALL_TIME, 21 - value :UNPARSEABLE_CALLERS_PHONE_NUMBER, 22 - value :CLICK_CONVERSION_ALREADY_EXISTS, 23 - value :CALL_CONVERSION_ALREADY_EXISTS, 24 - value :DUPLICATE_CLICK_CONVERSION_IN_REQUEST, 25 - value :DUPLICATE_CALL_CONVERSION_IN_REQUEST, 26 - value :CUSTOM_VARIABLE_NOT_ENABLED, 28 - value :CUSTOM_VARIABLE_VALUE_CONTAINS_PII, 29 - value :INVALID_CUSTOMER_FOR_CLICK, 30 - value :INVALID_CUSTOMER_FOR_CALL, 31 - value :CONVERSION_NOT_COMPLIANT_WITH_ATT_POLICY, 32 - value :CLICK_NOT_FOUND, 33 - value :INVALID_USER_IDENTIFIER, 34 - value :EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION_NOT_PERMITTED_WITH_USER_IDENTIFIER, 35 - value :UNSUPPORTED_USER_IDENTIFIER, 36 - value :GBRAID_WBRAID_BOTH_SET, 38 - value :UNPARSEABLE_WBRAID, 39 - value :UNPARSEABLE_GBRAID, 40 - value :ONE_PER_CLICK_CONVERSION_ACTION_NOT_PERMITTED_WITH_BRAID, 46 - value :CUSTOMER_DATA_POLICY_PROHIBITS_ENHANCED_CONVERSIONS, 47 - value :CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS, 48 - value :ORDER_ID_CONTAINS_PII, 49 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ConversionUploadErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ConversionUploadErrorEnum").msgclass - ConversionUploadErrorEnum::ConversionUploadError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ConversionUploadErrorEnum.ConversionUploadError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/conversion_value_rule_error_pb.rb b/lib/google/ads/google_ads/v12/errors/conversion_value_rule_error_pb.rb deleted file mode 100644 index 96ca48a52..000000000 --- a/lib/google/ads/google_ads/v12/errors/conversion_value_rule_error_pb.rb +++ /dev/null @@ -1,40 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/conversion_value_rule_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/conversion_value_rule_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ConversionValueRuleErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ConversionValueRuleErrorEnum.ConversionValueRuleError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_GEO_TARGET_CONSTANT, 2 - value :CONFLICTING_INCLUDED_AND_EXCLUDED_GEO_TARGET, 3 - value :CONFLICTING_CONDITIONS, 4 - value :CANNOT_REMOVE_IF_INCLUDED_IN_VALUE_RULE_SET, 5 - value :CONDITION_NOT_ALLOWED, 6 - value :FIELD_MUST_BE_UNSET, 7 - value :CANNOT_PAUSE_UNLESS_VALUE_RULE_SET_IS_PAUSED, 8 - value :UNTARGETABLE_GEO_TARGET, 9 - value :INVALID_AUDIENCE_USER_LIST, 10 - value :INACCESSIBLE_USER_LIST, 11 - value :INVALID_AUDIENCE_USER_INTEREST, 12 - value :CANNOT_ADD_RULE_WITH_STATUS_REMOVED, 13 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ConversionValueRuleErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ConversionValueRuleErrorEnum").msgclass - ConversionValueRuleErrorEnum::ConversionValueRuleError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ConversionValueRuleErrorEnum.ConversionValueRuleError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/conversion_value_rule_set_error_pb.rb b/lib/google/ads/google_ads/v12/errors/conversion_value_rule_set_error_pb.rb deleted file mode 100644 index a11bca737..000000000 --- a/lib/google/ads/google_ads/v12/errors/conversion_value_rule_set_error_pb.rb +++ /dev/null @@ -1,41 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/conversion_value_rule_set_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/conversion_value_rule_set_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ConversionValueRuleSetErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ConversionValueRuleSetErrorEnum.ConversionValueRuleSetError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CONFLICTING_VALUE_RULE_CONDITIONS, 2 - value :INVALID_VALUE_RULE, 3 - value :DIMENSIONS_UPDATE_ONLY_ALLOW_APPEND, 4 - value :CONDITION_TYPE_NOT_ALLOWED, 5 - value :DUPLICATE_DIMENSIONS, 6 - value :INVALID_CAMPAIGN_ID, 7 - value :CANNOT_PAUSE_UNLESS_ALL_VALUE_RULES_ARE_PAUSED, 8 - value :SHOULD_PAUSE_WHEN_ALL_VALUE_RULES_ARE_PAUSED, 9 - value :VALUE_RULES_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE, 10 - value :INELIGIBLE_CONVERSION_ACTION_CATEGORIES, 11 - value :DIMENSION_NO_CONDITION_USED_WITH_OTHER_DIMENSIONS, 12 - value :DIMENSION_NO_CONDITION_NOT_ALLOWED, 13 - value :UNSUPPORTED_CONVERSION_ACTION_CATEGORIES, 14 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ConversionValueRuleSetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ConversionValueRuleSetErrorEnum").msgclass - ConversionValueRuleSetErrorEnum::ConversionValueRuleSetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ConversionValueRuleSetErrorEnum.ConversionValueRuleSetError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/country_code_error_pb.rb b/lib/google/ads/google_ads/v12/errors/country_code_error_pb.rb deleted file mode 100644 index d242f0379..000000000 --- a/lib/google/ads/google_ads/v12/errors/country_code_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/country_code_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/country_code_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CountryCodeErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CountryCodeErrorEnum.CountryCodeError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_COUNTRY_CODE, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CountryCodeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CountryCodeErrorEnum").msgclass - CountryCodeErrorEnum::CountryCodeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CountryCodeErrorEnum.CountryCodeError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/criterion_error_pb.rb b/lib/google/ads/google_ads/v12/errors/criterion_error_pb.rb deleted file mode 100644 index 84359c784..000000000 --- a/lib/google/ads/google_ads/v12/errors/criterion_error_pb.rb +++ /dev/null @@ -1,164 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/criterion_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/criterion_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CriterionErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CriterionErrorEnum.CriterionError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CONCRETE_TYPE_REQUIRED, 2 - value :INVALID_EXCLUDED_CATEGORY, 3 - value :INVALID_KEYWORD_TEXT, 4 - value :KEYWORD_TEXT_TOO_LONG, 5 - value :KEYWORD_HAS_TOO_MANY_WORDS, 6 - value :KEYWORD_HAS_INVALID_CHARS, 7 - value :INVALID_PLACEMENT_URL, 8 - value :INVALID_USER_LIST, 9 - value :INVALID_USER_INTEREST, 10 - value :INVALID_FORMAT_FOR_PLACEMENT_URL, 11 - value :PLACEMENT_URL_IS_TOO_LONG, 12 - value :PLACEMENT_URL_HAS_ILLEGAL_CHAR, 13 - value :PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE, 14 - value :PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION, 15 - value :INVALID_TOPIC_PATH, 16 - value :INVALID_YOUTUBE_CHANNEL_ID, 17 - value :INVALID_YOUTUBE_VIDEO_ID, 18 - value :YOUTUBE_VERTICAL_CHANNEL_DEPRECATED, 19 - value :YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED, 20 - value :YOUTUBE_URL_UNSUPPORTED, 21 - value :CANNOT_EXCLUDE_CRITERIA_TYPE, 22 - value :CANNOT_ADD_CRITERIA_TYPE, 23 - value :CANNOT_EXCLUDE_SIMILAR_USER_LIST, 26 - value :CANNOT_ADD_CLOSED_USER_LIST, 27 - value :CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS, 28 - value :CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS, 29 - value :CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS, 30 - value :CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS, 31 - value :CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS, 32 - value :CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE, 33 - value :INVALID_COMBINED_AUDIENCE, 122 - value :INVALID_CUSTOM_AFFINITY, 96 - value :INVALID_CUSTOM_INTENT, 97 - value :INVALID_CUSTOM_AUDIENCE, 121 - value :INVALID_IP_ADDRESS, 34 - value :INVALID_IP_FORMAT, 35 - value :INVALID_MOBILE_APP, 36 - value :INVALID_MOBILE_APP_CATEGORY, 37 - value :INVALID_CRITERION_ID, 38 - value :CANNOT_TARGET_CRITERION, 39 - value :CANNOT_TARGET_OBSOLETE_CRITERION, 40 - value :CRITERION_ID_AND_TYPE_MISMATCH, 41 - value :INVALID_PROXIMITY_RADIUS, 42 - value :INVALID_PROXIMITY_RADIUS_UNITS, 43 - value :INVALID_STREETADDRESS_LENGTH, 44 - value :INVALID_CITYNAME_LENGTH, 45 - value :INVALID_REGIONCODE_LENGTH, 46 - value :INVALID_REGIONNAME_LENGTH, 47 - value :INVALID_POSTALCODE_LENGTH, 48 - value :INVALID_COUNTRY_CODE, 49 - value :INVALID_LATITUDE, 50 - value :INVALID_LONGITUDE, 51 - value :PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL, 52 - value :INVALID_PROXIMITY_ADDRESS, 53 - value :INVALID_USER_DOMAIN_NAME, 54 - value :CRITERION_PARAMETER_TOO_LONG, 55 - value :AD_SCHEDULE_TIME_INTERVALS_OVERLAP, 56 - value :AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS, 57 - value :AD_SCHEDULE_INVALID_TIME_INTERVAL, 58 - value :AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT, 59 - value :AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS, 60 - value :CANNOT_BID_MODIFY_CRITERION_TYPE, 61 - value :CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT, 62 - value :CANNOT_BID_MODIFY_NEGATIVE_CRITERION, 63 - value :BID_MODIFIER_ALREADY_EXISTS, 64 - value :FEED_ID_NOT_ALLOWED, 65 - value :ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE, 66 - value :CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY, 67 - value :CANNOT_EXCLUDE_CRITERION, 68 - value :CANNOT_REMOVE_CRITERION, 69 - value :INVALID_PRODUCT_BIDDING_CATEGORY, 76 - value :MISSING_SHOPPING_SETTING, 77 - value :INVALID_MATCHING_FUNCTION, 78 - value :LOCATION_FILTER_NOT_ALLOWED, 79 - value :INVALID_FEED_FOR_LOCATION_FILTER, 98 - value :LOCATION_FILTER_INVALID, 80 - value :CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_FEED_ITEM_SETS, 123 - value :CANNOT_SET_BOTH_ASSET_SET_AND_FEED, 140 - value :CANNOT_SET_FEED_OR_FEED_ITEM_SETS_FOR_CUSTOMER, 142 - value :CANNOT_SET_ASSET_SET_FIELD_FOR_CUSTOMER, 150 - value :CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_ASSET_SETS, 143 - value :CANNOT_SET_ASSET_SETS_WITH_FEED_ITEM_SETS, 144 - value :INVALID_LOCATION_GROUP_ASSET_SET, 141 - value :INVALID_LOCATION_GROUP_RADIUS, 124 - value :INVALID_LOCATION_GROUP_RADIUS_UNIT, 125 - value :CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP, 81 - value :HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION, 82 - value :HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION, 83 - value :FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING, 84 - value :INVALID_WEBPAGE_CONDITION, 85 - value :INVALID_WEBPAGE_CONDITION_URL, 86 - value :WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY, 87 - value :WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL, 88 - value :WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS, 89 - value :WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING, 90 - value :WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX, 91 - value :WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX, 92 - value :WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED, 93 - value :WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION, 94 - value :WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP, 95 - value :CANNOT_TARGET_USER_LIST_FOR_SMART_DISPLAY_CAMPAIGNS, 99 - value :CANNOT_TARGET_PLACEMENTS_FOR_SEARCH_CAMPAIGNS, 126 - value :LISTING_SCOPE_TOO_MANY_DIMENSION_TYPES, 100 - value :LISTING_SCOPE_TOO_MANY_IN_OPERATORS, 101 - value :LISTING_SCOPE_IN_OPERATOR_NOT_SUPPORTED, 102 - value :DUPLICATE_LISTING_DIMENSION_TYPE, 103 - value :DUPLICATE_LISTING_DIMENSION_VALUE, 104 - value :CANNOT_SET_BIDS_ON_LISTING_GROUP_SUBDIVISION, 105 - value :INVALID_LISTING_GROUP_HIERARCHY, 106 - value :LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN, 107 - value :LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE, 108 - value :LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS, 109 - value :LISTING_GROUP_ALREADY_EXISTS, 110 - value :LISTING_GROUP_DOES_NOT_EXIST, 111 - value :LISTING_GROUP_CANNOT_BE_REMOVED, 112 - value :INVALID_LISTING_GROUP_TYPE, 113 - value :LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID, 114 - value :LISTING_SCOPE_TOO_LONG, 115 - value :LISTING_SCOPE_TOO_MANY_DIMENSIONS, 116 - value :LISTING_GROUP_TOO_LONG, 117 - value :LISTING_GROUP_TREE_TOO_DEEP, 118 - value :INVALID_LISTING_DIMENSION, 119 - value :INVALID_LISTING_DIMENSION_TYPE, 120 - value :ADVERTISER_NOT_ON_ALLOWLIST_FOR_COMBINED_AUDIENCE_ON_DISPLAY, 127 - value :CANNOT_TARGET_REMOVED_COMBINED_AUDIENCE, 128 - value :INVALID_COMBINED_AUDIENCE_ID, 129 - value :CANNOT_TARGET_REMOVED_CUSTOM_AUDIENCE, 130 - value :HOTEL_CHECK_IN_DATE_RANGE_OVERLAPS_WITH_EXISTING_CRITERION, 131 - value :HOTEL_CHECK_IN_DATE_RANGE_START_DATE_TOO_EARLY, 132 - value :HOTEL_CHECK_IN_DATE_RANGE_END_DATE_TOO_LATE, 133 - value :HOTEL_CHECK_IN_DATE_RANGE_REVERSED, 134 - value :BROAD_MATCH_MODIFIER_KEYWORD_NOT_ALLOWED, 135 - value :ONE_AUDIENCE_ALLOWED_PER_ASSET_GROUP, 136 - value :AUDIENCE_NOT_ELIGIBLE_FOR_CAMPAIGN_TYPE, 137 - value :AUDIENCE_NOT_ALLOWED_TO_ATTACH_WHEN_AUDIENCE_GROUPED_SET_TO_FALSE, 138 - value :CANNOT_TARGET_CUSTOMER_MATCH_USER_LIST, 139 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CriterionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CriterionErrorEnum").msgclass - CriterionErrorEnum::CriterionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CriterionErrorEnum.CriterionError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/currency_code_error_pb.rb b/lib/google/ads/google_ads/v12/errors/currency_code_error_pb.rb deleted file mode 100644 index 5a79c81d0..000000000 --- a/lib/google/ads/google_ads/v12/errors/currency_code_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/currency_code_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/currency_code_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CurrencyCodeErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CurrencyCodeErrorEnum.CurrencyCodeError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :UNSUPPORTED, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CurrencyCodeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CurrencyCodeErrorEnum").msgclass - CurrencyCodeErrorEnum::CurrencyCodeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CurrencyCodeErrorEnum.CurrencyCodeError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/custom_audience_error_pb.rb b/lib/google/ads/google_ads/v12/errors/custom_audience_error_pb.rb deleted file mode 100644 index 6ca9656b2..000000000 --- a/lib/google/ads/google_ads/v12/errors/custom_audience_error_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/custom_audience_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/custom_audience_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CustomAudienceErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CustomAudienceErrorEnum.CustomAudienceError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NAME_ALREADY_USED, 2 - value :CANNOT_REMOVE_WHILE_IN_USE, 3 - value :RESOURCE_ALREADY_REMOVED, 4 - value :MEMBER_TYPE_AND_PARAMETER_ALREADY_EXISTED, 5 - value :INVALID_MEMBER_TYPE, 6 - value :MEMBER_TYPE_AND_VALUE_DOES_NOT_MATCH, 7 - value :POLICY_VIOLATION, 8 - value :INVALID_TYPE_CHANGE, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CustomAudienceErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomAudienceErrorEnum").msgclass - CustomAudienceErrorEnum::CustomAudienceError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomAudienceErrorEnum.CustomAudienceError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/custom_conversion_goal_error_pb.rb b/lib/google/ads/google_ads/v12/errors/custom_conversion_goal_error_pb.rb deleted file mode 100644 index d6c801136..000000000 --- a/lib/google/ads/google_ads/v12/errors/custom_conversion_goal_error_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/custom_conversion_goal_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/custom_conversion_goal_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CustomConversionGoalErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CustomConversionGoalErrorEnum.CustomConversionGoalError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_CONVERSION_ACTION, 2 - value :CONVERSION_ACTION_NOT_ENABLED, 3 - value :CANNOT_REMOVE_LINKED_CUSTOM_CONVERSION_GOAL, 4 - value :CUSTOM_GOAL_DUPLICATE_NAME, 5 - value :DUPLICATE_CONVERSION_ACTION_LIST, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CustomConversionGoalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomConversionGoalErrorEnum").msgclass - CustomConversionGoalErrorEnum::CustomConversionGoalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomConversionGoalErrorEnum.CustomConversionGoalError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/custom_interest_error_pb.rb b/lib/google/ads/google_ads/v12/errors/custom_interest_error_pb.rb deleted file mode 100644 index ac6532eec..000000000 --- a/lib/google/ads/google_ads/v12/errors/custom_interest_error_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/custom_interest_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/custom_interest_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CustomInterestErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CustomInterestErrorEnum.CustomInterestError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NAME_ALREADY_USED, 2 - value :CUSTOM_INTEREST_MEMBER_ID_AND_TYPE_PARAMETER_NOT_PRESENT_IN_REMOVE, 3 - value :TYPE_AND_PARAMETER_NOT_FOUND, 4 - value :TYPE_AND_PARAMETER_ALREADY_EXISTED, 5 - value :INVALID_CUSTOM_INTEREST_MEMBER_TYPE, 6 - value :CANNOT_REMOVE_WHILE_IN_USE, 7 - value :CANNOT_CHANGE_TYPE, 8 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CustomInterestErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomInterestErrorEnum").msgclass - CustomInterestErrorEnum::CustomInterestError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomInterestErrorEnum.CustomInterestError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/customer_client_link_error_pb.rb b/lib/google/ads/google_ads/v12/errors/customer_client_link_error_pb.rb deleted file mode 100644 index 6ee7fb1c3..000000000 --- a/lib/google/ads/google_ads/v12/errors/customer_client_link_error_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/customer_client_link_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/customer_client_link_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CustomerClientLinkErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CustomerClientLinkErrorEnum.CustomerClientLinkError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CLIENT_ALREADY_INVITED_BY_THIS_MANAGER, 2 - value :CLIENT_ALREADY_MANAGED_IN_HIERARCHY, 3 - value :CYCLIC_LINK_NOT_ALLOWED, 4 - value :CUSTOMER_HAS_TOO_MANY_ACCOUNTS, 5 - value :CLIENT_HAS_TOO_MANY_INVITATIONS, 6 - value :CANNOT_HIDE_OR_UNHIDE_MANAGER_ACCOUNTS, 7 - value :CUSTOMER_HAS_TOO_MANY_ACCOUNTS_AT_MANAGER, 8 - value :CLIENT_HAS_TOO_MANY_MANAGERS, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CustomerClientLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomerClientLinkErrorEnum").msgclass - CustomerClientLinkErrorEnum::CustomerClientLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomerClientLinkErrorEnum.CustomerClientLinkError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/customer_customizer_error_pb.rb b/lib/google/ads/google_ads/v12/errors/customer_customizer_error_pb.rb deleted file mode 100644 index 4ad5f9e5b..000000000 --- a/lib/google/ads/google_ads/v12/errors/customer_customizer_error_pb.rb +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/customer_customizer_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/customer_customizer_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CustomerCustomizerErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CustomerCustomizerErrorEnum.CustomerCustomizerError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CustomerCustomizerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomerCustomizerErrorEnum").msgclass - CustomerCustomizerErrorEnum::CustomerCustomizerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomerCustomizerErrorEnum.CustomerCustomizerError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/customer_error_pb.rb b/lib/google/ads/google_ads/v12/errors/customer_error_pb.rb deleted file mode 100644 index dd9e54b0d..000000000 --- a/lib/google/ads/google_ads/v12/errors/customer_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/customer_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/customer_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CustomerErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CustomerErrorEnum.CustomerError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :STATUS_CHANGE_DISALLOWED, 2 - value :ACCOUNT_NOT_SET_UP, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CustomerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomerErrorEnum").msgclass - CustomerErrorEnum::CustomerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomerErrorEnum.CustomerError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/customer_feed_error_pb.rb b/lib/google/ads/google_ads/v12/errors/customer_feed_error_pb.rb deleted file mode 100644 index 52c71778c..000000000 --- a/lib/google/ads/google_ads/v12/errors/customer_feed_error_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/customer_feed_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/customer_feed_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CustomerFeedErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CustomerFeedErrorEnum.CustomerFeedError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE, 2 - value :CANNOT_CREATE_FOR_REMOVED_FEED, 3 - value :CANNOT_CREATE_ALREADY_EXISTING_CUSTOMER_FEED, 4 - value :CANNOT_MODIFY_REMOVED_CUSTOMER_FEED, 5 - value :INVALID_PLACEHOLDER_TYPE, 6 - value :MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE, 7 - value :PLACEHOLDER_TYPE_NOT_ALLOWED_ON_CUSTOMER_FEED, 8 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CustomerFeedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomerFeedErrorEnum").msgclass - CustomerFeedErrorEnum::CustomerFeedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomerFeedErrorEnum.CustomerFeedError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/customer_manager_link_error_pb.rb b/lib/google/ads/google_ads/v12/errors/customer_manager_link_error_pb.rb deleted file mode 100644 index 2155de0e4..000000000 --- a/lib/google/ads/google_ads/v12/errors/customer_manager_link_error_pb.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/customer_manager_link_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/customer_manager_link_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CustomerManagerLinkErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CustomerManagerLinkErrorEnum.CustomerManagerLinkError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NO_PENDING_INVITE, 2 - value :SAME_CLIENT_MORE_THAN_ONCE_PER_CALL, 3 - value :MANAGER_HAS_MAX_NUMBER_OF_LINKED_ACCOUNTS, 4 - value :CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER, 5 - value :CANNOT_REMOVE_LAST_CLIENT_ACCOUNT_OWNER, 6 - value :CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER, 7 - value :CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT, 8 - value :DUPLICATE_CHILD_FOUND, 9 - value :TEST_ACCOUNT_LINKS_TOO_MANY_CHILD_ACCOUNTS, 10 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CustomerManagerLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomerManagerLinkErrorEnum").msgclass - CustomerManagerLinkErrorEnum::CustomerManagerLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomerManagerLinkErrorEnum.CustomerManagerLinkError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/customer_user_access_error_pb.rb b/lib/google/ads/google_ads/v12/errors/customer_user_access_error_pb.rb deleted file mode 100644 index c1379dcec..000000000 --- a/lib/google/ads/google_ads/v12/errors/customer_user_access_error_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/customer_user_access_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/customer_user_access_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CustomerUserAccessErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CustomerUserAccessErrorEnum.CustomerUserAccessError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_USER_ID, 2 - value :REMOVAL_DISALLOWED, 3 - value :DISALLOWED_ACCESS_ROLE, 4 - value :LAST_ADMIN_USER_OF_SERVING_CUSTOMER, 5 - value :LAST_ADMIN_USER_OF_MANAGER, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CustomerUserAccessErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomerUserAccessErrorEnum").msgclass - CustomerUserAccessErrorEnum::CustomerUserAccessError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomerUserAccessErrorEnum.CustomerUserAccessError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/customizer_attribute_error_pb.rb b/lib/google/ads/google_ads/v12/errors/customizer_attribute_error_pb.rb deleted file mode 100644 index 4f149987c..000000000 --- a/lib/google/ads/google_ads/v12/errors/customizer_attribute_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/customizer_attribute_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/customizer_attribute_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.CustomizerAttributeErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.CustomizerAttributeErrorEnum.CustomizerAttributeError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DUPLICATE_CUSTOMIZER_ATTRIBUTE_NAME, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - CustomizerAttributeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomizerAttributeErrorEnum").msgclass - CustomizerAttributeErrorEnum::CustomizerAttributeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.CustomizerAttributeErrorEnum.CustomizerAttributeError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/database_error_pb.rb b/lib/google/ads/google_ads/v12/errors/database_error_pb.rb deleted file mode 100644 index b8eaa15a0..000000000 --- a/lib/google/ads/google_ads/v12/errors/database_error_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/database_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/database_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.DatabaseErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.DatabaseErrorEnum.DatabaseError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CONCURRENT_MODIFICATION, 2 - value :DATA_CONSTRAINT_VIOLATION, 3 - value :REQUEST_TOO_LARGE, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - DatabaseErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.DatabaseErrorEnum").msgclass - DatabaseErrorEnum::DatabaseError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.DatabaseErrorEnum.DatabaseError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/date_error_pb.rb b/lib/google/ads/google_ads/v12/errors/date_error_pb.rb deleted file mode 100644 index b9f0b2c80..000000000 --- a/lib/google/ads/google_ads/v12/errors/date_error_pb.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/date_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/date_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.DateErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.DateErrorEnum.DateError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_FIELD_VALUES_IN_DATE, 2 - value :INVALID_FIELD_VALUES_IN_DATE_TIME, 3 - value :INVALID_STRING_DATE, 4 - value :INVALID_STRING_DATE_TIME_MICROS, 6 - value :INVALID_STRING_DATE_TIME_SECONDS, 11 - value :INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET, 12 - value :EARLIER_THAN_MINIMUM_DATE, 7 - value :LATER_THAN_MAXIMUM_DATE, 8 - value :DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE, 9 - value :DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL, 10 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - DateErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.DateErrorEnum").msgclass - DateErrorEnum::DateError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.DateErrorEnum.DateError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/date_range_error_pb.rb b/lib/google/ads/google_ads/v12/errors/date_range_error_pb.rb deleted file mode 100644 index 47e357dfa..000000000 --- a/lib/google/ads/google_ads/v12/errors/date_range_error_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/date_range_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/date_range_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.DateRangeErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.DateRangeErrorEnum.DateRangeError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_DATE, 2 - value :START_DATE_AFTER_END_DATE, 3 - value :CANNOT_SET_DATE_TO_PAST, 4 - value :AFTER_MAXIMUM_ALLOWABLE_DATE, 5 - value :CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - DateRangeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.DateRangeErrorEnum").msgclass - DateRangeErrorEnum::DateRangeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.DateRangeErrorEnum.DateRangeError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/distinct_error_pb.rb b/lib/google/ads/google_ads/v12/errors/distinct_error_pb.rb deleted file mode 100644 index 01d2899e0..000000000 --- a/lib/google/ads/google_ads/v12/errors/distinct_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/distinct_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/distinct_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.DistinctErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.DistinctErrorEnum.DistinctError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :DUPLICATE_ELEMENT, 2 - value :DUPLICATE_TYPE, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - DistinctErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.DistinctErrorEnum").msgclass - DistinctErrorEnum::DistinctError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.DistinctErrorEnum.DistinctError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/enum_error_pb.rb b/lib/google/ads/google_ads/v12/errors/enum_error_pb.rb deleted file mode 100644 index e1a1766a0..000000000 --- a/lib/google/ads/google_ads/v12/errors/enum_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/enum_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/enum_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.EnumErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.EnumErrorEnum.EnumError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ENUM_VALUE_NOT_PERMITTED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - EnumErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.EnumErrorEnum").msgclass - EnumErrorEnum::EnumError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.EnumErrorEnum.EnumError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/errors_pb.rb b/lib/google/ads/google_ads/v12/errors/errors_pb.rb deleted file mode 100644 index b8e06e812..000000000 --- a/lib/google/ads/google_ads/v12/errors/errors_pb.rb +++ /dev/null @@ -1,374 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/errors.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/policy_pb' -require 'google/ads/google_ads/v12/common/value_pb' -require 'google/ads/google_ads/v12/enums/resource_limit_type_pb' -require 'google/ads/google_ads/v12/errors/access_invitation_error_pb' -require 'google/ads/google_ads/v12/errors/account_budget_proposal_error_pb' -require 'google/ads/google_ads/v12/errors/account_link_error_pb' -require 'google/ads/google_ads/v12/errors/ad_customizer_error_pb' -require 'google/ads/google_ads/v12/errors/ad_error_pb' -require 'google/ads/google_ads/v12/errors/ad_group_ad_error_pb' -require 'google/ads/google_ads/v12/errors/ad_group_bid_modifier_error_pb' -require 'google/ads/google_ads/v12/errors/ad_group_criterion_customizer_error_pb' -require 'google/ads/google_ads/v12/errors/ad_group_criterion_error_pb' -require 'google/ads/google_ads/v12/errors/ad_group_customizer_error_pb' -require 'google/ads/google_ads/v12/errors/ad_group_error_pb' -require 'google/ads/google_ads/v12/errors/ad_group_feed_error_pb' -require 'google/ads/google_ads/v12/errors/ad_parameter_error_pb' -require 'google/ads/google_ads/v12/errors/ad_sharing_error_pb' -require 'google/ads/google_ads/v12/errors/adx_error_pb' -require 'google/ads/google_ads/v12/errors/asset_error_pb' -require 'google/ads/google_ads/v12/errors/asset_group_asset_error_pb' -require 'google/ads/google_ads/v12/errors/asset_group_error_pb' -require 'google/ads/google_ads/v12/errors/asset_group_listing_group_filter_error_pb' -require 'google/ads/google_ads/v12/errors/asset_link_error_pb' -require 'google/ads/google_ads/v12/errors/asset_set_asset_error_pb' -require 'google/ads/google_ads/v12/errors/asset_set_error_pb' -require 'google/ads/google_ads/v12/errors/asset_set_link_error_pb' -require 'google/ads/google_ads/v12/errors/audience_error_pb' -require 'google/ads/google_ads/v12/errors/audience_insights_error_pb' -require 'google/ads/google_ads/v12/errors/authentication_error_pb' -require 'google/ads/google_ads/v12/errors/authorization_error_pb' -require 'google/ads/google_ads/v12/errors/batch_job_error_pb' -require 'google/ads/google_ads/v12/errors/bidding_error_pb' -require 'google/ads/google_ads/v12/errors/bidding_strategy_error_pb' -require 'google/ads/google_ads/v12/errors/billing_setup_error_pb' -require 'google/ads/google_ads/v12/errors/campaign_budget_error_pb' -require 'google/ads/google_ads/v12/errors/campaign_conversion_goal_error_pb' -require 'google/ads/google_ads/v12/errors/campaign_criterion_error_pb' -require 'google/ads/google_ads/v12/errors/campaign_customizer_error_pb' -require 'google/ads/google_ads/v12/errors/campaign_draft_error_pb' -require 'google/ads/google_ads/v12/errors/campaign_error_pb' -require 'google/ads/google_ads/v12/errors/campaign_experiment_error_pb' -require 'google/ads/google_ads/v12/errors/campaign_feed_error_pb' -require 'google/ads/google_ads/v12/errors/campaign_shared_set_error_pb' -require 'google/ads/google_ads/v12/errors/change_event_error_pb' -require 'google/ads/google_ads/v12/errors/change_status_error_pb' -require 'google/ads/google_ads/v12/errors/collection_size_error_pb' -require 'google/ads/google_ads/v12/errors/context_error_pb' -require 'google/ads/google_ads/v12/errors/conversion_action_error_pb' -require 'google/ads/google_ads/v12/errors/conversion_adjustment_upload_error_pb' -require 'google/ads/google_ads/v12/errors/conversion_custom_variable_error_pb' -require 'google/ads/google_ads/v12/errors/conversion_goal_campaign_config_error_pb' -require 'google/ads/google_ads/v12/errors/conversion_upload_error_pb' -require 'google/ads/google_ads/v12/errors/conversion_value_rule_error_pb' -require 'google/ads/google_ads/v12/errors/conversion_value_rule_set_error_pb' -require 'google/ads/google_ads/v12/errors/country_code_error_pb' -require 'google/ads/google_ads/v12/errors/criterion_error_pb' -require 'google/ads/google_ads/v12/errors/currency_code_error_pb' -require 'google/ads/google_ads/v12/errors/custom_audience_error_pb' -require 'google/ads/google_ads/v12/errors/custom_conversion_goal_error_pb' -require 'google/ads/google_ads/v12/errors/custom_interest_error_pb' -require 'google/ads/google_ads/v12/errors/customer_client_link_error_pb' -require 'google/ads/google_ads/v12/errors/customer_customizer_error_pb' -require 'google/ads/google_ads/v12/errors/customer_error_pb' -require 'google/ads/google_ads/v12/errors/customer_feed_error_pb' -require 'google/ads/google_ads/v12/errors/customer_manager_link_error_pb' -require 'google/ads/google_ads/v12/errors/customer_user_access_error_pb' -require 'google/ads/google_ads/v12/errors/customizer_attribute_error_pb' -require 'google/ads/google_ads/v12/errors/database_error_pb' -require 'google/ads/google_ads/v12/errors/date_error_pb' -require 'google/ads/google_ads/v12/errors/date_range_error_pb' -require 'google/ads/google_ads/v12/errors/distinct_error_pb' -require 'google/ads/google_ads/v12/errors/enum_error_pb' -require 'google/ads/google_ads/v12/errors/experiment_arm_error_pb' -require 'google/ads/google_ads/v12/errors/experiment_error_pb' -require 'google/ads/google_ads/v12/errors/extension_feed_item_error_pb' -require 'google/ads/google_ads/v12/errors/extension_setting_error_pb' -require 'google/ads/google_ads/v12/errors/feed_attribute_reference_error_pb' -require 'google/ads/google_ads/v12/errors/feed_error_pb' -require 'google/ads/google_ads/v12/errors/feed_item_error_pb' -require 'google/ads/google_ads/v12/errors/feed_item_set_error_pb' -require 'google/ads/google_ads/v12/errors/feed_item_set_link_error_pb' -require 'google/ads/google_ads/v12/errors/feed_item_target_error_pb' -require 'google/ads/google_ads/v12/errors/feed_item_validation_error_pb' -require 'google/ads/google_ads/v12/errors/feed_mapping_error_pb' -require 'google/ads/google_ads/v12/errors/field_error_pb' -require 'google/ads/google_ads/v12/errors/field_mask_error_pb' -require 'google/ads/google_ads/v12/errors/function_error_pb' -require 'google/ads/google_ads/v12/errors/function_parsing_error_pb' -require 'google/ads/google_ads/v12/errors/geo_target_constant_suggestion_error_pb' -require 'google/ads/google_ads/v12/errors/header_error_pb' -require 'google/ads/google_ads/v12/errors/id_error_pb' -require 'google/ads/google_ads/v12/errors/image_error_pb' -require 'google/ads/google_ads/v12/errors/internal_error_pb' -require 'google/ads/google_ads/v12/errors/invoice_error_pb' -require 'google/ads/google_ads/v12/errors/keyword_plan_ad_group_error_pb' -require 'google/ads/google_ads/v12/errors/keyword_plan_ad_group_keyword_error_pb' -require 'google/ads/google_ads/v12/errors/keyword_plan_campaign_error_pb' -require 'google/ads/google_ads/v12/errors/keyword_plan_campaign_keyword_error_pb' -require 'google/ads/google_ads/v12/errors/keyword_plan_error_pb' -require 'google/ads/google_ads/v12/errors/keyword_plan_idea_error_pb' -require 'google/ads/google_ads/v12/errors/label_error_pb' -require 'google/ads/google_ads/v12/errors/language_code_error_pb' -require 'google/ads/google_ads/v12/errors/list_operation_error_pb' -require 'google/ads/google_ads/v12/errors/manager_link_error_pb' -require 'google/ads/google_ads/v12/errors/media_bundle_error_pb' -require 'google/ads/google_ads/v12/errors/media_file_error_pb' -require 'google/ads/google_ads/v12/errors/media_upload_error_pb' -require 'google/ads/google_ads/v12/errors/merchant_center_error_pb' -require 'google/ads/google_ads/v12/errors/multiplier_error_pb' -require 'google/ads/google_ads/v12/errors/mutate_error_pb' -require 'google/ads/google_ads/v12/errors/new_resource_creation_error_pb' -require 'google/ads/google_ads/v12/errors/not_allowlisted_error_pb' -require 'google/ads/google_ads/v12/errors/not_empty_error_pb' -require 'google/ads/google_ads/v12/errors/null_error_pb' -require 'google/ads/google_ads/v12/errors/offline_user_data_job_error_pb' -require 'google/ads/google_ads/v12/errors/operation_access_denied_error_pb' -require 'google/ads/google_ads/v12/errors/operator_error_pb' -require 'google/ads/google_ads/v12/errors/partial_failure_error_pb' -require 'google/ads/google_ads/v12/errors/payments_account_error_pb' -require 'google/ads/google_ads/v12/errors/policy_finding_error_pb' -require 'google/ads/google_ads/v12/errors/policy_validation_parameter_error_pb' -require 'google/ads/google_ads/v12/errors/policy_violation_error_pb' -require 'google/ads/google_ads/v12/errors/query_error_pb' -require 'google/ads/google_ads/v12/errors/quota_error_pb' -require 'google/ads/google_ads/v12/errors/range_error_pb' -require 'google/ads/google_ads/v12/errors/reach_plan_error_pb' -require 'google/ads/google_ads/v12/errors/recommendation_error_pb' -require 'google/ads/google_ads/v12/errors/region_code_error_pb' -require 'google/ads/google_ads/v12/errors/request_error_pb' -require 'google/ads/google_ads/v12/errors/resource_access_denied_error_pb' -require 'google/ads/google_ads/v12/errors/resource_count_limit_exceeded_error_pb' -require 'google/ads/google_ads/v12/errors/setting_error_pb' -require 'google/ads/google_ads/v12/errors/shared_criterion_error_pb' -require 'google/ads/google_ads/v12/errors/shared_set_error_pb' -require 'google/ads/google_ads/v12/errors/size_limit_error_pb' -require 'google/ads/google_ads/v12/errors/smart_campaign_error_pb' -require 'google/ads/google_ads/v12/errors/string_format_error_pb' -require 'google/ads/google_ads/v12/errors/string_length_error_pb' -require 'google/ads/google_ads/v12/errors/third_party_app_analytics_link_error_pb' -require 'google/ads/google_ads/v12/errors/time_zone_error_pb' -require 'google/ads/google_ads/v12/errors/url_field_error_pb' -require 'google/ads/google_ads/v12/errors/user_data_error_pb' -require 'google/ads/google_ads/v12/errors/user_list_error_pb' -require 'google/ads/google_ads/v12/errors/youtube_video_registration_error_pb' -require 'google/protobuf/duration_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/errors.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.GoogleAdsFailure" do - repeated :errors, :message, 1, "google.ads.googleads.v12.errors.GoogleAdsError" - optional :request_id, :string, 2 - end - add_message "google.ads.googleads.v12.errors.GoogleAdsError" do - optional :error_code, :message, 1, "google.ads.googleads.v12.errors.ErrorCode" - optional :message, :string, 2 - optional :trigger, :message, 3, "google.ads.googleads.v12.common.Value" - optional :location, :message, 4, "google.ads.googleads.v12.errors.ErrorLocation" - optional :details, :message, 5, "google.ads.googleads.v12.errors.ErrorDetails" - end - add_message "google.ads.googleads.v12.errors.ErrorCode" do - oneof :error_code do - optional :request_error, :enum, 1, "google.ads.googleads.v12.errors.RequestErrorEnum.RequestError" - optional :bidding_strategy_error, :enum, 2, "google.ads.googleads.v12.errors.BiddingStrategyErrorEnum.BiddingStrategyError" - optional :url_field_error, :enum, 3, "google.ads.googleads.v12.errors.UrlFieldErrorEnum.UrlFieldError" - optional :list_operation_error, :enum, 4, "google.ads.googleads.v12.errors.ListOperationErrorEnum.ListOperationError" - optional :query_error, :enum, 5, "google.ads.googleads.v12.errors.QueryErrorEnum.QueryError" - optional :mutate_error, :enum, 7, "google.ads.googleads.v12.errors.MutateErrorEnum.MutateError" - optional :field_mask_error, :enum, 8, "google.ads.googleads.v12.errors.FieldMaskErrorEnum.FieldMaskError" - optional :authorization_error, :enum, 9, "google.ads.googleads.v12.errors.AuthorizationErrorEnum.AuthorizationError" - optional :internal_error, :enum, 10, "google.ads.googleads.v12.errors.InternalErrorEnum.InternalError" - optional :quota_error, :enum, 11, "google.ads.googleads.v12.errors.QuotaErrorEnum.QuotaError" - optional :ad_error, :enum, 12, "google.ads.googleads.v12.errors.AdErrorEnum.AdError" - optional :ad_group_error, :enum, 13, "google.ads.googleads.v12.errors.AdGroupErrorEnum.AdGroupError" - optional :campaign_budget_error, :enum, 14, "google.ads.googleads.v12.errors.CampaignBudgetErrorEnum.CampaignBudgetError" - optional :campaign_error, :enum, 15, "google.ads.googleads.v12.errors.CampaignErrorEnum.CampaignError" - optional :authentication_error, :enum, 17, "google.ads.googleads.v12.errors.AuthenticationErrorEnum.AuthenticationError" - optional :ad_group_criterion_customizer_error, :enum, 161, "google.ads.googleads.v12.errors.AdGroupCriterionCustomizerErrorEnum.AdGroupCriterionCustomizerError" - optional :ad_group_criterion_error, :enum, 18, "google.ads.googleads.v12.errors.AdGroupCriterionErrorEnum.AdGroupCriterionError" - optional :ad_group_customizer_error, :enum, 159, "google.ads.googleads.v12.errors.AdGroupCustomizerErrorEnum.AdGroupCustomizerError" - optional :ad_customizer_error, :enum, 19, "google.ads.googleads.v12.errors.AdCustomizerErrorEnum.AdCustomizerError" - optional :ad_group_ad_error, :enum, 21, "google.ads.googleads.v12.errors.AdGroupAdErrorEnum.AdGroupAdError" - optional :ad_sharing_error, :enum, 24, "google.ads.googleads.v12.errors.AdSharingErrorEnum.AdSharingError" - optional :adx_error, :enum, 25, "google.ads.googleads.v12.errors.AdxErrorEnum.AdxError" - optional :asset_error, :enum, 107, "google.ads.googleads.v12.errors.AssetErrorEnum.AssetError" - optional :asset_group_asset_error, :enum, 149, "google.ads.googleads.v12.errors.AssetGroupAssetErrorEnum.AssetGroupAssetError" - optional :asset_group_listing_group_filter_error, :enum, 155, "google.ads.googleads.v12.errors.AssetGroupListingGroupFilterErrorEnum.AssetGroupListingGroupFilterError" - optional :asset_group_error, :enum, 148, "google.ads.googleads.v12.errors.AssetGroupErrorEnum.AssetGroupError" - optional :asset_set_asset_error, :enum, 153, "google.ads.googleads.v12.errors.AssetSetAssetErrorEnum.AssetSetAssetError" - optional :asset_set_link_error, :enum, 154, "google.ads.googleads.v12.errors.AssetSetLinkErrorEnum.AssetSetLinkError" - optional :asset_set_error, :enum, 152, "google.ads.googleads.v12.errors.AssetSetErrorEnum.AssetSetError" - optional :bidding_error, :enum, 26, "google.ads.googleads.v12.errors.BiddingErrorEnum.BiddingError" - optional :campaign_criterion_error, :enum, 29, "google.ads.googleads.v12.errors.CampaignCriterionErrorEnum.CampaignCriterionError" - optional :campaign_conversion_goal_error, :enum, 166, "google.ads.googleads.v12.errors.CampaignConversionGoalErrorEnum.CampaignConversionGoalError" - optional :campaign_customizer_error, :enum, 160, "google.ads.googleads.v12.errors.CampaignCustomizerErrorEnum.CampaignCustomizerError" - optional :collection_size_error, :enum, 31, "google.ads.googleads.v12.errors.CollectionSizeErrorEnum.CollectionSizeError" - optional :conversion_goal_campaign_config_error, :enum, 165, "google.ads.googleads.v12.errors.ConversionGoalCampaignConfigErrorEnum.ConversionGoalCampaignConfigError" - optional :country_code_error, :enum, 109, "google.ads.googleads.v12.errors.CountryCodeErrorEnum.CountryCodeError" - optional :criterion_error, :enum, 32, "google.ads.googleads.v12.errors.CriterionErrorEnum.CriterionError" - optional :custom_conversion_goal_error, :enum, 150, "google.ads.googleads.v12.errors.CustomConversionGoalErrorEnum.CustomConversionGoalError" - optional :customer_customizer_error, :enum, 158, "google.ads.googleads.v12.errors.CustomerCustomizerErrorEnum.CustomerCustomizerError" - optional :customer_error, :enum, 90, "google.ads.googleads.v12.errors.CustomerErrorEnum.CustomerError" - optional :customizer_attribute_error, :enum, 151, "google.ads.googleads.v12.errors.CustomizerAttributeErrorEnum.CustomizerAttributeError" - optional :date_error, :enum, 33, "google.ads.googleads.v12.errors.DateErrorEnum.DateError" - optional :date_range_error, :enum, 34, "google.ads.googleads.v12.errors.DateRangeErrorEnum.DateRangeError" - optional :distinct_error, :enum, 35, "google.ads.googleads.v12.errors.DistinctErrorEnum.DistinctError" - optional :feed_attribute_reference_error, :enum, 36, "google.ads.googleads.v12.errors.FeedAttributeReferenceErrorEnum.FeedAttributeReferenceError" - optional :function_error, :enum, 37, "google.ads.googleads.v12.errors.FunctionErrorEnum.FunctionError" - optional :function_parsing_error, :enum, 38, "google.ads.googleads.v12.errors.FunctionParsingErrorEnum.FunctionParsingError" - optional :id_error, :enum, 39, "google.ads.googleads.v12.errors.IdErrorEnum.IdError" - optional :image_error, :enum, 40, "google.ads.googleads.v12.errors.ImageErrorEnum.ImageError" - optional :language_code_error, :enum, 110, "google.ads.googleads.v12.errors.LanguageCodeErrorEnum.LanguageCodeError" - optional :media_bundle_error, :enum, 42, "google.ads.googleads.v12.errors.MediaBundleErrorEnum.MediaBundleError" - optional :media_upload_error, :enum, 116, "google.ads.googleads.v12.errors.MediaUploadErrorEnum.MediaUploadError" - optional :media_file_error, :enum, 86, "google.ads.googleads.v12.errors.MediaFileErrorEnum.MediaFileError" - optional :merchant_center_error, :enum, 162, "google.ads.googleads.v12.errors.MerchantCenterErrorEnum.MerchantCenterError" - optional :multiplier_error, :enum, 44, "google.ads.googleads.v12.errors.MultiplierErrorEnum.MultiplierError" - optional :new_resource_creation_error, :enum, 45, "google.ads.googleads.v12.errors.NewResourceCreationErrorEnum.NewResourceCreationError" - optional :not_empty_error, :enum, 46, "google.ads.googleads.v12.errors.NotEmptyErrorEnum.NotEmptyError" - optional :null_error, :enum, 47, "google.ads.googleads.v12.errors.NullErrorEnum.NullError" - optional :operator_error, :enum, 48, "google.ads.googleads.v12.errors.OperatorErrorEnum.OperatorError" - optional :range_error, :enum, 49, "google.ads.googleads.v12.errors.RangeErrorEnum.RangeError" - optional :recommendation_error, :enum, 58, "google.ads.googleads.v12.errors.RecommendationErrorEnum.RecommendationError" - optional :region_code_error, :enum, 51, "google.ads.googleads.v12.errors.RegionCodeErrorEnum.RegionCodeError" - optional :setting_error, :enum, 52, "google.ads.googleads.v12.errors.SettingErrorEnum.SettingError" - optional :string_format_error, :enum, 53, "google.ads.googleads.v12.errors.StringFormatErrorEnum.StringFormatError" - optional :string_length_error, :enum, 54, "google.ads.googleads.v12.errors.StringLengthErrorEnum.StringLengthError" - optional :operation_access_denied_error, :enum, 55, "google.ads.googleads.v12.errors.OperationAccessDeniedErrorEnum.OperationAccessDeniedError" - optional :resource_access_denied_error, :enum, 56, "google.ads.googleads.v12.errors.ResourceAccessDeniedErrorEnum.ResourceAccessDeniedError" - optional :resource_count_limit_exceeded_error, :enum, 57, "google.ads.googleads.v12.errors.ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededError" - optional :youtube_video_registration_error, :enum, 117, "google.ads.googleads.v12.errors.YoutubeVideoRegistrationErrorEnum.YoutubeVideoRegistrationError" - optional :ad_group_bid_modifier_error, :enum, 59, "google.ads.googleads.v12.errors.AdGroupBidModifierErrorEnum.AdGroupBidModifierError" - optional :context_error, :enum, 60, "google.ads.googleads.v12.errors.ContextErrorEnum.ContextError" - optional :field_error, :enum, 61, "google.ads.googleads.v12.errors.FieldErrorEnum.FieldError" - optional :shared_set_error, :enum, 62, "google.ads.googleads.v12.errors.SharedSetErrorEnum.SharedSetError" - optional :shared_criterion_error, :enum, 63, "google.ads.googleads.v12.errors.SharedCriterionErrorEnum.SharedCriterionError" - optional :campaign_shared_set_error, :enum, 64, "google.ads.googleads.v12.errors.CampaignSharedSetErrorEnum.CampaignSharedSetError" - optional :conversion_action_error, :enum, 65, "google.ads.googleads.v12.errors.ConversionActionErrorEnum.ConversionActionError" - optional :conversion_adjustment_upload_error, :enum, 115, "google.ads.googleads.v12.errors.ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadError" - optional :conversion_custom_variable_error, :enum, 143, "google.ads.googleads.v12.errors.ConversionCustomVariableErrorEnum.ConversionCustomVariableError" - optional :conversion_upload_error, :enum, 111, "google.ads.googleads.v12.errors.ConversionUploadErrorEnum.ConversionUploadError" - optional :conversion_value_rule_error, :enum, 145, "google.ads.googleads.v12.errors.ConversionValueRuleErrorEnum.ConversionValueRuleError" - optional :conversion_value_rule_set_error, :enum, 146, "google.ads.googleads.v12.errors.ConversionValueRuleSetErrorEnum.ConversionValueRuleSetError" - optional :header_error, :enum, 66, "google.ads.googleads.v12.errors.HeaderErrorEnum.HeaderError" - optional :database_error, :enum, 67, "google.ads.googleads.v12.errors.DatabaseErrorEnum.DatabaseError" - optional :policy_finding_error, :enum, 68, "google.ads.googleads.v12.errors.PolicyFindingErrorEnum.PolicyFindingError" - optional :enum_error, :enum, 70, "google.ads.googleads.v12.errors.EnumErrorEnum.EnumError" - optional :keyword_plan_error, :enum, 71, "google.ads.googleads.v12.errors.KeywordPlanErrorEnum.KeywordPlanError" - optional :keyword_plan_campaign_error, :enum, 72, "google.ads.googleads.v12.errors.KeywordPlanCampaignErrorEnum.KeywordPlanCampaignError" - optional :keyword_plan_campaign_keyword_error, :enum, 132, "google.ads.googleads.v12.errors.KeywordPlanCampaignKeywordErrorEnum.KeywordPlanCampaignKeywordError" - optional :keyword_plan_ad_group_error, :enum, 74, "google.ads.googleads.v12.errors.KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupError" - optional :keyword_plan_ad_group_keyword_error, :enum, 133, "google.ads.googleads.v12.errors.KeywordPlanAdGroupKeywordErrorEnum.KeywordPlanAdGroupKeywordError" - optional :keyword_plan_idea_error, :enum, 76, "google.ads.googleads.v12.errors.KeywordPlanIdeaErrorEnum.KeywordPlanIdeaError" - optional :account_budget_proposal_error, :enum, 77, "google.ads.googleads.v12.errors.AccountBudgetProposalErrorEnum.AccountBudgetProposalError" - optional :user_list_error, :enum, 78, "google.ads.googleads.v12.errors.UserListErrorEnum.UserListError" - optional :change_event_error, :enum, 136, "google.ads.googleads.v12.errors.ChangeEventErrorEnum.ChangeEventError" - optional :change_status_error, :enum, 79, "google.ads.googleads.v12.errors.ChangeStatusErrorEnum.ChangeStatusError" - optional :feed_error, :enum, 80, "google.ads.googleads.v12.errors.FeedErrorEnum.FeedError" - optional :geo_target_constant_suggestion_error, :enum, 81, "google.ads.googleads.v12.errors.GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionError" - optional :campaign_draft_error, :enum, 82, "google.ads.googleads.v12.errors.CampaignDraftErrorEnum.CampaignDraftError" - optional :feed_item_error, :enum, 83, "google.ads.googleads.v12.errors.FeedItemErrorEnum.FeedItemError" - optional :label_error, :enum, 84, "google.ads.googleads.v12.errors.LabelErrorEnum.LabelError" - optional :billing_setup_error, :enum, 87, "google.ads.googleads.v12.errors.BillingSetupErrorEnum.BillingSetupError" - optional :customer_client_link_error, :enum, 88, "google.ads.googleads.v12.errors.CustomerClientLinkErrorEnum.CustomerClientLinkError" - optional :customer_manager_link_error, :enum, 91, "google.ads.googleads.v12.errors.CustomerManagerLinkErrorEnum.CustomerManagerLinkError" - optional :feed_mapping_error, :enum, 92, "google.ads.googleads.v12.errors.FeedMappingErrorEnum.FeedMappingError" - optional :customer_feed_error, :enum, 93, "google.ads.googleads.v12.errors.CustomerFeedErrorEnum.CustomerFeedError" - optional :ad_group_feed_error, :enum, 94, "google.ads.googleads.v12.errors.AdGroupFeedErrorEnum.AdGroupFeedError" - optional :campaign_feed_error, :enum, 96, "google.ads.googleads.v12.errors.CampaignFeedErrorEnum.CampaignFeedError" - optional :custom_interest_error, :enum, 97, "google.ads.googleads.v12.errors.CustomInterestErrorEnum.CustomInterestError" - optional :campaign_experiment_error, :enum, 98, "google.ads.googleads.v12.errors.CampaignExperimentErrorEnum.CampaignExperimentError" - optional :extension_feed_item_error, :enum, 100, "google.ads.googleads.v12.errors.ExtensionFeedItemErrorEnum.ExtensionFeedItemError" - optional :ad_parameter_error, :enum, 101, "google.ads.googleads.v12.errors.AdParameterErrorEnum.AdParameterError" - optional :feed_item_validation_error, :enum, 102, "google.ads.googleads.v12.errors.FeedItemValidationErrorEnum.FeedItemValidationError" - optional :extension_setting_error, :enum, 103, "google.ads.googleads.v12.errors.ExtensionSettingErrorEnum.ExtensionSettingError" - optional :feed_item_set_error, :enum, 140, "google.ads.googleads.v12.errors.FeedItemSetErrorEnum.FeedItemSetError" - optional :feed_item_set_link_error, :enum, 141, "google.ads.googleads.v12.errors.FeedItemSetLinkErrorEnum.FeedItemSetLinkError" - optional :feed_item_target_error, :enum, 104, "google.ads.googleads.v12.errors.FeedItemTargetErrorEnum.FeedItemTargetError" - optional :policy_violation_error, :enum, 105, "google.ads.googleads.v12.errors.PolicyViolationErrorEnum.PolicyViolationError" - optional :partial_failure_error, :enum, 112, "google.ads.googleads.v12.errors.PartialFailureErrorEnum.PartialFailureError" - optional :policy_validation_parameter_error, :enum, 114, "google.ads.googleads.v12.errors.PolicyValidationParameterErrorEnum.PolicyValidationParameterError" - optional :size_limit_error, :enum, 118, "google.ads.googleads.v12.errors.SizeLimitErrorEnum.SizeLimitError" - optional :offline_user_data_job_error, :enum, 119, "google.ads.googleads.v12.errors.OfflineUserDataJobErrorEnum.OfflineUserDataJobError" - optional :not_allowlisted_error, :enum, 137, "google.ads.googleads.v12.errors.NotAllowlistedErrorEnum.NotAllowlistedError" - optional :manager_link_error, :enum, 121, "google.ads.googleads.v12.errors.ManagerLinkErrorEnum.ManagerLinkError" - optional :currency_code_error, :enum, 122, "google.ads.googleads.v12.errors.CurrencyCodeErrorEnum.CurrencyCodeError" - optional :experiment_error, :enum, 123, "google.ads.googleads.v12.errors.ExperimentErrorEnum.ExperimentError" - optional :access_invitation_error, :enum, 124, "google.ads.googleads.v12.errors.AccessInvitationErrorEnum.AccessInvitationError" - optional :reach_plan_error, :enum, 125, "google.ads.googleads.v12.errors.ReachPlanErrorEnum.ReachPlanError" - optional :invoice_error, :enum, 126, "google.ads.googleads.v12.errors.InvoiceErrorEnum.InvoiceError" - optional :payments_account_error, :enum, 127, "google.ads.googleads.v12.errors.PaymentsAccountErrorEnum.PaymentsAccountError" - optional :time_zone_error, :enum, 128, "google.ads.googleads.v12.errors.TimeZoneErrorEnum.TimeZoneError" - optional :asset_link_error, :enum, 129, "google.ads.googleads.v12.errors.AssetLinkErrorEnum.AssetLinkError" - optional :user_data_error, :enum, 130, "google.ads.googleads.v12.errors.UserDataErrorEnum.UserDataError" - optional :batch_job_error, :enum, 131, "google.ads.googleads.v12.errors.BatchJobErrorEnum.BatchJobError" - optional :account_link_error, :enum, 134, "google.ads.googleads.v12.errors.AccountLinkErrorEnum.AccountLinkError" - optional :third_party_app_analytics_link_error, :enum, 135, "google.ads.googleads.v12.errors.ThirdPartyAppAnalyticsLinkErrorEnum.ThirdPartyAppAnalyticsLinkError" - optional :customer_user_access_error, :enum, 138, "google.ads.googleads.v12.errors.CustomerUserAccessErrorEnum.CustomerUserAccessError" - optional :custom_audience_error, :enum, 139, "google.ads.googleads.v12.errors.CustomAudienceErrorEnum.CustomAudienceError" - optional :audience_error, :enum, 164, "google.ads.googleads.v12.errors.AudienceErrorEnum.AudienceError" - optional :smart_campaign_error, :enum, 147, "google.ads.googleads.v12.errors.SmartCampaignErrorEnum.SmartCampaignError" - optional :experiment_arm_error, :enum, 156, "google.ads.googleads.v12.errors.ExperimentArmErrorEnum.ExperimentArmError" - optional :audience_insights_error, :enum, 167, "google.ads.googleads.v12.errors.AudienceInsightsErrorEnum.AudienceInsightsError" - end - end - add_message "google.ads.googleads.v12.errors.ErrorLocation" do - repeated :field_path_elements, :message, 2, "google.ads.googleads.v12.errors.ErrorLocation.FieldPathElement" - end - add_message "google.ads.googleads.v12.errors.ErrorLocation.FieldPathElement" do - optional :field_name, :string, 1 - proto3_optional :index, :int32, 3 - end - add_message "google.ads.googleads.v12.errors.ErrorDetails" do - optional :unpublished_error_code, :string, 1 - optional :policy_violation_details, :message, 2, "google.ads.googleads.v12.errors.PolicyViolationDetails" - optional :policy_finding_details, :message, 3, "google.ads.googleads.v12.errors.PolicyFindingDetails" - optional :quota_error_details, :message, 4, "google.ads.googleads.v12.errors.QuotaErrorDetails" - optional :resource_count_details, :message, 5, "google.ads.googleads.v12.errors.ResourceCountDetails" - end - add_message "google.ads.googleads.v12.errors.PolicyViolationDetails" do - optional :external_policy_description, :string, 2 - optional :key, :message, 4, "google.ads.googleads.v12.common.PolicyViolationKey" - optional :external_policy_name, :string, 5 - optional :is_exemptible, :bool, 6 - end - add_message "google.ads.googleads.v12.errors.PolicyFindingDetails" do - repeated :policy_topic_entries, :message, 1, "google.ads.googleads.v12.common.PolicyTopicEntry" - end - add_message "google.ads.googleads.v12.errors.QuotaErrorDetails" do - optional :rate_scope, :enum, 1, "google.ads.googleads.v12.errors.QuotaErrorDetails.QuotaRateScope" - optional :rate_name, :string, 2 - optional :retry_delay, :message, 3, "google.protobuf.Duration" - end - add_enum "google.ads.googleads.v12.errors.QuotaErrorDetails.QuotaRateScope" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ACCOUNT, 2 - value :DEVELOPER, 3 - end - add_message "google.ads.googleads.v12.errors.ResourceCountDetails" do - optional :enclosing_id, :string, 1 - optional :enclosing_resource, :string, 5 - optional :limit, :int32, 2 - optional :limit_type, :enum, 3, "google.ads.googleads.v12.enums.ResourceLimitTypeEnum.ResourceLimitType" - optional :existing_count, :int32, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - GoogleAdsFailure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.GoogleAdsFailure").msgclass - GoogleAdsError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.GoogleAdsError").msgclass - ErrorCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ErrorCode").msgclass - ErrorLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ErrorLocation").msgclass - ErrorLocation::FieldPathElement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ErrorLocation.FieldPathElement").msgclass - ErrorDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ErrorDetails").msgclass - PolicyViolationDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.PolicyViolationDetails").msgclass - PolicyFindingDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.PolicyFindingDetails").msgclass - QuotaErrorDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.QuotaErrorDetails").msgclass - QuotaErrorDetails::QuotaRateScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.QuotaErrorDetails.QuotaRateScope").enummodule - ResourceCountDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ResourceCountDetails").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/experiment_arm_error_pb.rb b/lib/google/ads/google_ads/v12/errors/experiment_arm_error_pb.rb deleted file mode 100644 index 67cfc1fe0..000000000 --- a/lib/google/ads/google_ads/v12/errors/experiment_arm_error_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/experiment_arm_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/experiment_arm_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ExperimentArmErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ExperimentArmErrorEnum.ExperimentArmError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :EXPERIMENT_ARM_COUNT_LIMIT_EXCEEDED, 2 - value :INVALID_CAMPAIGN_STATUS, 3 - value :DUPLICATE_EXPERIMENT_ARM_NAME, 4 - value :CANNOT_SET_TREATMENT_ARM_CAMPAIGN, 5 - value :CANNOT_MODIFY_CAMPAIGN_IDS, 6 - value :CANNOT_MODIFY_CAMPAIGN_WITHOUT_SUFFIX_SET, 7 - value :CANNOT_MUTATE_TRAFFIC_SPLIT_AFTER_START, 8 - value :CANNOT_ADD_CAMPAIGN_WITH_SHARED_BUDGET, 9 - value :CANNOT_ADD_CAMPAIGN_WITH_CUSTOM_BUDGET, 10 - value :CANNOT_ADD_CAMPAIGNS_WITH_DYNAMIC_ASSETS_ENABLED, 11 - value :UNSUPPORTED_CAMPAIGN_ADVERTISING_CHANNEL_SUB_TYPE, 12 - value :CANNOT_ADD_BASE_CAMPAIGN_WITH_DATE_RANGE, 13 - value :BIDDING_STRATEGY_NOT_SUPPORTED_IN_EXPERIMENTS, 14 - value :TRAFFIC_SPLIT_NOT_SUPPORTED_FOR_CHANNEL_TYPE, 15 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ExperimentArmErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ExperimentArmErrorEnum").msgclass - ExperimentArmErrorEnum::ExperimentArmError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ExperimentArmErrorEnum.ExperimentArmError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/experiment_error_pb.rb b/lib/google/ads/google_ads/v12/errors/experiment_error_pb.rb deleted file mode 100644 index 94aa3f05a..000000000 --- a/lib/google/ads/google_ads/v12/errors/experiment_error_pb.rb +++ /dev/null @@ -1,52 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/experiment_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/experiment_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ExperimentErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ExperimentErrorEnum.ExperimentError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CANNOT_SET_START_DATE_IN_PAST, 2 - value :END_DATE_BEFORE_START_DATE, 3 - value :START_DATE_TOO_FAR_IN_FUTURE, 4 - value :DUPLICATE_EXPERIMENT_NAME, 5 - value :CANNOT_MODIFY_REMOVED_EXPERIMENT, 6 - value :START_DATE_ALREADY_PASSED, 7 - value :CANNOT_SET_END_DATE_IN_PAST, 8 - value :CANNOT_SET_STATUS_TO_REMOVED, 9 - value :CANNOT_MODIFY_PAST_END_DATE, 10 - value :INVALID_STATUS, 11 - value :INVALID_CAMPAIGN_CHANNEL_TYPE, 12 - value :OVERLAPPING_MEMBERS_AND_DATE_RANGE, 13 - value :INVALID_TRIAL_ARM_TRAFFIC_SPLIT, 14 - value :TRAFFIC_SPLIT_OVERLAPPING, 15 - value :SUM_TRIAL_ARM_TRAFFIC_UNEQUALS_TO_TRIAL_TRAFFIC_SPLIT_DENOMINATOR, 16 - value :CANNOT_MODIFY_TRAFFIC_SPLIT_AFTER_START, 17 - value :EXPERIMENT_NOT_FOUND, 18 - value :EXPERIMENT_NOT_YET_STARTED, 19 - value :CANNOT_HAVE_MULTIPLE_CONTROL_ARMS, 20 - value :IN_DESIGN_CAMPAIGNS_NOT_SET, 21 - value :CANNOT_SET_STATUS_TO_GRADUATED, 22 - value :CANNOT_CREATE_EXPERIMENT_CAMPAIGN_WITH_SHARED_BUDGET, 23 - value :CANNOT_CREATE_EXPERIMENT_CAMPAIGN_WITH_CUSTOM_BUDGET, 24 - value :STATUS_TRANSITION_INVALID, 25 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ExperimentErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ExperimentErrorEnum").msgclass - ExperimentErrorEnum::ExperimentError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ExperimentErrorEnum.ExperimentError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/extension_feed_item_error_pb.rb b/lib/google/ads/google_ads/v12/errors/extension_feed_item_error_pb.rb deleted file mode 100644 index 800e1dbc4..000000000 --- a/lib/google/ads/google_ads/v12/errors/extension_feed_item_error_pb.rb +++ /dev/null @@ -1,73 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/extension_feed_item_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/extension_feed_item_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ExtensionFeedItemErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ExtensionFeedItemErrorEnum.ExtensionFeedItemError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :VALUE_OUT_OF_RANGE, 2 - value :URL_LIST_TOO_LONG, 3 - value :CANNOT_HAVE_RESTRICTION_ON_EMPTY_GEO_TARGETING, 4 - value :CANNOT_SET_WITH_FINAL_URLS, 5 - value :CANNOT_SET_WITHOUT_FINAL_URLS, 6 - value :INVALID_PHONE_NUMBER, 7 - value :PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY, 8 - value :CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED, 9 - value :PREMIUM_RATE_NUMBER_NOT_ALLOWED, 10 - value :DISALLOWED_NUMBER_TYPE, 11 - value :INVALID_DOMESTIC_PHONE_NUMBER_FORMAT, 12 - value :VANITY_PHONE_NUMBER_NOT_ALLOWED, 13 - value :INVALID_CALL_CONVERSION_ACTION, 14 - value :CUSTOMER_NOT_ON_ALLOWLIST_FOR_CALLTRACKING, 47 - value :CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY, 16 - value :CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED, 17 - value :INVALID_APP_ID, 18 - value :QUOTES_IN_REVIEW_EXTENSION_SNIPPET, 19 - value :HYPHENS_IN_REVIEW_EXTENSION_SNIPPET, 20 - value :REVIEW_EXTENSION_SOURCE_INELIGIBLE, 21 - value :SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT, 22 - value :INCONSISTENT_CURRENCY_CODES, 23 - value :PRICE_EXTENSION_HAS_DUPLICATED_HEADERS, 24 - value :PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION, 25 - value :PRICE_EXTENSION_HAS_TOO_FEW_ITEMS, 26 - value :PRICE_EXTENSION_HAS_TOO_MANY_ITEMS, 27 - value :UNSUPPORTED_VALUE, 28 - value :UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE, 29 - value :INVALID_DEVICE_PREFERENCE, 30 - value :INVALID_SCHEDULE_END, 31 - value :DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE, 32 - value :INVALID_SNIPPETS_HEADER, 33 - value :CANNOT_OPERATE_ON_REMOVED_FEED_ITEM, 34 - value :PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY, 35 - value :CONFLICTING_CALL_CONVERSION_SETTINGS, 36 - value :EXTENSION_TYPE_MISMATCH, 37 - value :EXTENSION_SUBTYPE_REQUIRED, 38 - value :EXTENSION_TYPE_UNSUPPORTED, 39 - value :CANNOT_OPERATE_ON_FEED_WITH_MULTIPLE_MAPPINGS, 40 - value :CANNOT_OPERATE_ON_FEED_WITH_KEY_ATTRIBUTES, 41 - value :INVALID_PRICE_FORMAT, 42 - value :PROMOTION_INVALID_TIME, 43 - value :TOO_MANY_DECIMAL_PLACES_SPECIFIED, 44 - value :CONCRETE_EXTENSION_TYPE_REQUIRED, 45 - value :SCHEDULE_END_NOT_AFTER_START, 46 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ExtensionFeedItemErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ExtensionFeedItemErrorEnum").msgclass - ExtensionFeedItemErrorEnum::ExtensionFeedItemError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ExtensionFeedItemErrorEnum.ExtensionFeedItemError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/extension_setting_error_pb.rb b/lib/google/ads/google_ads/v12/errors/extension_setting_error_pb.rb deleted file mode 100644 index 1f2bfe0b6..000000000 --- a/lib/google/ads/google_ads/v12/errors/extension_setting_error_pb.rb +++ /dev/null @@ -1,93 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/extension_setting_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/extension_setting_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ExtensionSettingErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ExtensionSettingErrorEnum.ExtensionSettingError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :EXTENSIONS_REQUIRED, 2 - value :FEED_TYPE_EXTENSION_TYPE_MISMATCH, 3 - value :INVALID_FEED_TYPE, 4 - value :INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING, 5 - value :CANNOT_CHANGE_FEED_ITEM_ON_CREATE, 6 - value :CANNOT_UPDATE_NEWLY_CREATED_EXTENSION, 7 - value :NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE, 8 - value :NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE, 9 - value :NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE, 10 - value :AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS, 11 - value :CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS, 12 - value :CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS, 13 - value :AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE, 14 - value :CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE, 15 - value :CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE, 16 - value :VALUE_OUT_OF_RANGE, 17 - value :CANNOT_SET_FIELD_WITH_FINAL_URLS, 18 - value :FINAL_URLS_NOT_SET, 19 - value :INVALID_PHONE_NUMBER, 20 - value :PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY, 21 - value :CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED, 22 - value :PREMIUM_RATE_NUMBER_NOT_ALLOWED, 23 - value :DISALLOWED_NUMBER_TYPE, 24 - value :INVALID_DOMESTIC_PHONE_NUMBER_FORMAT, 25 - value :VANITY_PHONE_NUMBER_NOT_ALLOWED, 26 - value :INVALID_COUNTRY_CODE, 27 - value :INVALID_CALL_CONVERSION_TYPE_ID, 28 - value :CUSTOMER_NOT_IN_ALLOWLIST_FOR_CALLTRACKING, 69 - value :CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY, 30 - value :INVALID_APP_ID, 31 - value :QUOTES_IN_REVIEW_EXTENSION_SNIPPET, 32 - value :HYPHENS_IN_REVIEW_EXTENSION_SNIPPET, 33 - value :REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE, 34 - value :SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT, 35 - value :MISSING_FIELD, 36 - value :INCONSISTENT_CURRENCY_CODES, 37 - value :PRICE_EXTENSION_HAS_DUPLICATED_HEADERS, 38 - value :PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION, 39 - value :PRICE_EXTENSION_HAS_TOO_FEW_ITEMS, 40 - value :PRICE_EXTENSION_HAS_TOO_MANY_ITEMS, 41 - value :UNSUPPORTED_VALUE, 42 - value :INVALID_DEVICE_PREFERENCE, 43 - value :INVALID_SCHEDULE_END, 45 - value :DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE, 47 - value :OVERLAPPING_SCHEDULES_NOT_ALLOWED, 48 - value :SCHEDULE_END_NOT_AFTER_START, 49 - value :TOO_MANY_SCHEDULES_PER_DAY, 50 - value :DUPLICATE_EXTENSION_FEED_ITEM_EDIT, 51 - value :INVALID_SNIPPETS_HEADER, 52 - value :PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY, 53 - value :CAMPAIGN_TARGETING_MISMATCH, 54 - value :CANNOT_OPERATE_ON_REMOVED_FEED, 55 - value :EXTENSION_TYPE_REQUIRED, 56 - value :INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION, 57 - value :START_DATE_AFTER_END_DATE, 58 - value :INVALID_PRICE_FORMAT, 59 - value :PROMOTION_INVALID_TIME, 60 - value :PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT, 61 - value :PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT, 62 - value :TOO_MANY_DECIMAL_PLACES_SPECIFIED, 63 - value :INVALID_LANGUAGE_CODE, 64 - value :UNSUPPORTED_LANGUAGE, 65 - value :CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED, 66 - value :EXTENSION_SETTING_UPDATE_IS_A_NOOP, 67 - value :DISALLOWED_TEXT, 68 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ExtensionSettingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ExtensionSettingErrorEnum").msgclass - ExtensionSettingErrorEnum::ExtensionSettingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ExtensionSettingErrorEnum.ExtensionSettingError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/feed_attribute_reference_error_pb.rb b/lib/google/ads/google_ads/v12/errors/feed_attribute_reference_error_pb.rb deleted file mode 100644 index a8e98e171..000000000 --- a/lib/google/ads/google_ads/v12/errors/feed_attribute_reference_error_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/feed_attribute_reference_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/feed_attribute_reference_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.FeedAttributeReferenceErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.FeedAttributeReferenceErrorEnum.FeedAttributeReferenceError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CANNOT_REFERENCE_REMOVED_FEED, 2 - value :INVALID_FEED_NAME, 3 - value :INVALID_FEED_ATTRIBUTE_NAME, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - FeedAttributeReferenceErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FeedAttributeReferenceErrorEnum").msgclass - FeedAttributeReferenceErrorEnum::FeedAttributeReferenceError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FeedAttributeReferenceErrorEnum.FeedAttributeReferenceError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/feed_error_pb.rb b/lib/google/ads/google_ads/v12/errors/feed_error_pb.rb deleted file mode 100644 index 18ff98765..000000000 --- a/lib/google/ads/google_ads/v12/errors/feed_error_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/feed_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/feed_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.FeedErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.FeedErrorEnum.FeedError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ATTRIBUTE_NAMES_NOT_UNIQUE, 2 - value :ATTRIBUTES_DO_NOT_MATCH_EXISTING_ATTRIBUTES, 3 - value :CANNOT_SPECIFY_USER_ORIGIN_FOR_SYSTEM_FEED, 4 - value :CANNOT_SPECIFY_GOOGLE_ORIGIN_FOR_NON_SYSTEM_FEED, 5 - value :CANNOT_SPECIFY_FEED_ATTRIBUTES_FOR_SYSTEM_FEED, 6 - value :CANNOT_UPDATE_FEED_ATTRIBUTES_WITH_ORIGIN_GOOGLE, 7 - value :FEED_REMOVED, 8 - value :INVALID_ORIGIN_VALUE, 9 - value :FEED_ORIGIN_IS_NOT_USER, 10 - value :INVALID_AUTH_TOKEN_FOR_EMAIL, 11 - value :INVALID_EMAIL, 12 - value :DUPLICATE_FEED_NAME, 13 - value :INVALID_FEED_NAME, 14 - value :MISSING_OAUTH_INFO, 15 - value :NEW_ATTRIBUTE_CANNOT_BE_PART_OF_UNIQUE_KEY, 16 - value :TOO_MANY_ATTRIBUTES, 17 - value :INVALID_BUSINESS_ACCOUNT, 18 - value :BUSINESS_ACCOUNT_CANNOT_ACCESS_LOCATION_ACCOUNT, 19 - value :INVALID_AFFILIATE_CHAIN_ID, 20 - value :DUPLICATE_SYSTEM_FEED, 21 - value :GMB_ACCESS_ERROR, 22 - value :CANNOT_HAVE_LOCATION_AND_AFFILIATE_LOCATION_FEEDS, 23 - value :LEGACY_EXTENSION_TYPE_READ_ONLY, 24 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - FeedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FeedErrorEnum").msgclass - FeedErrorEnum::FeedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FeedErrorEnum.FeedError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/feed_item_error_pb.rb b/lib/google/ads/google_ads/v12/errors/feed_item_error_pb.rb deleted file mode 100644 index 54feb0896..000000000 --- a/lib/google/ads/google_ads/v12/errors/feed_item_error_pb.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/feed_item_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/feed_item_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.FeedItemErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.FeedItemErrorEnum.FeedItemError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CANNOT_CONVERT_ATTRIBUTE_VALUE_FROM_STRING, 2 - value :CANNOT_OPERATE_ON_REMOVED_FEED_ITEM, 3 - value :DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE, 4 - value :KEY_ATTRIBUTES_NOT_FOUND, 5 - value :INVALID_URL, 6 - value :MISSING_KEY_ATTRIBUTES, 7 - value :KEY_ATTRIBUTES_NOT_UNIQUE, 8 - value :CANNOT_MODIFY_KEY_ATTRIBUTE_VALUE, 9 - value :SIZE_TOO_LARGE_FOR_MULTI_VALUE_ATTRIBUTE, 10 - value :LEGACY_FEED_TYPE_READ_ONLY, 11 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - FeedItemErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FeedItemErrorEnum").msgclass - FeedItemErrorEnum::FeedItemError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FeedItemErrorEnum.FeedItemError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/feed_item_set_error_pb.rb b/lib/google/ads/google_ads/v12/errors/feed_item_set_error_pb.rb deleted file mode 100644 index 1e64b00fb..000000000 --- a/lib/google/ads/google_ads/v12/errors/feed_item_set_error_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/feed_item_set_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/feed_item_set_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.FeedItemSetErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.FeedItemSetErrorEnum.FeedItemSetError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :FEED_ITEM_SET_REMOVED, 2 - value :CANNOT_CLEAR_DYNAMIC_FILTER, 3 - value :CANNOT_CREATE_DYNAMIC_FILTER, 4 - value :INVALID_FEED_TYPE, 5 - value :DUPLICATE_NAME, 6 - value :WRONG_DYNAMIC_FILTER_FOR_FEED_TYPE, 7 - value :DYNAMIC_FILTER_INVALID_CHAIN_IDS, 8 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - FeedItemSetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FeedItemSetErrorEnum").msgclass - FeedItemSetErrorEnum::FeedItemSetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FeedItemSetErrorEnum.FeedItemSetError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/feed_item_set_link_error_pb.rb b/lib/google/ads/google_ads/v12/errors/feed_item_set_link_error_pb.rb deleted file mode 100644 index d3ee26616..000000000 --- a/lib/google/ads/google_ads/v12/errors/feed_item_set_link_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/feed_item_set_link_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/feed_item_set_link_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.FeedItemSetLinkErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.FeedItemSetLinkErrorEnum.FeedItemSetLinkError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :FEED_ID_MISMATCH, 2 - value :NO_MUTATE_ALLOWED_FOR_DYNAMIC_SET, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - FeedItemSetLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FeedItemSetLinkErrorEnum").msgclass - FeedItemSetLinkErrorEnum::FeedItemSetLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FeedItemSetLinkErrorEnum.FeedItemSetLinkError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/feed_item_target_error_pb.rb b/lib/google/ads/google_ads/v12/errors/feed_item_target_error_pb.rb deleted file mode 100644 index 10745d0d7..000000000 --- a/lib/google/ads/google_ads/v12/errors/feed_item_target_error_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/feed_item_target_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/feed_item_target_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.FeedItemTargetErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.FeedItemTargetErrorEnum.FeedItemTargetError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :MUST_SET_TARGET_ONEOF_ON_CREATE, 2 - value :FEED_ITEM_TARGET_ALREADY_EXISTS, 3 - value :FEED_ITEM_SCHEDULES_CANNOT_OVERLAP, 4 - value :TARGET_LIMIT_EXCEEDED_FOR_GIVEN_TYPE, 5 - value :TOO_MANY_SCHEDULES_PER_DAY, 6 - value :CANNOT_HAVE_ENABLED_CAMPAIGN_AND_ENABLED_AD_GROUP_TARGETS, 7 - value :DUPLICATE_AD_SCHEDULE, 8 - value :DUPLICATE_KEYWORD, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - FeedItemTargetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FeedItemTargetErrorEnum").msgclass - FeedItemTargetErrorEnum::FeedItemTargetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FeedItemTargetErrorEnum.FeedItemTargetError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/feed_item_validation_error_pb.rb b/lib/google/ads/google_ads/v12/errors/feed_item_validation_error_pb.rb deleted file mode 100644 index 9d65c622f..000000000 --- a/lib/google/ads/google_ads/v12/errors/feed_item_validation_error_pb.rb +++ /dev/null @@ -1,133 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/feed_item_validation_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/feed_item_validation_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.FeedItemValidationErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.FeedItemValidationErrorEnum.FeedItemValidationError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :STRING_TOO_SHORT, 2 - value :STRING_TOO_LONG, 3 - value :VALUE_NOT_SPECIFIED, 4 - value :INVALID_DOMESTIC_PHONE_NUMBER_FORMAT, 5 - value :INVALID_PHONE_NUMBER, 6 - value :PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY, 7 - value :PREMIUM_RATE_NUMBER_NOT_ALLOWED, 8 - value :DISALLOWED_NUMBER_TYPE, 9 - value :VALUE_OUT_OF_RANGE, 10 - value :CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY, 11 - value :CUSTOMER_NOT_IN_ALLOWLIST_FOR_CALLTRACKING, 99 - value :INVALID_COUNTRY_CODE, 13 - value :INVALID_APP_ID, 14 - value :MISSING_ATTRIBUTES_FOR_FIELDS, 15 - value :INVALID_TYPE_ID, 16 - value :INVALID_EMAIL_ADDRESS, 17 - value :INVALID_HTTPS_URL, 18 - value :MISSING_DELIVERY_ADDRESS, 19 - value :START_DATE_AFTER_END_DATE, 20 - value :MISSING_FEED_ITEM_START_TIME, 21 - value :MISSING_FEED_ITEM_END_TIME, 22 - value :MISSING_FEED_ITEM_ID, 23 - value :VANITY_PHONE_NUMBER_NOT_ALLOWED, 24 - value :INVALID_REVIEW_EXTENSION_SNIPPET, 25 - value :INVALID_NUMBER_FORMAT, 26 - value :INVALID_DATE_FORMAT, 27 - value :INVALID_PRICE_FORMAT, 28 - value :UNKNOWN_PLACEHOLDER_FIELD, 29 - value :MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE, 30 - value :REVIEW_EXTENSION_SOURCE_INELIGIBLE, 31 - value :HYPHENS_IN_REVIEW_EXTENSION_SNIPPET, 32 - value :DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET, 33 - value :QUOTES_IN_REVIEW_EXTENSION_SNIPPET, 34 - value :INVALID_FORM_ENCODED_PARAMS, 35 - value :INVALID_URL_PARAMETER_NAME, 36 - value :NO_GEOCODING_RESULT, 37 - value :SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT, 38 - value :CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED, 39 - value :INVALID_PLACEHOLDER_FIELD_ID, 40 - value :INVALID_URL_TAG, 41 - value :LIST_TOO_LONG, 42 - value :INVALID_ATTRIBUTES_COMBINATION, 43 - value :DUPLICATE_VALUES, 44 - value :INVALID_CALL_CONVERSION_ACTION_ID, 45 - value :CANNOT_SET_WITHOUT_FINAL_URLS, 46 - value :APP_ID_DOESNT_EXIST_IN_APP_STORE, 47 - value :INVALID_FINAL_URL, 48 - value :INVALID_TRACKING_URL, 49 - value :INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL, 50 - value :LIST_TOO_SHORT, 51 - value :INVALID_USER_ACTION, 52 - value :INVALID_TYPE_NAME, 53 - value :INVALID_EVENT_CHANGE_STATUS, 54 - value :INVALID_SNIPPETS_HEADER, 55 - value :INVALID_ANDROID_APP_LINK, 56 - value :NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY, 57 - value :RESERVED_KEYWORD_OTHER, 58 - value :DUPLICATE_OPTION_LABELS, 59 - value :DUPLICATE_OPTION_PREFILLS, 60 - value :UNEQUAL_LIST_LENGTHS, 61 - value :INCONSISTENT_CURRENCY_CODES, 62 - value :PRICE_EXTENSION_HAS_DUPLICATED_HEADERS, 63 - value :ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION, 64 - value :PRICE_EXTENSION_HAS_TOO_FEW_ITEMS, 65 - value :UNSUPPORTED_VALUE, 66 - value :INVALID_FINAL_MOBILE_URL, 67 - value :INVALID_KEYWORDLESS_AD_RULE_LABEL, 68 - value :VALUE_TRACK_PARAMETER_NOT_SUPPORTED, 69 - value :UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE, 70 - value :INVALID_IOS_APP_LINK, 71 - value :MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID, 72 - value :PROMOTION_INVALID_TIME, 73 - value :PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF, 74 - value :PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT, 75 - value :TOO_MANY_DECIMAL_PLACES_SPECIFIED, 76 - value :AD_CUSTOMIZERS_NOT_ALLOWED, 77 - value :INVALID_LANGUAGE_CODE, 78 - value :UNSUPPORTED_LANGUAGE, 79 - value :IF_FUNCTION_NOT_ALLOWED, 80 - value :INVALID_FINAL_URL_SUFFIX, 81 - value :INVALID_TAG_IN_FINAL_URL_SUFFIX, 82 - value :INVALID_FINAL_URL_SUFFIX_FORMAT, 83 - value :CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED, 84 - value :ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED, 85 - value :NO_DELIVERY_OPTION_IS_SET, 86 - value :INVALID_CONVERSION_REPORTING_STATE, 87 - value :IMAGE_SIZE_WRONG, 88 - value :EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY, 89 - value :AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY, 90 - value :INVALID_LATITUDE_VALUE, 91 - value :INVALID_LONGITUDE_VALUE, 92 - value :TOO_MANY_LABELS, 93 - value :INVALID_IMAGE_URL, 94 - value :MISSING_LATITUDE_VALUE, 95 - value :MISSING_LONGITUDE_VALUE, 96 - value :ADDRESS_NOT_FOUND, 97 - value :ADDRESS_NOT_TARGETABLE, 98 - value :INVALID_ASSET_ID, 100 - value :INCOMPATIBLE_ASSET_TYPE, 101 - value :IMAGE_ERROR_UNEXPECTED_SIZE, 102 - value :IMAGE_ERROR_ASPECT_RATIO_NOT_ALLOWED, 103 - value :IMAGE_ERROR_FILE_TOO_LARGE, 104 - value :IMAGE_ERROR_FORMAT_NOT_ALLOWED, 105 - value :IMAGE_ERROR_CONSTRAINTS_VIOLATED, 106 - value :IMAGE_ERROR_SERVER_ERROR, 107 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - FeedItemValidationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FeedItemValidationErrorEnum").msgclass - FeedItemValidationErrorEnum::FeedItemValidationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FeedItemValidationErrorEnum.FeedItemValidationError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/feed_mapping_error_pb.rb b/lib/google/ads/google_ads/v12/errors/feed_mapping_error_pb.rb deleted file mode 100644 index 0e0e09338..000000000 --- a/lib/google/ads/google_ads/v12/errors/feed_mapping_error_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/feed_mapping_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/feed_mapping_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.FeedMappingErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.FeedMappingErrorEnum.FeedMappingError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_PLACEHOLDER_FIELD, 2 - value :INVALID_CRITERION_FIELD, 3 - value :INVALID_PLACEHOLDER_TYPE, 4 - value :INVALID_CRITERION_TYPE, 5 - value :NO_ATTRIBUTE_FIELD_MAPPINGS, 7 - value :FEED_ATTRIBUTE_TYPE_MISMATCH, 8 - value :CANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED, 9 - value :MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE, 10 - value :MULTIPLE_MAPPINGS_FOR_CRITERION_TYPE, 11 - value :MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD, 12 - value :MULTIPLE_MAPPINGS_FOR_CRITERION_FIELD, 13 - value :UNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS, 14 - value :LOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS, 15 - value :CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED, 16 - value :INVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED, 17 - value :INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE, 18 - value :ATTRIBUTE_FIELD_MAPPING_MISSING_FIELD, 19 - value :LEGACY_FEED_TYPE_READ_ONLY, 20 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - FeedMappingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FeedMappingErrorEnum").msgclass - FeedMappingErrorEnum::FeedMappingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FeedMappingErrorEnum.FeedMappingError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/field_error_pb.rb b/lib/google/ads/google_ads/v12/errors/field_error_pb.rb deleted file mode 100644 index 98e05c707..000000000 --- a/lib/google/ads/google_ads/v12/errors/field_error_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/field_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/field_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.FieldErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.FieldErrorEnum.FieldError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :REQUIRED, 2 - value :IMMUTABLE_FIELD, 3 - value :INVALID_VALUE, 4 - value :VALUE_MUST_BE_UNSET, 5 - value :REQUIRED_NONEMPTY_LIST, 6 - value :FIELD_CANNOT_BE_CLEARED, 7 - value :BLOCKED_VALUE, 9 - value :FIELD_CAN_ONLY_BE_CLEARED, 10 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - FieldErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FieldErrorEnum").msgclass - FieldErrorEnum::FieldError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FieldErrorEnum.FieldError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/field_mask_error_pb.rb b/lib/google/ads/google_ads/v12/errors/field_mask_error_pb.rb deleted file mode 100644 index d74ba7474..000000000 --- a/lib/google/ads/google_ads/v12/errors/field_mask_error_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/field_mask_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/field_mask_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.FieldMaskErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.FieldMaskErrorEnum.FieldMaskError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :FIELD_MASK_MISSING, 5 - value :FIELD_MASK_NOT_ALLOWED, 4 - value :FIELD_NOT_FOUND, 2 - value :FIELD_HAS_SUBFIELDS, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - FieldMaskErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FieldMaskErrorEnum").msgclass - FieldMaskErrorEnum::FieldMaskError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FieldMaskErrorEnum.FieldMaskError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/function_error_pb.rb b/lib/google/ads/google_ads/v12/errors/function_error_pb.rb deleted file mode 100644 index 8f380031a..000000000 --- a/lib/google/ads/google_ads/v12/errors/function_error_pb.rb +++ /dev/null @@ -1,44 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/function_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/function_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.FunctionErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.FunctionErrorEnum.FunctionError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_FUNCTION_FORMAT, 2 - value :DATA_TYPE_MISMATCH, 3 - value :INVALID_CONJUNCTION_OPERANDS, 4 - value :INVALID_NUMBER_OF_OPERANDS, 5 - value :INVALID_OPERAND_TYPE, 6 - value :INVALID_OPERATOR, 7 - value :INVALID_REQUEST_CONTEXT_TYPE, 8 - value :INVALID_FUNCTION_FOR_CALL_PLACEHOLDER, 9 - value :INVALID_FUNCTION_FOR_PLACEHOLDER, 10 - value :INVALID_OPERAND, 11 - value :MISSING_CONSTANT_OPERAND_VALUE, 12 - value :INVALID_CONSTANT_OPERAND_VALUE, 13 - value :INVALID_NESTING, 14 - value :MULTIPLE_FEED_IDS_NOT_SUPPORTED, 15 - value :INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA, 16 - value :INVALID_ATTRIBUTE_NAME, 17 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - FunctionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FunctionErrorEnum").msgclass - FunctionErrorEnum::FunctionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FunctionErrorEnum.FunctionError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/function_parsing_error_pb.rb b/lib/google/ads/google_ads/v12/errors/function_parsing_error_pb.rb deleted file mode 100644 index 83e94f108..000000000 --- a/lib/google/ads/google_ads/v12/errors/function_parsing_error_pb.rb +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/function_parsing_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/function_parsing_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.FunctionParsingErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.FunctionParsingErrorEnum.FunctionParsingError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NO_MORE_INPUT, 2 - value :EXPECTED_CHARACTER, 3 - value :UNEXPECTED_SEPARATOR, 4 - value :UNMATCHED_LEFT_BRACKET, 5 - value :UNMATCHED_RIGHT_BRACKET, 6 - value :TOO_MANY_NESTED_FUNCTIONS, 7 - value :MISSING_RIGHT_HAND_OPERAND, 8 - value :INVALID_OPERATOR_NAME, 9 - value :FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER, 10 - value :NO_OPERANDS, 11 - value :TOO_MANY_OPERANDS, 12 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - FunctionParsingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FunctionParsingErrorEnum").msgclass - FunctionParsingErrorEnum::FunctionParsingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.FunctionParsingErrorEnum.FunctionParsingError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/geo_target_constant_suggestion_error_pb.rb b/lib/google/ads/google_ads/v12/errors/geo_target_constant_suggestion_error_pb.rb deleted file mode 100644 index 05bd4c48b..000000000 --- a/lib/google/ads/google_ads/v12/errors/geo_target_constant_suggestion_error_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/geo_target_constant_suggestion_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/geo_target_constant_suggestion_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.GeoTargetConstantSuggestionErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :LOCATION_NAME_SIZE_LIMIT, 2 - value :LOCATION_NAME_LIMIT, 3 - value :INVALID_COUNTRY_CODE, 4 - value :REQUEST_PARAMETERS_UNSET, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - GeoTargetConstantSuggestionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.GeoTargetConstantSuggestionErrorEnum").msgclass - GeoTargetConstantSuggestionErrorEnum::GeoTargetConstantSuggestionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/header_error_pb.rb b/lib/google/ads/google_ads/v12/errors/header_error_pb.rb deleted file mode 100644 index 9b4a213b8..000000000 --- a/lib/google/ads/google_ads/v12/errors/header_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/header_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/header_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.HeaderErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.HeaderErrorEnum.HeaderError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_LOGIN_CUSTOMER_ID, 3 - value :INVALID_LINKED_CUSTOMER_ID, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - HeaderErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.HeaderErrorEnum").msgclass - HeaderErrorEnum::HeaderError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.HeaderErrorEnum.HeaderError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/id_error_pb.rb b/lib/google/ads/google_ads/v12/errors/id_error_pb.rb deleted file mode 100644 index 191026bf1..000000000 --- a/lib/google/ads/google_ads/v12/errors/id_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/id_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/id_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.IdErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.IdErrorEnum.IdError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NOT_FOUND, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - IdErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.IdErrorEnum").msgclass - IdErrorEnum::IdError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.IdErrorEnum.IdError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/image_error_pb.rb b/lib/google/ads/google_ads/v12/errors/image_error_pb.rb deleted file mode 100644 index 13a2fbe41..000000000 --- a/lib/google/ads/google_ads/v12/errors/image_error_pb.rb +++ /dev/null @@ -1,67 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/image_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/image_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ImageErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ImageErrorEnum.ImageError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_IMAGE, 2 - value :STORAGE_ERROR, 3 - value :BAD_REQUEST, 4 - value :UNEXPECTED_SIZE, 5 - value :ANIMATED_NOT_ALLOWED, 6 - value :ANIMATION_TOO_LONG, 7 - value :SERVER_ERROR, 8 - value :CMYK_JPEG_NOT_ALLOWED, 9 - value :FLASH_NOT_ALLOWED, 10 - value :FLASH_WITHOUT_CLICKTAG, 11 - value :FLASH_ERROR_AFTER_FIXING_CLICK_TAG, 12 - value :ANIMATED_VISUAL_EFFECT, 13 - value :FLASH_ERROR, 14 - value :LAYOUT_PROBLEM, 15 - value :PROBLEM_READING_IMAGE_FILE, 16 - value :ERROR_STORING_IMAGE, 17 - value :ASPECT_RATIO_NOT_ALLOWED, 18 - value :FLASH_HAS_NETWORK_OBJECTS, 19 - value :FLASH_HAS_NETWORK_METHODS, 20 - value :FLASH_HAS_URL, 21 - value :FLASH_HAS_MOUSE_TRACKING, 22 - value :FLASH_HAS_RANDOM_NUM, 23 - value :FLASH_SELF_TARGETS, 24 - value :FLASH_BAD_GETURL_TARGET, 25 - value :FLASH_VERSION_NOT_SUPPORTED, 26 - value :FLASH_WITHOUT_HARD_CODED_CLICK_URL, 27 - value :INVALID_FLASH_FILE, 28 - value :FAILED_TO_FIX_CLICK_TAG_IN_FLASH, 29 - value :FLASH_ACCESSES_NETWORK_RESOURCES, 30 - value :FLASH_EXTERNAL_JS_CALL, 31 - value :FLASH_EXTERNAL_FS_CALL, 32 - value :FILE_TOO_LARGE, 33 - value :IMAGE_DATA_TOO_LARGE, 34 - value :IMAGE_PROCESSING_ERROR, 35 - value :IMAGE_TOO_SMALL, 36 - value :INVALID_INPUT, 37 - value :PROBLEM_READING_FILE, 38 - value :IMAGE_CONSTRAINTS_VIOLATED, 39 - value :FORMAT_NOT_ALLOWED, 40 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ImageErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ImageErrorEnum").msgclass - ImageErrorEnum::ImageError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ImageErrorEnum.ImageError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/internal_error_pb.rb b/lib/google/ads/google_ads/v12/errors/internal_error_pb.rb deleted file mode 100644 index 3b0ddea1c..000000000 --- a/lib/google/ads/google_ads/v12/errors/internal_error_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/internal_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/internal_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.InternalErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.InternalErrorEnum.InternalError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INTERNAL_ERROR, 2 - value :ERROR_CODE_NOT_PUBLISHED, 3 - value :TRANSIENT_ERROR, 4 - value :DEADLINE_EXCEEDED, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - InternalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.InternalErrorEnum").msgclass - InternalErrorEnum::InternalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.InternalErrorEnum.InternalError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/invoice_error_pb.rb b/lib/google/ads/google_ads/v12/errors/invoice_error_pb.rb deleted file mode 100644 index 244d560bb..000000000 --- a/lib/google/ads/google_ads/v12/errors/invoice_error_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/invoice_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/invoice_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.InvoiceErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.InvoiceErrorEnum.InvoiceError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :YEAR_MONTH_TOO_OLD, 2 - value :NOT_INVOICED_CUSTOMER, 3 - value :BILLING_SETUP_NOT_APPROVED, 4 - value :BILLING_SETUP_NOT_ON_MONTHLY_INVOICING, 5 - value :NON_SERVING_CUSTOMER, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - InvoiceErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.InvoiceErrorEnum").msgclass - InvoiceErrorEnum::InvoiceError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.InvoiceErrorEnum.InvoiceError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/keyword_plan_ad_group_error_pb.rb b/lib/google/ads/google_ads/v12/errors/keyword_plan_ad_group_error_pb.rb deleted file mode 100644 index 043d8f97a..000000000 --- a/lib/google/ads/google_ads/v12/errors/keyword_plan_ad_group_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/keyword_plan_ad_group_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/keyword_plan_ad_group_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.KeywordPlanAdGroupErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_NAME, 2 - value :DUPLICATE_NAME, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - KeywordPlanAdGroupErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.KeywordPlanAdGroupErrorEnum").msgclass - KeywordPlanAdGroupErrorEnum::KeywordPlanAdGroupError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/keyword_plan_ad_group_keyword_error_pb.rb b/lib/google/ads/google_ads/v12/errors/keyword_plan_ad_group_keyword_error_pb.rb deleted file mode 100644 index 2b7e66faa..000000000 --- a/lib/google/ads/google_ads/v12/errors/keyword_plan_ad_group_keyword_error_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/keyword_plan_ad_group_keyword_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/keyword_plan_ad_group_keyword_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.KeywordPlanAdGroupKeywordErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.KeywordPlanAdGroupKeywordErrorEnum.KeywordPlanAdGroupKeywordError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_KEYWORD_MATCH_TYPE, 2 - value :DUPLICATE_KEYWORD, 3 - value :KEYWORD_TEXT_TOO_LONG, 4 - value :KEYWORD_HAS_INVALID_CHARS, 5 - value :KEYWORD_HAS_TOO_MANY_WORDS, 6 - value :INVALID_KEYWORD_TEXT, 7 - value :NEGATIVE_KEYWORD_HAS_CPC_BID, 8 - value :NEW_BMM_KEYWORDS_NOT_ALLOWED, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - KeywordPlanAdGroupKeywordErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.KeywordPlanAdGroupKeywordErrorEnum").msgclass - KeywordPlanAdGroupKeywordErrorEnum::KeywordPlanAdGroupKeywordError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.KeywordPlanAdGroupKeywordErrorEnum.KeywordPlanAdGroupKeywordError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/keyword_plan_campaign_error_pb.rb b/lib/google/ads/google_ads/v12/errors/keyword_plan_campaign_error_pb.rb deleted file mode 100644 index 43358ef10..000000000 --- a/lib/google/ads/google_ads/v12/errors/keyword_plan_campaign_error_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/keyword_plan_campaign_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/keyword_plan_campaign_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.KeywordPlanCampaignErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.KeywordPlanCampaignErrorEnum.KeywordPlanCampaignError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_NAME, 2 - value :INVALID_LANGUAGES, 3 - value :INVALID_GEOS, 4 - value :DUPLICATE_NAME, 5 - value :MAX_GEOS_EXCEEDED, 6 - value :MAX_LANGUAGES_EXCEEDED, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - KeywordPlanCampaignErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.KeywordPlanCampaignErrorEnum").msgclass - KeywordPlanCampaignErrorEnum::KeywordPlanCampaignError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.KeywordPlanCampaignErrorEnum.KeywordPlanCampaignError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/keyword_plan_campaign_keyword_error_pb.rb b/lib/google/ads/google_ads/v12/errors/keyword_plan_campaign_keyword_error_pb.rb deleted file mode 100644 index 6d86eae75..000000000 --- a/lib/google/ads/google_ads/v12/errors/keyword_plan_campaign_keyword_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/keyword_plan_campaign_keyword_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/keyword_plan_campaign_keyword_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.KeywordPlanCampaignKeywordErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.KeywordPlanCampaignKeywordErrorEnum.KeywordPlanCampaignKeywordError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CAMPAIGN_KEYWORD_IS_POSITIVE, 8 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - KeywordPlanCampaignKeywordErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.KeywordPlanCampaignKeywordErrorEnum").msgclass - KeywordPlanCampaignKeywordErrorEnum::KeywordPlanCampaignKeywordError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.KeywordPlanCampaignKeywordErrorEnum.KeywordPlanCampaignKeywordError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/keyword_plan_error_pb.rb b/lib/google/ads/google_ads/v12/errors/keyword_plan_error_pb.rb deleted file mode 100644 index 1bfef1e60..000000000 --- a/lib/google/ads/google_ads/v12/errors/keyword_plan_error_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/keyword_plan_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/keyword_plan_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.KeywordPlanErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.KeywordPlanErrorEnum.KeywordPlanError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :BID_MULTIPLIER_OUT_OF_RANGE, 2 - value :BID_TOO_HIGH, 3 - value :BID_TOO_LOW, 4 - value :BID_TOO_MANY_FRACTIONAL_DIGITS, 5 - value :DAILY_BUDGET_TOO_LOW, 6 - value :DAILY_BUDGET_TOO_MANY_FRACTIONAL_DIGITS, 7 - value :INVALID_VALUE, 8 - value :KEYWORD_PLAN_HAS_NO_KEYWORDS, 9 - value :KEYWORD_PLAN_NOT_ENABLED, 10 - value :KEYWORD_PLAN_NOT_FOUND, 11 - value :MISSING_BID, 13 - value :MISSING_FORECAST_PERIOD, 14 - value :INVALID_FORECAST_DATE_RANGE, 15 - value :INVALID_NAME, 16 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - KeywordPlanErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.KeywordPlanErrorEnum").msgclass - KeywordPlanErrorEnum::KeywordPlanError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.KeywordPlanErrorEnum.KeywordPlanError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/keyword_plan_idea_error_pb.rb b/lib/google/ads/google_ads/v12/errors/keyword_plan_idea_error_pb.rb deleted file mode 100644 index a169ae9bb..000000000 --- a/lib/google/ads/google_ads/v12/errors/keyword_plan_idea_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/keyword_plan_idea_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/keyword_plan_idea_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.KeywordPlanIdeaErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.KeywordPlanIdeaErrorEnum.KeywordPlanIdeaError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :URL_CRAWL_ERROR, 2 - value :INVALID_VALUE, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - KeywordPlanIdeaErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.KeywordPlanIdeaErrorEnum").msgclass - KeywordPlanIdeaErrorEnum::KeywordPlanIdeaError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.KeywordPlanIdeaErrorEnum.KeywordPlanIdeaError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/label_error_pb.rb b/lib/google/ads/google_ads/v12/errors/label_error_pb.rb deleted file mode 100644 index 24527273c..000000000 --- a/lib/google/ads/google_ads/v12/errors/label_error_pb.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/label_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/label_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.LabelErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.LabelErrorEnum.LabelError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CANNOT_APPLY_INACTIVE_LABEL, 2 - value :CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION, 3 - value :CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION, 4 - value :EXCEEDED_LABEL_LIMIT_PER_TYPE, 5 - value :INVALID_RESOURCE_FOR_MANAGER_LABEL, 6 - value :DUPLICATE_NAME, 7 - value :INVALID_LABEL_NAME, 8 - value :CANNOT_ATTACH_LABEL_TO_DRAFT, 9 - value :CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER, 10 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - LabelErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.LabelErrorEnum").msgclass - LabelErrorEnum::LabelError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.LabelErrorEnum.LabelError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/language_code_error_pb.rb b/lib/google/ads/google_ads/v12/errors/language_code_error_pb.rb deleted file mode 100644 index 1abb79115..000000000 --- a/lib/google/ads/google_ads/v12/errors/language_code_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/language_code_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/language_code_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.LanguageCodeErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.LanguageCodeErrorEnum.LanguageCodeError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :LANGUAGE_CODE_NOT_FOUND, 2 - value :INVALID_LANGUAGE_CODE, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - LanguageCodeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.LanguageCodeErrorEnum").msgclass - LanguageCodeErrorEnum::LanguageCodeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.LanguageCodeErrorEnum.LanguageCodeError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/list_operation_error_pb.rb b/lib/google/ads/google_ads/v12/errors/list_operation_error_pb.rb deleted file mode 100644 index a3bfb6559..000000000 --- a/lib/google/ads/google_ads/v12/errors/list_operation_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/list_operation_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/list_operation_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ListOperationErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ListOperationErrorEnum.ListOperationError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :REQUIRED_FIELD_MISSING, 7 - value :DUPLICATE_VALUES, 8 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ListOperationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ListOperationErrorEnum").msgclass - ListOperationErrorEnum::ListOperationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ListOperationErrorEnum.ListOperationError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/manager_link_error_pb.rb b/lib/google/ads/google_ads/v12/errors/manager_link_error_pb.rb deleted file mode 100644 index 8fd763ade..000000000 --- a/lib/google/ads/google_ads/v12/errors/manager_link_error_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/manager_link_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/manager_link_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ManagerLinkErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ManagerLinkErrorEnum.ManagerLinkError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ACCOUNTS_NOT_COMPATIBLE_FOR_LINKING, 2 - value :TOO_MANY_MANAGERS, 3 - value :TOO_MANY_INVITES, 4 - value :ALREADY_INVITED_BY_THIS_MANAGER, 5 - value :ALREADY_MANAGED_BY_THIS_MANAGER, 6 - value :ALREADY_MANAGED_IN_HIERARCHY, 7 - value :DUPLICATE_CHILD_FOUND, 8 - value :CLIENT_HAS_NO_ADMIN_USER, 9 - value :MAX_DEPTH_EXCEEDED, 10 - value :CYCLE_NOT_ALLOWED, 11 - value :TOO_MANY_ACCOUNTS, 12 - value :TOO_MANY_ACCOUNTS_AT_MANAGER, 13 - value :NON_OWNER_USER_CANNOT_MODIFY_LINK, 14 - value :SUSPENDED_ACCOUNT_CANNOT_ADD_CLIENTS, 15 - value :CLIENT_OUTSIDE_TREE, 16 - value :INVALID_STATUS_CHANGE, 17 - value :INVALID_CHANGE, 18 - value :CUSTOMER_CANNOT_MANAGE_SELF, 19 - value :CREATING_ENABLED_LINK_NOT_ALLOWED, 20 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ManagerLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ManagerLinkErrorEnum").msgclass - ManagerLinkErrorEnum::ManagerLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ManagerLinkErrorEnum.ManagerLinkError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/media_bundle_error_pb.rb b/lib/google/ads/google_ads/v12/errors/media_bundle_error_pb.rb deleted file mode 100644 index 688ba781c..000000000 --- a/lib/google/ads/google_ads/v12/errors/media_bundle_error_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/media_bundle_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/media_bundle_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.MediaBundleErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.MediaBundleErrorEnum.MediaBundleError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :BAD_REQUEST, 3 - value :DOUBLECLICK_BUNDLE_NOT_ALLOWED, 4 - value :EXTERNAL_URL_NOT_ALLOWED, 5 - value :FILE_TOO_LARGE, 6 - value :GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED, 7 - value :INVALID_INPUT, 8 - value :INVALID_MEDIA_BUNDLE, 9 - value :INVALID_MEDIA_BUNDLE_ENTRY, 10 - value :INVALID_MIME_TYPE, 11 - value :INVALID_PATH, 12 - value :INVALID_URL_REFERENCE, 13 - value :MEDIA_DATA_TOO_LARGE, 14 - value :MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY, 15 - value :SERVER_ERROR, 16 - value :STORAGE_ERROR, 17 - value :SWIFFY_BUNDLE_NOT_ALLOWED, 18 - value :TOO_MANY_FILES, 19 - value :UNEXPECTED_SIZE, 20 - value :UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT, 21 - value :UNSUPPORTED_HTML5_FEATURE, 22 - value :URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT, 23 - value :CUSTOM_EXIT_NOT_ALLOWED, 24 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - MediaBundleErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.MediaBundleErrorEnum").msgclass - MediaBundleErrorEnum::MediaBundleError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.MediaBundleErrorEnum.MediaBundleError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/media_file_error_pb.rb b/lib/google/ads/google_ads/v12/errors/media_file_error_pb.rb deleted file mode 100644 index fa90ea91f..000000000 --- a/lib/google/ads/google_ads/v12/errors/media_file_error_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/media_file_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/media_file_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.MediaFileErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.MediaFileErrorEnum.MediaFileError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CANNOT_CREATE_STANDARD_ICON, 2 - value :CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES, 3 - value :CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA, 4 - value :DUPLICATE_MEDIA, 5 - value :EMPTY_FIELD, 6 - value :RESOURCE_REFERENCED_IN_MULTIPLE_OPS, 7 - value :FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE, 8 - value :INVALID_MEDIA_FILE_ID, 9 - value :INVALID_MEDIA_SUB_TYPE, 10 - value :INVALID_MEDIA_FILE_TYPE, 11 - value :INVALID_MIME_TYPE, 12 - value :INVALID_REFERENCE_ID, 13 - value :INVALID_YOU_TUBE_ID, 14 - value :MEDIA_FILE_FAILED_TRANSCODING, 15 - value :MEDIA_NOT_TRANSCODED, 16 - value :MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE, 17 - value :NO_FIELDS_SPECIFIED, 18 - value :NULL_REFERENCE_ID_AND_MEDIA_ID, 19 - value :TOO_LONG, 20 - value :UNSUPPORTED_TYPE, 21 - value :YOU_TUBE_SERVICE_UNAVAILABLE, 22 - value :YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION, 23 - value :YOU_TUBE_VIDEO_NOT_FOUND, 24 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - MediaFileErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.MediaFileErrorEnum").msgclass - MediaFileErrorEnum::MediaFileError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.MediaFileErrorEnum.MediaFileError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/media_upload_error_pb.rb b/lib/google/ads/google_ads/v12/errors/media_upload_error_pb.rb deleted file mode 100644 index 8e4862e9f..000000000 --- a/lib/google/ads/google_ads/v12/errors/media_upload_error_pb.rb +++ /dev/null @@ -1,62 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/media_upload_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/media_upload_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.MediaUploadErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.MediaUploadErrorEnum.MediaUploadError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :FILE_TOO_BIG, 2 - value :UNPARSEABLE_IMAGE, 3 - value :ANIMATED_IMAGE_NOT_ALLOWED, 4 - value :FORMAT_NOT_ALLOWED, 5 - value :EXTERNAL_URL_NOT_ALLOWED, 6 - value :INVALID_URL_REFERENCE, 7 - value :MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY, 8 - value :ANIMATED_VISUAL_EFFECT, 9 - value :ANIMATION_TOO_LONG, 10 - value :ASPECT_RATIO_NOT_ALLOWED, 11 - value :AUDIO_NOT_ALLOWED_IN_MEDIA_BUNDLE, 12 - value :CMYK_JPEG_NOT_ALLOWED, 13 - value :FLASH_NOT_ALLOWED, 14 - value :FRAME_RATE_TOO_HIGH, 15 - value :GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED, 16 - value :IMAGE_CONSTRAINTS_VIOLATED, 17 - value :INVALID_MEDIA_BUNDLE, 18 - value :INVALID_MEDIA_BUNDLE_ENTRY, 19 - value :INVALID_MIME_TYPE, 20 - value :INVALID_PATH, 21 - value :LAYOUT_PROBLEM, 22 - value :MALFORMED_URL, 23 - value :MEDIA_BUNDLE_NOT_ALLOWED, 24 - value :MEDIA_BUNDLE_NOT_COMPATIBLE_TO_PRODUCT_TYPE, 25 - value :MEDIA_BUNDLE_REJECTED_BY_MULTIPLE_ASSET_SPECS, 26 - value :TOO_MANY_FILES_IN_MEDIA_BUNDLE, 27 - value :UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT, 28 - value :UNSUPPORTED_HTML5_FEATURE, 29 - value :URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT, 30 - value :VIDEO_FILE_NAME_TOO_LONG, 31 - value :VIDEO_MULTIPLE_FILES_WITH_SAME_NAME, 32 - value :VIDEO_NOT_ALLOWED_IN_MEDIA_BUNDLE, 33 - value :CANNOT_UPLOAD_MEDIA_TYPE_THROUGH_API, 34 - value :DIMENSIONS_NOT_ALLOWED, 35 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - MediaUploadErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.MediaUploadErrorEnum").msgclass - MediaUploadErrorEnum::MediaUploadError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.MediaUploadErrorEnum.MediaUploadError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/merchant_center_error_pb.rb b/lib/google/ads/google_ads/v12/errors/merchant_center_error_pb.rb deleted file mode 100644 index 82decad0f..000000000 --- a/lib/google/ads/google_ads/v12/errors/merchant_center_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/merchant_center_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/merchant_center_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.MerchantCenterErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.MerchantCenterErrorEnum.MerchantCenterError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :MERCHANT_ID_CANNOT_BE_ACCESSED, 2 - value :CUSTOMER_NOT_ALLOWED_FOR_SHOPPING_PERFORMANCE_MAX, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - MerchantCenterErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.MerchantCenterErrorEnum").msgclass - MerchantCenterErrorEnum::MerchantCenterError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.MerchantCenterErrorEnum.MerchantCenterError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/multiplier_error_pb.rb b/lib/google/ads/google_ads/v12/errors/multiplier_error_pb.rb deleted file mode 100644 index b37d8e94b..000000000 --- a/lib/google/ads/google_ads/v12/errors/multiplier_error_pb.rb +++ /dev/null @@ -1,40 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/multiplier_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/multiplier_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.MultiplierErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.MultiplierErrorEnum.MultiplierError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :MULTIPLIER_TOO_HIGH, 2 - value :MULTIPLIER_TOO_LOW, 3 - value :TOO_MANY_FRACTIONAL_DIGITS, 4 - value :MULTIPLIER_NOT_ALLOWED_FOR_BIDDING_STRATEGY, 5 - value :MULTIPLIER_NOT_ALLOWED_WHEN_BASE_BID_IS_MISSING, 6 - value :NO_MULTIPLIER_SPECIFIED, 7 - value :MULTIPLIER_CAUSES_BID_TO_EXCEED_DAILY_BUDGET, 8 - value :MULTIPLIER_CAUSES_BID_TO_EXCEED_MONTHLY_BUDGET, 9 - value :MULTIPLIER_CAUSES_BID_TO_EXCEED_CUSTOM_BUDGET, 10 - value :MULTIPLIER_CAUSES_BID_TO_EXCEED_MAX_ALLOWED_BID, 11 - value :BID_LESS_THAN_MIN_ALLOWED_BID_WITH_MULTIPLIER, 12 - value :MULTIPLIER_AND_BIDDING_STRATEGY_TYPE_MISMATCH, 13 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - MultiplierErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.MultiplierErrorEnum").msgclass - MultiplierErrorEnum::MultiplierError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.MultiplierErrorEnum.MultiplierError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/mutate_error_pb.rb b/lib/google/ads/google_ads/v12/errors/mutate_error_pb.rb deleted file mode 100644 index 54625d8fa..000000000 --- a/lib/google/ads/google_ads/v12/errors/mutate_error_pb.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/mutate_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/mutate_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.MutateErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.MutateErrorEnum.MutateError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :RESOURCE_NOT_FOUND, 3 - value :ID_EXISTS_IN_MULTIPLE_MUTATES, 7 - value :INCONSISTENT_FIELD_VALUES, 8 - value :MUTATE_NOT_ALLOWED, 9 - value :RESOURCE_NOT_IN_GOOGLE_ADS, 10 - value :RESOURCE_ALREADY_EXISTS, 11 - value :RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY, 12 - value :OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE, 16 - value :RESOURCE_READ_ONLY, 13 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - MutateErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.MutateErrorEnum").msgclass - MutateErrorEnum::MutateError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.MutateErrorEnum.MutateError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/new_resource_creation_error_pb.rb b/lib/google/ads/google_ads/v12/errors/new_resource_creation_error_pb.rb deleted file mode 100644 index 7f606dd92..000000000 --- a/lib/google/ads/google_ads/v12/errors/new_resource_creation_error_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/new_resource_creation_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/new_resource_creation_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.NewResourceCreationErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.NewResourceCreationErrorEnum.NewResourceCreationError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CANNOT_SET_ID_FOR_CREATE, 2 - value :DUPLICATE_TEMP_IDS, 3 - value :TEMP_ID_RESOURCE_HAD_ERRORS, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - NewResourceCreationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.NewResourceCreationErrorEnum").msgclass - NewResourceCreationErrorEnum::NewResourceCreationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.NewResourceCreationErrorEnum.NewResourceCreationError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/not_allowlisted_error_pb.rb b/lib/google/ads/google_ads/v12/errors/not_allowlisted_error_pb.rb deleted file mode 100644 index 330ab8391..000000000 --- a/lib/google/ads/google_ads/v12/errors/not_allowlisted_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/not_allowlisted_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/not_allowlisted_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.NotAllowlistedErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.NotAllowlistedErrorEnum.NotAllowlistedError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CUSTOMER_NOT_ALLOWLISTED_FOR_THIS_FEATURE, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - NotAllowlistedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.NotAllowlistedErrorEnum").msgclass - NotAllowlistedErrorEnum::NotAllowlistedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.NotAllowlistedErrorEnum.NotAllowlistedError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/not_empty_error_pb.rb b/lib/google/ads/google_ads/v12/errors/not_empty_error_pb.rb deleted file mode 100644 index 7488565f1..000000000 --- a/lib/google/ads/google_ads/v12/errors/not_empty_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/not_empty_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/not_empty_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.NotEmptyErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.NotEmptyErrorEnum.NotEmptyError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :EMPTY_LIST, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - NotEmptyErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.NotEmptyErrorEnum").msgclass - NotEmptyErrorEnum::NotEmptyError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.NotEmptyErrorEnum.NotEmptyError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/null_error_pb.rb b/lib/google/ads/google_ads/v12/errors/null_error_pb.rb deleted file mode 100644 index 4bb9ff817..000000000 --- a/lib/google/ads/google_ads/v12/errors/null_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/null_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/null_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.NullErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.NullErrorEnum.NullError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NULL_CONTENT, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - NullErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.NullErrorEnum").msgclass - NullErrorEnum::NullError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.NullErrorEnum.NullError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/offline_user_data_job_error_pb.rb b/lib/google/ads/google_ads/v12/errors/offline_user_data_job_error_pb.rb deleted file mode 100644 index 9a4d03fd0..000000000 --- a/lib/google/ads/google_ads/v12/errors/offline_user_data_job_error_pb.rb +++ /dev/null @@ -1,66 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/offline_user_data_job_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/offline_user_data_job_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.OfflineUserDataJobErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.OfflineUserDataJobErrorEnum.OfflineUserDataJobError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_USER_LIST_ID, 3 - value :INVALID_USER_LIST_TYPE, 4 - value :NOT_ON_ALLOWLIST_FOR_USER_ID, 33 - value :INCOMPATIBLE_UPLOAD_KEY_TYPE, 6 - value :MISSING_USER_IDENTIFIER, 7 - value :INVALID_MOBILE_ID_FORMAT, 8 - value :TOO_MANY_USER_IDENTIFIERS, 9 - value :NOT_ON_ALLOWLIST_FOR_STORE_SALES_DIRECT, 31 - value :NOT_ON_ALLOWLIST_FOR_UNIFIED_STORE_SALES, 32 - value :INVALID_PARTNER_ID, 11 - value :INVALID_ENCODING, 12 - value :INVALID_COUNTRY_CODE, 13 - value :INCOMPATIBLE_USER_IDENTIFIER, 14 - value :FUTURE_TRANSACTION_TIME, 15 - value :INVALID_CONVERSION_ACTION, 16 - value :MOBILE_ID_NOT_SUPPORTED, 17 - value :INVALID_OPERATION_ORDER, 18 - value :CONFLICTING_OPERATION, 19 - value :EXTERNAL_UPDATE_ID_ALREADY_EXISTS, 21 - value :JOB_ALREADY_STARTED, 22 - value :REMOVE_NOT_SUPPORTED, 23 - value :REMOVE_ALL_NOT_SUPPORTED, 24 - value :INVALID_SHA256_FORMAT, 25 - value :CUSTOM_KEY_DISABLED, 26 - value :CUSTOM_KEY_NOT_PREDEFINED, 27 - value :CUSTOM_KEY_NOT_SET, 29 - value :CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS, 30 - value :ATTRIBUTES_NOT_APPLICABLE_FOR_CUSTOMER_MATCH_USER_LIST, 34 - value :LIFETIME_VALUE_BUCKET_NOT_IN_RANGE, 35 - value :INCOMPATIBLE_USER_IDENTIFIER_FOR_ATTRIBUTES, 36 - value :FUTURE_TIME_NOT_ALLOWED, 37 - value :LAST_PURCHASE_TIME_LESS_THAN_ACQUISITION_TIME, 38 - value :CUSTOMER_IDENTIFIER_NOT_ALLOWED, 39 - value :INVALID_ITEM_ID, 40 - value :FIRST_PURCHASE_TIME_GREATER_THAN_LAST_PURCHASE_TIME, 42 - value :INVALID_LIFECYCLE_STAGE, 43 - value :INVALID_EVENT_VALUE, 44 - value :EVENT_ATTRIBUTE_ALL_FIELDS_ARE_REQUIRED, 45 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - OfflineUserDataJobErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.OfflineUserDataJobErrorEnum").msgclass - OfflineUserDataJobErrorEnum::OfflineUserDataJobError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.OfflineUserDataJobErrorEnum.OfflineUserDataJobError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/operation_access_denied_error_pb.rb b/lib/google/ads/google_ads/v12/errors/operation_access_denied_error_pb.rb deleted file mode 100644 index e3aa526c6..000000000 --- a/lib/google/ads/google_ads/v12/errors/operation_access_denied_error_pb.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/operation_access_denied_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/operation_access_denied_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.OperationAccessDeniedErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.OperationAccessDeniedErrorEnum.OperationAccessDeniedError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ACTION_NOT_PERMITTED, 2 - value :CREATE_OPERATION_NOT_PERMITTED, 3 - value :REMOVE_OPERATION_NOT_PERMITTED, 4 - value :UPDATE_OPERATION_NOT_PERMITTED, 5 - value :MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT, 6 - value :OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE, 7 - value :CREATE_AS_REMOVED_NOT_PERMITTED, 8 - value :OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE, 9 - value :OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE, 10 - value :MUTATE_NOT_PERMITTED_FOR_CUSTOMER, 11 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - OperationAccessDeniedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.OperationAccessDeniedErrorEnum").msgclass - OperationAccessDeniedErrorEnum::OperationAccessDeniedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.OperationAccessDeniedErrorEnum.OperationAccessDeniedError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/operator_error_pb.rb b/lib/google/ads/google_ads/v12/errors/operator_error_pb.rb deleted file mode 100644 index e767d8c82..000000000 --- a/lib/google/ads/google_ads/v12/errors/operator_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/operator_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/operator_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.OperatorErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.OperatorErrorEnum.OperatorError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :OPERATOR_NOT_SUPPORTED, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - OperatorErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.OperatorErrorEnum").msgclass - OperatorErrorEnum::OperatorError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.OperatorErrorEnum.OperatorError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/partial_failure_error_pb.rb b/lib/google/ads/google_ads/v12/errors/partial_failure_error_pb.rb deleted file mode 100644 index ddf7a9102..000000000 --- a/lib/google/ads/google_ads/v12/errors/partial_failure_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/partial_failure_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/partial_failure_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.PartialFailureErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.PartialFailureErrorEnum.PartialFailureError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :PARTIAL_FAILURE_MODE_REQUIRED, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - PartialFailureErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.PartialFailureErrorEnum").msgclass - PartialFailureErrorEnum::PartialFailureError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.PartialFailureErrorEnum.PartialFailureError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/payments_account_error_pb.rb b/lib/google/ads/google_ads/v12/errors/payments_account_error_pb.rb deleted file mode 100644 index d1be7f25f..000000000 --- a/lib/google/ads/google_ads/v12/errors/payments_account_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/payments_account_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/payments_account_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.PaymentsAccountErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.PaymentsAccountErrorEnum.PaymentsAccountError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NOT_SUPPORTED_FOR_MANAGER_CUSTOMER, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - PaymentsAccountErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.PaymentsAccountErrorEnum").msgclass - PaymentsAccountErrorEnum::PaymentsAccountError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.PaymentsAccountErrorEnum.PaymentsAccountError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/policy_finding_error_pb.rb b/lib/google/ads/google_ads/v12/errors/policy_finding_error_pb.rb deleted file mode 100644 index 5011dc50b..000000000 --- a/lib/google/ads/google_ads/v12/errors/policy_finding_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/policy_finding_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/policy_finding_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.PolicyFindingErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.PolicyFindingErrorEnum.PolicyFindingError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :POLICY_FINDING, 2 - value :POLICY_TOPIC_NOT_FOUND, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - PolicyFindingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.PolicyFindingErrorEnum").msgclass - PolicyFindingErrorEnum::PolicyFindingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.PolicyFindingErrorEnum.PolicyFindingError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/policy_validation_parameter_error_pb.rb b/lib/google/ads/google_ads/v12/errors/policy_validation_parameter_error_pb.rb deleted file mode 100644 index bc3531eb6..000000000 --- a/lib/google/ads/google_ads/v12/errors/policy_validation_parameter_error_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/policy_validation_parameter_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/policy_validation_parameter_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.PolicyValidationParameterErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.PolicyValidationParameterErrorEnum.PolicyValidationParameterError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :UNSUPPORTED_AD_TYPE_FOR_IGNORABLE_POLICY_TOPICS, 2 - value :UNSUPPORTED_AD_TYPE_FOR_EXEMPT_POLICY_VIOLATION_KEYS, 3 - value :CANNOT_SET_BOTH_IGNORABLE_POLICY_TOPICS_AND_EXEMPT_POLICY_VIOLATION_KEYS, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - PolicyValidationParameterErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.PolicyValidationParameterErrorEnum").msgclass - PolicyValidationParameterErrorEnum::PolicyValidationParameterError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.PolicyValidationParameterErrorEnum.PolicyValidationParameterError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/policy_violation_error_pb.rb b/lib/google/ads/google_ads/v12/errors/policy_violation_error_pb.rb deleted file mode 100644 index 45ea896c6..000000000 --- a/lib/google/ads/google_ads/v12/errors/policy_violation_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/policy_violation_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/policy_violation_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.PolicyViolationErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.PolicyViolationErrorEnum.PolicyViolationError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :POLICY_ERROR, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - PolicyViolationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.PolicyViolationErrorEnum").msgclass - PolicyViolationErrorEnum::PolicyViolationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.PolicyViolationErrorEnum.PolicyViolationError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/query_error_pb.rb b/lib/google/ads/google_ads/v12/errors/query_error_pb.rb deleted file mode 100644 index 963215d14..000000000 --- a/lib/google/ads/google_ads/v12/errors/query_error_pb.rb +++ /dev/null @@ -1,83 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/query_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/query_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.QueryErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.QueryErrorEnum.QueryError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :QUERY_ERROR, 50 - value :BAD_ENUM_CONSTANT, 18 - value :BAD_ESCAPE_SEQUENCE, 7 - value :BAD_FIELD_NAME, 12 - value :BAD_LIMIT_VALUE, 15 - value :BAD_NUMBER, 5 - value :BAD_OPERATOR, 3 - value :BAD_PARAMETER_NAME, 61 - value :BAD_PARAMETER_VALUE, 62 - value :BAD_RESOURCE_TYPE_IN_FROM_CLAUSE, 45 - value :BAD_SYMBOL, 2 - value :BAD_VALUE, 4 - value :DATE_RANGE_TOO_WIDE, 36 - value :DATE_RANGE_TOO_NARROW, 60 - value :EXPECTED_AND, 30 - value :EXPECTED_BY, 14 - value :EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE, 37 - value :EXPECTED_FILTERS_ON_DATE_RANGE, 55 - value :EXPECTED_FROM, 44 - value :EXPECTED_LIST, 41 - value :EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE, 16 - value :EXPECTED_SELECT, 13 - value :EXPECTED_SINGLE_VALUE, 42 - value :EXPECTED_VALUE_WITH_BETWEEN_OPERATOR, 29 - value :INVALID_DATE_FORMAT, 38 - value :MISALIGNED_DATE_FOR_FILTER, 64 - value :INVALID_STRING_VALUE, 57 - value :INVALID_VALUE_WITH_BETWEEN_OPERATOR, 26 - value :INVALID_VALUE_WITH_DURING_OPERATOR, 22 - value :INVALID_VALUE_WITH_LIKE_OPERATOR, 56 - value :OPERATOR_FIELD_MISMATCH, 35 - value :PROHIBITED_EMPTY_LIST_IN_CONDITION, 28 - value :PROHIBITED_ENUM_CONSTANT, 54 - value :PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE, 31 - value :PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE, 40 - value :PROHIBITED_FIELD_IN_SELECT_CLAUSE, 23 - value :PROHIBITED_FIELD_IN_WHERE_CLAUSE, 24 - value :PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE, 43 - value :PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE, 48 - value :PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE, 58 - value :PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE, 49 - value :PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE, 51 - value :PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE, 53 - value :LIMIT_VALUE_TOO_LOW, 25 - value :PROHIBITED_NEWLINE_IN_STRING, 8 - value :PROHIBITED_VALUE_COMBINATION_IN_LIST, 10 - value :PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR, 21 - value :STRING_NOT_TERMINATED, 6 - value :TOO_MANY_SEGMENTS, 34 - value :UNEXPECTED_END_OF_QUERY, 9 - value :UNEXPECTED_FROM_CLAUSE, 47 - value :UNRECOGNIZED_FIELD, 32 - value :UNEXPECTED_INPUT, 11 - value :REQUESTED_METRICS_FOR_MANAGER, 59 - value :FILTER_HAS_TOO_MANY_VALUES, 63 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - QueryErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.QueryErrorEnum").msgclass - QueryErrorEnum::QueryError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.QueryErrorEnum.QueryError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/quota_error_pb.rb b/lib/google/ads/google_ads/v12/errors/quota_error_pb.rb deleted file mode 100644 index 07de8d92b..000000000 --- a/lib/google/ads/google_ads/v12/errors/quota_error_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/quota_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/quota_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.QuotaErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.QuotaErrorEnum.QuotaError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :RESOURCE_EXHAUSTED, 2 - value :ACCESS_PROHIBITED, 3 - value :RESOURCE_TEMPORARILY_EXHAUSTED, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - QuotaErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.QuotaErrorEnum").msgclass - QuotaErrorEnum::QuotaError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.QuotaErrorEnum.QuotaError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/range_error_pb.rb b/lib/google/ads/google_ads/v12/errors/range_error_pb.rb deleted file mode 100644 index 605bb45d5..000000000 --- a/lib/google/ads/google_ads/v12/errors/range_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/range_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/range_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.RangeErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.RangeErrorEnum.RangeError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :TOO_LOW, 2 - value :TOO_HIGH, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - RangeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.RangeErrorEnum").msgclass - RangeErrorEnum::RangeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.RangeErrorEnum.RangeError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/reach_plan_error_pb.rb b/lib/google/ads/google_ads/v12/errors/reach_plan_error_pb.rb deleted file mode 100644 index f6f1cab6a..000000000 --- a/lib/google/ads/google_ads/v12/errors/reach_plan_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/reach_plan_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/reach_plan_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ReachPlanErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ReachPlanErrorEnum.ReachPlanError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :NOT_FORECASTABLE_MISSING_RATE, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ReachPlanErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ReachPlanErrorEnum").msgclass - ReachPlanErrorEnum::ReachPlanError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ReachPlanErrorEnum.ReachPlanError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/recommendation_error_pb.rb b/lib/google/ads/google_ads/v12/errors/recommendation_error_pb.rb deleted file mode 100644 index 373b56e4c..000000000 --- a/lib/google/ads/google_ads/v12/errors/recommendation_error_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/recommendation_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/recommendation_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.RecommendationErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.RecommendationErrorEnum.RecommendationError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :BUDGET_AMOUNT_TOO_SMALL, 2 - value :BUDGET_AMOUNT_TOO_LARGE, 3 - value :INVALID_BUDGET_AMOUNT, 4 - value :POLICY_ERROR, 5 - value :INVALID_BID_AMOUNT, 6 - value :ADGROUP_KEYWORD_LIMIT, 7 - value :RECOMMENDATION_ALREADY_APPLIED, 8 - value :RECOMMENDATION_INVALIDATED, 9 - value :TOO_MANY_OPERATIONS, 10 - value :NO_OPERATIONS, 11 - value :DIFFERENT_TYPES_NOT_SUPPORTED, 12 - value :DUPLICATE_RESOURCE_NAME, 13 - value :RECOMMENDATION_ALREADY_DISMISSED, 14 - value :INVALID_APPLY_REQUEST, 15 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - RecommendationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.RecommendationErrorEnum").msgclass - RecommendationErrorEnum::RecommendationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.RecommendationErrorEnum.RecommendationError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/region_code_error_pb.rb b/lib/google/ads/google_ads/v12/errors/region_code_error_pb.rb deleted file mode 100644 index cd19ab1b1..000000000 --- a/lib/google/ads/google_ads/v12/errors/region_code_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/region_code_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/region_code_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.RegionCodeErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.RegionCodeErrorEnum.RegionCodeError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_REGION_CODE, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - RegionCodeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.RegionCodeErrorEnum").msgclass - RegionCodeErrorEnum::RegionCodeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.RegionCodeErrorEnum.RegionCodeError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/request_error_pb.rb b/lib/google/ads/google_ads/v12/errors/request_error_pb.rb deleted file mode 100644 index 7fb132481..000000000 --- a/lib/google/ads/google_ads/v12/errors/request_error_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/request_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/request_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.RequestErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.RequestErrorEnum.RequestError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :RESOURCE_NAME_MISSING, 3 - value :RESOURCE_NAME_MALFORMED, 4 - value :BAD_RESOURCE_ID, 17 - value :INVALID_CUSTOMER_ID, 16 - value :OPERATION_REQUIRED, 5 - value :RESOURCE_NOT_FOUND, 6 - value :INVALID_PAGE_TOKEN, 7 - value :EXPIRED_PAGE_TOKEN, 8 - value :INVALID_PAGE_SIZE, 22 - value :REQUIRED_FIELD_MISSING, 9 - value :IMMUTABLE_FIELD, 11 - value :TOO_MANY_MUTATE_OPERATIONS, 13 - value :CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT, 14 - value :CANNOT_MODIFY_FOREIGN_FIELD, 15 - value :INVALID_ENUM_VALUE, 18 - value :DEVELOPER_TOKEN_PARAMETER_MISSING, 19 - value :LOGIN_CUSTOMER_ID_PARAMETER_MISSING, 20 - value :VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN, 21 - value :CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS, 29 - value :CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS, 30 - value :INCONSISTENT_RETURN_SUMMARY_ROW_VALUE, 31 - value :TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED, 32 - value :RPC_DEADLINE_TOO_SHORT, 33 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - RequestErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.RequestErrorEnum").msgclass - RequestErrorEnum::RequestError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.RequestErrorEnum.RequestError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/resource_access_denied_error_pb.rb b/lib/google/ads/google_ads/v12/errors/resource_access_denied_error_pb.rb deleted file mode 100644 index 355764531..000000000 --- a/lib/google/ads/google_ads/v12/errors/resource_access_denied_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/resource_access_denied_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/resource_access_denied_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ResourceAccessDeniedErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ResourceAccessDeniedErrorEnum.ResourceAccessDeniedError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :WRITE_ACCESS_DENIED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ResourceAccessDeniedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ResourceAccessDeniedErrorEnum").msgclass - ResourceAccessDeniedErrorEnum::ResourceAccessDeniedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ResourceAccessDeniedErrorEnum.ResourceAccessDeniedError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/resource_count_limit_exceeded_error_pb.rb b/lib/google/ads/google_ads/v12/errors/resource_count_limit_exceeded_error_pb.rb deleted file mode 100644 index 5a8e0faf1..000000000 --- a/lib/google/ads/google_ads/v12/errors/resource_count_limit_exceeded_error_pb.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/resource_count_limit_exceeded_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/resource_count_limit_exceeded_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ResourceCountLimitExceededErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ACCOUNT_LIMIT, 2 - value :CAMPAIGN_LIMIT, 3 - value :ADGROUP_LIMIT, 4 - value :AD_GROUP_AD_LIMIT, 5 - value :AD_GROUP_CRITERION_LIMIT, 6 - value :SHARED_SET_LIMIT, 7 - value :MATCHING_FUNCTION_LIMIT, 8 - value :RESPONSE_ROW_LIMIT_EXCEEDED, 9 - value :RESOURCE_LIMIT, 10 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ResourceCountLimitExceededErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ResourceCountLimitExceededErrorEnum").msgclass - ResourceCountLimitExceededErrorEnum::ResourceCountLimitExceededError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/setting_error_pb.rb b/lib/google/ads/google_ads/v12/errors/setting_error_pb.rb deleted file mode 100644 index c33450cfa..000000000 --- a/lib/google/ads/google_ads/v12/errors/setting_error_pb.rb +++ /dev/null @@ -1,40 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/setting_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/setting_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.SettingErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.SettingErrorEnum.SettingError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :SETTING_TYPE_IS_NOT_AVAILABLE, 3 - value :SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN, 4 - value :TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP, 5 - value :TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL, 6 - value :TARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP, 7 - value :DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT, 8 - value :DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME, 9 - value :DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME, 10 - value :DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE, 11 - value :TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN, 12 - value :SETTING_VALUE_NOT_COMPATIBLE_WITH_CAMPAIGN, 20 - value :BID_ONLY_IS_NOT_ALLOWED_TO_BE_MODIFIED_WITH_CUSTOMER_MATCH_TARGETING, 21 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - SettingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.SettingErrorEnum").msgclass - SettingErrorEnum::SettingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.SettingErrorEnum.SettingError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/shared_criterion_error_pb.rb b/lib/google/ads/google_ads/v12/errors/shared_criterion_error_pb.rb deleted file mode 100644 index c5c0e2d98..000000000 --- a/lib/google/ads/google_ads/v12/errors/shared_criterion_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/shared_criterion_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/shared_criterion_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.SharedCriterionErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.SharedCriterionErrorEnum.SharedCriterionError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - SharedCriterionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.SharedCriterionErrorEnum").msgclass - SharedCriterionErrorEnum::SharedCriterionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.SharedCriterionErrorEnum.SharedCriterionError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/shared_set_error_pb.rb b/lib/google/ads/google_ads/v12/errors/shared_set_error_pb.rb deleted file mode 100644 index 47fd27a26..000000000 --- a/lib/google/ads/google_ads/v12/errors/shared_set_error_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/shared_set_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/shared_set_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.SharedSetErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.SharedSetErrorEnum.SharedSetError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE, 2 - value :DUPLICATE_NAME, 3 - value :SHARED_SET_REMOVED, 4 - value :SHARED_SET_IN_USE, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - SharedSetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.SharedSetErrorEnum").msgclass - SharedSetErrorEnum::SharedSetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.SharedSetErrorEnum.SharedSetError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/size_limit_error_pb.rb b/lib/google/ads/google_ads/v12/errors/size_limit_error_pb.rb deleted file mode 100644 index 400b3fd0d..000000000 --- a/lib/google/ads/google_ads/v12/errors/size_limit_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/size_limit_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/size_limit_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.SizeLimitErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.SizeLimitErrorEnum.SizeLimitError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :REQUEST_SIZE_LIMIT_EXCEEDED, 2 - value :RESPONSE_SIZE_LIMIT_EXCEEDED, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - SizeLimitErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.SizeLimitErrorEnum").msgclass - SizeLimitErrorEnum::SizeLimitError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.SizeLimitErrorEnum.SizeLimitError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/smart_campaign_error_pb.rb b/lib/google/ads/google_ads/v12/errors/smart_campaign_error_pb.rb deleted file mode 100644 index 4bf264cc3..000000000 --- a/lib/google/ads/google_ads/v12/errors/smart_campaign_error_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/smart_campaign_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/smart_campaign_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.SmartCampaignErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.SmartCampaignErrorEnum.SmartCampaignError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_BUSINESS_LOCATION_ID, 2 - value :INVALID_CAMPAIGN, 3 - value :BUSINESS_NAME_OR_BUSINESS_LOCATION_ID_MISSING, 4 - value :REQUIRED_SUGGESTION_FIELD_MISSING, 5 - value :GEO_TARGETS_REQUIRED, 6 - value :CANNOT_DETERMINE_SUGGESTION_LOCALE, 7 - value :FINAL_URL_NOT_CRAWLABLE, 8 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - SmartCampaignErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.SmartCampaignErrorEnum").msgclass - SmartCampaignErrorEnum::SmartCampaignError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.SmartCampaignErrorEnum.SmartCampaignError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/string_format_error_pb.rb b/lib/google/ads/google_ads/v12/errors/string_format_error_pb.rb deleted file mode 100644 index df3551715..000000000 --- a/lib/google/ads/google_ads/v12/errors/string_format_error_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/string_format_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/string_format_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.StringFormatErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.StringFormatErrorEnum.StringFormatError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ILLEGAL_CHARS, 2 - value :INVALID_FORMAT, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - StringFormatErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.StringFormatErrorEnum").msgclass - StringFormatErrorEnum::StringFormatError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.StringFormatErrorEnum.StringFormatError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/string_length_error_pb.rb b/lib/google/ads/google_ads/v12/errors/string_length_error_pb.rb deleted file mode 100644 index 5aecce53c..000000000 --- a/lib/google/ads/google_ads/v12/errors/string_length_error_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/string_length_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/string_length_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.StringLengthErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.StringLengthErrorEnum.StringLengthError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :EMPTY, 4 - value :TOO_SHORT, 2 - value :TOO_LONG, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - StringLengthErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.StringLengthErrorEnum").msgclass - StringLengthErrorEnum::StringLengthError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.StringLengthErrorEnum.StringLengthError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/third_party_app_analytics_link_error_pb.rb b/lib/google/ads/google_ads/v12/errors/third_party_app_analytics_link_error_pb.rb deleted file mode 100644 index a6d24ea4c..000000000 --- a/lib/google/ads/google_ads/v12/errors/third_party_app_analytics_link_error_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/third_party_app_analytics_link_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/third_party_app_analytics_link_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.ThirdPartyAppAnalyticsLinkErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.ThirdPartyAppAnalyticsLinkErrorEnum.ThirdPartyAppAnalyticsLinkError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_ANALYTICS_PROVIDER_ID, 2 - value :INVALID_MOBILE_APP_ID, 3 - value :MOBILE_APP_IS_NOT_ENABLED, 4 - value :CANNOT_REGENERATE_SHAREABLE_LINK_ID_FOR_REMOVED_LINK, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - ThirdPartyAppAnalyticsLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ThirdPartyAppAnalyticsLinkErrorEnum").msgclass - ThirdPartyAppAnalyticsLinkErrorEnum::ThirdPartyAppAnalyticsLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.ThirdPartyAppAnalyticsLinkErrorEnum.ThirdPartyAppAnalyticsLinkError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/time_zone_error_pb.rb b/lib/google/ads/google_ads/v12/errors/time_zone_error_pb.rb deleted file mode 100644 index 2f2eaff09..000000000 --- a/lib/google/ads/google_ads/v12/errors/time_zone_error_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/time_zone_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/time_zone_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.TimeZoneErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.TimeZoneErrorEnum.TimeZoneError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_TIME_ZONE, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - TimeZoneErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.TimeZoneErrorEnum").msgclass - TimeZoneErrorEnum::TimeZoneError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.TimeZoneErrorEnum.TimeZoneError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/url_field_error_pb.rb b/lib/google/ads/google_ads/v12/errors/url_field_error_pb.rb deleted file mode 100644 index 35408f382..000000000 --- a/lib/google/ads/google_ads/v12/errors/url_field_error_pb.rb +++ /dev/null @@ -1,81 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/url_field_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/url_field_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.UrlFieldErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.UrlFieldErrorEnum.UrlFieldError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :INVALID_TRACKING_URL_TEMPLATE, 2 - value :INVALID_TAG_IN_TRACKING_URL_TEMPLATE, 3 - value :MISSING_TRACKING_URL_TEMPLATE_TAG, 4 - value :MISSING_PROTOCOL_IN_TRACKING_URL_TEMPLATE, 5 - value :INVALID_PROTOCOL_IN_TRACKING_URL_TEMPLATE, 6 - value :MALFORMED_TRACKING_URL_TEMPLATE, 7 - value :MISSING_HOST_IN_TRACKING_URL_TEMPLATE, 8 - value :INVALID_TLD_IN_TRACKING_URL_TEMPLATE, 9 - value :REDUNDANT_NESTED_TRACKING_URL_TEMPLATE_TAG, 10 - value :INVALID_FINAL_URL, 11 - value :INVALID_TAG_IN_FINAL_URL, 12 - value :REDUNDANT_NESTED_FINAL_URL_TAG, 13 - value :MISSING_PROTOCOL_IN_FINAL_URL, 14 - value :INVALID_PROTOCOL_IN_FINAL_URL, 15 - value :MALFORMED_FINAL_URL, 16 - value :MISSING_HOST_IN_FINAL_URL, 17 - value :INVALID_TLD_IN_FINAL_URL, 18 - value :INVALID_FINAL_MOBILE_URL, 19 - value :INVALID_TAG_IN_FINAL_MOBILE_URL, 20 - value :REDUNDANT_NESTED_FINAL_MOBILE_URL_TAG, 21 - value :MISSING_PROTOCOL_IN_FINAL_MOBILE_URL, 22 - value :INVALID_PROTOCOL_IN_FINAL_MOBILE_URL, 23 - value :MALFORMED_FINAL_MOBILE_URL, 24 - value :MISSING_HOST_IN_FINAL_MOBILE_URL, 25 - value :INVALID_TLD_IN_FINAL_MOBILE_URL, 26 - value :INVALID_FINAL_APP_URL, 27 - value :INVALID_TAG_IN_FINAL_APP_URL, 28 - value :REDUNDANT_NESTED_FINAL_APP_URL_TAG, 29 - value :MULTIPLE_APP_URLS_FOR_OSTYPE, 30 - value :INVALID_OSTYPE, 31 - value :INVALID_PROTOCOL_FOR_APP_URL, 32 - value :INVALID_PACKAGE_ID_FOR_APP_URL, 33 - value :URL_CUSTOM_PARAMETERS_COUNT_EXCEEDS_LIMIT, 34 - value :INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_KEY, 39 - value :INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_VALUE, 40 - value :INVALID_TAG_IN_URL_CUSTOM_PARAMETER_VALUE, 41 - value :REDUNDANT_NESTED_URL_CUSTOM_PARAMETER_TAG, 42 - value :MISSING_PROTOCOL, 43 - value :INVALID_PROTOCOL, 52 - value :INVALID_URL, 44 - value :DESTINATION_URL_DEPRECATED, 45 - value :INVALID_TAG_IN_URL, 46 - value :MISSING_URL_TAG, 47 - value :DUPLICATE_URL_ID, 48 - value :INVALID_URL_ID, 49 - value :FINAL_URL_SUFFIX_MALFORMED, 50 - value :INVALID_TAG_IN_FINAL_URL_SUFFIX, 51 - value :INVALID_TOP_LEVEL_DOMAIN, 53 - value :MALFORMED_TOP_LEVEL_DOMAIN, 54 - value :MALFORMED_URL, 55 - value :MISSING_HOST, 56 - value :NULL_CUSTOM_PARAMETER_VALUE, 57 - value :VALUE_TRACK_PARAMETER_NOT_SUPPORTED, 58 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - UrlFieldErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.UrlFieldErrorEnum").msgclass - UrlFieldErrorEnum::UrlFieldError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.UrlFieldErrorEnum.UrlFieldError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/user_data_error_pb.rb b/lib/google/ads/google_ads/v12/errors/user_data_error_pb.rb deleted file mode 100644 index 1d7a03337..000000000 --- a/lib/google/ads/google_ads/v12/errors/user_data_error_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/user_data_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/user_data_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.UserDataErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.UserDataErrorEnum.UserDataError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :OPERATIONS_FOR_CUSTOMER_MATCH_NOT_ALLOWED, 2 - value :TOO_MANY_USER_IDENTIFIERS, 3 - value :USER_LIST_NOT_APPLICABLE, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - UserDataErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.UserDataErrorEnum").msgclass - UserDataErrorEnum::UserDataError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.UserDataErrorEnum.UserDataError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/user_list_error_pb.rb b/lib/google/ads/google_ads/v12/errors/user_list_error_pb.rb deleted file mode 100644 index daff3c2b9..000000000 --- a/lib/google/ads/google_ads/v12/errors/user_list_error_pb.rb +++ /dev/null @@ -1,54 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/user_list_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/user_list_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.UserListErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.UserListErrorEnum.UserListError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :EXTERNAL_REMARKETING_USER_LIST_MUTATE_NOT_SUPPORTED, 2 - value :CONCRETE_TYPE_REQUIRED, 3 - value :CONVERSION_TYPE_ID_REQUIRED, 4 - value :DUPLICATE_CONVERSION_TYPES, 5 - value :INVALID_CONVERSION_TYPE, 6 - value :INVALID_DESCRIPTION, 7 - value :INVALID_NAME, 8 - value :INVALID_TYPE, 9 - value :CAN_NOT_ADD_LOGICAL_LIST_AS_LOGICAL_LIST_OPERAND, 10 - value :INVALID_USER_LIST_LOGICAL_RULE_OPERAND, 11 - value :NAME_ALREADY_USED, 12 - value :NEW_CONVERSION_TYPE_NAME_REQUIRED, 13 - value :CONVERSION_TYPE_NAME_ALREADY_USED, 14 - value :OWNERSHIP_REQUIRED_FOR_SET, 15 - value :USER_LIST_MUTATE_NOT_SUPPORTED, 16 - value :INVALID_RULE, 17 - value :INVALID_DATE_RANGE, 27 - value :CAN_NOT_MUTATE_SENSITIVE_USERLIST, 28 - value :MAX_NUM_RULEBASED_USERLISTS, 29 - value :CANNOT_MODIFY_BILLABLE_RECORD_COUNT, 30 - value :APP_ID_NOT_SET, 31 - value :USERLIST_NAME_IS_RESERVED_FOR_SYSTEM_LIST, 32 - value :ADVERTISER_NOT_ON_ALLOWLIST_FOR_USING_UPLOADED_DATA, 37 - value :RULE_TYPE_IS_NOT_SUPPORTED, 34 - value :CAN_NOT_ADD_A_SIMILAR_USERLIST_AS_LOGICAL_LIST_OPERAND, 35 - value :CAN_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_OTHER_LISTS, 36 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - UserListErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.UserListErrorEnum").msgclass - UserListErrorEnum::UserListError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.UserListErrorEnum.UserListError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/errors/youtube_video_registration_error_pb.rb b/lib/google/ads/google_ads/v12/errors/youtube_video_registration_error_pb.rb deleted file mode 100644 index 0a8dde290..000000000 --- a/lib/google/ads/google_ads/v12/errors/youtube_video_registration_error_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/errors/youtube_video_registration_error.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/errors/youtube_video_registration_error.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.errors.YoutubeVideoRegistrationErrorEnum" do - end - add_enum "google.ads.googleads.v12.errors.YoutubeVideoRegistrationErrorEnum.YoutubeVideoRegistrationError" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :VIDEO_NOT_FOUND, 2 - value :VIDEO_NOT_ACCESSIBLE, 3 - value :VIDEO_NOT_ELIGIBLE, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Errors - YoutubeVideoRegistrationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.YoutubeVideoRegistrationErrorEnum").msgclass - YoutubeVideoRegistrationErrorEnum::YoutubeVideoRegistrationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.errors.YoutubeVideoRegistrationErrorEnum.YoutubeVideoRegistrationError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/accessible_bidding_strategy_pb.rb b/lib/google/ads/google_ads/v12/resources/accessible_bidding_strategy_pb.rb deleted file mode 100644 index c8e0118bb..000000000 --- a/lib/google/ads/google_ads/v12/resources/accessible_bidding_strategy_pb.rb +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/accessible_bidding_strategy.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/bidding_strategy_type_pb' -require 'google/ads/google_ads/v12/enums/target_impression_share_location_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/accessible_bidding_strategy.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AccessibleBiddingStrategy" do - optional :resource_name, :string, 1 - optional :id, :int64, 2 - optional :name, :string, 3 - optional :type, :enum, 4, "google.ads.googleads.v12.enums.BiddingStrategyTypeEnum.BiddingStrategyType" - optional :owner_customer_id, :int64, 5 - optional :owner_descriptive_name, :string, 6 - oneof :scheme do - optional :maximize_conversion_value, :message, 7, "google.ads.googleads.v12.resources.AccessibleBiddingStrategy.MaximizeConversionValue" - optional :maximize_conversions, :message, 8, "google.ads.googleads.v12.resources.AccessibleBiddingStrategy.MaximizeConversions" - optional :target_cpa, :message, 9, "google.ads.googleads.v12.resources.AccessibleBiddingStrategy.TargetCpa" - optional :target_impression_share, :message, 10, "google.ads.googleads.v12.resources.AccessibleBiddingStrategy.TargetImpressionShare" - optional :target_roas, :message, 11, "google.ads.googleads.v12.resources.AccessibleBiddingStrategy.TargetRoas" - optional :target_spend, :message, 12, "google.ads.googleads.v12.resources.AccessibleBiddingStrategy.TargetSpend" - end - end - add_message "google.ads.googleads.v12.resources.AccessibleBiddingStrategy.MaximizeConversionValue" do - optional :target_roas, :double, 1 - end - add_message "google.ads.googleads.v12.resources.AccessibleBiddingStrategy.MaximizeConversions" do - optional :target_cpa_micros, :int64, 2 - end - add_message "google.ads.googleads.v12.resources.AccessibleBiddingStrategy.TargetCpa" do - proto3_optional :target_cpa_micros, :int64, 1 - end - add_message "google.ads.googleads.v12.resources.AccessibleBiddingStrategy.TargetImpressionShare" do - optional :location, :enum, 1, "google.ads.googleads.v12.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation" - proto3_optional :location_fraction_micros, :int64, 2 - proto3_optional :cpc_bid_ceiling_micros, :int64, 3 - end - add_message "google.ads.googleads.v12.resources.AccessibleBiddingStrategy.TargetRoas" do - proto3_optional :target_roas, :double, 1 - end - add_message "google.ads.googleads.v12.resources.AccessibleBiddingStrategy.TargetSpend" do - proto3_optional :target_spend_micros, :int64, 1 - proto3_optional :cpc_bid_ceiling_micros, :int64, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AccessibleBiddingStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AccessibleBiddingStrategy").msgclass - AccessibleBiddingStrategy::MaximizeConversionValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AccessibleBiddingStrategy.MaximizeConversionValue").msgclass - AccessibleBiddingStrategy::MaximizeConversions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AccessibleBiddingStrategy.MaximizeConversions").msgclass - AccessibleBiddingStrategy::TargetCpa = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AccessibleBiddingStrategy.TargetCpa").msgclass - AccessibleBiddingStrategy::TargetImpressionShare = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AccessibleBiddingStrategy.TargetImpressionShare").msgclass - AccessibleBiddingStrategy::TargetRoas = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AccessibleBiddingStrategy.TargetRoas").msgclass - AccessibleBiddingStrategy::TargetSpend = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AccessibleBiddingStrategy.TargetSpend").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/account_budget_pb.rb b/lib/google/ads/google_ads/v12/resources/account_budget_pb.rb deleted file mode 100644 index 562c7c76c..000000000 --- a/lib/google/ads/google_ads/v12/resources/account_budget_pb.rb +++ /dev/null @@ -1,80 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/account_budget.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/account_budget_proposal_type_pb' -require 'google/ads/google_ads/v12/enums/account_budget_status_pb' -require 'google/ads/google_ads/v12/enums/spending_limit_type_pb' -require 'google/ads/google_ads/v12/enums/time_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/account_budget.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AccountBudget" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 23 - proto3_optional :billing_setup, :string, 24 - optional :status, :enum, 4, "google.ads.googleads.v12.enums.AccountBudgetStatusEnum.AccountBudgetStatus" - proto3_optional :name, :string, 25 - proto3_optional :proposed_start_date_time, :string, 26 - proto3_optional :approved_start_date_time, :string, 27 - optional :total_adjustments_micros, :int64, 33 - optional :amount_served_micros, :int64, 34 - proto3_optional :purchase_order_number, :string, 35 - proto3_optional :notes, :string, 36 - optional :pending_proposal, :message, 22, "google.ads.googleads.v12.resources.AccountBudget.PendingAccountBudgetProposal" - oneof :proposed_end_time do - optional :proposed_end_date_time, :string, 28 - optional :proposed_end_time_type, :enum, 9, "google.ads.googleads.v12.enums.TimeTypeEnum.TimeType" - end - oneof :approved_end_time do - optional :approved_end_date_time, :string, 29 - optional :approved_end_time_type, :enum, 11, "google.ads.googleads.v12.enums.TimeTypeEnum.TimeType" - end - oneof :proposed_spending_limit do - optional :proposed_spending_limit_micros, :int64, 30 - optional :proposed_spending_limit_type, :enum, 13, "google.ads.googleads.v12.enums.SpendingLimitTypeEnum.SpendingLimitType" - end - oneof :approved_spending_limit do - optional :approved_spending_limit_micros, :int64, 31 - optional :approved_spending_limit_type, :enum, 15, "google.ads.googleads.v12.enums.SpendingLimitTypeEnum.SpendingLimitType" - end - oneof :adjusted_spending_limit do - optional :adjusted_spending_limit_micros, :int64, 32 - optional :adjusted_spending_limit_type, :enum, 17, "google.ads.googleads.v12.enums.SpendingLimitTypeEnum.SpendingLimitType" - end - end - add_message "google.ads.googleads.v12.resources.AccountBudget.PendingAccountBudgetProposal" do - proto3_optional :account_budget_proposal, :string, 12 - optional :proposal_type, :enum, 2, "google.ads.googleads.v12.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType" - proto3_optional :name, :string, 13 - proto3_optional :start_date_time, :string, 14 - proto3_optional :purchase_order_number, :string, 17 - proto3_optional :notes, :string, 18 - proto3_optional :creation_date_time, :string, 19 - oneof :end_time do - optional :end_date_time, :string, 15 - optional :end_time_type, :enum, 6, "google.ads.googleads.v12.enums.TimeTypeEnum.TimeType" - end - oneof :spending_limit do - optional :spending_limit_micros, :int64, 16 - optional :spending_limit_type, :enum, 8, "google.ads.googleads.v12.enums.SpendingLimitTypeEnum.SpendingLimitType" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AccountBudget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AccountBudget").msgclass - AccountBudget::PendingAccountBudgetProposal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AccountBudget.PendingAccountBudgetProposal").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/account_budget_proposal_pb.rb b/lib/google/ads/google_ads/v12/resources/account_budget_proposal_pb.rb deleted file mode 100644 index 65fe227c0..000000000 --- a/lib/google/ads/google_ads/v12/resources/account_budget_proposal_pb.rb +++ /dev/null @@ -1,62 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/account_budget_proposal.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/account_budget_proposal_status_pb' -require 'google/ads/google_ads/v12/enums/account_budget_proposal_type_pb' -require 'google/ads/google_ads/v12/enums/spending_limit_type_pb' -require 'google/ads/google_ads/v12/enums/time_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/account_budget_proposal.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AccountBudgetProposal" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 25 - proto3_optional :billing_setup, :string, 26 - proto3_optional :account_budget, :string, 27 - optional :proposal_type, :enum, 4, "google.ads.googleads.v12.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType" - optional :status, :enum, 15, "google.ads.googleads.v12.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatus" - proto3_optional :proposed_name, :string, 28 - proto3_optional :approved_start_date_time, :string, 30 - proto3_optional :proposed_purchase_order_number, :string, 35 - proto3_optional :proposed_notes, :string, 36 - proto3_optional :creation_date_time, :string, 37 - proto3_optional :approval_date_time, :string, 38 - oneof :proposed_start_time do - optional :proposed_start_date_time, :string, 29 - optional :proposed_start_time_type, :enum, 7, "google.ads.googleads.v12.enums.TimeTypeEnum.TimeType" - end - oneof :proposed_end_time do - optional :proposed_end_date_time, :string, 31 - optional :proposed_end_time_type, :enum, 9, "google.ads.googleads.v12.enums.TimeTypeEnum.TimeType" - end - oneof :approved_end_time do - optional :approved_end_date_time, :string, 32 - optional :approved_end_time_type, :enum, 22, "google.ads.googleads.v12.enums.TimeTypeEnum.TimeType" - end - oneof :proposed_spending_limit do - optional :proposed_spending_limit_micros, :int64, 33 - optional :proposed_spending_limit_type, :enum, 11, "google.ads.googleads.v12.enums.SpendingLimitTypeEnum.SpendingLimitType" - end - oneof :approved_spending_limit do - optional :approved_spending_limit_micros, :int64, 34 - optional :approved_spending_limit_type, :enum, 24, "google.ads.googleads.v12.enums.SpendingLimitTypeEnum.SpendingLimitType" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AccountBudgetProposal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AccountBudgetProposal").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/account_link_pb.rb b/lib/google/ads/google_ads/v12/resources/account_link_pb.rb deleted file mode 100644 index 56eec71c3..000000000 --- a/lib/google/ads/google_ads/v12/resources/account_link_pb.rb +++ /dev/null @@ -1,62 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/account_link.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/account_link_status_pb' -require 'google/ads/google_ads/v12/enums/linked_account_type_pb' -require 'google/ads/google_ads/v12/enums/mobile_app_vendor_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/account_link.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AccountLink" do - optional :resource_name, :string, 1 - proto3_optional :account_link_id, :int64, 8 - optional :status, :enum, 3, "google.ads.googleads.v12.enums.AccountLinkStatusEnum.AccountLinkStatus" - optional :type, :enum, 4, "google.ads.googleads.v12.enums.LinkedAccountTypeEnum.LinkedAccountType" - oneof :linked_account do - optional :third_party_app_analytics, :message, 5, "google.ads.googleads.v12.resources.ThirdPartyAppAnalyticsLinkIdentifier" - optional :data_partner, :message, 6, "google.ads.googleads.v12.resources.DataPartnerLinkIdentifier" - optional :google_ads, :message, 7, "google.ads.googleads.v12.resources.GoogleAdsLinkIdentifier" - optional :hotel_center, :message, 9, "google.ads.googleads.v12.resources.HotelCenterLinkIdentifier" - optional :advertising_partner, :message, 10, "google.ads.googleads.v12.resources.AdvertisingPartnerLinkIdentifier" - end - end - add_message "google.ads.googleads.v12.resources.ThirdPartyAppAnalyticsLinkIdentifier" do - proto3_optional :app_analytics_provider_id, :int64, 4 - proto3_optional :app_id, :string, 5 - optional :app_vendor, :enum, 3, "google.ads.googleads.v12.enums.MobileAppVendorEnum.MobileAppVendor" - end - add_message "google.ads.googleads.v12.resources.DataPartnerLinkIdentifier" do - proto3_optional :data_partner_id, :int64, 1 - end - add_message "google.ads.googleads.v12.resources.HotelCenterLinkIdentifier" do - optional :hotel_center_id, :int64, 1 - end - add_message "google.ads.googleads.v12.resources.GoogleAdsLinkIdentifier" do - proto3_optional :customer, :string, 3 - end - add_message "google.ads.googleads.v12.resources.AdvertisingPartnerLinkIdentifier" do - proto3_optional :customer, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AccountLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AccountLink").msgclass - ThirdPartyAppAnalyticsLinkIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ThirdPartyAppAnalyticsLinkIdentifier").msgclass - DataPartnerLinkIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.DataPartnerLinkIdentifier").msgclass - HotelCenterLinkIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.HotelCenterLinkIdentifier").msgclass - GoogleAdsLinkIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.GoogleAdsLinkIdentifier").msgclass - AdvertisingPartnerLinkIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdvertisingPartnerLinkIdentifier").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_ad_asset_combination_view_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_ad_asset_combination_view_pb.rb deleted file mode 100644 index 26dc94d29..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_ad_asset_combination_view_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_ad_asset_combination_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/asset_usage_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_ad_asset_combination_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupAdAssetCombinationView" do - optional :resource_name, :string, 1 - repeated :served_assets, :message, 2, "google.ads.googleads.v12.common.AssetUsage" - proto3_optional :enabled, :bool, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupAdAssetCombinationView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupAdAssetCombinationView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_ad_asset_view_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_ad_asset_view_pb.rb deleted file mode 100644 index dcc19ff15..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_ad_asset_view_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_ad_asset_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/policy_pb' -require 'google/ads/google_ads/v12/enums/asset_field_type_pb' -require 'google/ads/google_ads/v12/enums/asset_performance_label_pb' -require 'google/ads/google_ads/v12/enums/policy_approval_status_pb' -require 'google/ads/google_ads/v12/enums/policy_review_status_pb' -require 'google/ads/google_ads/v12/enums/served_asset_field_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_ad_asset_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupAdAssetView" do - optional :resource_name, :string, 1 - proto3_optional :ad_group_ad, :string, 9 - proto3_optional :asset, :string, 10 - optional :field_type, :enum, 2, "google.ads.googleads.v12.enums.AssetFieldTypeEnum.AssetFieldType" - proto3_optional :enabled, :bool, 8 - optional :policy_summary, :message, 3, "google.ads.googleads.v12.resources.AdGroupAdAssetPolicySummary" - optional :performance_label, :enum, 4, "google.ads.googleads.v12.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel" - optional :pinned_field, :enum, 11, "google.ads.googleads.v12.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType" - end - add_message "google.ads.googleads.v12.resources.AdGroupAdAssetPolicySummary" do - repeated :policy_topic_entries, :message, 1, "google.ads.googleads.v12.common.PolicyTopicEntry" - optional :review_status, :enum, 2, "google.ads.googleads.v12.enums.PolicyReviewStatusEnum.PolicyReviewStatus" - optional :approval_status, :enum, 3, "google.ads.googleads.v12.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupAdAssetView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupAdAssetView").msgclass - AdGroupAdAssetPolicySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupAdAssetPolicySummary").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_ad_label_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_ad_label_pb.rb deleted file mode 100644 index 3d51a09a4..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_ad_label_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_ad_label.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_ad_label.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupAdLabel" do - optional :resource_name, :string, 1 - proto3_optional :ad_group_ad, :string, 4 - proto3_optional :label, :string, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupAdLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupAdLabel").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_ad_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_ad_pb.rb deleted file mode 100644 index 578719740..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_ad_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_ad.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/policy_pb' -require 'google/ads/google_ads/v12/enums/ad_group_ad_status_pb' -require 'google/ads/google_ads/v12/enums/ad_strength_pb' -require 'google/ads/google_ads/v12/enums/policy_approval_status_pb' -require 'google/ads/google_ads/v12/enums/policy_review_status_pb' -require 'google/ads/google_ads/v12/resources/ad_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_ad.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupAd" do - optional :resource_name, :string, 1 - optional :status, :enum, 3, "google.ads.googleads.v12.enums.AdGroupAdStatusEnum.AdGroupAdStatus" - proto3_optional :ad_group, :string, 9 - optional :ad, :message, 5, "google.ads.googleads.v12.resources.Ad" - optional :policy_summary, :message, 6, "google.ads.googleads.v12.resources.AdGroupAdPolicySummary" - optional :ad_strength, :enum, 7, "google.ads.googleads.v12.enums.AdStrengthEnum.AdStrength" - repeated :action_items, :string, 13 - repeated :labels, :string, 10 - end - add_message "google.ads.googleads.v12.resources.AdGroupAdPolicySummary" do - repeated :policy_topic_entries, :message, 1, "google.ads.googleads.v12.common.PolicyTopicEntry" - optional :review_status, :enum, 2, "google.ads.googleads.v12.enums.PolicyReviewStatusEnum.PolicyReviewStatus" - optional :approval_status, :enum, 3, "google.ads.googleads.v12.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupAd = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupAd").msgclass - AdGroupAdPolicySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupAdPolicySummary").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_asset_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_asset_pb.rb deleted file mode 100644 index a7d51da0f..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_asset_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_asset.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/asset_field_type_pb' -require 'google/ads/google_ads/v12/enums/asset_link_status_pb' -require 'google/ads/google_ads/v12/enums/asset_source_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_asset.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupAsset" do - optional :resource_name, :string, 1 - optional :ad_group, :string, 2 - optional :asset, :string, 3 - optional :field_type, :enum, 4, "google.ads.googleads.v12.enums.AssetFieldTypeEnum.AssetFieldType" - optional :source, :enum, 6, "google.ads.googleads.v12.enums.AssetSourceEnum.AssetSource" - optional :status, :enum, 5, "google.ads.googleads.v12.enums.AssetLinkStatusEnum.AssetLinkStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupAsset").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_asset_set_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_asset_set_pb.rb deleted file mode 100644 index 461d34b42..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_asset_set_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_asset_set.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/asset_set_link_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_asset_set.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupAssetSet" do - optional :resource_name, :string, 1 - optional :ad_group, :string, 2 - optional :asset_set, :string, 3 - optional :status, :enum, 4, "google.ads.googleads.v12.enums.AssetSetLinkStatusEnum.AssetSetLinkStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupAssetSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupAssetSet").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_audience_view_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_audience_view_pb.rb deleted file mode 100644 index b6394e527..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_audience_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_audience_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_audience_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupAudienceView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupAudienceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupAudienceView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_bid_modifier_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_bid_modifier_pb.rb deleted file mode 100644 index cac779370..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_bid_modifier_pb.rb +++ /dev/null @@ -1,43 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_bid_modifier.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criteria_pb' -require 'google/ads/google_ads/v12/enums/bid_modifier_source_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_bid_modifier.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupBidModifier" do - optional :resource_name, :string, 1 - proto3_optional :ad_group, :string, 13 - proto3_optional :criterion_id, :int64, 14 - proto3_optional :bid_modifier, :double, 15 - proto3_optional :base_ad_group, :string, 16 - optional :bid_modifier_source, :enum, 10, "google.ads.googleads.v12.enums.BidModifierSourceEnum.BidModifierSource" - oneof :criterion do - optional :hotel_date_selection_type, :message, 5, "google.ads.googleads.v12.common.HotelDateSelectionTypeInfo" - optional :hotel_advance_booking_window, :message, 6, "google.ads.googleads.v12.common.HotelAdvanceBookingWindowInfo" - optional :hotel_length_of_stay, :message, 7, "google.ads.googleads.v12.common.HotelLengthOfStayInfo" - optional :hotel_check_in_day, :message, 8, "google.ads.googleads.v12.common.HotelCheckInDayInfo" - optional :device, :message, 11, "google.ads.googleads.v12.common.DeviceInfo" - optional :preferred_content, :message, 12, "google.ads.googleads.v12.common.PreferredContentInfo" - optional :hotel_check_in_date_range, :message, 17, "google.ads.googleads.v12.common.HotelCheckInDateRangeInfo" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupBidModifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupBidModifier").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_criterion_customizer_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_criterion_customizer_pb.rb deleted file mode 100644 index 8a198b514..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_criterion_customizer_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_criterion_customizer.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/customizer_value_pb' -require 'google/ads/google_ads/v12/enums/customizer_value_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_criterion_customizer.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupCriterionCustomizer" do - optional :resource_name, :string, 1 - proto3_optional :ad_group_criterion, :string, 2 - optional :customizer_attribute, :string, 3 - optional :status, :enum, 4, "google.ads.googleads.v12.enums.CustomizerValueStatusEnum.CustomizerValueStatus" - optional :value, :message, 5, "google.ads.googleads.v12.common.CustomizerValue" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupCriterionCustomizer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupCriterionCustomizer").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_criterion_label_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_criterion_label_pb.rb deleted file mode 100644 index 89b87ce64..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_criterion_label_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_criterion_label.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_criterion_label.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupCriterionLabel" do - optional :resource_name, :string, 1 - proto3_optional :ad_group_criterion, :string, 4 - proto3_optional :label, :string, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupCriterionLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupCriterionLabel").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_criterion_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_criterion_pb.rb deleted file mode 100644 index abfe1ec4a..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_criterion_pb.rb +++ /dev/null @@ -1,103 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_criterion.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criteria_pb' -require 'google/ads/google_ads/v12/common/custom_parameter_pb' -require 'google/ads/google_ads/v12/enums/ad_group_criterion_approval_status_pb' -require 'google/ads/google_ads/v12/enums/ad_group_criterion_status_pb' -require 'google/ads/google_ads/v12/enums/bidding_source_pb' -require 'google/ads/google_ads/v12/enums/criterion_system_serving_status_pb' -require 'google/ads/google_ads/v12/enums/criterion_type_pb' -require 'google/ads/google_ads/v12/enums/quality_score_bucket_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_criterion.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupCriterion" do - optional :resource_name, :string, 1 - proto3_optional :criterion_id, :int64, 56 - optional :display_name, :string, 77 - optional :status, :enum, 3, "google.ads.googleads.v12.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus" - optional :quality_info, :message, 4, "google.ads.googleads.v12.resources.AdGroupCriterion.QualityInfo" - proto3_optional :ad_group, :string, 57 - optional :type, :enum, 25, "google.ads.googleads.v12.enums.CriterionTypeEnum.CriterionType" - proto3_optional :negative, :bool, 58 - optional :system_serving_status, :enum, 52, "google.ads.googleads.v12.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus" - optional :approval_status, :enum, 53, "google.ads.googleads.v12.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus" - repeated :disapproval_reasons, :string, 59 - repeated :labels, :string, 60 - proto3_optional :bid_modifier, :double, 61 - proto3_optional :cpc_bid_micros, :int64, 62 - proto3_optional :cpm_bid_micros, :int64, 63 - proto3_optional :cpv_bid_micros, :int64, 64 - proto3_optional :percent_cpc_bid_micros, :int64, 65 - proto3_optional :effective_cpc_bid_micros, :int64, 66 - proto3_optional :effective_cpm_bid_micros, :int64, 67 - proto3_optional :effective_cpv_bid_micros, :int64, 68 - proto3_optional :effective_percent_cpc_bid_micros, :int64, 69 - optional :effective_cpc_bid_source, :enum, 21, "google.ads.googleads.v12.enums.BiddingSourceEnum.BiddingSource" - optional :effective_cpm_bid_source, :enum, 22, "google.ads.googleads.v12.enums.BiddingSourceEnum.BiddingSource" - optional :effective_cpv_bid_source, :enum, 23, "google.ads.googleads.v12.enums.BiddingSourceEnum.BiddingSource" - optional :effective_percent_cpc_bid_source, :enum, 35, "google.ads.googleads.v12.enums.BiddingSourceEnum.BiddingSource" - optional :position_estimates, :message, 10, "google.ads.googleads.v12.resources.AdGroupCriterion.PositionEstimates" - repeated :final_urls, :string, 70 - repeated :final_mobile_urls, :string, 71 - proto3_optional :final_url_suffix, :string, 72 - proto3_optional :tracking_url_template, :string, 73 - repeated :url_custom_parameters, :message, 14, "google.ads.googleads.v12.common.CustomParameter" - oneof :criterion do - optional :keyword, :message, 27, "google.ads.googleads.v12.common.KeywordInfo" - optional :placement, :message, 28, "google.ads.googleads.v12.common.PlacementInfo" - optional :mobile_app_category, :message, 29, "google.ads.googleads.v12.common.MobileAppCategoryInfo" - optional :mobile_application, :message, 30, "google.ads.googleads.v12.common.MobileApplicationInfo" - optional :listing_group, :message, 32, "google.ads.googleads.v12.common.ListingGroupInfo" - optional :age_range, :message, 36, "google.ads.googleads.v12.common.AgeRangeInfo" - optional :gender, :message, 37, "google.ads.googleads.v12.common.GenderInfo" - optional :income_range, :message, 38, "google.ads.googleads.v12.common.IncomeRangeInfo" - optional :parental_status, :message, 39, "google.ads.googleads.v12.common.ParentalStatusInfo" - optional :user_list, :message, 42, "google.ads.googleads.v12.common.UserListInfo" - optional :youtube_video, :message, 40, "google.ads.googleads.v12.common.YouTubeVideoInfo" - optional :youtube_channel, :message, 41, "google.ads.googleads.v12.common.YouTubeChannelInfo" - optional :topic, :message, 43, "google.ads.googleads.v12.common.TopicInfo" - optional :user_interest, :message, 45, "google.ads.googleads.v12.common.UserInterestInfo" - optional :webpage, :message, 46, "google.ads.googleads.v12.common.WebpageInfo" - optional :app_payment_model, :message, 47, "google.ads.googleads.v12.common.AppPaymentModelInfo" - optional :custom_affinity, :message, 48, "google.ads.googleads.v12.common.CustomAffinityInfo" - optional :custom_intent, :message, 49, "google.ads.googleads.v12.common.CustomIntentInfo" - optional :custom_audience, :message, 74, "google.ads.googleads.v12.common.CustomAudienceInfo" - optional :combined_audience, :message, 75, "google.ads.googleads.v12.common.CombinedAudienceInfo" - optional :audience, :message, 79, "google.ads.googleads.v12.common.AudienceInfo" - end - end - add_message "google.ads.googleads.v12.resources.AdGroupCriterion.QualityInfo" do - proto3_optional :quality_score, :int32, 5 - optional :creative_quality_score, :enum, 2, "google.ads.googleads.v12.enums.QualityScoreBucketEnum.QualityScoreBucket" - optional :post_click_quality_score, :enum, 3, "google.ads.googleads.v12.enums.QualityScoreBucketEnum.QualityScoreBucket" - optional :search_predicted_ctr, :enum, 4, "google.ads.googleads.v12.enums.QualityScoreBucketEnum.QualityScoreBucket" - end - add_message "google.ads.googleads.v12.resources.AdGroupCriterion.PositionEstimates" do - proto3_optional :first_page_cpc_micros, :int64, 6 - proto3_optional :first_position_cpc_micros, :int64, 7 - proto3_optional :top_of_page_cpc_micros, :int64, 8 - proto3_optional :estimated_add_clicks_at_first_position_cpc, :int64, 9 - proto3_optional :estimated_add_cost_at_first_position_cpc, :int64, 10 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupCriterion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupCriterion").msgclass - AdGroupCriterion::QualityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupCriterion.QualityInfo").msgclass - AdGroupCriterion::PositionEstimates = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupCriterion.PositionEstimates").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_criterion_simulation_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_criterion_simulation_pb.rb deleted file mode 100644 index bef3bc885..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_criterion_simulation_pb.rb +++ /dev/null @@ -1,40 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_criterion_simulation.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/simulation_pb' -require 'google/ads/google_ads/v12/enums/simulation_modification_method_pb' -require 'google/ads/google_ads/v12/enums/simulation_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_criterion_simulation.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupCriterionSimulation" do - optional :resource_name, :string, 1 - proto3_optional :ad_group_id, :int64, 9 - proto3_optional :criterion_id, :int64, 10 - optional :type, :enum, 4, "google.ads.googleads.v12.enums.SimulationTypeEnum.SimulationType" - optional :modification_method, :enum, 5, "google.ads.googleads.v12.enums.SimulationModificationMethodEnum.SimulationModificationMethod" - proto3_optional :start_date, :string, 11 - proto3_optional :end_date, :string, 12 - oneof :point_list do - optional :cpc_bid_point_list, :message, 8, "google.ads.googleads.v12.common.CpcBidSimulationPointList" - optional :percent_cpc_bid_point_list, :message, 13, "google.ads.googleads.v12.common.PercentCpcBidSimulationPointList" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupCriterionSimulation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupCriterionSimulation").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_customizer_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_customizer_pb.rb deleted file mode 100644 index a62de7641..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_customizer_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_customizer.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/customizer_value_pb' -require 'google/ads/google_ads/v12/enums/customizer_value_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_customizer.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupCustomizer" do - optional :resource_name, :string, 1 - optional :ad_group, :string, 2 - optional :customizer_attribute, :string, 3 - optional :status, :enum, 4, "google.ads.googleads.v12.enums.CustomizerValueStatusEnum.CustomizerValueStatus" - optional :value, :message, 5, "google.ads.googleads.v12.common.CustomizerValue" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupCustomizer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupCustomizer").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_extension_setting_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_extension_setting_pb.rb deleted file mode 100644 index be07f1079..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_extension_setting_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_extension_setting.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/extension_setting_device_pb' -require 'google/ads/google_ads/v12/enums/extension_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_extension_setting.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupExtensionSetting" do - optional :resource_name, :string, 1 - optional :extension_type, :enum, 2, "google.ads.googleads.v12.enums.ExtensionTypeEnum.ExtensionType" - proto3_optional :ad_group, :string, 6 - repeated :extension_feed_items, :string, 7 - optional :device, :enum, 5, "google.ads.googleads.v12.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupExtensionSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupExtensionSetting").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_feed_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_feed_pb.rb deleted file mode 100644 index 6727973fe..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_feed_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_feed.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/matching_function_pb' -require 'google/ads/google_ads/v12/enums/feed_link_status_pb' -require 'google/ads/google_ads/v12/enums/placeholder_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_feed.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupFeed" do - optional :resource_name, :string, 1 - proto3_optional :feed, :string, 7 - proto3_optional :ad_group, :string, 8 - repeated :placeholder_types, :enum, 4, "google.ads.googleads.v12.enums.PlaceholderTypeEnum.PlaceholderType" - optional :matching_function, :message, 5, "google.ads.googleads.v12.common.MatchingFunction" - optional :status, :enum, 6, "google.ads.googleads.v12.enums.FeedLinkStatusEnum.FeedLinkStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupFeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupFeed").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_label_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_label_pb.rb deleted file mode 100644 index 9b5992e03..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_label_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_label.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_label.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupLabel" do - optional :resource_name, :string, 1 - proto3_optional :ad_group, :string, 4 - proto3_optional :label, :string, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupLabel").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_pb.rb deleted file mode 100644 index 3e66aabc4..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_pb.rb +++ /dev/null @@ -1,70 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/custom_parameter_pb' -require 'google/ads/google_ads/v12/common/explorer_auto_optimizer_setting_pb' -require 'google/ads/google_ads/v12/common/targeting_setting_pb' -require 'google/ads/google_ads/v12/enums/ad_group_ad_rotation_mode_pb' -require 'google/ads/google_ads/v12/enums/ad_group_status_pb' -require 'google/ads/google_ads/v12/enums/ad_group_type_pb' -require 'google/ads/google_ads/v12/enums/asset_field_type_pb' -require 'google/ads/google_ads/v12/enums/asset_set_type_pb' -require 'google/ads/google_ads/v12/enums/bidding_source_pb' -require 'google/ads/google_ads/v12/enums/targeting_dimension_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroup" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 34 - proto3_optional :name, :string, 35 - optional :status, :enum, 5, "google.ads.googleads.v12.enums.AdGroupStatusEnum.AdGroupStatus" - optional :type, :enum, 12, "google.ads.googleads.v12.enums.AdGroupTypeEnum.AdGroupType" - optional :ad_rotation_mode, :enum, 22, "google.ads.googleads.v12.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode" - proto3_optional :base_ad_group, :string, 36 - proto3_optional :tracking_url_template, :string, 37 - repeated :url_custom_parameters, :message, 6, "google.ads.googleads.v12.common.CustomParameter" - proto3_optional :campaign, :string, 38 - proto3_optional :cpc_bid_micros, :int64, 39 - proto3_optional :effective_cpc_bid_micros, :int64, 57 - proto3_optional :cpm_bid_micros, :int64, 40 - proto3_optional :target_cpa_micros, :int64, 41 - proto3_optional :cpv_bid_micros, :int64, 42 - proto3_optional :target_cpm_micros, :int64, 43 - proto3_optional :target_roas, :double, 44 - proto3_optional :percent_cpc_bid_micros, :int64, 45 - optional :explorer_auto_optimizer_setting, :message, 21, "google.ads.googleads.v12.common.ExplorerAutoOptimizerSetting" - optional :display_custom_bid_dimension, :enum, 23, "google.ads.googleads.v12.enums.TargetingDimensionEnum.TargetingDimension" - proto3_optional :final_url_suffix, :string, 46 - optional :targeting_setting, :message, 25, "google.ads.googleads.v12.common.TargetingSetting" - optional :audience_setting, :message, 56, "google.ads.googleads.v12.resources.AdGroup.AudienceSetting" - proto3_optional :effective_target_cpa_micros, :int64, 47 - optional :effective_target_cpa_source, :enum, 29, "google.ads.googleads.v12.enums.BiddingSourceEnum.BiddingSource" - proto3_optional :effective_target_roas, :double, 48 - optional :effective_target_roas_source, :enum, 32, "google.ads.googleads.v12.enums.BiddingSourceEnum.BiddingSource" - repeated :labels, :string, 49 - repeated :excluded_parent_asset_field_types, :enum, 54, "google.ads.googleads.v12.enums.AssetFieldTypeEnum.AssetFieldType" - repeated :excluded_parent_asset_set_types, :enum, 58, "google.ads.googleads.v12.enums.AssetSetTypeEnum.AssetSetType" - end - add_message "google.ads.googleads.v12.resources.AdGroup.AudienceSetting" do - optional :use_audience_grouped, :bool, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroup").msgclass - AdGroup::AudienceSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroup.AudienceSetting").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_group_simulation_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_group_simulation_pb.rb deleted file mode 100644 index 2090e8dcb..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_group_simulation_pb.rb +++ /dev/null @@ -1,41 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_group_simulation.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/simulation_pb' -require 'google/ads/google_ads/v12/enums/simulation_modification_method_pb' -require 'google/ads/google_ads/v12/enums/simulation_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_group_simulation.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdGroupSimulation" do - optional :resource_name, :string, 1 - proto3_optional :ad_group_id, :int64, 12 - optional :type, :enum, 3, "google.ads.googleads.v12.enums.SimulationTypeEnum.SimulationType" - optional :modification_method, :enum, 4, "google.ads.googleads.v12.enums.SimulationModificationMethodEnum.SimulationModificationMethod" - proto3_optional :start_date, :string, 13 - proto3_optional :end_date, :string, 14 - oneof :point_list do - optional :cpc_bid_point_list, :message, 8, "google.ads.googleads.v12.common.CpcBidSimulationPointList" - optional :cpv_bid_point_list, :message, 10, "google.ads.googleads.v12.common.CpvBidSimulationPointList" - optional :target_cpa_point_list, :message, 9, "google.ads.googleads.v12.common.TargetCpaSimulationPointList" - optional :target_roas_point_list, :message, 11, "google.ads.googleads.v12.common.TargetRoasSimulationPointList" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdGroupSimulation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdGroupSimulation").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_parameter_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_parameter_pb.rb deleted file mode 100644 index 8cc583490..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_parameter_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_parameter.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_parameter.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdParameter" do - optional :resource_name, :string, 1 - proto3_optional :ad_group_criterion, :string, 5 - proto3_optional :parameter_index, :int64, 6 - proto3_optional :insertion_text, :string, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdParameter").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_pb.rb deleted file mode 100644 index e3688841d..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_pb.rb +++ /dev/null @@ -1,73 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/ad_type_infos_pb' -require 'google/ads/google_ads/v12/common/custom_parameter_pb' -require 'google/ads/google_ads/v12/common/final_app_url_pb' -require 'google/ads/google_ads/v12/common/url_collection_pb' -require 'google/ads/google_ads/v12/enums/ad_type_pb' -require 'google/ads/google_ads/v12/enums/device_pb' -require 'google/ads/google_ads/v12/enums/system_managed_entity_source_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.Ad" do - optional :resource_name, :string, 37 - proto3_optional :id, :int64, 40 - repeated :final_urls, :string, 41 - repeated :final_app_urls, :message, 35, "google.ads.googleads.v12.common.FinalAppUrl" - repeated :final_mobile_urls, :string, 42 - proto3_optional :tracking_url_template, :string, 43 - proto3_optional :final_url_suffix, :string, 44 - repeated :url_custom_parameters, :message, 10, "google.ads.googleads.v12.common.CustomParameter" - proto3_optional :display_url, :string, 45 - optional :type, :enum, 5, "google.ads.googleads.v12.enums.AdTypeEnum.AdType" - proto3_optional :added_by_google_ads, :bool, 46 - optional :device_preference, :enum, 20, "google.ads.googleads.v12.enums.DeviceEnum.Device" - repeated :url_collections, :message, 26, "google.ads.googleads.v12.common.UrlCollection" - proto3_optional :name, :string, 47 - optional :system_managed_resource_source, :enum, 27, "google.ads.googleads.v12.enums.SystemManagedResourceSourceEnum.SystemManagedResourceSource" - oneof :ad_data do - optional :text_ad, :message, 6, "google.ads.googleads.v12.common.TextAdInfo" - optional :expanded_text_ad, :message, 7, "google.ads.googleads.v12.common.ExpandedTextAdInfo" - optional :call_ad, :message, 49, "google.ads.googleads.v12.common.CallAdInfo" - optional :expanded_dynamic_search_ad, :message, 14, "google.ads.googleads.v12.common.ExpandedDynamicSearchAdInfo" - optional :hotel_ad, :message, 15, "google.ads.googleads.v12.common.HotelAdInfo" - optional :shopping_smart_ad, :message, 17, "google.ads.googleads.v12.common.ShoppingSmartAdInfo" - optional :shopping_product_ad, :message, 18, "google.ads.googleads.v12.common.ShoppingProductAdInfo" - optional :image_ad, :message, 22, "google.ads.googleads.v12.common.ImageAdInfo" - optional :video_ad, :message, 24, "google.ads.googleads.v12.common.VideoAdInfo" - optional :video_responsive_ad, :message, 39, "google.ads.googleads.v12.common.VideoResponsiveAdInfo" - optional :responsive_search_ad, :message, 25, "google.ads.googleads.v12.common.ResponsiveSearchAdInfo" - optional :legacy_responsive_display_ad, :message, 28, "google.ads.googleads.v12.common.LegacyResponsiveDisplayAdInfo" - optional :app_ad, :message, 29, "google.ads.googleads.v12.common.AppAdInfo" - optional :legacy_app_install_ad, :message, 30, "google.ads.googleads.v12.common.LegacyAppInstallAdInfo" - optional :responsive_display_ad, :message, 31, "google.ads.googleads.v12.common.ResponsiveDisplayAdInfo" - optional :local_ad, :message, 32, "google.ads.googleads.v12.common.LocalAdInfo" - optional :display_upload_ad, :message, 33, "google.ads.googleads.v12.common.DisplayUploadAdInfo" - optional :app_engagement_ad, :message, 34, "google.ads.googleads.v12.common.AppEngagementAdInfo" - optional :shopping_comparison_listing_ad, :message, 36, "google.ads.googleads.v12.common.ShoppingComparisonListingAdInfo" - optional :smart_campaign_ad, :message, 48, "google.ads.googleads.v12.common.SmartCampaignAdInfo" - optional :app_pre_registration_ad, :message, 50, "google.ads.googleads.v12.common.AppPreRegistrationAdInfo" - optional :discovery_multi_asset_ad, :message, 51, "google.ads.googleads.v12.common.DiscoveryMultiAssetAdInfo" - optional :discovery_carousel_ad, :message, 52, "google.ads.googleads.v12.common.DiscoveryCarouselAdInfo" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - Ad = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Ad").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/ad_schedule_view_pb.rb b/lib/google/ads/google_ads/v12/resources/ad_schedule_view_pb.rb deleted file mode 100644 index 4428fd240..000000000 --- a/lib/google/ads/google_ads/v12/resources/ad_schedule_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/ad_schedule_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/ad_schedule_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AdScheduleView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AdScheduleView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AdScheduleView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/age_range_view_pb.rb b/lib/google/ads/google_ads/v12/resources/age_range_view_pb.rb deleted file mode 100644 index 17fb09628..000000000 --- a/lib/google/ads/google_ads/v12/resources/age_range_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/age_range_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/age_range_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AgeRangeView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AgeRangeView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AgeRangeView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/asset_field_type_view_pb.rb b/lib/google/ads/google_ads/v12/resources/asset_field_type_view_pb.rb deleted file mode 100644 index fb478751d..000000000 --- a/lib/google/ads/google_ads/v12/resources/asset_field_type_view_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/asset_field_type_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/asset_field_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/asset_field_type_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AssetFieldTypeView" do - optional :resource_name, :string, 1 - optional :field_type, :enum, 3, "google.ads.googleads.v12.enums.AssetFieldTypeEnum.AssetFieldType" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AssetFieldTypeView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AssetFieldTypeView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/asset_group_asset_pb.rb b/lib/google/ads/google_ads/v12/resources/asset_group_asset_pb.rb deleted file mode 100644 index 64d32f00e..000000000 --- a/lib/google/ads/google_ads/v12/resources/asset_group_asset_pb.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/asset_group_asset.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/policy_summary_pb' -require 'google/ads/google_ads/v12/enums/asset_field_type_pb' -require 'google/ads/google_ads/v12/enums/asset_link_status_pb' -require 'google/ads/google_ads/v12/enums/asset_performance_label_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/asset_group_asset.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AssetGroupAsset" do - optional :resource_name, :string, 1 - optional :asset_group, :string, 2 - optional :asset, :string, 3 - optional :field_type, :enum, 4, "google.ads.googleads.v12.enums.AssetFieldTypeEnum.AssetFieldType" - optional :status, :enum, 5, "google.ads.googleads.v12.enums.AssetLinkStatusEnum.AssetLinkStatus" - optional :performance_label, :enum, 6, "google.ads.googleads.v12.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel" - optional :policy_summary, :message, 7, "google.ads.googleads.v12.common.PolicySummary" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AssetGroupAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AssetGroupAsset").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/asset_group_listing_group_filter_pb.rb b/lib/google/ads/google_ads/v12/resources/asset_group_listing_group_filter_pb.rb deleted file mode 100644 index 8e2300160..000000000 --- a/lib/google/ads/google_ads/v12/resources/asset_group_listing_group_filter_pb.rb +++ /dev/null @@ -1,83 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/asset_group_listing_group_filter.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/listing_group_filter_bidding_category_level_pb' -require 'google/ads/google_ads/v12/enums/listing_group_filter_custom_attribute_index_pb' -require 'google/ads/google_ads/v12/enums/listing_group_filter_product_channel_pb' -require 'google/ads/google_ads/v12/enums/listing_group_filter_product_condition_pb' -require 'google/ads/google_ads/v12/enums/listing_group_filter_product_type_level_pb' -require 'google/ads/google_ads/v12/enums/listing_group_filter_type_enum_pb' -require 'google/ads/google_ads/v12/enums/listing_group_filter_vertical_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/asset_group_listing_group_filter.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AssetGroupListingGroupFilter" do - optional :resource_name, :string, 1 - optional :asset_group, :string, 2 - optional :id, :int64, 3 - optional :type, :enum, 4, "google.ads.googleads.v12.enums.ListingGroupFilterTypeEnum.ListingGroupFilterType" - optional :vertical, :enum, 5, "google.ads.googleads.v12.enums.ListingGroupFilterVerticalEnum.ListingGroupFilterVertical" - optional :case_value, :message, 6, "google.ads.googleads.v12.resources.ListingGroupFilterDimension" - optional :parent_listing_group_filter, :string, 7 - end - add_message "google.ads.googleads.v12.resources.ListingGroupFilterDimension" do - oneof :dimension do - optional :product_bidding_category, :message, 1, "google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductBiddingCategory" - optional :product_brand, :message, 2, "google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductBrand" - optional :product_channel, :message, 3, "google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductChannel" - optional :product_condition, :message, 4, "google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductCondition" - optional :product_custom_attribute, :message, 5, "google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductCustomAttribute" - optional :product_item_id, :message, 6, "google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductItemId" - optional :product_type, :message, 7, "google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductType" - end - end - add_message "google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductBiddingCategory" do - proto3_optional :id, :int64, 1 - optional :level, :enum, 2, "google.ads.googleads.v12.enums.ListingGroupFilterBiddingCategoryLevelEnum.ListingGroupFilterBiddingCategoryLevel" - end - add_message "google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductBrand" do - proto3_optional :value, :string, 1 - end - add_message "google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductChannel" do - optional :channel, :enum, 1, "google.ads.googleads.v12.enums.ListingGroupFilterProductChannelEnum.ListingGroupFilterProductChannel" - end - add_message "google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductCondition" do - optional :condition, :enum, 1, "google.ads.googleads.v12.enums.ListingGroupFilterProductConditionEnum.ListingGroupFilterProductCondition" - end - add_message "google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductCustomAttribute" do - proto3_optional :value, :string, 1 - optional :index, :enum, 2, "google.ads.googleads.v12.enums.ListingGroupFilterCustomAttributeIndexEnum.ListingGroupFilterCustomAttributeIndex" - end - add_message "google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductItemId" do - proto3_optional :value, :string, 1 - end - add_message "google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductType" do - proto3_optional :value, :string, 1 - optional :level, :enum, 2, "google.ads.googleads.v12.enums.ListingGroupFilterProductTypeLevelEnum.ListingGroupFilterProductTypeLevel" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AssetGroupListingGroupFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AssetGroupListingGroupFilter").msgclass - ListingGroupFilterDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ListingGroupFilterDimension").msgclass - ListingGroupFilterDimension::ProductBiddingCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductBiddingCategory").msgclass - ListingGroupFilterDimension::ProductBrand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductBrand").msgclass - ListingGroupFilterDimension::ProductChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductChannel").msgclass - ListingGroupFilterDimension::ProductCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductCondition").msgclass - ListingGroupFilterDimension::ProductCustomAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductCustomAttribute").msgclass - ListingGroupFilterDimension::ProductItemId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductItemId").msgclass - ListingGroupFilterDimension::ProductType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ListingGroupFilterDimension.ProductType").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/asset_group_pb.rb b/lib/google/ads/google_ads/v12/resources/asset_group_pb.rb deleted file mode 100644 index 32f4981bf..000000000 --- a/lib/google/ads/google_ads/v12/resources/asset_group_pb.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/asset_group.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/ad_strength_pb' -require 'google/ads/google_ads/v12/enums/asset_group_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/asset_group.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AssetGroup" do - optional :resource_name, :string, 1 - optional :id, :int64, 9 - optional :campaign, :string, 2 - optional :name, :string, 3 - repeated :final_urls, :string, 4 - repeated :final_mobile_urls, :string, 5 - optional :status, :enum, 6, "google.ads.googleads.v12.enums.AssetGroupStatusEnum.AssetGroupStatus" - optional :path1, :string, 7 - optional :path2, :string, 8 - optional :ad_strength, :enum, 10, "google.ads.googleads.v12.enums.AdStrengthEnum.AdStrength" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AssetGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AssetGroup").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/asset_group_product_group_view_pb.rb b/lib/google/ads/google_ads/v12/resources/asset_group_product_group_view_pb.rb deleted file mode 100644 index 7f442fa7f..000000000 --- a/lib/google/ads/google_ads/v12/resources/asset_group_product_group_view_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/asset_group_product_group_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/asset_group_product_group_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AssetGroupProductGroupView" do - optional :resource_name, :string, 1 - optional :asset_group, :string, 2 - optional :asset_group_listing_group_filter, :string, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AssetGroupProductGroupView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AssetGroupProductGroupView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/asset_group_signal_pb.rb b/lib/google/ads/google_ads/v12/resources/asset_group_signal_pb.rb deleted file mode 100644 index e7e702110..000000000 --- a/lib/google/ads/google_ads/v12/resources/asset_group_signal_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/asset_group_signal.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criteria_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/asset_group_signal.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AssetGroupSignal" do - optional :resource_name, :string, 1 - optional :asset_group, :string, 2 - optional :audience, :message, 3, "google.ads.googleads.v12.common.AudienceInfo" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AssetGroupSignal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AssetGroupSignal").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/asset_pb.rb b/lib/google/ads/google_ads/v12/resources/asset_pb.rb deleted file mode 100644 index bf7df735f..000000000 --- a/lib/google/ads/google_ads/v12/resources/asset_pb.rb +++ /dev/null @@ -1,78 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/asset.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/asset_types_pb' -require 'google/ads/google_ads/v12/common/custom_parameter_pb' -require 'google/ads/google_ads/v12/common/policy_pb' -require 'google/ads/google_ads/v12/enums/asset_source_pb' -require 'google/ads/google_ads/v12/enums/asset_type_pb' -require 'google/ads/google_ads/v12/enums/policy_approval_status_pb' -require 'google/ads/google_ads/v12/enums/policy_review_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/asset.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.Asset" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 11 - proto3_optional :name, :string, 12 - optional :type, :enum, 4, "google.ads.googleads.v12.enums.AssetTypeEnum.AssetType" - repeated :final_urls, :string, 14 - repeated :final_mobile_urls, :string, 16 - proto3_optional :tracking_url_template, :string, 17 - repeated :url_custom_parameters, :message, 18, "google.ads.googleads.v12.common.CustomParameter" - proto3_optional :final_url_suffix, :string, 19 - optional :source, :enum, 38, "google.ads.googleads.v12.enums.AssetSourceEnum.AssetSource" - optional :policy_summary, :message, 13, "google.ads.googleads.v12.resources.AssetPolicySummary" - oneof :asset_data do - optional :youtube_video_asset, :message, 5, "google.ads.googleads.v12.common.YoutubeVideoAsset" - optional :media_bundle_asset, :message, 6, "google.ads.googleads.v12.common.MediaBundleAsset" - optional :image_asset, :message, 7, "google.ads.googleads.v12.common.ImageAsset" - optional :text_asset, :message, 8, "google.ads.googleads.v12.common.TextAsset" - optional :lead_form_asset, :message, 9, "google.ads.googleads.v12.common.LeadFormAsset" - optional :book_on_google_asset, :message, 10, "google.ads.googleads.v12.common.BookOnGoogleAsset" - optional :promotion_asset, :message, 15, "google.ads.googleads.v12.common.PromotionAsset" - optional :callout_asset, :message, 20, "google.ads.googleads.v12.common.CalloutAsset" - optional :structured_snippet_asset, :message, 21, "google.ads.googleads.v12.common.StructuredSnippetAsset" - optional :sitelink_asset, :message, 22, "google.ads.googleads.v12.common.SitelinkAsset" - optional :page_feed_asset, :message, 23, "google.ads.googleads.v12.common.PageFeedAsset" - optional :dynamic_education_asset, :message, 24, "google.ads.googleads.v12.common.DynamicEducationAsset" - optional :mobile_app_asset, :message, 25, "google.ads.googleads.v12.common.MobileAppAsset" - optional :hotel_callout_asset, :message, 26, "google.ads.googleads.v12.common.HotelCalloutAsset" - optional :call_asset, :message, 27, "google.ads.googleads.v12.common.CallAsset" - optional :price_asset, :message, 28, "google.ads.googleads.v12.common.PriceAsset" - optional :call_to_action_asset, :message, 29, "google.ads.googleads.v12.common.CallToActionAsset" - optional :dynamic_real_estate_asset, :message, 30, "google.ads.googleads.v12.common.DynamicRealEstateAsset" - optional :dynamic_custom_asset, :message, 31, "google.ads.googleads.v12.common.DynamicCustomAsset" - optional :dynamic_hotels_and_rentals_asset, :message, 32, "google.ads.googleads.v12.common.DynamicHotelsAndRentalsAsset" - optional :dynamic_flights_asset, :message, 33, "google.ads.googleads.v12.common.DynamicFlightsAsset" - optional :discovery_carousel_card_asset, :message, 34, "google.ads.googleads.v12.common.DiscoveryCarouselCardAsset" - optional :dynamic_travel_asset, :message, 35, "google.ads.googleads.v12.common.DynamicTravelAsset" - optional :dynamic_local_asset, :message, 36, "google.ads.googleads.v12.common.DynamicLocalAsset" - optional :dynamic_jobs_asset, :message, 37, "google.ads.googleads.v12.common.DynamicJobsAsset" - optional :location_asset, :message, 39, "google.ads.googleads.v12.common.LocationAsset" - end - end - add_message "google.ads.googleads.v12.resources.AssetPolicySummary" do - repeated :policy_topic_entries, :message, 1, "google.ads.googleads.v12.common.PolicyTopicEntry" - optional :review_status, :enum, 2, "google.ads.googleads.v12.enums.PolicyReviewStatusEnum.PolicyReviewStatus" - optional :approval_status, :enum, 3, "google.ads.googleads.v12.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - Asset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Asset").msgclass - AssetPolicySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AssetPolicySummary").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/asset_set_asset_pb.rb b/lib/google/ads/google_ads/v12/resources/asset_set_asset_pb.rb deleted file mode 100644 index cfd9b3859..000000000 --- a/lib/google/ads/google_ads/v12/resources/asset_set_asset_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/asset_set_asset.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/asset_set_asset_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/asset_set_asset.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AssetSetAsset" do - optional :resource_name, :string, 1 - optional :asset_set, :string, 2 - optional :asset, :string, 3 - optional :status, :enum, 4, "google.ads.googleads.v12.enums.AssetSetAssetStatusEnum.AssetSetAssetStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AssetSetAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AssetSetAsset").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/asset_set_pb.rb b/lib/google/ads/google_ads/v12/resources/asset_set_pb.rb deleted file mode 100644 index f01931b35..000000000 --- a/lib/google/ads/google_ads/v12/resources/asset_set_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/asset_set.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/asset_set_types_pb' -require 'google/ads/google_ads/v12/enums/asset_set_status_pb' -require 'google/ads/google_ads/v12/enums/asset_set_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/asset_set.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AssetSet" do - optional :id, :int64, 6 - optional :resource_name, :string, 1 - optional :name, :string, 2 - optional :type, :enum, 3, "google.ads.googleads.v12.enums.AssetSetTypeEnum.AssetSetType" - optional :status, :enum, 4, "google.ads.googleads.v12.enums.AssetSetStatusEnum.AssetSetStatus" - optional :merchant_center_feed, :message, 5, "google.ads.googleads.v12.resources.AssetSet.MerchantCenterFeed" - optional :location_group_parent_asset_set_id, :int64, 10 - oneof :asset_set_source do - optional :location_set, :message, 7, "google.ads.googleads.v12.common.LocationSet" - optional :business_profile_location_group, :message, 8, "google.ads.googleads.v12.common.BusinessProfileLocationGroup" - optional :chain_location_group, :message, 9, "google.ads.googleads.v12.common.ChainLocationGroup" - end - end - add_message "google.ads.googleads.v12.resources.AssetSet.MerchantCenterFeed" do - optional :merchant_id, :int64, 1 - proto3_optional :feed_label, :string, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AssetSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AssetSet").msgclass - AssetSet::MerchantCenterFeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AssetSet.MerchantCenterFeed").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/asset_set_type_view_pb.rb b/lib/google/ads/google_ads/v12/resources/asset_set_type_view_pb.rb deleted file mode 100644 index 8727baa22..000000000 --- a/lib/google/ads/google_ads/v12/resources/asset_set_type_view_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/asset_set_type_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/asset_set_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/asset_set_type_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.AssetSetTypeView" do - optional :resource_name, :string, 1 - optional :asset_set_type, :enum, 3, "google.ads.googleads.v12.enums.AssetSetTypeEnum.AssetSetType" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - AssetSetTypeView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AssetSetTypeView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/audience_pb.rb b/lib/google/ads/google_ads/v12/resources/audience_pb.rb deleted file mode 100644 index 90126264b..000000000 --- a/lib/google/ads/google_ads/v12/resources/audience_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/audience.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/audiences_pb' -require 'google/ads/google_ads/v12/enums/audience_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/audience.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.Audience" do - optional :resource_name, :string, 1 - optional :id, :int64, 2 - optional :status, :enum, 3, "google.ads.googleads.v12.enums.AudienceStatusEnum.AudienceStatus" - optional :name, :string, 4 - optional :description, :string, 5 - repeated :dimensions, :message, 6, "google.ads.googleads.v12.common.AudienceDimension" - optional :exclusion_dimension, :message, 7, "google.ads.googleads.v12.common.AudienceExclusionDimension" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - Audience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Audience").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/batch_job_pb.rb b/lib/google/ads/google_ads/v12/resources/batch_job_pb.rb deleted file mode 100644 index 1e8e72eb2..000000000 --- a/lib/google/ads/google_ads/v12/resources/batch_job_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/batch_job.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/batch_job_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/batch_job.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.BatchJob" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 7 - proto3_optional :next_add_sequence_token, :string, 8 - optional :metadata, :message, 4, "google.ads.googleads.v12.resources.BatchJob.BatchJobMetadata" - optional :status, :enum, 5, "google.ads.googleads.v12.enums.BatchJobStatusEnum.BatchJobStatus" - proto3_optional :long_running_operation, :string, 9 - end - add_message "google.ads.googleads.v12.resources.BatchJob.BatchJobMetadata" do - proto3_optional :creation_date_time, :string, 8 - proto3_optional :start_date_time, :string, 7 - proto3_optional :completion_date_time, :string, 9 - proto3_optional :estimated_completion_ratio, :double, 10 - proto3_optional :operation_count, :int64, 11 - proto3_optional :executed_operation_count, :int64, 12 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - BatchJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.BatchJob").msgclass - BatchJob::BatchJobMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.BatchJob.BatchJobMetadata").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/bidding_data_exclusion_pb.rb b/lib/google/ads/google_ads/v12/resources/bidding_data_exclusion_pb.rb deleted file mode 100644 index 34b516900..000000000 --- a/lib/google/ads/google_ads/v12/resources/bidding_data_exclusion_pb.rb +++ /dev/null @@ -1,41 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/bidding_data_exclusion.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/advertising_channel_type_pb' -require 'google/ads/google_ads/v12/enums/device_pb' -require 'google/ads/google_ads/v12/enums/seasonality_event_scope_pb' -require 'google/ads/google_ads/v12/enums/seasonality_event_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/bidding_data_exclusion.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.BiddingDataExclusion" do - optional :resource_name, :string, 1 - optional :data_exclusion_id, :int64, 2 - optional :scope, :enum, 3, "google.ads.googleads.v12.enums.SeasonalityEventScopeEnum.SeasonalityEventScope" - optional :status, :enum, 4, "google.ads.googleads.v12.enums.SeasonalityEventStatusEnum.SeasonalityEventStatus" - optional :start_date_time, :string, 5 - optional :end_date_time, :string, 6 - optional :name, :string, 7 - optional :description, :string, 8 - repeated :devices, :enum, 9, "google.ads.googleads.v12.enums.DeviceEnum.Device" - repeated :campaigns, :string, 10 - repeated :advertising_channel_types, :enum, 11, "google.ads.googleads.v12.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - BiddingDataExclusion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.BiddingDataExclusion").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/bidding_seasonality_adjustment_pb.rb b/lib/google/ads/google_ads/v12/resources/bidding_seasonality_adjustment_pb.rb deleted file mode 100644 index b971188ad..000000000 --- a/lib/google/ads/google_ads/v12/resources/bidding_seasonality_adjustment_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/bidding_seasonality_adjustment.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/advertising_channel_type_pb' -require 'google/ads/google_ads/v12/enums/device_pb' -require 'google/ads/google_ads/v12/enums/seasonality_event_scope_pb' -require 'google/ads/google_ads/v12/enums/seasonality_event_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/bidding_seasonality_adjustment.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.BiddingSeasonalityAdjustment" do - optional :resource_name, :string, 1 - optional :seasonality_adjustment_id, :int64, 2 - optional :scope, :enum, 3, "google.ads.googleads.v12.enums.SeasonalityEventScopeEnum.SeasonalityEventScope" - optional :status, :enum, 4, "google.ads.googleads.v12.enums.SeasonalityEventStatusEnum.SeasonalityEventStatus" - optional :start_date_time, :string, 5 - optional :end_date_time, :string, 6 - optional :name, :string, 7 - optional :description, :string, 8 - repeated :devices, :enum, 9, "google.ads.googleads.v12.enums.DeviceEnum.Device" - optional :conversion_rate_modifier, :double, 10 - repeated :campaigns, :string, 11 - repeated :advertising_channel_types, :enum, 12, "google.ads.googleads.v12.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - BiddingSeasonalityAdjustment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.BiddingSeasonalityAdjustment").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/bidding_strategy_pb.rb b/lib/google/ads/google_ads/v12/resources/bidding_strategy_pb.rb deleted file mode 100644 index e7397ab14..000000000 --- a/lib/google/ads/google_ads/v12/resources/bidding_strategy_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/bidding_strategy.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/bidding_pb' -require 'google/ads/google_ads/v12/enums/bidding_strategy_status_pb' -require 'google/ads/google_ads/v12/enums/bidding_strategy_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/bidding_strategy.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.BiddingStrategy" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 16 - proto3_optional :name, :string, 17 - optional :status, :enum, 15, "google.ads.googleads.v12.enums.BiddingStrategyStatusEnum.BiddingStrategyStatus" - optional :type, :enum, 5, "google.ads.googleads.v12.enums.BiddingStrategyTypeEnum.BiddingStrategyType" - optional :currency_code, :string, 23 - proto3_optional :effective_currency_code, :string, 20 - optional :aligned_campaign_budget_id, :int64, 25 - proto3_optional :campaign_count, :int64, 18 - proto3_optional :non_removed_campaign_count, :int64, 19 - oneof :scheme do - optional :enhanced_cpc, :message, 7, "google.ads.googleads.v12.common.EnhancedCpc" - optional :maximize_conversion_value, :message, 21, "google.ads.googleads.v12.common.MaximizeConversionValue" - optional :maximize_conversions, :message, 22, "google.ads.googleads.v12.common.MaximizeConversions" - optional :target_cpa, :message, 9, "google.ads.googleads.v12.common.TargetCpa" - optional :target_impression_share, :message, 48, "google.ads.googleads.v12.common.TargetImpressionShare" - optional :target_roas, :message, 11, "google.ads.googleads.v12.common.TargetRoas" - optional :target_spend, :message, 12, "google.ads.googleads.v12.common.TargetSpend" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - BiddingStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.BiddingStrategy").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/bidding_strategy_simulation_pb.rb b/lib/google/ads/google_ads/v12/resources/bidding_strategy_simulation_pb.rb deleted file mode 100644 index 04e1c4136..000000000 --- a/lib/google/ads/google_ads/v12/resources/bidding_strategy_simulation_pb.rb +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/bidding_strategy_simulation.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/simulation_pb' -require 'google/ads/google_ads/v12/enums/simulation_modification_method_pb' -require 'google/ads/google_ads/v12/enums/simulation_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/bidding_strategy_simulation.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.BiddingStrategySimulation" do - optional :resource_name, :string, 1 - optional :bidding_strategy_id, :int64, 2 - optional :type, :enum, 3, "google.ads.googleads.v12.enums.SimulationTypeEnum.SimulationType" - optional :modification_method, :enum, 4, "google.ads.googleads.v12.enums.SimulationModificationMethodEnum.SimulationModificationMethod" - optional :start_date, :string, 5 - optional :end_date, :string, 6 - oneof :point_list do - optional :target_cpa_point_list, :message, 7, "google.ads.googleads.v12.common.TargetCpaSimulationPointList" - optional :target_roas_point_list, :message, 8, "google.ads.googleads.v12.common.TargetRoasSimulationPointList" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - BiddingStrategySimulation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.BiddingStrategySimulation").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/billing_setup_pb.rb b/lib/google/ads/google_ads/v12/resources/billing_setup_pb.rb deleted file mode 100644 index 33e5e0690..000000000 --- a/lib/google/ads/google_ads/v12/resources/billing_setup_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/billing_setup.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/billing_setup_status_pb' -require 'google/ads/google_ads/v12/enums/time_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/billing_setup.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.BillingSetup" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 15 - optional :status, :enum, 3, "google.ads.googleads.v12.enums.BillingSetupStatusEnum.BillingSetupStatus" - proto3_optional :payments_account, :string, 18 - optional :payments_account_info, :message, 12, "google.ads.googleads.v12.resources.BillingSetup.PaymentsAccountInfo" - oneof :start_time do - optional :start_date_time, :string, 16 - optional :start_time_type, :enum, 10, "google.ads.googleads.v12.enums.TimeTypeEnum.TimeType" - end - oneof :end_time do - optional :end_date_time, :string, 17 - optional :end_time_type, :enum, 14, "google.ads.googleads.v12.enums.TimeTypeEnum.TimeType" - end - end - add_message "google.ads.googleads.v12.resources.BillingSetup.PaymentsAccountInfo" do - proto3_optional :payments_account_id, :string, 6 - proto3_optional :payments_account_name, :string, 7 - proto3_optional :payments_profile_id, :string, 8 - proto3_optional :payments_profile_name, :string, 9 - proto3_optional :secondary_payments_profile_id, :string, 10 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - BillingSetup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.BillingSetup").msgclass - BillingSetup::PaymentsAccountInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.BillingSetup.PaymentsAccountInfo").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/call_view_pb.rb b/lib/google/ads/google_ads/v12/resources/call_view_pb.rb deleted file mode 100644 index 8cd87b114..000000000 --- a/lib/google/ads/google_ads/v12/resources/call_view_pb.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/call_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/call_tracking_display_location_pb' -require 'google/ads/google_ads/v12/enums/call_type_pb' -require 'google/ads/google_ads/v12/enums/google_voice_call_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/call_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CallView" do - optional :resource_name, :string, 1 - optional :caller_country_code, :string, 2 - optional :caller_area_code, :string, 3 - optional :call_duration_seconds, :int64, 4 - optional :start_call_date_time, :string, 5 - optional :end_call_date_time, :string, 6 - optional :call_tracking_display_location, :enum, 7, "google.ads.googleads.v12.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation" - optional :type, :enum, 8, "google.ads.googleads.v12.enums.CallTypeEnum.CallType" - optional :call_status, :enum, 9, "google.ads.googleads.v12.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CallView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CallView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_asset_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_asset_pb.rb deleted file mode 100644 index 6a2e0598d..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_asset_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign_asset.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/asset_field_type_pb' -require 'google/ads/google_ads/v12/enums/asset_link_status_pb' -require 'google/ads/google_ads/v12/enums/asset_source_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign_asset.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CampaignAsset" do - optional :resource_name, :string, 1 - proto3_optional :campaign, :string, 6 - proto3_optional :asset, :string, 7 - optional :field_type, :enum, 4, "google.ads.googleads.v12.enums.AssetFieldTypeEnum.AssetFieldType" - optional :source, :enum, 8, "google.ads.googleads.v12.enums.AssetSourceEnum.AssetSource" - optional :status, :enum, 5, "google.ads.googleads.v12.enums.AssetLinkStatusEnum.AssetLinkStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CampaignAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CampaignAsset").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_asset_set_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_asset_set_pb.rb deleted file mode 100644 index 7172ed835..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_asset_set_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign_asset_set.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/asset_set_link_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign_asset_set.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CampaignAssetSet" do - optional :resource_name, :string, 1 - optional :campaign, :string, 2 - optional :asset_set, :string, 3 - optional :status, :enum, 4, "google.ads.googleads.v12.enums.AssetSetLinkStatusEnum.AssetSetLinkStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CampaignAssetSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CampaignAssetSet").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_audience_view_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_audience_view_pb.rb deleted file mode 100644 index 31d9045e4..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_audience_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign_audience_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign_audience_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CampaignAudienceView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CampaignAudienceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CampaignAudienceView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_bid_modifier_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_bid_modifier_pb.rb deleted file mode 100644 index 7c138ab5b..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_bid_modifier_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign_bid_modifier.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criteria_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign_bid_modifier.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CampaignBidModifier" do - optional :resource_name, :string, 1 - proto3_optional :campaign, :string, 6 - proto3_optional :criterion_id, :int64, 7 - proto3_optional :bid_modifier, :double, 8 - oneof :criterion do - optional :interaction_type, :message, 5, "google.ads.googleads.v12.common.InteractionTypeInfo" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CampaignBidModifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CampaignBidModifier").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_budget_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_budget_pb.rb deleted file mode 100644 index c9382f1e0..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_budget_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign_budget.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/budget_delivery_method_pb' -require 'google/ads/google_ads/v12/enums/budget_period_pb' -require 'google/ads/google_ads/v12/enums/budget_status_pb' -require 'google/ads/google_ads/v12/enums/budget_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign_budget.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CampaignBudget" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 19 - proto3_optional :name, :string, 20 - proto3_optional :amount_micros, :int64, 21 - proto3_optional :total_amount_micros, :int64, 22 - optional :status, :enum, 6, "google.ads.googleads.v12.enums.BudgetStatusEnum.BudgetStatus" - optional :delivery_method, :enum, 7, "google.ads.googleads.v12.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod" - proto3_optional :explicitly_shared, :bool, 23 - proto3_optional :reference_count, :int64, 24 - proto3_optional :has_recommended_budget, :bool, 25 - proto3_optional :recommended_budget_amount_micros, :int64, 26 - optional :period, :enum, 13, "google.ads.googleads.v12.enums.BudgetPeriodEnum.BudgetPeriod" - proto3_optional :recommended_budget_estimated_change_weekly_clicks, :int64, 27 - proto3_optional :recommended_budget_estimated_change_weekly_cost_micros, :int64, 28 - proto3_optional :recommended_budget_estimated_change_weekly_interactions, :int64, 29 - proto3_optional :recommended_budget_estimated_change_weekly_views, :int64, 30 - optional :type, :enum, 18, "google.ads.googleads.v12.enums.BudgetTypeEnum.BudgetType" - optional :aligned_bidding_strategy_id, :int64, 31 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CampaignBudget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CampaignBudget").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_conversion_goal_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_conversion_goal_pb.rb deleted file mode 100644 index 7a83d9ecd..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_conversion_goal_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign_conversion_goal.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/conversion_action_category_pb' -require 'google/ads/google_ads/v12/enums/conversion_origin_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign_conversion_goal.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CampaignConversionGoal" do - optional :resource_name, :string, 1 - optional :campaign, :string, 2 - optional :category, :enum, 3, "google.ads.googleads.v12.enums.ConversionActionCategoryEnum.ConversionActionCategory" - optional :origin, :enum, 4, "google.ads.googleads.v12.enums.ConversionOriginEnum.ConversionOrigin" - optional :biddable, :bool, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CampaignConversionGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CampaignConversionGoal").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_criterion_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_criterion_pb.rb deleted file mode 100644 index 72982a29e..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_criterion_pb.rb +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign_criterion.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criteria_pb' -require 'google/ads/google_ads/v12/enums/campaign_criterion_status_pb' -require 'google/ads/google_ads/v12/enums/criterion_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign_criterion.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CampaignCriterion" do - optional :resource_name, :string, 1 - proto3_optional :campaign, :string, 37 - proto3_optional :criterion_id, :int64, 38 - optional :display_name, :string, 43 - proto3_optional :bid_modifier, :float, 39 - proto3_optional :negative, :bool, 40 - optional :type, :enum, 6, "google.ads.googleads.v12.enums.CriterionTypeEnum.CriterionType" - optional :status, :enum, 35, "google.ads.googleads.v12.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus" - oneof :criterion do - optional :keyword, :message, 8, "google.ads.googleads.v12.common.KeywordInfo" - optional :placement, :message, 9, "google.ads.googleads.v12.common.PlacementInfo" - optional :mobile_app_category, :message, 10, "google.ads.googleads.v12.common.MobileAppCategoryInfo" - optional :mobile_application, :message, 11, "google.ads.googleads.v12.common.MobileApplicationInfo" - optional :location, :message, 12, "google.ads.googleads.v12.common.LocationInfo" - optional :device, :message, 13, "google.ads.googleads.v12.common.DeviceInfo" - optional :ad_schedule, :message, 15, "google.ads.googleads.v12.common.AdScheduleInfo" - optional :age_range, :message, 16, "google.ads.googleads.v12.common.AgeRangeInfo" - optional :gender, :message, 17, "google.ads.googleads.v12.common.GenderInfo" - optional :income_range, :message, 18, "google.ads.googleads.v12.common.IncomeRangeInfo" - optional :parental_status, :message, 19, "google.ads.googleads.v12.common.ParentalStatusInfo" - optional :user_list, :message, 22, "google.ads.googleads.v12.common.UserListInfo" - optional :youtube_video, :message, 20, "google.ads.googleads.v12.common.YouTubeVideoInfo" - optional :youtube_channel, :message, 21, "google.ads.googleads.v12.common.YouTubeChannelInfo" - optional :proximity, :message, 23, "google.ads.googleads.v12.common.ProximityInfo" - optional :topic, :message, 24, "google.ads.googleads.v12.common.TopicInfo" - optional :listing_scope, :message, 25, "google.ads.googleads.v12.common.ListingScopeInfo" - optional :language, :message, 26, "google.ads.googleads.v12.common.LanguageInfo" - optional :ip_block, :message, 27, "google.ads.googleads.v12.common.IpBlockInfo" - optional :content_label, :message, 28, "google.ads.googleads.v12.common.ContentLabelInfo" - optional :carrier, :message, 29, "google.ads.googleads.v12.common.CarrierInfo" - optional :user_interest, :message, 30, "google.ads.googleads.v12.common.UserInterestInfo" - optional :webpage, :message, 31, "google.ads.googleads.v12.common.WebpageInfo" - optional :operating_system_version, :message, 32, "google.ads.googleads.v12.common.OperatingSystemVersionInfo" - optional :mobile_device, :message, 33, "google.ads.googleads.v12.common.MobileDeviceInfo" - optional :location_group, :message, 34, "google.ads.googleads.v12.common.LocationGroupInfo" - optional :custom_affinity, :message, 36, "google.ads.googleads.v12.common.CustomAffinityInfo" - optional :custom_audience, :message, 41, "google.ads.googleads.v12.common.CustomAudienceInfo" - optional :combined_audience, :message, 42, "google.ads.googleads.v12.common.CombinedAudienceInfo" - optional :keyword_theme, :message, 45, "google.ads.googleads.v12.common.KeywordThemeInfo" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CampaignCriterion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CampaignCriterion").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_criterion_simulation_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_criterion_simulation_pb.rb deleted file mode 100644 index 8996c84e2..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_criterion_simulation_pb.rb +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign_criterion_simulation.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/simulation_pb' -require 'google/ads/google_ads/v12/enums/simulation_modification_method_pb' -require 'google/ads/google_ads/v12/enums/simulation_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign_criterion_simulation.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CampaignCriterionSimulation" do - optional :resource_name, :string, 1 - proto3_optional :campaign_id, :int64, 9 - proto3_optional :criterion_id, :int64, 10 - optional :type, :enum, 4, "google.ads.googleads.v12.enums.SimulationTypeEnum.SimulationType" - optional :modification_method, :enum, 5, "google.ads.googleads.v12.enums.SimulationModificationMethodEnum.SimulationModificationMethod" - proto3_optional :start_date, :string, 11 - proto3_optional :end_date, :string, 12 - oneof :point_list do - optional :bid_modifier_point_list, :message, 8, "google.ads.googleads.v12.common.BidModifierSimulationPointList" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CampaignCriterionSimulation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CampaignCriterionSimulation").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_customizer_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_customizer_pb.rb deleted file mode 100644 index 9925865a2..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_customizer_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign_customizer.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/customizer_value_pb' -require 'google/ads/google_ads/v12/enums/customizer_value_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign_customizer.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CampaignCustomizer" do - optional :resource_name, :string, 1 - optional :campaign, :string, 2 - optional :customizer_attribute, :string, 3 - optional :status, :enum, 4, "google.ads.googleads.v12.enums.CustomizerValueStatusEnum.CustomizerValueStatus" - optional :value, :message, 5, "google.ads.googleads.v12.common.CustomizerValue" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CampaignCustomizer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CampaignCustomizer").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_draft_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_draft_pb.rb deleted file mode 100644 index ab39e8784..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_draft_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign_draft.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/campaign_draft_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign_draft.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CampaignDraft" do - optional :resource_name, :string, 1 - proto3_optional :draft_id, :int64, 9 - proto3_optional :base_campaign, :string, 10 - proto3_optional :name, :string, 11 - proto3_optional :draft_campaign, :string, 12 - optional :status, :enum, 6, "google.ads.googleads.v12.enums.CampaignDraftStatusEnum.CampaignDraftStatus" - proto3_optional :has_experiment_running, :bool, 13 - proto3_optional :long_running_operation, :string, 14 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CampaignDraft = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CampaignDraft").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_extension_setting_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_extension_setting_pb.rb deleted file mode 100644 index 9402cc5ba..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_extension_setting_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign_extension_setting.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/extension_setting_device_pb' -require 'google/ads/google_ads/v12/enums/extension_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign_extension_setting.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CampaignExtensionSetting" do - optional :resource_name, :string, 1 - optional :extension_type, :enum, 2, "google.ads.googleads.v12.enums.ExtensionTypeEnum.ExtensionType" - proto3_optional :campaign, :string, 6 - repeated :extension_feed_items, :string, 7 - optional :device, :enum, 5, "google.ads.googleads.v12.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CampaignExtensionSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CampaignExtensionSetting").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_feed_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_feed_pb.rb deleted file mode 100644 index 0d48ee656..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_feed_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign_feed.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/matching_function_pb' -require 'google/ads/google_ads/v12/enums/feed_link_status_pb' -require 'google/ads/google_ads/v12/enums/placeholder_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign_feed.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CampaignFeed" do - optional :resource_name, :string, 1 - proto3_optional :feed, :string, 7 - proto3_optional :campaign, :string, 8 - repeated :placeholder_types, :enum, 4, "google.ads.googleads.v12.enums.PlaceholderTypeEnum.PlaceholderType" - optional :matching_function, :message, 5, "google.ads.googleads.v12.common.MatchingFunction" - optional :status, :enum, 6, "google.ads.googleads.v12.enums.FeedLinkStatusEnum.FeedLinkStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CampaignFeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CampaignFeed").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_group_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_group_pb.rb deleted file mode 100644 index 7e361d649..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_group_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign_group.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/campaign_group_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign_group.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CampaignGroup" do - optional :resource_name, :string, 1 - optional :id, :int64, 3 - optional :name, :string, 4 - optional :status, :enum, 5, "google.ads.googleads.v12.enums.CampaignGroupStatusEnum.CampaignGroupStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CampaignGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CampaignGroup").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_label_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_label_pb.rb deleted file mode 100644 index e96ce4d30..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_label_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign_label.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign_label.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CampaignLabel" do - optional :resource_name, :string, 1 - proto3_optional :campaign, :string, 4 - proto3_optional :label, :string, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CampaignLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CampaignLabel").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_pb.rb deleted file mode 100644 index 5f39c9dee..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_pb.rb +++ /dev/null @@ -1,194 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/bidding_pb' -require 'google/ads/google_ads/v12/common/custom_parameter_pb' -require 'google/ads/google_ads/v12/common/frequency_cap_pb' -require 'google/ads/google_ads/v12/common/real_time_bidding_setting_pb' -require 'google/ads/google_ads/v12/common/targeting_setting_pb' -require 'google/ads/google_ads/v12/enums/ad_serving_optimization_status_pb' -require 'google/ads/google_ads/v12/enums/advertising_channel_sub_type_pb' -require 'google/ads/google_ads/v12/enums/advertising_channel_type_pb' -require 'google/ads/google_ads/v12/enums/app_campaign_app_store_pb' -require 'google/ads/google_ads/v12/enums/app_campaign_bidding_strategy_goal_type_pb' -require 'google/ads/google_ads/v12/enums/asset_field_type_pb' -require 'google/ads/google_ads/v12/enums/asset_set_type_pb' -require 'google/ads/google_ads/v12/enums/bidding_strategy_system_status_pb' -require 'google/ads/google_ads/v12/enums/bidding_strategy_type_pb' -require 'google/ads/google_ads/v12/enums/brand_safety_suitability_pb' -require 'google/ads/google_ads/v12/enums/campaign_experiment_type_pb' -require 'google/ads/google_ads/v12/enums/campaign_primary_status_pb' -require 'google/ads/google_ads/v12/enums/campaign_primary_status_reason_pb' -require 'google/ads/google_ads/v12/enums/campaign_serving_status_pb' -require 'google/ads/google_ads/v12/enums/campaign_status_pb' -require 'google/ads/google_ads/v12/enums/location_source_type_pb' -require 'google/ads/google_ads/v12/enums/negative_geo_target_type_pb' -require 'google/ads/google_ads/v12/enums/optimization_goal_type_pb' -require 'google/ads/google_ads/v12/enums/payment_mode_pb' -require 'google/ads/google_ads/v12/enums/performance_max_upgrade_status_pb' -require 'google/ads/google_ads/v12/enums/positive_geo_target_type_pb' -require 'google/ads/google_ads/v12/enums/vanity_pharma_display_url_mode_pb' -require 'google/ads/google_ads/v12/enums/vanity_pharma_text_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.Campaign" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 59 - proto3_optional :name, :string, 58 - optional :primary_status, :enum, 81, "google.ads.googleads.v12.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus" - repeated :primary_status_reasons, :enum, 82, "google.ads.googleads.v12.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason" - optional :status, :enum, 5, "google.ads.googleads.v12.enums.CampaignStatusEnum.CampaignStatus" - optional :serving_status, :enum, 21, "google.ads.googleads.v12.enums.CampaignServingStatusEnum.CampaignServingStatus" - optional :bidding_strategy_system_status, :enum, 78, "google.ads.googleads.v12.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus" - optional :ad_serving_optimization_status, :enum, 8, "google.ads.googleads.v12.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus" - optional :advertising_channel_type, :enum, 9, "google.ads.googleads.v12.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType" - optional :advertising_channel_sub_type, :enum, 10, "google.ads.googleads.v12.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType" - proto3_optional :tracking_url_template, :string, 60 - repeated :url_custom_parameters, :message, 12, "google.ads.googleads.v12.common.CustomParameter" - optional :local_services_campaign_settings, :message, 75, "google.ads.googleads.v12.resources.Campaign.LocalServicesCampaignSettings" - optional :real_time_bidding_setting, :message, 39, "google.ads.googleads.v12.common.RealTimeBiddingSetting" - optional :network_settings, :message, 14, "google.ads.googleads.v12.resources.Campaign.NetworkSettings" - optional :hotel_setting, :message, 32, "google.ads.googleads.v12.resources.Campaign.HotelSettingInfo" - optional :dynamic_search_ads_setting, :message, 33, "google.ads.googleads.v12.resources.Campaign.DynamicSearchAdsSetting" - optional :shopping_setting, :message, 36, "google.ads.googleads.v12.resources.Campaign.ShoppingSetting" - optional :targeting_setting, :message, 43, "google.ads.googleads.v12.common.TargetingSetting" - proto3_optional :audience_setting, :message, 73, "google.ads.googleads.v12.resources.Campaign.AudienceSetting" - optional :geo_target_type_setting, :message, 47, "google.ads.googleads.v12.resources.Campaign.GeoTargetTypeSetting" - optional :local_campaign_setting, :message, 50, "google.ads.googleads.v12.resources.Campaign.LocalCampaignSetting" - optional :app_campaign_setting, :message, 51, "google.ads.googleads.v12.resources.Campaign.AppCampaignSetting" - repeated :labels, :string, 61 - optional :experiment_type, :enum, 17, "google.ads.googleads.v12.enums.CampaignExperimentTypeEnum.CampaignExperimentType" - proto3_optional :base_campaign, :string, 56 - proto3_optional :campaign_budget, :string, 62 - optional :bidding_strategy_type, :enum, 22, "google.ads.googleads.v12.enums.BiddingStrategyTypeEnum.BiddingStrategyType" - optional :accessible_bidding_strategy, :string, 71 - proto3_optional :start_date, :string, 63 - proto3_optional :campaign_group, :string, 76 - proto3_optional :end_date, :string, 64 - proto3_optional :final_url_suffix, :string, 65 - repeated :frequency_caps, :message, 40, "google.ads.googleads.v12.common.FrequencyCapEntry" - optional :video_brand_safety_suitability, :enum, 42, "google.ads.googleads.v12.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability" - optional :vanity_pharma, :message, 44, "google.ads.googleads.v12.resources.Campaign.VanityPharma" - optional :selective_optimization, :message, 45, "google.ads.googleads.v12.resources.Campaign.SelectiveOptimization" - optional :optimization_goal_setting, :message, 54, "google.ads.googleads.v12.resources.Campaign.OptimizationGoalSetting" - optional :tracking_setting, :message, 46, "google.ads.googleads.v12.resources.Campaign.TrackingSetting" - optional :payment_mode, :enum, 52, "google.ads.googleads.v12.enums.PaymentModeEnum.PaymentMode" - proto3_optional :optimization_score, :double, 66 - repeated :excluded_parent_asset_field_types, :enum, 69, "google.ads.googleads.v12.enums.AssetFieldTypeEnum.AssetFieldType" - repeated :excluded_parent_asset_set_types, :enum, 80, "google.ads.googleads.v12.enums.AssetSetTypeEnum.AssetSetType" - proto3_optional :url_expansion_opt_out, :bool, 72 - optional :performance_max_upgrade, :message, 77, "google.ads.googleads.v12.resources.Campaign.PerformanceMaxUpgrade" - oneof :campaign_bidding_strategy do - optional :bidding_strategy, :string, 67 - optional :commission, :message, 49, "google.ads.googleads.v12.common.Commission" - optional :manual_cpa, :message, 74, "google.ads.googleads.v12.common.ManualCpa" - optional :manual_cpc, :message, 24, "google.ads.googleads.v12.common.ManualCpc" - optional :manual_cpm, :message, 25, "google.ads.googleads.v12.common.ManualCpm" - optional :manual_cpv, :message, 37, "google.ads.googleads.v12.common.ManualCpv" - optional :maximize_conversions, :message, 30, "google.ads.googleads.v12.common.MaximizeConversions" - optional :maximize_conversion_value, :message, 31, "google.ads.googleads.v12.common.MaximizeConversionValue" - optional :target_cpa, :message, 26, "google.ads.googleads.v12.common.TargetCpa" - optional :target_impression_share, :message, 48, "google.ads.googleads.v12.common.TargetImpressionShare" - optional :target_roas, :message, 29, "google.ads.googleads.v12.common.TargetRoas" - optional :target_spend, :message, 27, "google.ads.googleads.v12.common.TargetSpend" - optional :percent_cpc, :message, 34, "google.ads.googleads.v12.common.PercentCpc" - optional :target_cpm, :message, 41, "google.ads.googleads.v12.common.TargetCpm" - end - end - add_message "google.ads.googleads.v12.resources.Campaign.PerformanceMaxUpgrade" do - optional :performance_max_campaign, :string, 1 - optional :pre_upgrade_campaign, :string, 2 - optional :status, :enum, 3, "google.ads.googleads.v12.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus" - end - add_message "google.ads.googleads.v12.resources.Campaign.NetworkSettings" do - proto3_optional :target_google_search, :bool, 5 - proto3_optional :target_search_network, :bool, 6 - proto3_optional :target_content_network, :bool, 7 - proto3_optional :target_partner_search_network, :bool, 8 - end - add_message "google.ads.googleads.v12.resources.Campaign.HotelSettingInfo" do - proto3_optional :hotel_center_id, :int64, 2 - end - add_message "google.ads.googleads.v12.resources.Campaign.DynamicSearchAdsSetting" do - optional :domain_name, :string, 6 - optional :language_code, :string, 7 - proto3_optional :use_supplied_urls_only, :bool, 8 - repeated :feeds, :string, 9 - end - add_message "google.ads.googleads.v12.resources.Campaign.ShoppingSetting" do - proto3_optional :merchant_id, :int64, 5 - proto3_optional :sales_country, :string, 6 - optional :feed_label, :string, 10 - proto3_optional :campaign_priority, :int32, 7 - proto3_optional :enable_local, :bool, 8 - optional :use_vehicle_inventory, :bool, 9 - end - add_message "google.ads.googleads.v12.resources.Campaign.TrackingSetting" do - proto3_optional :tracking_url, :string, 2 - end - add_message "google.ads.googleads.v12.resources.Campaign.GeoTargetTypeSetting" do - optional :positive_geo_target_type, :enum, 1, "google.ads.googleads.v12.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType" - optional :negative_geo_target_type, :enum, 2, "google.ads.googleads.v12.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType" - end - add_message "google.ads.googleads.v12.resources.Campaign.LocalCampaignSetting" do - optional :location_source_type, :enum, 1, "google.ads.googleads.v12.enums.LocationSourceTypeEnum.LocationSourceType" - end - add_message "google.ads.googleads.v12.resources.Campaign.AppCampaignSetting" do - optional :bidding_strategy_goal_type, :enum, 1, "google.ads.googleads.v12.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType" - proto3_optional :app_id, :string, 4 - optional :app_store, :enum, 3, "google.ads.googleads.v12.enums.AppCampaignAppStoreEnum.AppCampaignAppStore" - end - add_message "google.ads.googleads.v12.resources.Campaign.VanityPharma" do - optional :vanity_pharma_display_url_mode, :enum, 1, "google.ads.googleads.v12.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode" - optional :vanity_pharma_text, :enum, 2, "google.ads.googleads.v12.enums.VanityPharmaTextEnum.VanityPharmaText" - end - add_message "google.ads.googleads.v12.resources.Campaign.SelectiveOptimization" do - repeated :conversion_actions, :string, 2 - end - add_message "google.ads.googleads.v12.resources.Campaign.OptimizationGoalSetting" do - repeated :optimization_goal_types, :enum, 1, "google.ads.googleads.v12.enums.OptimizationGoalTypeEnum.OptimizationGoalType" - end - add_message "google.ads.googleads.v12.resources.Campaign.AudienceSetting" do - proto3_optional :use_audience_grouped, :bool, 1 - end - add_message "google.ads.googleads.v12.resources.Campaign.LocalServicesCampaignSettings" do - repeated :category_bids, :message, 1, "google.ads.googleads.v12.resources.Campaign.CategoryBid" - end - add_message "google.ads.googleads.v12.resources.Campaign.CategoryBid" do - proto3_optional :category_id, :string, 1 - proto3_optional :manual_cpa_bid_micros, :int64, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - Campaign = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Campaign").msgclass - Campaign::PerformanceMaxUpgrade = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Campaign.PerformanceMaxUpgrade").msgclass - Campaign::NetworkSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Campaign.NetworkSettings").msgclass - Campaign::HotelSettingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Campaign.HotelSettingInfo").msgclass - Campaign::DynamicSearchAdsSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Campaign.DynamicSearchAdsSetting").msgclass - Campaign::ShoppingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Campaign.ShoppingSetting").msgclass - Campaign::TrackingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Campaign.TrackingSetting").msgclass - Campaign::GeoTargetTypeSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Campaign.GeoTargetTypeSetting").msgclass - Campaign::LocalCampaignSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Campaign.LocalCampaignSetting").msgclass - Campaign::AppCampaignSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Campaign.AppCampaignSetting").msgclass - Campaign::VanityPharma = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Campaign.VanityPharma").msgclass - Campaign::SelectiveOptimization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Campaign.SelectiveOptimization").msgclass - Campaign::OptimizationGoalSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Campaign.OptimizationGoalSetting").msgclass - Campaign::AudienceSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Campaign.AudienceSetting").msgclass - Campaign::LocalServicesCampaignSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Campaign.LocalServicesCampaignSettings").msgclass - Campaign::CategoryBid = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Campaign.CategoryBid").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_shared_set_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_shared_set_pb.rb deleted file mode 100644 index 358528cfe..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_shared_set_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign_shared_set.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/campaign_shared_set_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign_shared_set.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CampaignSharedSet" do - optional :resource_name, :string, 1 - proto3_optional :campaign, :string, 5 - proto3_optional :shared_set, :string, 6 - optional :status, :enum, 2, "google.ads.googleads.v12.enums.CampaignSharedSetStatusEnum.CampaignSharedSetStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CampaignSharedSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CampaignSharedSet").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/campaign_simulation_pb.rb b/lib/google/ads/google_ads/v12/resources/campaign_simulation_pb.rb deleted file mode 100644 index 1e9f25f55..000000000 --- a/lib/google/ads/google_ads/v12/resources/campaign_simulation_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/campaign_simulation.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/simulation_pb' -require 'google/ads/google_ads/v12/enums/simulation_modification_method_pb' -require 'google/ads/google_ads/v12/enums/simulation_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/campaign_simulation.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CampaignSimulation" do - optional :resource_name, :string, 1 - optional :campaign_id, :int64, 2 - optional :type, :enum, 3, "google.ads.googleads.v12.enums.SimulationTypeEnum.SimulationType" - optional :modification_method, :enum, 4, "google.ads.googleads.v12.enums.SimulationModificationMethodEnum.SimulationModificationMethod" - optional :start_date, :string, 5 - optional :end_date, :string, 6 - oneof :point_list do - optional :cpc_bid_point_list, :message, 7, "google.ads.googleads.v12.common.CpcBidSimulationPointList" - optional :target_cpa_point_list, :message, 8, "google.ads.googleads.v12.common.TargetCpaSimulationPointList" - optional :target_roas_point_list, :message, 9, "google.ads.googleads.v12.common.TargetRoasSimulationPointList" - optional :target_impression_share_point_list, :message, 10, "google.ads.googleads.v12.common.TargetImpressionShareSimulationPointList" - optional :budget_point_list, :message, 11, "google.ads.googleads.v12.common.BudgetSimulationPointList" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CampaignSimulation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CampaignSimulation").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/carrier_constant_pb.rb b/lib/google/ads/google_ads/v12/resources/carrier_constant_pb.rb deleted file mode 100644 index a545b164c..000000000 --- a/lib/google/ads/google_ads/v12/resources/carrier_constant_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/carrier_constant.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/carrier_constant.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CarrierConstant" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 5 - proto3_optional :name, :string, 6 - proto3_optional :country_code, :string, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CarrierConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CarrierConstant").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/change_event_pb.rb b/lib/google/ads/google_ads/v12/resources/change_event_pb.rb deleted file mode 100644 index 66a81c0f1..000000000 --- a/lib/google/ads/google_ads/v12/resources/change_event_pb.rb +++ /dev/null @@ -1,86 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/change_event.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/change_client_type_pb' -require 'google/ads/google_ads/v12/enums/change_event_resource_type_pb' -require 'google/ads/google_ads/v12/enums/resource_change_operation_pb' -require 'google/ads/google_ads/v12/resources/ad_pb' -require 'google/ads/google_ads/v12/resources/ad_group_pb' -require 'google/ads/google_ads/v12/resources/ad_group_ad_pb' -require 'google/ads/google_ads/v12/resources/ad_group_asset_pb' -require 'google/ads/google_ads/v12/resources/ad_group_bid_modifier_pb' -require 'google/ads/google_ads/v12/resources/ad_group_criterion_pb' -require 'google/ads/google_ads/v12/resources/ad_group_feed_pb' -require 'google/ads/google_ads/v12/resources/asset_pb' -require 'google/ads/google_ads/v12/resources/asset_set_pb' -require 'google/ads/google_ads/v12/resources/asset_set_asset_pb' -require 'google/ads/google_ads/v12/resources/campaign_pb' -require 'google/ads/google_ads/v12/resources/campaign_asset_pb' -require 'google/ads/google_ads/v12/resources/campaign_asset_set_pb' -require 'google/ads/google_ads/v12/resources/campaign_budget_pb' -require 'google/ads/google_ads/v12/resources/campaign_criterion_pb' -require 'google/ads/google_ads/v12/resources/campaign_feed_pb' -require 'google/ads/google_ads/v12/resources/customer_asset_pb' -require 'google/ads/google_ads/v12/resources/feed_pb' -require 'google/ads/google_ads/v12/resources/feed_item_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/change_event.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ChangeEvent" do - optional :resource_name, :string, 1 - optional :change_date_time, :string, 2 - optional :change_resource_type, :enum, 3, "google.ads.googleads.v12.enums.ChangeEventResourceTypeEnum.ChangeEventResourceType" - optional :change_resource_name, :string, 4 - optional :client_type, :enum, 5, "google.ads.googleads.v12.enums.ChangeClientTypeEnum.ChangeClientType" - optional :user_email, :string, 6 - optional :old_resource, :message, 7, "google.ads.googleads.v12.resources.ChangeEvent.ChangedResource" - optional :new_resource, :message, 8, "google.ads.googleads.v12.resources.ChangeEvent.ChangedResource" - optional :resource_change_operation, :enum, 9, "google.ads.googleads.v12.enums.ResourceChangeOperationEnum.ResourceChangeOperation" - optional :changed_fields, :message, 10, "google.protobuf.FieldMask" - optional :campaign, :string, 11 - optional :ad_group, :string, 12 - optional :feed, :string, 13 - optional :feed_item, :string, 14 - optional :asset, :string, 20 - end - add_message "google.ads.googleads.v12.resources.ChangeEvent.ChangedResource" do - optional :ad, :message, 1, "google.ads.googleads.v12.resources.Ad" - optional :ad_group, :message, 2, "google.ads.googleads.v12.resources.AdGroup" - optional :ad_group_criterion, :message, 3, "google.ads.googleads.v12.resources.AdGroupCriterion" - optional :campaign, :message, 4, "google.ads.googleads.v12.resources.Campaign" - optional :campaign_budget, :message, 5, "google.ads.googleads.v12.resources.CampaignBudget" - optional :ad_group_bid_modifier, :message, 6, "google.ads.googleads.v12.resources.AdGroupBidModifier" - optional :campaign_criterion, :message, 7, "google.ads.googleads.v12.resources.CampaignCriterion" - optional :feed, :message, 8, "google.ads.googleads.v12.resources.Feed" - optional :feed_item, :message, 9, "google.ads.googleads.v12.resources.FeedItem" - optional :campaign_feed, :message, 10, "google.ads.googleads.v12.resources.CampaignFeed" - optional :ad_group_feed, :message, 11, "google.ads.googleads.v12.resources.AdGroupFeed" - optional :ad_group_ad, :message, 12, "google.ads.googleads.v12.resources.AdGroupAd" - optional :asset, :message, 13, "google.ads.googleads.v12.resources.Asset" - optional :customer_asset, :message, 14, "google.ads.googleads.v12.resources.CustomerAsset" - optional :campaign_asset, :message, 15, "google.ads.googleads.v12.resources.CampaignAsset" - optional :ad_group_asset, :message, 16, "google.ads.googleads.v12.resources.AdGroupAsset" - optional :asset_set, :message, 17, "google.ads.googleads.v12.resources.AssetSet" - optional :asset_set_asset, :message, 18, "google.ads.googleads.v12.resources.AssetSetAsset" - optional :campaign_asset_set, :message, 19, "google.ads.googleads.v12.resources.CampaignAssetSet" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ChangeEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ChangeEvent").msgclass - ChangeEvent::ChangedResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ChangeEvent.ChangedResource").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/change_status_pb.rb b/lib/google/ads/google_ads/v12/resources/change_status_pb.rb deleted file mode 100644 index e4c4c1ac6..000000000 --- a/lib/google/ads/google_ads/v12/resources/change_status_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/change_status.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/change_status_operation_pb' -require 'google/ads/google_ads/v12/enums/change_status_resource_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/change_status.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ChangeStatus" do - optional :resource_name, :string, 1 - proto3_optional :last_change_date_time, :string, 24 - optional :resource_type, :enum, 4, "google.ads.googleads.v12.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType" - proto3_optional :campaign, :string, 17 - proto3_optional :ad_group, :string, 18 - optional :resource_status, :enum, 8, "google.ads.googleads.v12.enums.ChangeStatusOperationEnum.ChangeStatusOperation" - proto3_optional :ad_group_ad, :string, 25 - proto3_optional :ad_group_criterion, :string, 26 - proto3_optional :campaign_criterion, :string, 27 - proto3_optional :feed, :string, 28 - proto3_optional :feed_item, :string, 29 - proto3_optional :ad_group_feed, :string, 30 - proto3_optional :campaign_feed, :string, 31 - proto3_optional :ad_group_bid_modifier, :string, 32 - optional :shared_set, :string, 33 - optional :campaign_shared_set, :string, 34 - optional :asset, :string, 35 - optional :customer_asset, :string, 36 - optional :campaign_asset, :string, 37 - optional :ad_group_asset, :string, 38 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ChangeStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ChangeStatus").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/click_view_pb.rb b/lib/google/ads/google_ads/v12/resources/click_view_pb.rb deleted file mode 100644 index 77943dd5b..000000000 --- a/lib/google/ads/google_ads/v12/resources/click_view_pb.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/click_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/click_location_pb' -require 'google/ads/google_ads/v12/common/criteria_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/click_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ClickView" do - optional :resource_name, :string, 1 - proto3_optional :gclid, :string, 8 - optional :area_of_interest, :message, 3, "google.ads.googleads.v12.common.ClickLocation" - optional :location_of_presence, :message, 4, "google.ads.googleads.v12.common.ClickLocation" - proto3_optional :page_number, :int64, 9 - proto3_optional :ad_group_ad, :string, 10 - proto3_optional :campaign_location_target, :string, 11 - proto3_optional :user_list, :string, 12 - optional :keyword, :string, 13 - optional :keyword_info, :message, 14, "google.ads.googleads.v12.common.KeywordInfo" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ClickView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ClickView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/combined_audience_pb.rb b/lib/google/ads/google_ads/v12/resources/combined_audience_pb.rb deleted file mode 100644 index bfb8d3e40..000000000 --- a/lib/google/ads/google_ads/v12/resources/combined_audience_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/combined_audience.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/combined_audience_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/combined_audience.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CombinedAudience" do - optional :resource_name, :string, 1 - optional :id, :int64, 2 - optional :status, :enum, 3, "google.ads.googleads.v12.enums.CombinedAudienceStatusEnum.CombinedAudienceStatus" - optional :name, :string, 4 - optional :description, :string, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CombinedAudience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CombinedAudience").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/conversion_action_pb.rb b/lib/google/ads/google_ads/v12/resources/conversion_action_pb.rb deleted file mode 100644 index 3ba240cf8..000000000 --- a/lib/google/ads/google_ads/v12/resources/conversion_action_pb.rb +++ /dev/null @@ -1,79 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/conversion_action.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/tag_snippet_pb' -require 'google/ads/google_ads/v12/enums/attribution_model_pb' -require 'google/ads/google_ads/v12/enums/conversion_action_category_pb' -require 'google/ads/google_ads/v12/enums/conversion_action_counting_type_pb' -require 'google/ads/google_ads/v12/enums/conversion_action_status_pb' -require 'google/ads/google_ads/v12/enums/conversion_action_type_pb' -require 'google/ads/google_ads/v12/enums/conversion_origin_pb' -require 'google/ads/google_ads/v12/enums/data_driven_model_status_pb' -require 'google/ads/google_ads/v12/enums/mobile_app_vendor_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/conversion_action.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ConversionAction" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 21 - proto3_optional :name, :string, 22 - optional :status, :enum, 4, "google.ads.googleads.v12.enums.ConversionActionStatusEnum.ConversionActionStatus" - optional :type, :enum, 5, "google.ads.googleads.v12.enums.ConversionActionTypeEnum.ConversionActionType" - optional :origin, :enum, 30, "google.ads.googleads.v12.enums.ConversionOriginEnum.ConversionOrigin" - proto3_optional :primary_for_goal, :bool, 31 - optional :category, :enum, 6, "google.ads.googleads.v12.enums.ConversionActionCategoryEnum.ConversionActionCategory" - proto3_optional :owner_customer, :string, 23 - proto3_optional :include_in_conversions_metric, :bool, 24 - proto3_optional :click_through_lookback_window_days, :int64, 25 - proto3_optional :view_through_lookback_window_days, :int64, 26 - optional :value_settings, :message, 11, "google.ads.googleads.v12.resources.ConversionAction.ValueSettings" - optional :counting_type, :enum, 12, "google.ads.googleads.v12.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType" - optional :attribution_model_settings, :message, 13, "google.ads.googleads.v12.resources.ConversionAction.AttributionModelSettings" - repeated :tag_snippets, :message, 14, "google.ads.googleads.v12.common.TagSnippet" - proto3_optional :phone_call_duration_seconds, :int64, 27 - proto3_optional :app_id, :string, 28 - optional :mobile_app_vendor, :enum, 17, "google.ads.googleads.v12.enums.MobileAppVendorEnum.MobileAppVendor" - optional :firebase_settings, :message, 18, "google.ads.googleads.v12.resources.ConversionAction.FirebaseSettings" - optional :third_party_app_analytics_settings, :message, 19, "google.ads.googleads.v12.resources.ConversionAction.ThirdPartyAppAnalyticsSettings" - end - add_message "google.ads.googleads.v12.resources.ConversionAction.AttributionModelSettings" do - optional :attribution_model, :enum, 1, "google.ads.googleads.v12.enums.AttributionModelEnum.AttributionModel" - optional :data_driven_model_status, :enum, 2, "google.ads.googleads.v12.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus" - end - add_message "google.ads.googleads.v12.resources.ConversionAction.ValueSettings" do - proto3_optional :default_value, :double, 4 - proto3_optional :default_currency_code, :string, 5 - proto3_optional :always_use_default_value, :bool, 6 - end - add_message "google.ads.googleads.v12.resources.ConversionAction.ThirdPartyAppAnalyticsSettings" do - proto3_optional :event_name, :string, 2 - optional :provider_name, :string, 3 - end - add_message "google.ads.googleads.v12.resources.ConversionAction.FirebaseSettings" do - proto3_optional :event_name, :string, 3 - proto3_optional :project_id, :string, 4 - optional :property_id, :int64, 5 - optional :property_name, :string, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ConversionAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ConversionAction").msgclass - ConversionAction::AttributionModelSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ConversionAction.AttributionModelSettings").msgclass - ConversionAction::ValueSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ConversionAction.ValueSettings").msgclass - ConversionAction::ThirdPartyAppAnalyticsSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ConversionAction.ThirdPartyAppAnalyticsSettings").msgclass - ConversionAction::FirebaseSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ConversionAction.FirebaseSettings").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/conversion_custom_variable_pb.rb b/lib/google/ads/google_ads/v12/resources/conversion_custom_variable_pb.rb deleted file mode 100644 index 9faed827d..000000000 --- a/lib/google/ads/google_ads/v12/resources/conversion_custom_variable_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/conversion_custom_variable.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/conversion_custom_variable_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/conversion_custom_variable.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ConversionCustomVariable" do - optional :resource_name, :string, 1 - optional :id, :int64, 2 - optional :name, :string, 3 - optional :tag, :string, 4 - optional :status, :enum, 5, "google.ads.googleads.v12.enums.ConversionCustomVariableStatusEnum.ConversionCustomVariableStatus" - optional :owner_customer, :string, 6 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ConversionCustomVariable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ConversionCustomVariable").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/conversion_goal_campaign_config_pb.rb b/lib/google/ads/google_ads/v12/resources/conversion_goal_campaign_config_pb.rb deleted file mode 100644 index 2439c29fc..000000000 --- a/lib/google/ads/google_ads/v12/resources/conversion_goal_campaign_config_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/conversion_goal_campaign_config.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/goal_config_level_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/conversion_goal_campaign_config.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ConversionGoalCampaignConfig" do - optional :resource_name, :string, 1 - optional :campaign, :string, 2 - optional :goal_config_level, :enum, 3, "google.ads.googleads.v12.enums.GoalConfigLevelEnum.GoalConfigLevel" - optional :custom_conversion_goal, :string, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ConversionGoalCampaignConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ConversionGoalCampaignConfig").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/conversion_value_rule_pb.rb b/lib/google/ads/google_ads/v12/resources/conversion_value_rule_pb.rb deleted file mode 100644 index 76d27d492..000000000 --- a/lib/google/ads/google_ads/v12/resources/conversion_value_rule_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/conversion_value_rule.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/conversion_value_rule_status_pb' -require 'google/ads/google_ads/v12/enums/value_rule_device_type_pb' -require 'google/ads/google_ads/v12/enums/value_rule_geo_location_match_type_pb' -require 'google/ads/google_ads/v12/enums/value_rule_operation_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/conversion_value_rule.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ConversionValueRule" do - optional :resource_name, :string, 1 - optional :id, :int64, 2 - optional :action, :message, 3, "google.ads.googleads.v12.resources.ConversionValueRule.ValueRuleAction" - optional :geo_location_condition, :message, 4, "google.ads.googleads.v12.resources.ConversionValueRule.ValueRuleGeoLocationCondition" - optional :device_condition, :message, 5, "google.ads.googleads.v12.resources.ConversionValueRule.ValueRuleDeviceCondition" - optional :audience_condition, :message, 6, "google.ads.googleads.v12.resources.ConversionValueRule.ValueRuleAudienceCondition" - optional :owner_customer, :string, 7 - optional :status, :enum, 8, "google.ads.googleads.v12.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus" - end - add_message "google.ads.googleads.v12.resources.ConversionValueRule.ValueRuleAction" do - optional :operation, :enum, 1, "google.ads.googleads.v12.enums.ValueRuleOperationEnum.ValueRuleOperation" - optional :value, :double, 2 - end - add_message "google.ads.googleads.v12.resources.ConversionValueRule.ValueRuleGeoLocationCondition" do - repeated :excluded_geo_target_constants, :string, 1 - optional :excluded_geo_match_type, :enum, 2, "google.ads.googleads.v12.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType" - repeated :geo_target_constants, :string, 3 - optional :geo_match_type, :enum, 4, "google.ads.googleads.v12.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType" - end - add_message "google.ads.googleads.v12.resources.ConversionValueRule.ValueRuleDeviceCondition" do - repeated :device_types, :enum, 1, "google.ads.googleads.v12.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType" - end - add_message "google.ads.googleads.v12.resources.ConversionValueRule.ValueRuleAudienceCondition" do - repeated :user_lists, :string, 1 - repeated :user_interests, :string, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ConversionValueRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ConversionValueRule").msgclass - ConversionValueRule::ValueRuleAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ConversionValueRule.ValueRuleAction").msgclass - ConversionValueRule::ValueRuleGeoLocationCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ConversionValueRule.ValueRuleGeoLocationCondition").msgclass - ConversionValueRule::ValueRuleDeviceCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ConversionValueRule.ValueRuleDeviceCondition").msgclass - ConversionValueRule::ValueRuleAudienceCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ConversionValueRule.ValueRuleAudienceCondition").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/conversion_value_rule_set_pb.rb b/lib/google/ads/google_ads/v12/resources/conversion_value_rule_set_pb.rb deleted file mode 100644 index e056916bb..000000000 --- a/lib/google/ads/google_ads/v12/resources/conversion_value_rule_set_pb.rb +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/conversion_value_rule_set.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/conversion_action_category_pb' -require 'google/ads/google_ads/v12/enums/conversion_value_rule_set_status_pb' -require 'google/ads/google_ads/v12/enums/value_rule_set_attachment_type_pb' -require 'google/ads/google_ads/v12/enums/value_rule_set_dimension_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/conversion_value_rule_set.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ConversionValueRuleSet" do - optional :resource_name, :string, 1 - optional :id, :int64, 2 - repeated :conversion_value_rules, :string, 3 - repeated :dimensions, :enum, 4, "google.ads.googleads.v12.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension" - optional :owner_customer, :string, 5 - optional :attachment_type, :enum, 6, "google.ads.googleads.v12.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType" - optional :campaign, :string, 7 - optional :status, :enum, 8, "google.ads.googleads.v12.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus" - repeated :conversion_action_categories, :enum, 9, "google.ads.googleads.v12.enums.ConversionActionCategoryEnum.ConversionActionCategory" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ConversionValueRuleSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ConversionValueRuleSet").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/currency_constant_pb.rb b/lib/google/ads/google_ads/v12/resources/currency_constant_pb.rb deleted file mode 100644 index 2c9e9e671..000000000 --- a/lib/google/ads/google_ads/v12/resources/currency_constant_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/currency_constant.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/currency_constant.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CurrencyConstant" do - optional :resource_name, :string, 1 - proto3_optional :code, :string, 6 - proto3_optional :name, :string, 7 - proto3_optional :symbol, :string, 8 - proto3_optional :billable_unit_micros, :int64, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CurrencyConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CurrencyConstant").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/custom_audience_pb.rb b/lib/google/ads/google_ads/v12/resources/custom_audience_pb.rb deleted file mode 100644 index 9b77606d6..000000000 --- a/lib/google/ads/google_ads/v12/resources/custom_audience_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/custom_audience.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/custom_audience_member_type_pb' -require 'google/ads/google_ads/v12/enums/custom_audience_status_pb' -require 'google/ads/google_ads/v12/enums/custom_audience_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/custom_audience.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomAudience" do - optional :resource_name, :string, 1 - optional :id, :int64, 2 - optional :status, :enum, 3, "google.ads.googleads.v12.enums.CustomAudienceStatusEnum.CustomAudienceStatus" - optional :name, :string, 4 - optional :type, :enum, 5, "google.ads.googleads.v12.enums.CustomAudienceTypeEnum.CustomAudienceType" - optional :description, :string, 6 - repeated :members, :message, 7, "google.ads.googleads.v12.resources.CustomAudienceMember" - end - add_message "google.ads.googleads.v12.resources.CustomAudienceMember" do - optional :member_type, :enum, 1, "google.ads.googleads.v12.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType" - oneof :value do - optional :keyword, :string, 2 - optional :url, :string, 3 - optional :place_category, :int64, 4 - optional :app, :string, 5 - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomAudience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomAudience").msgclass - CustomAudienceMember = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomAudienceMember").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/custom_conversion_goal_pb.rb b/lib/google/ads/google_ads/v12/resources/custom_conversion_goal_pb.rb deleted file mode 100644 index 1b79b4c7a..000000000 --- a/lib/google/ads/google_ads/v12/resources/custom_conversion_goal_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/custom_conversion_goal.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/custom_conversion_goal_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/custom_conversion_goal.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomConversionGoal" do - optional :resource_name, :string, 1 - optional :id, :int64, 2 - optional :name, :string, 3 - repeated :conversion_actions, :string, 4 - optional :status, :enum, 5, "google.ads.googleads.v12.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomConversionGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomConversionGoal").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/custom_interest_pb.rb b/lib/google/ads/google_ads/v12/resources/custom_interest_pb.rb deleted file mode 100644 index 175352afe..000000000 --- a/lib/google/ads/google_ads/v12/resources/custom_interest_pb.rb +++ /dev/null @@ -1,41 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/custom_interest.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/custom_interest_member_type_pb' -require 'google/ads/google_ads/v12/enums/custom_interest_status_pb' -require 'google/ads/google_ads/v12/enums/custom_interest_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/custom_interest.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomInterest" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 8 - optional :status, :enum, 3, "google.ads.googleads.v12.enums.CustomInterestStatusEnum.CustomInterestStatus" - proto3_optional :name, :string, 9 - optional :type, :enum, 5, "google.ads.googleads.v12.enums.CustomInterestTypeEnum.CustomInterestType" - proto3_optional :description, :string, 10 - repeated :members, :message, 7, "google.ads.googleads.v12.resources.CustomInterestMember" - end - add_message "google.ads.googleads.v12.resources.CustomInterestMember" do - optional :member_type, :enum, 1, "google.ads.googleads.v12.enums.CustomInterestMemberTypeEnum.CustomInterestMemberType" - proto3_optional :parameter, :string, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomInterest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomInterest").msgclass - CustomInterestMember = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomInterestMember").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/customer_asset_pb.rb b/lib/google/ads/google_ads/v12/resources/customer_asset_pb.rb deleted file mode 100644 index ff2602647..000000000 --- a/lib/google/ads/google_ads/v12/resources/customer_asset_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/customer_asset.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/asset_field_type_pb' -require 'google/ads/google_ads/v12/enums/asset_link_status_pb' -require 'google/ads/google_ads/v12/enums/asset_source_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/customer_asset.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomerAsset" do - optional :resource_name, :string, 1 - optional :asset, :string, 2 - optional :field_type, :enum, 3, "google.ads.googleads.v12.enums.AssetFieldTypeEnum.AssetFieldType" - optional :source, :enum, 5, "google.ads.googleads.v12.enums.AssetSourceEnum.AssetSource" - optional :status, :enum, 4, "google.ads.googleads.v12.enums.AssetLinkStatusEnum.AssetLinkStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomerAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomerAsset").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/customer_asset_set_pb.rb b/lib/google/ads/google_ads/v12/resources/customer_asset_set_pb.rb deleted file mode 100644 index a2cb65af1..000000000 --- a/lib/google/ads/google_ads/v12/resources/customer_asset_set_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/customer_asset_set.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/asset_set_link_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/customer_asset_set.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomerAssetSet" do - optional :resource_name, :string, 1 - optional :asset_set, :string, 2 - optional :customer, :string, 3 - optional :status, :enum, 4, "google.ads.googleads.v12.enums.AssetSetLinkStatusEnum.AssetSetLinkStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomerAssetSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomerAssetSet").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/customer_client_link_pb.rb b/lib/google/ads/google_ads/v12/resources/customer_client_link_pb.rb deleted file mode 100644 index 157027807..000000000 --- a/lib/google/ads/google_ads/v12/resources/customer_client_link_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/customer_client_link.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/manager_link_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/customer_client_link.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomerClientLink" do - optional :resource_name, :string, 1 - proto3_optional :client_customer, :string, 7 - proto3_optional :manager_link_id, :int64, 8 - optional :status, :enum, 5, "google.ads.googleads.v12.enums.ManagerLinkStatusEnum.ManagerLinkStatus" - proto3_optional :hidden, :bool, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomerClientLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomerClientLink").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/customer_client_pb.rb b/lib/google/ads/google_ads/v12/resources/customer_client_pb.rb deleted file mode 100644 index 096831a42..000000000 --- a/lib/google/ads/google_ads/v12/resources/customer_client_pb.rb +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/customer_client.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/customer_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/customer_client.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomerClient" do - optional :resource_name, :string, 1 - proto3_optional :client_customer, :string, 12 - proto3_optional :hidden, :bool, 13 - proto3_optional :level, :int64, 14 - proto3_optional :time_zone, :string, 15 - proto3_optional :test_account, :bool, 16 - proto3_optional :manager, :bool, 17 - proto3_optional :descriptive_name, :string, 18 - proto3_optional :currency_code, :string, 19 - proto3_optional :id, :int64, 20 - repeated :applied_labels, :string, 21 - optional :status, :enum, 22, "google.ads.googleads.v12.enums.CustomerStatusEnum.CustomerStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomerClient = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomerClient").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/customer_conversion_goal_pb.rb b/lib/google/ads/google_ads/v12/resources/customer_conversion_goal_pb.rb deleted file mode 100644 index b062d649c..000000000 --- a/lib/google/ads/google_ads/v12/resources/customer_conversion_goal_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/customer_conversion_goal.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/conversion_action_category_pb' -require 'google/ads/google_ads/v12/enums/conversion_origin_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/customer_conversion_goal.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomerConversionGoal" do - optional :resource_name, :string, 1 - optional :category, :enum, 2, "google.ads.googleads.v12.enums.ConversionActionCategoryEnum.ConversionActionCategory" - optional :origin, :enum, 3, "google.ads.googleads.v12.enums.ConversionOriginEnum.ConversionOrigin" - optional :biddable, :bool, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomerConversionGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomerConversionGoal").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/customer_customizer_pb.rb b/lib/google/ads/google_ads/v12/resources/customer_customizer_pb.rb deleted file mode 100644 index 3937fb906..000000000 --- a/lib/google/ads/google_ads/v12/resources/customer_customizer_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/customer_customizer.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/customizer_value_pb' -require 'google/ads/google_ads/v12/enums/customizer_value_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/customer_customizer.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomerCustomizer" do - optional :resource_name, :string, 1 - optional :customizer_attribute, :string, 2 - optional :status, :enum, 3, "google.ads.googleads.v12.enums.CustomizerValueStatusEnum.CustomizerValueStatus" - optional :value, :message, 4, "google.ads.googleads.v12.common.CustomizerValue" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomerCustomizer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomerCustomizer").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/customer_extension_setting_pb.rb b/lib/google/ads/google_ads/v12/resources/customer_extension_setting_pb.rb deleted file mode 100644 index efec7f73a..000000000 --- a/lib/google/ads/google_ads/v12/resources/customer_extension_setting_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/customer_extension_setting.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/extension_setting_device_pb' -require 'google/ads/google_ads/v12/enums/extension_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/customer_extension_setting.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomerExtensionSetting" do - optional :resource_name, :string, 1 - optional :extension_type, :enum, 2, "google.ads.googleads.v12.enums.ExtensionTypeEnum.ExtensionType" - repeated :extension_feed_items, :string, 5 - optional :device, :enum, 4, "google.ads.googleads.v12.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomerExtensionSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomerExtensionSetting").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/customer_feed_pb.rb b/lib/google/ads/google_ads/v12/resources/customer_feed_pb.rb deleted file mode 100644 index c27d3cfb9..000000000 --- a/lib/google/ads/google_ads/v12/resources/customer_feed_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/customer_feed.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/matching_function_pb' -require 'google/ads/google_ads/v12/enums/feed_link_status_pb' -require 'google/ads/google_ads/v12/enums/placeholder_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/customer_feed.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomerFeed" do - optional :resource_name, :string, 1 - proto3_optional :feed, :string, 6 - repeated :placeholder_types, :enum, 3, "google.ads.googleads.v12.enums.PlaceholderTypeEnum.PlaceholderType" - optional :matching_function, :message, 4, "google.ads.googleads.v12.common.MatchingFunction" - optional :status, :enum, 5, "google.ads.googleads.v12.enums.FeedLinkStatusEnum.FeedLinkStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomerFeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomerFeed").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/customer_label_pb.rb b/lib/google/ads/google_ads/v12/resources/customer_label_pb.rb deleted file mode 100644 index b76b0b9a6..000000000 --- a/lib/google/ads/google_ads/v12/resources/customer_label_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/customer_label.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/customer_label.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomerLabel" do - optional :resource_name, :string, 1 - proto3_optional :customer, :string, 4 - proto3_optional :label, :string, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomerLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomerLabel").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/customer_manager_link_pb.rb b/lib/google/ads/google_ads/v12/resources/customer_manager_link_pb.rb deleted file mode 100644 index 39fce329e..000000000 --- a/lib/google/ads/google_ads/v12/resources/customer_manager_link_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/customer_manager_link.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/manager_link_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/customer_manager_link.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomerManagerLink" do - optional :resource_name, :string, 1 - proto3_optional :manager_customer, :string, 6 - proto3_optional :manager_link_id, :int64, 7 - optional :status, :enum, 5, "google.ads.googleads.v12.enums.ManagerLinkStatusEnum.ManagerLinkStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomerManagerLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomerManagerLink").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/customer_negative_criterion_pb.rb b/lib/google/ads/google_ads/v12/resources/customer_negative_criterion_pb.rb deleted file mode 100644 index 26090e527..000000000 --- a/lib/google/ads/google_ads/v12/resources/customer_negative_criterion_pb.rb +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/customer_negative_criterion.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criteria_pb' -require 'google/ads/google_ads/v12/enums/criterion_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/customer_negative_criterion.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomerNegativeCriterion" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 10 - optional :type, :enum, 3, "google.ads.googleads.v12.enums.CriterionTypeEnum.CriterionType" - oneof :criterion do - optional :content_label, :message, 4, "google.ads.googleads.v12.common.ContentLabelInfo" - optional :mobile_application, :message, 5, "google.ads.googleads.v12.common.MobileApplicationInfo" - optional :mobile_app_category, :message, 6, "google.ads.googleads.v12.common.MobileAppCategoryInfo" - optional :placement, :message, 7, "google.ads.googleads.v12.common.PlacementInfo" - optional :youtube_video, :message, 8, "google.ads.googleads.v12.common.YouTubeVideoInfo" - optional :youtube_channel, :message, 9, "google.ads.googleads.v12.common.YouTubeChannelInfo" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomerNegativeCriterion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomerNegativeCriterion").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/customer_pb.rb b/lib/google/ads/google_ads/v12/resources/customer_pb.rb deleted file mode 100644 index 5d58070cb..000000000 --- a/lib/google/ads/google_ads/v12/resources/customer_pb.rb +++ /dev/null @@ -1,66 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/customer.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/conversion_tracking_status_enum_pb' -require 'google/ads/google_ads/v12/enums/customer_pay_per_conversion_eligibility_failure_reason_pb' -require 'google/ads/google_ads/v12/enums/customer_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/customer.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.Customer" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 19 - proto3_optional :descriptive_name, :string, 20 - proto3_optional :currency_code, :string, 21 - proto3_optional :time_zone, :string, 22 - proto3_optional :tracking_url_template, :string, 23 - proto3_optional :final_url_suffix, :string, 24 - proto3_optional :auto_tagging_enabled, :bool, 25 - proto3_optional :has_partners_badge, :bool, 26 - proto3_optional :manager, :bool, 27 - proto3_optional :test_account, :bool, 28 - optional :call_reporting_setting, :message, 10, "google.ads.googleads.v12.resources.CallReportingSetting" - optional :conversion_tracking_setting, :message, 14, "google.ads.googleads.v12.resources.ConversionTrackingSetting" - optional :remarketing_setting, :message, 15, "google.ads.googleads.v12.resources.RemarketingSetting" - repeated :pay_per_conversion_eligibility_failure_reasons, :enum, 16, "google.ads.googleads.v12.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason" - proto3_optional :optimization_score, :double, 29 - optional :optimization_score_weight, :double, 30 - optional :status, :enum, 36, "google.ads.googleads.v12.enums.CustomerStatusEnum.CustomerStatus" - end - add_message "google.ads.googleads.v12.resources.CallReportingSetting" do - proto3_optional :call_reporting_enabled, :bool, 10 - proto3_optional :call_conversion_reporting_enabled, :bool, 11 - proto3_optional :call_conversion_action, :string, 12 - end - add_message "google.ads.googleads.v12.resources.ConversionTrackingSetting" do - proto3_optional :conversion_tracking_id, :int64, 3 - proto3_optional :cross_account_conversion_tracking_id, :int64, 4 - optional :accepted_customer_data_terms, :bool, 5 - optional :conversion_tracking_status, :enum, 6, "google.ads.googleads.v12.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus" - optional :enhanced_conversions_for_leads_enabled, :bool, 7 - optional :google_ads_conversion_customer, :string, 8 - end - add_message "google.ads.googleads.v12.resources.RemarketingSetting" do - proto3_optional :google_global_site_tag, :string, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - Customer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Customer").msgclass - CallReportingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CallReportingSetting").msgclass - ConversionTrackingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ConversionTrackingSetting").msgclass - RemarketingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.RemarketingSetting").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/customer_user_access_invitation_pb.rb b/lib/google/ads/google_ads/v12/resources/customer_user_access_invitation_pb.rb deleted file mode 100644 index 7f3d05091..000000000 --- a/lib/google/ads/google_ads/v12/resources/customer_user_access_invitation_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/customer_user_access_invitation.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/access_invitation_status_pb' -require 'google/ads/google_ads/v12/enums/access_role_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/customer_user_access_invitation.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomerUserAccessInvitation" do - optional :resource_name, :string, 1 - optional :invitation_id, :int64, 2 - optional :access_role, :enum, 3, "google.ads.googleads.v12.enums.AccessRoleEnum.AccessRole" - optional :email_address, :string, 4 - optional :creation_date_time, :string, 5 - optional :invitation_status, :enum, 6, "google.ads.googleads.v12.enums.AccessInvitationStatusEnum.AccessInvitationStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomerUserAccessInvitation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomerUserAccessInvitation").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/customer_user_access_pb.rb b/lib/google/ads/google_ads/v12/resources/customer_user_access_pb.rb deleted file mode 100644 index ed93e0d84..000000000 --- a/lib/google/ads/google_ads/v12/resources/customer_user_access_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/customer_user_access.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/access_role_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/customer_user_access.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomerUserAccess" do - optional :resource_name, :string, 1 - optional :user_id, :int64, 2 - proto3_optional :email_address, :string, 3 - optional :access_role, :enum, 4, "google.ads.googleads.v12.enums.AccessRoleEnum.AccessRole" - proto3_optional :access_creation_date_time, :string, 6 - proto3_optional :inviter_user_email_address, :string, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomerUserAccess = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomerUserAccess").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/customizer_attribute_pb.rb b/lib/google/ads/google_ads/v12/resources/customizer_attribute_pb.rb deleted file mode 100644 index c08fe122a..000000000 --- a/lib/google/ads/google_ads/v12/resources/customizer_attribute_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/customizer_attribute.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/customizer_attribute_status_pb' -require 'google/ads/google_ads/v12/enums/customizer_attribute_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/customizer_attribute.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.CustomizerAttribute" do - optional :resource_name, :string, 1 - optional :id, :int64, 2 - optional :name, :string, 3 - optional :type, :enum, 4, "google.ads.googleads.v12.enums.CustomizerAttributeTypeEnum.CustomizerAttributeType" - optional :status, :enum, 5, "google.ads.googleads.v12.enums.CustomizerAttributeStatusEnum.CustomizerAttributeStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - CustomizerAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomizerAttribute").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/detail_placement_view_pb.rb b/lib/google/ads/google_ads/v12/resources/detail_placement_view_pb.rb deleted file mode 100644 index a05597f1b..000000000 --- a/lib/google/ads/google_ads/v12/resources/detail_placement_view_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/detail_placement_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/placement_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/detail_placement_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.DetailPlacementView" do - optional :resource_name, :string, 1 - proto3_optional :placement, :string, 7 - proto3_optional :display_name, :string, 8 - proto3_optional :group_placement_target_url, :string, 9 - proto3_optional :target_url, :string, 10 - optional :placement_type, :enum, 6, "google.ads.googleads.v12.enums.PlacementTypeEnum.PlacementType" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - DetailPlacementView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.DetailPlacementView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/detailed_demographic_pb.rb b/lib/google/ads/google_ads/v12/resources/detailed_demographic_pb.rb deleted file mode 100644 index b5adee254..000000000 --- a/lib/google/ads/google_ads/v12/resources/detailed_demographic_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/detailed_demographic.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criterion_category_availability_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/detailed_demographic.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.DetailedDemographic" do - optional :resource_name, :string, 1 - optional :id, :int64, 2 - optional :name, :string, 3 - optional :parent, :string, 4 - optional :launched_to_all, :bool, 5 - repeated :availabilities, :message, 6, "google.ads.googleads.v12.common.CriterionCategoryAvailability" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - DetailedDemographic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.DetailedDemographic").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/display_keyword_view_pb.rb b/lib/google/ads/google_ads/v12/resources/display_keyword_view_pb.rb deleted file mode 100644 index 4801810ed..000000000 --- a/lib/google/ads/google_ads/v12/resources/display_keyword_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/display_keyword_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/display_keyword_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.DisplayKeywordView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - DisplayKeywordView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.DisplayKeywordView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/distance_view_pb.rb b/lib/google/ads/google_ads/v12/resources/distance_view_pb.rb deleted file mode 100644 index cbb11fd73..000000000 --- a/lib/google/ads/google_ads/v12/resources/distance_view_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/distance_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/distance_bucket_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/distance_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.DistanceView" do - optional :resource_name, :string, 1 - optional :distance_bucket, :enum, 2, "google.ads.googleads.v12.enums.DistanceBucketEnum.DistanceBucket" - proto3_optional :metric_system, :bool, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - DistanceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.DistanceView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/domain_category_pb.rb b/lib/google/ads/google_ads/v12/resources/domain_category_pb.rb deleted file mode 100644 index 6f788adde..000000000 --- a/lib/google/ads/google_ads/v12/resources/domain_category_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/domain_category.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/domain_category.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.DomainCategory" do - optional :resource_name, :string, 1 - proto3_optional :campaign, :string, 10 - proto3_optional :category, :string, 11 - proto3_optional :language_code, :string, 12 - proto3_optional :domain, :string, 13 - proto3_optional :coverage_fraction, :double, 14 - proto3_optional :category_rank, :int64, 15 - proto3_optional :has_children, :bool, 16 - proto3_optional :recommended_cpc_bid_micros, :int64, 17 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - DomainCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.DomainCategory").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/dynamic_search_ads_search_term_view_pb.rb b/lib/google/ads/google_ads/v12/resources/dynamic_search_ads_search_term_view_pb.rb deleted file mode 100644 index d639b5d53..000000000 --- a/lib/google/ads/google_ads/v12/resources/dynamic_search_ads_search_term_view_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/dynamic_search_ads_search_term_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/dynamic_search_ads_search_term_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.DynamicSearchAdsSearchTermView" do - optional :resource_name, :string, 1 - proto3_optional :search_term, :string, 9 - proto3_optional :headline, :string, 10 - proto3_optional :landing_page, :string, 11 - proto3_optional :page_url, :string, 12 - proto3_optional :has_negative_keyword, :bool, 13 - proto3_optional :has_matching_keyword, :bool, 14 - proto3_optional :has_negative_url, :bool, 15 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - DynamicSearchAdsSearchTermView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.DynamicSearchAdsSearchTermView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/expanded_landing_page_view_pb.rb b/lib/google/ads/google_ads/v12/resources/expanded_landing_page_view_pb.rb deleted file mode 100644 index 41f938c4b..000000000 --- a/lib/google/ads/google_ads/v12/resources/expanded_landing_page_view_pb.rb +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/expanded_landing_page_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/expanded_landing_page_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ExpandedLandingPageView" do - optional :resource_name, :string, 1 - proto3_optional :expanded_final_url, :string, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ExpandedLandingPageView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ExpandedLandingPageView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/experiment_arm_pb.rb b/lib/google/ads/google_ads/v12/resources/experiment_arm_pb.rb deleted file mode 100644 index 0ef844f2c..000000000 --- a/lib/google/ads/google_ads/v12/resources/experiment_arm_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/experiment_arm.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/experiment_arm.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ExperimentArm" do - optional :resource_name, :string, 1 - optional :experiment, :string, 8 - optional :name, :string, 3 - optional :control, :bool, 4 - optional :traffic_split, :int64, 5 - repeated :campaigns, :string, 6 - repeated :in_design_campaigns, :string, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ExperimentArm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ExperimentArm").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/experiment_pb.rb b/lib/google/ads/google_ads/v12/resources/experiment_pb.rb deleted file mode 100644 index 647154aa5..000000000 --- a/lib/google/ads/google_ads/v12/resources/experiment_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/experiment.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/metric_goal_pb' -require 'google/ads/google_ads/v12/enums/async_action_status_pb' -require 'google/ads/google_ads/v12/enums/experiment_status_pb' -require 'google/ads/google_ads/v12/enums/experiment_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/experiment.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.Experiment" do - optional :resource_name, :string, 1 - proto3_optional :experiment_id, :int64, 9 - optional :name, :string, 10 - optional :description, :string, 11 - optional :suffix, :string, 12 - optional :type, :enum, 13, "google.ads.googleads.v12.enums.ExperimentTypeEnum.ExperimentType" - optional :status, :enum, 14, "google.ads.googleads.v12.enums.ExperimentStatusEnum.ExperimentStatus" - proto3_optional :start_date, :string, 15 - proto3_optional :end_date, :string, 16 - repeated :goals, :message, 17, "google.ads.googleads.v12.common.MetricGoal" - proto3_optional :long_running_operation, :string, 18 - optional :promote_status, :enum, 19, "google.ads.googleads.v12.enums.AsyncActionStatusEnum.AsyncActionStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - Experiment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Experiment").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/extension_feed_item_pb.rb b/lib/google/ads/google_ads/v12/resources/extension_feed_item_pb.rb deleted file mode 100644 index ded15a34f..000000000 --- a/lib/google/ads/google_ads/v12/resources/extension_feed_item_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/extension_feed_item.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criteria_pb' -require 'google/ads/google_ads/v12/common/extensions_pb' -require 'google/ads/google_ads/v12/enums/extension_type_pb' -require 'google/ads/google_ads/v12/enums/feed_item_status_pb' -require 'google/ads/google_ads/v12/enums/feed_item_target_device_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/extension_feed_item.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ExtensionFeedItem" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 25 - optional :extension_type, :enum, 13, "google.ads.googleads.v12.enums.ExtensionTypeEnum.ExtensionType" - proto3_optional :start_date_time, :string, 26 - proto3_optional :end_date_time, :string, 27 - repeated :ad_schedules, :message, 16, "google.ads.googleads.v12.common.AdScheduleInfo" - optional :device, :enum, 17, "google.ads.googleads.v12.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice" - proto3_optional :targeted_geo_target_constant, :string, 30 - optional :targeted_keyword, :message, 22, "google.ads.googleads.v12.common.KeywordInfo" - optional :status, :enum, 4, "google.ads.googleads.v12.enums.FeedItemStatusEnum.FeedItemStatus" - oneof :extension do - optional :sitelink_feed_item, :message, 2, "google.ads.googleads.v12.common.SitelinkFeedItem" - optional :structured_snippet_feed_item, :message, 3, "google.ads.googleads.v12.common.StructuredSnippetFeedItem" - optional :app_feed_item, :message, 7, "google.ads.googleads.v12.common.AppFeedItem" - optional :call_feed_item, :message, 8, "google.ads.googleads.v12.common.CallFeedItem" - optional :callout_feed_item, :message, 9, "google.ads.googleads.v12.common.CalloutFeedItem" - optional :text_message_feed_item, :message, 10, "google.ads.googleads.v12.common.TextMessageFeedItem" - optional :price_feed_item, :message, 11, "google.ads.googleads.v12.common.PriceFeedItem" - optional :promotion_feed_item, :message, 12, "google.ads.googleads.v12.common.PromotionFeedItem" - optional :location_feed_item, :message, 14, "google.ads.googleads.v12.common.LocationFeedItem" - optional :affiliate_location_feed_item, :message, 15, "google.ads.googleads.v12.common.AffiliateLocationFeedItem" - optional :hotel_callout_feed_item, :message, 23, "google.ads.googleads.v12.common.HotelCalloutFeedItem" - optional :image_feed_item, :message, 31, "google.ads.googleads.v12.common.ImageFeedItem" - end - oneof :serving_resource_targeting do - optional :targeted_campaign, :string, 28 - optional :targeted_ad_group, :string, 29 - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ExtensionFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ExtensionFeedItem").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/feed_item_pb.rb b/lib/google/ads/google_ads/v12/resources/feed_item_pb.rb deleted file mode 100644 index 90cf1a1d3..000000000 --- a/lib/google/ads/google_ads/v12/resources/feed_item_pb.rb +++ /dev/null @@ -1,80 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/feed_item.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/custom_parameter_pb' -require 'google/ads/google_ads/v12/common/feed_common_pb' -require 'google/ads/google_ads/v12/common/policy_pb' -require 'google/ads/google_ads/v12/enums/feed_item_quality_approval_status_pb' -require 'google/ads/google_ads/v12/enums/feed_item_quality_disapproval_reason_pb' -require 'google/ads/google_ads/v12/enums/feed_item_status_pb' -require 'google/ads/google_ads/v12/enums/feed_item_validation_status_pb' -require 'google/ads/google_ads/v12/enums/geo_targeting_restriction_pb' -require 'google/ads/google_ads/v12/enums/placeholder_type_pb' -require 'google/ads/google_ads/v12/enums/policy_approval_status_pb' -require 'google/ads/google_ads/v12/enums/policy_review_status_pb' -require 'google/ads/google_ads/v12/errors/feed_item_validation_error_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/feed_item.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.FeedItem" do - optional :resource_name, :string, 1 - proto3_optional :feed, :string, 11 - proto3_optional :id, :int64, 12 - proto3_optional :start_date_time, :string, 13 - proto3_optional :end_date_time, :string, 14 - repeated :attribute_values, :message, 6, "google.ads.googleads.v12.resources.FeedItemAttributeValue" - optional :geo_targeting_restriction, :enum, 7, "google.ads.googleads.v12.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction" - repeated :url_custom_parameters, :message, 8, "google.ads.googleads.v12.common.CustomParameter" - optional :status, :enum, 9, "google.ads.googleads.v12.enums.FeedItemStatusEnum.FeedItemStatus" - repeated :policy_infos, :message, 10, "google.ads.googleads.v12.resources.FeedItemPlaceholderPolicyInfo" - end - add_message "google.ads.googleads.v12.resources.FeedItemAttributeValue" do - proto3_optional :feed_attribute_id, :int64, 11 - proto3_optional :integer_value, :int64, 12 - proto3_optional :boolean_value, :bool, 13 - proto3_optional :string_value, :string, 14 - proto3_optional :double_value, :double, 15 - optional :price_value, :message, 6, "google.ads.googleads.v12.common.Money" - repeated :integer_values, :int64, 16 - repeated :boolean_values, :bool, 17 - repeated :string_values, :string, 18 - repeated :double_values, :double, 19 - end - add_message "google.ads.googleads.v12.resources.FeedItemPlaceholderPolicyInfo" do - optional :placeholder_type_enum, :enum, 10, "google.ads.googleads.v12.enums.PlaceholderTypeEnum.PlaceholderType" - proto3_optional :feed_mapping_resource_name, :string, 11 - optional :review_status, :enum, 3, "google.ads.googleads.v12.enums.PolicyReviewStatusEnum.PolicyReviewStatus" - optional :approval_status, :enum, 4, "google.ads.googleads.v12.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus" - repeated :policy_topic_entries, :message, 5, "google.ads.googleads.v12.common.PolicyTopicEntry" - optional :validation_status, :enum, 6, "google.ads.googleads.v12.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus" - repeated :validation_errors, :message, 7, "google.ads.googleads.v12.resources.FeedItemValidationError" - optional :quality_approval_status, :enum, 8, "google.ads.googleads.v12.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus" - repeated :quality_disapproval_reasons, :enum, 9, "google.ads.googleads.v12.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason" - end - add_message "google.ads.googleads.v12.resources.FeedItemValidationError" do - optional :validation_error, :enum, 1, "google.ads.googleads.v12.errors.FeedItemValidationErrorEnum.FeedItemValidationError" - proto3_optional :description, :string, 6 - repeated :feed_attribute_ids, :int64, 7 - proto3_optional :extra_info, :string, 8 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - FeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.FeedItem").msgclass - FeedItemAttributeValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.FeedItemAttributeValue").msgclass - FeedItemPlaceholderPolicyInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.FeedItemPlaceholderPolicyInfo").msgclass - FeedItemValidationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.FeedItemValidationError").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/feed_item_set_link_pb.rb b/lib/google/ads/google_ads/v12/resources/feed_item_set_link_pb.rb deleted file mode 100644 index dbb376dba..000000000 --- a/lib/google/ads/google_ads/v12/resources/feed_item_set_link_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/feed_item_set_link.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/feed_item_set_link.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.FeedItemSetLink" do - optional :resource_name, :string, 1 - optional :feed_item, :string, 2 - optional :feed_item_set, :string, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - FeedItemSetLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.FeedItemSetLink").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/feed_item_set_pb.rb b/lib/google/ads/google_ads/v12/resources/feed_item_set_pb.rb deleted file mode 100644 index 8d95d8d0a..000000000 --- a/lib/google/ads/google_ads/v12/resources/feed_item_set_pb.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/feed_item_set.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/feed_item_set_filter_type_infos_pb' -require 'google/ads/google_ads/v12/enums/feed_item_set_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/feed_item_set.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.FeedItemSet" do - optional :resource_name, :string, 1 - optional :feed, :string, 2 - optional :feed_item_set_id, :int64, 3 - optional :display_name, :string, 4 - optional :status, :enum, 8, "google.ads.googleads.v12.enums.FeedItemSetStatusEnum.FeedItemSetStatus" - oneof :dynamic_set_filter do - optional :dynamic_location_set_filter, :message, 5, "google.ads.googleads.v12.common.DynamicLocationSetFilter" - optional :dynamic_affiliate_location_set_filter, :message, 6, "google.ads.googleads.v12.common.DynamicAffiliateLocationSetFilter" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - FeedItemSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.FeedItemSet").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/feed_item_target_pb.rb b/lib/google/ads/google_ads/v12/resources/feed_item_target_pb.rb deleted file mode 100644 index 2d67b71bd..000000000 --- a/lib/google/ads/google_ads/v12/resources/feed_item_target_pb.rb +++ /dev/null @@ -1,43 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/feed_item_target.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criteria_pb' -require 'google/ads/google_ads/v12/enums/feed_item_target_device_pb' -require 'google/ads/google_ads/v12/enums/feed_item_target_status_pb' -require 'google/ads/google_ads/v12/enums/feed_item_target_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/feed_item_target.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.FeedItemTarget" do - optional :resource_name, :string, 1 - proto3_optional :feed_item, :string, 12 - optional :feed_item_target_type, :enum, 3, "google.ads.googleads.v12.enums.FeedItemTargetTypeEnum.FeedItemTargetType" - proto3_optional :feed_item_target_id, :int64, 13 - optional :status, :enum, 11, "google.ads.googleads.v12.enums.FeedItemTargetStatusEnum.FeedItemTargetStatus" - oneof :target do - optional :campaign, :string, 14 - optional :ad_group, :string, 15 - optional :keyword, :message, 7, "google.ads.googleads.v12.common.KeywordInfo" - optional :geo_target_constant, :string, 16 - optional :device, :enum, 9, "google.ads.googleads.v12.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice" - optional :ad_schedule, :message, 10, "google.ads.googleads.v12.common.AdScheduleInfo" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - FeedItemTarget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.FeedItemTarget").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/feed_mapping_pb.rb b/lib/google/ads/google_ads/v12/resources/feed_mapping_pb.rb deleted file mode 100644 index b7213f395..000000000 --- a/lib/google/ads/google_ads/v12/resources/feed_mapping_pb.rb +++ /dev/null @@ -1,88 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/feed_mapping.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/ad_customizer_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/affiliate_location_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/app_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/call_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/callout_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/custom_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/dsa_page_feed_criterion_field_pb' -require 'google/ads/google_ads/v12/enums/education_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/feed_mapping_criterion_type_pb' -require 'google/ads/google_ads/v12/enums/feed_mapping_status_pb' -require 'google/ads/google_ads/v12/enums/flight_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/hotel_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/image_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/job_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/local_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/location_extension_targeting_criterion_field_pb' -require 'google/ads/google_ads/v12/enums/location_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/message_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/placeholder_type_pb' -require 'google/ads/google_ads/v12/enums/price_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/promotion_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/real_estate_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/sitelink_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/structured_snippet_placeholder_field_pb' -require 'google/ads/google_ads/v12/enums/travel_placeholder_field_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/feed_mapping.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.FeedMapping" do - optional :resource_name, :string, 1 - proto3_optional :feed, :string, 7 - repeated :attribute_field_mappings, :message, 5, "google.ads.googleads.v12.resources.AttributeFieldMapping" - optional :status, :enum, 6, "google.ads.googleads.v12.enums.FeedMappingStatusEnum.FeedMappingStatus" - oneof :target do - optional :placeholder_type, :enum, 3, "google.ads.googleads.v12.enums.PlaceholderTypeEnum.PlaceholderType" - optional :criterion_type, :enum, 4, "google.ads.googleads.v12.enums.FeedMappingCriterionTypeEnum.FeedMappingCriterionType" - end - end - add_message "google.ads.googleads.v12.resources.AttributeFieldMapping" do - proto3_optional :feed_attribute_id, :int64, 24 - proto3_optional :field_id, :int64, 25 - oneof :field do - optional :sitelink_field, :enum, 3, "google.ads.googleads.v12.enums.SitelinkPlaceholderFieldEnum.SitelinkPlaceholderField" - optional :call_field, :enum, 4, "google.ads.googleads.v12.enums.CallPlaceholderFieldEnum.CallPlaceholderField" - optional :app_field, :enum, 5, "google.ads.googleads.v12.enums.AppPlaceholderFieldEnum.AppPlaceholderField" - optional :location_field, :enum, 6, "google.ads.googleads.v12.enums.LocationPlaceholderFieldEnum.LocationPlaceholderField" - optional :affiliate_location_field, :enum, 7, "google.ads.googleads.v12.enums.AffiliateLocationPlaceholderFieldEnum.AffiliateLocationPlaceholderField" - optional :callout_field, :enum, 8, "google.ads.googleads.v12.enums.CalloutPlaceholderFieldEnum.CalloutPlaceholderField" - optional :structured_snippet_field, :enum, 9, "google.ads.googleads.v12.enums.StructuredSnippetPlaceholderFieldEnum.StructuredSnippetPlaceholderField" - optional :message_field, :enum, 10, "google.ads.googleads.v12.enums.MessagePlaceholderFieldEnum.MessagePlaceholderField" - optional :price_field, :enum, 11, "google.ads.googleads.v12.enums.PricePlaceholderFieldEnum.PricePlaceholderField" - optional :promotion_field, :enum, 12, "google.ads.googleads.v12.enums.PromotionPlaceholderFieldEnum.PromotionPlaceholderField" - optional :ad_customizer_field, :enum, 13, "google.ads.googleads.v12.enums.AdCustomizerPlaceholderFieldEnum.AdCustomizerPlaceholderField" - optional :dsa_page_feed_field, :enum, 14, "google.ads.googleads.v12.enums.DsaPageFeedCriterionFieldEnum.DsaPageFeedCriterionField" - optional :location_extension_targeting_field, :enum, 15, "google.ads.googleads.v12.enums.LocationExtensionTargetingCriterionFieldEnum.LocationExtensionTargetingCriterionField" - optional :education_field, :enum, 16, "google.ads.googleads.v12.enums.EducationPlaceholderFieldEnum.EducationPlaceholderField" - optional :flight_field, :enum, 17, "google.ads.googleads.v12.enums.FlightPlaceholderFieldEnum.FlightPlaceholderField" - optional :custom_field, :enum, 18, "google.ads.googleads.v12.enums.CustomPlaceholderFieldEnum.CustomPlaceholderField" - optional :hotel_field, :enum, 19, "google.ads.googleads.v12.enums.HotelPlaceholderFieldEnum.HotelPlaceholderField" - optional :real_estate_field, :enum, 20, "google.ads.googleads.v12.enums.RealEstatePlaceholderFieldEnum.RealEstatePlaceholderField" - optional :travel_field, :enum, 21, "google.ads.googleads.v12.enums.TravelPlaceholderFieldEnum.TravelPlaceholderField" - optional :local_field, :enum, 22, "google.ads.googleads.v12.enums.LocalPlaceholderFieldEnum.LocalPlaceholderField" - optional :job_field, :enum, 23, "google.ads.googleads.v12.enums.JobPlaceholderFieldEnum.JobPlaceholderField" - optional :image_field, :enum, 26, "google.ads.googleads.v12.enums.ImagePlaceholderFieldEnum.ImagePlaceholderField" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - FeedMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.FeedMapping").msgclass - AttributeFieldMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.AttributeFieldMapping").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/feed_pb.rb b/lib/google/ads/google_ads/v12/resources/feed_pb.rb deleted file mode 100644 index 3fc055d96..000000000 --- a/lib/google/ads/google_ads/v12/resources/feed_pb.rb +++ /dev/null @@ -1,79 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/feed.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/affiliate_location_feed_relationship_type_pb' -require 'google/ads/google_ads/v12/enums/feed_attribute_type_pb' -require 'google/ads/google_ads/v12/enums/feed_origin_pb' -require 'google/ads/google_ads/v12/enums/feed_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/feed.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.Feed" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 11 - proto3_optional :name, :string, 12 - repeated :attributes, :message, 4, "google.ads.googleads.v12.resources.FeedAttribute" - repeated :attribute_operations, :message, 9, "google.ads.googleads.v12.resources.FeedAttributeOperation" - optional :origin, :enum, 5, "google.ads.googleads.v12.enums.FeedOriginEnum.FeedOrigin" - optional :status, :enum, 8, "google.ads.googleads.v12.enums.FeedStatusEnum.FeedStatus" - oneof :system_feed_generation_data do - optional :places_location_feed_data, :message, 6, "google.ads.googleads.v12.resources.Feed.PlacesLocationFeedData" - optional :affiliate_location_feed_data, :message, 7, "google.ads.googleads.v12.resources.Feed.AffiliateLocationFeedData" - end - end - add_message "google.ads.googleads.v12.resources.Feed.PlacesLocationFeedData" do - optional :oauth_info, :message, 1, "google.ads.googleads.v12.resources.Feed.PlacesLocationFeedData.OAuthInfo" - proto3_optional :email_address, :string, 7 - optional :business_account_id, :string, 8 - proto3_optional :business_name_filter, :string, 9 - repeated :category_filters, :string, 11 - repeated :label_filters, :string, 12 - end - add_message "google.ads.googleads.v12.resources.Feed.PlacesLocationFeedData.OAuthInfo" do - proto3_optional :http_method, :string, 4 - proto3_optional :http_request_url, :string, 5 - proto3_optional :http_authorization_header, :string, 6 - end - add_message "google.ads.googleads.v12.resources.Feed.AffiliateLocationFeedData" do - repeated :chain_ids, :int64, 3 - optional :relationship_type, :enum, 2, "google.ads.googleads.v12.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType" - end - add_message "google.ads.googleads.v12.resources.FeedAttribute" do - proto3_optional :id, :int64, 5 - proto3_optional :name, :string, 6 - optional :type, :enum, 3, "google.ads.googleads.v12.enums.FeedAttributeTypeEnum.FeedAttributeType" - proto3_optional :is_part_of_key, :bool, 7 - end - add_message "google.ads.googleads.v12.resources.FeedAttributeOperation" do - optional :operator, :enum, 1, "google.ads.googleads.v12.resources.FeedAttributeOperation.Operator" - optional :value, :message, 2, "google.ads.googleads.v12.resources.FeedAttribute" - end - add_enum "google.ads.googleads.v12.resources.FeedAttributeOperation.Operator" do - value :UNSPECIFIED, 0 - value :UNKNOWN, 1 - value :ADD, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - Feed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Feed").msgclass - Feed::PlacesLocationFeedData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Feed.PlacesLocationFeedData").msgclass - Feed::PlacesLocationFeedData::OAuthInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Feed.PlacesLocationFeedData.OAuthInfo").msgclass - Feed::AffiliateLocationFeedData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Feed.AffiliateLocationFeedData").msgclass - FeedAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.FeedAttribute").msgclass - FeedAttributeOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.FeedAttributeOperation").msgclass - FeedAttributeOperation::Operator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.FeedAttributeOperation.Operator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/feed_placeholder_view_pb.rb b/lib/google/ads/google_ads/v12/resources/feed_placeholder_view_pb.rb deleted file mode 100644 index 659538730..000000000 --- a/lib/google/ads/google_ads/v12/resources/feed_placeholder_view_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/feed_placeholder_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/placeholder_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/feed_placeholder_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.FeedPlaceholderView" do - optional :resource_name, :string, 1 - optional :placeholder_type, :enum, 2, "google.ads.googleads.v12.enums.PlaceholderTypeEnum.PlaceholderType" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - FeedPlaceholderView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.FeedPlaceholderView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/gender_view_pb.rb b/lib/google/ads/google_ads/v12/resources/gender_view_pb.rb deleted file mode 100644 index 5b1d25bb3..000000000 --- a/lib/google/ads/google_ads/v12/resources/gender_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/gender_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/gender_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.GenderView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - GenderView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.GenderView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/geo_target_constant_pb.rb b/lib/google/ads/google_ads/v12/resources/geo_target_constant_pb.rb deleted file mode 100644 index b07d93201..000000000 --- a/lib/google/ads/google_ads/v12/resources/geo_target_constant_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/geo_target_constant.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/geo_target_constant_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/geo_target_constant.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.GeoTargetConstant" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 10 - proto3_optional :name, :string, 11 - proto3_optional :country_code, :string, 12 - proto3_optional :target_type, :string, 13 - optional :status, :enum, 7, "google.ads.googleads.v12.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus" - proto3_optional :canonical_name, :string, 14 - proto3_optional :parent_geo_target, :string, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - GeoTargetConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.GeoTargetConstant").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/geographic_view_pb.rb b/lib/google/ads/google_ads/v12/resources/geographic_view_pb.rb deleted file mode 100644 index 68439cf24..000000000 --- a/lib/google/ads/google_ads/v12/resources/geographic_view_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/geographic_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/geo_targeting_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/geographic_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.GeographicView" do - optional :resource_name, :string, 1 - optional :location_type, :enum, 3, "google.ads.googleads.v12.enums.GeoTargetingTypeEnum.GeoTargetingType" - proto3_optional :country_criterion_id, :int64, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - GeographicView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.GeographicView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/google_ads_field_pb.rb b/lib/google/ads/google_ads/v12/resources/google_ads_field_pb.rb deleted file mode 100644 index 960605eac..000000000 --- a/lib/google/ads/google_ads/v12/resources/google_ads_field_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/google_ads_field.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/google_ads_field_category_pb' -require 'google/ads/google_ads/v12/enums/google_ads_field_data_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/google_ads_field.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.GoogleAdsField" do - optional :resource_name, :string, 1 - proto3_optional :name, :string, 21 - optional :category, :enum, 3, "google.ads.googleads.v12.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory" - proto3_optional :selectable, :bool, 22 - proto3_optional :filterable, :bool, 23 - proto3_optional :sortable, :bool, 24 - repeated :selectable_with, :string, 25 - repeated :attribute_resources, :string, 26 - repeated :metrics, :string, 27 - repeated :segments, :string, 28 - repeated :enum_values, :string, 29 - optional :data_type, :enum, 12, "google.ads.googleads.v12.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType" - proto3_optional :type_url, :string, 30 - proto3_optional :is_repeated, :bool, 31 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - GoogleAdsField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.GoogleAdsField").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/group_placement_view_pb.rb b/lib/google/ads/google_ads/v12/resources/group_placement_view_pb.rb deleted file mode 100644 index ef5201b81..000000000 --- a/lib/google/ads/google_ads/v12/resources/group_placement_view_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/group_placement_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/placement_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/group_placement_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.GroupPlacementView" do - optional :resource_name, :string, 1 - proto3_optional :placement, :string, 6 - proto3_optional :display_name, :string, 7 - proto3_optional :target_url, :string, 8 - optional :placement_type, :enum, 5, "google.ads.googleads.v12.enums.PlacementTypeEnum.PlacementType" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - GroupPlacementView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.GroupPlacementView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/hotel_group_view_pb.rb b/lib/google/ads/google_ads/v12/resources/hotel_group_view_pb.rb deleted file mode 100644 index 99253fdd6..000000000 --- a/lib/google/ads/google_ads/v12/resources/hotel_group_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/hotel_group_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/hotel_group_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.HotelGroupView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - HotelGroupView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.HotelGroupView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/hotel_performance_view_pb.rb b/lib/google/ads/google_ads/v12/resources/hotel_performance_view_pb.rb deleted file mode 100644 index f295972fb..000000000 --- a/lib/google/ads/google_ads/v12/resources/hotel_performance_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/hotel_performance_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/hotel_performance_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.HotelPerformanceView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - HotelPerformanceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.HotelPerformanceView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/hotel_reconciliation_pb.rb b/lib/google/ads/google_ads/v12/resources/hotel_reconciliation_pb.rb deleted file mode 100644 index d2ddc9cbf..000000000 --- a/lib/google/ads/google_ads/v12/resources/hotel_reconciliation_pb.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/hotel_reconciliation.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/hotel_reconciliation_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/hotel_reconciliation.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.HotelReconciliation" do - optional :resource_name, :string, 1 - optional :commission_id, :string, 2 - optional :order_id, :string, 3 - optional :campaign, :string, 11 - optional :hotel_center_id, :int64, 4 - optional :hotel_id, :string, 5 - optional :check_in_date, :string, 6 - optional :check_out_date, :string, 7 - optional :reconciled_value_micros, :int64, 8 - optional :billed, :bool, 9 - optional :status, :enum, 10, "google.ads.googleads.v12.enums.HotelReconciliationStatusEnum.HotelReconciliationStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - HotelReconciliation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.HotelReconciliation").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/income_range_view_pb.rb b/lib/google/ads/google_ads/v12/resources/income_range_view_pb.rb deleted file mode 100644 index 02145773e..000000000 --- a/lib/google/ads/google_ads/v12/resources/income_range_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/income_range_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/income_range_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.IncomeRangeView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - IncomeRangeView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.IncomeRangeView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/invoice_pb.rb b/lib/google/ads/google_ads/v12/resources/invoice_pb.rb deleted file mode 100644 index 5ff48d2a5..000000000 --- a/lib/google/ads/google_ads/v12/resources/invoice_pb.rb +++ /dev/null @@ -1,87 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/invoice.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/dates_pb' -require 'google/ads/google_ads/v12/enums/invoice_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/invoice.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.Invoice" do - optional :resource_name, :string, 1 - proto3_optional :id, :string, 25 - optional :type, :enum, 3, "google.ads.googleads.v12.enums.InvoiceTypeEnum.InvoiceType" - proto3_optional :billing_setup, :string, 26 - proto3_optional :payments_account_id, :string, 27 - proto3_optional :payments_profile_id, :string, 28 - proto3_optional :issue_date, :string, 29 - proto3_optional :due_date, :string, 30 - optional :service_date_range, :message, 9, "google.ads.googleads.v12.common.DateRange" - proto3_optional :currency_code, :string, 31 - optional :adjustments_subtotal_amount_micros, :int64, 19 - optional :adjustments_tax_amount_micros, :int64, 20 - optional :adjustments_total_amount_micros, :int64, 21 - optional :regulatory_costs_subtotal_amount_micros, :int64, 22 - optional :regulatory_costs_tax_amount_micros, :int64, 23 - optional :regulatory_costs_total_amount_micros, :int64, 24 - proto3_optional :subtotal_amount_micros, :int64, 33 - proto3_optional :tax_amount_micros, :int64, 34 - proto3_optional :total_amount_micros, :int64, 35 - proto3_optional :corrected_invoice, :string, 36 - repeated :replaced_invoices, :string, 37 - proto3_optional :pdf_url, :string, 38 - repeated :account_budget_summaries, :message, 18, "google.ads.googleads.v12.resources.Invoice.AccountBudgetSummary" - repeated :account_summaries, :message, 39, "google.ads.googleads.v12.resources.Invoice.AccountSummary" - end - add_message "google.ads.googleads.v12.resources.Invoice.AccountSummary" do - proto3_optional :customer, :string, 1 - proto3_optional :billing_correction_subtotal_amount_micros, :int64, 2 - proto3_optional :billing_correction_tax_amount_micros, :int64, 3 - proto3_optional :billing_correction_total_amount_micros, :int64, 4 - proto3_optional :coupon_adjustment_subtotal_amount_micros, :int64, 5 - proto3_optional :coupon_adjustment_tax_amount_micros, :int64, 6 - proto3_optional :coupon_adjustment_total_amount_micros, :int64, 7 - proto3_optional :excess_credit_adjustment_subtotal_amount_micros, :int64, 8 - proto3_optional :excess_credit_adjustment_tax_amount_micros, :int64, 9 - proto3_optional :excess_credit_adjustment_total_amount_micros, :int64, 10 - proto3_optional :regulatory_costs_subtotal_amount_micros, :int64, 11 - proto3_optional :regulatory_costs_tax_amount_micros, :int64, 12 - proto3_optional :regulatory_costs_total_amount_micros, :int64, 13 - proto3_optional :subtotal_amount_micros, :int64, 14 - proto3_optional :tax_amount_micros, :int64, 15 - proto3_optional :total_amount_micros, :int64, 16 - end - add_message "google.ads.googleads.v12.resources.Invoice.AccountBudgetSummary" do - proto3_optional :customer, :string, 10 - proto3_optional :customer_descriptive_name, :string, 11 - proto3_optional :account_budget, :string, 12 - proto3_optional :account_budget_name, :string, 13 - proto3_optional :purchase_order_number, :string, 14 - proto3_optional :subtotal_amount_micros, :int64, 15 - proto3_optional :tax_amount_micros, :int64, 16 - proto3_optional :total_amount_micros, :int64, 17 - optional :billable_activity_date_range, :message, 9, "google.ads.googleads.v12.common.DateRange" - proto3_optional :served_amount_micros, :int64, 18 - proto3_optional :billed_amount_micros, :int64, 19 - proto3_optional :overdelivery_amount_micros, :int64, 20 - proto3_optional :invalid_activity_amount_micros, :int64, 21 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - Invoice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Invoice").msgclass - Invoice::AccountSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Invoice.AccountSummary").msgclass - Invoice::AccountBudgetSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Invoice.AccountBudgetSummary").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/keyword_plan_ad_group_keyword_pb.rb b/lib/google/ads/google_ads/v12/resources/keyword_plan_ad_group_keyword_pb.rb deleted file mode 100644 index 332beba42..000000000 --- a/lib/google/ads/google_ads/v12/resources/keyword_plan_ad_group_keyword_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/keyword_plan_ad_group_keyword.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/keyword_match_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/keyword_plan_ad_group_keyword.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.KeywordPlanAdGroupKeyword" do - optional :resource_name, :string, 1 - proto3_optional :keyword_plan_ad_group, :string, 8 - proto3_optional :id, :int64, 9 - proto3_optional :text, :string, 10 - optional :match_type, :enum, 5, "google.ads.googleads.v12.enums.KeywordMatchTypeEnum.KeywordMatchType" - proto3_optional :cpc_bid_micros, :int64, 11 - proto3_optional :negative, :bool, 12 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - KeywordPlanAdGroupKeyword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.KeywordPlanAdGroupKeyword").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/keyword_plan_ad_group_pb.rb b/lib/google/ads/google_ads/v12/resources/keyword_plan_ad_group_pb.rb deleted file mode 100644 index b1be166a9..000000000 --- a/lib/google/ads/google_ads/v12/resources/keyword_plan_ad_group_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/keyword_plan_ad_group.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/keyword_plan_ad_group.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.KeywordPlanAdGroup" do - optional :resource_name, :string, 1 - proto3_optional :keyword_plan_campaign, :string, 6 - proto3_optional :id, :int64, 7 - proto3_optional :name, :string, 8 - proto3_optional :cpc_bid_micros, :int64, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - KeywordPlanAdGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.KeywordPlanAdGroup").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/keyword_plan_campaign_keyword_pb.rb b/lib/google/ads/google_ads/v12/resources/keyword_plan_campaign_keyword_pb.rb deleted file mode 100644 index 9617800f4..000000000 --- a/lib/google/ads/google_ads/v12/resources/keyword_plan_campaign_keyword_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/keyword_plan_campaign_keyword.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/keyword_match_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/keyword_plan_campaign_keyword.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.KeywordPlanCampaignKeyword" do - optional :resource_name, :string, 1 - proto3_optional :keyword_plan_campaign, :string, 8 - proto3_optional :id, :int64, 9 - proto3_optional :text, :string, 10 - optional :match_type, :enum, 5, "google.ads.googleads.v12.enums.KeywordMatchTypeEnum.KeywordMatchType" - proto3_optional :negative, :bool, 11 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - KeywordPlanCampaignKeyword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.KeywordPlanCampaignKeyword").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/keyword_plan_campaign_pb.rb b/lib/google/ads/google_ads/v12/resources/keyword_plan_campaign_pb.rb deleted file mode 100644 index 081ff2b26..000000000 --- a/lib/google/ads/google_ads/v12/resources/keyword_plan_campaign_pb.rb +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/keyword_plan_campaign.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/keyword_plan_network_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/keyword_plan_campaign.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.KeywordPlanCampaign" do - optional :resource_name, :string, 1 - proto3_optional :keyword_plan, :string, 9 - proto3_optional :id, :int64, 10 - proto3_optional :name, :string, 11 - repeated :language_constants, :string, 12 - optional :keyword_plan_network, :enum, 6, "google.ads.googleads.v12.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork" - proto3_optional :cpc_bid_micros, :int64, 13 - repeated :geo_targets, :message, 8, "google.ads.googleads.v12.resources.KeywordPlanGeoTarget" - end - add_message "google.ads.googleads.v12.resources.KeywordPlanGeoTarget" do - proto3_optional :geo_target_constant, :string, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - KeywordPlanCampaign = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.KeywordPlanCampaign").msgclass - KeywordPlanGeoTarget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.KeywordPlanGeoTarget").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/keyword_plan_pb.rb b/lib/google/ads/google_ads/v12/resources/keyword_plan_pb.rb deleted file mode 100644 index 302cea34b..000000000 --- a/lib/google/ads/google_ads/v12/resources/keyword_plan_pb.rb +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/keyword_plan.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/dates_pb' -require 'google/ads/google_ads/v12/enums/keyword_plan_forecast_interval_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/keyword_plan.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.KeywordPlan" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 5 - proto3_optional :name, :string, 6 - optional :forecast_period, :message, 4, "google.ads.googleads.v12.resources.KeywordPlanForecastPeriod" - end - add_message "google.ads.googleads.v12.resources.KeywordPlanForecastPeriod" do - oneof :interval do - optional :date_interval, :enum, 1, "google.ads.googleads.v12.enums.KeywordPlanForecastIntervalEnum.KeywordPlanForecastInterval" - optional :date_range, :message, 2, "google.ads.googleads.v12.common.DateRange" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - KeywordPlan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.KeywordPlan").msgclass - KeywordPlanForecastPeriod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.KeywordPlanForecastPeriod").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/keyword_theme_constant_pb.rb b/lib/google/ads/google_ads/v12/resources/keyword_theme_constant_pb.rb deleted file mode 100644 index f856e1cac..000000000 --- a/lib/google/ads/google_ads/v12/resources/keyword_theme_constant_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/keyword_theme_constant.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/keyword_theme_constant.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.KeywordThemeConstant" do - optional :resource_name, :string, 1 - proto3_optional :country_code, :string, 2 - proto3_optional :language_code, :string, 3 - proto3_optional :display_name, :string, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - KeywordThemeConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.KeywordThemeConstant").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/keyword_view_pb.rb b/lib/google/ads/google_ads/v12/resources/keyword_view_pb.rb deleted file mode 100644 index 400ff2f79..000000000 --- a/lib/google/ads/google_ads/v12/resources/keyword_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/keyword_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/keyword_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.KeywordView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - KeywordView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.KeywordView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/label_pb.rb b/lib/google/ads/google_ads/v12/resources/label_pb.rb deleted file mode 100644 index edd227b48..000000000 --- a/lib/google/ads/google_ads/v12/resources/label_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/label.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/text_label_pb' -require 'google/ads/google_ads/v12/enums/label_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/label.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.Label" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 6 - proto3_optional :name, :string, 7 - optional :status, :enum, 4, "google.ads.googleads.v12.enums.LabelStatusEnum.LabelStatus" - optional :text_label, :message, 5, "google.ads.googleads.v12.common.TextLabel" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - Label = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Label").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/landing_page_view_pb.rb b/lib/google/ads/google_ads/v12/resources/landing_page_view_pb.rb deleted file mode 100644 index 8e16005bf..000000000 --- a/lib/google/ads/google_ads/v12/resources/landing_page_view_pb.rb +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/landing_page_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/landing_page_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.LandingPageView" do - optional :resource_name, :string, 1 - proto3_optional :unexpanded_final_url, :string, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - LandingPageView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.LandingPageView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/language_constant_pb.rb b/lib/google/ads/google_ads/v12/resources/language_constant_pb.rb deleted file mode 100644 index 807dafdcb..000000000 --- a/lib/google/ads/google_ads/v12/resources/language_constant_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/language_constant.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/language_constant.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.LanguageConstant" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 6 - proto3_optional :code, :string, 7 - proto3_optional :name, :string, 8 - proto3_optional :targetable, :bool, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - LanguageConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.LanguageConstant").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/lead_form_submission_data_pb.rb b/lib/google/ads/google_ads/v12/resources/lead_form_submission_data_pb.rb deleted file mode 100644 index 6ae7caf25..000000000 --- a/lib/google/ads/google_ads/v12/resources/lead_form_submission_data_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/lead_form_submission_data.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/lead_form_field_user_input_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/lead_form_submission_data.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.LeadFormSubmissionData" do - optional :resource_name, :string, 1 - optional :id, :string, 2 - optional :asset, :string, 3 - optional :campaign, :string, 4 - repeated :lead_form_submission_fields, :message, 5, "google.ads.googleads.v12.resources.LeadFormSubmissionField" - repeated :custom_lead_form_submission_fields, :message, 10, "google.ads.googleads.v12.resources.CustomLeadFormSubmissionField" - optional :ad_group, :string, 6 - optional :ad_group_ad, :string, 7 - optional :gclid, :string, 8 - optional :submission_date_time, :string, 9 - end - add_message "google.ads.googleads.v12.resources.LeadFormSubmissionField" do - optional :field_type, :enum, 1, "google.ads.googleads.v12.enums.LeadFormFieldUserInputTypeEnum.LeadFormFieldUserInputType" - optional :field_value, :string, 2 - end - add_message "google.ads.googleads.v12.resources.CustomLeadFormSubmissionField" do - optional :question_text, :string, 1 - optional :field_value, :string, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - LeadFormSubmissionData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.LeadFormSubmissionData").msgclass - LeadFormSubmissionField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.LeadFormSubmissionField").msgclass - CustomLeadFormSubmissionField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.CustomLeadFormSubmissionField").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/life_event_pb.rb b/lib/google/ads/google_ads/v12/resources/life_event_pb.rb deleted file mode 100644 index 233d49992..000000000 --- a/lib/google/ads/google_ads/v12/resources/life_event_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/life_event.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criterion_category_availability_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/life_event.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.LifeEvent" do - optional :resource_name, :string, 1 - optional :id, :int64, 2 - optional :name, :string, 3 - optional :parent, :string, 4 - optional :launched_to_all, :bool, 5 - repeated :availabilities, :message, 6, "google.ads.googleads.v12.common.CriterionCategoryAvailability" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - LifeEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.LifeEvent").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/location_view_pb.rb b/lib/google/ads/google_ads/v12/resources/location_view_pb.rb deleted file mode 100644 index 3f0d58a8e..000000000 --- a/lib/google/ads/google_ads/v12/resources/location_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/location_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/location_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.LocationView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - LocationView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.LocationView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/managed_placement_view_pb.rb b/lib/google/ads/google_ads/v12/resources/managed_placement_view_pb.rb deleted file mode 100644 index 67cd0c209..000000000 --- a/lib/google/ads/google_ads/v12/resources/managed_placement_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/managed_placement_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/managed_placement_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ManagedPlacementView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ManagedPlacementView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ManagedPlacementView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/media_file_pb.rb b/lib/google/ads/google_ads/v12/resources/media_file_pb.rb deleted file mode 100644 index 1d5828809..000000000 --- a/lib/google/ads/google_ads/v12/resources/media_file_pb.rb +++ /dev/null @@ -1,63 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/media_file.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/media_type_pb' -require 'google/ads/google_ads/v12/enums/mime_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/media_file.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.MediaFile" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 12 - optional :type, :enum, 5, "google.ads.googleads.v12.enums.MediaTypeEnum.MediaType" - optional :mime_type, :enum, 6, "google.ads.googleads.v12.enums.MimeTypeEnum.MimeType" - proto3_optional :source_url, :string, 13 - proto3_optional :name, :string, 14 - proto3_optional :file_size, :int64, 15 - oneof :mediatype do - optional :image, :message, 3, "google.ads.googleads.v12.resources.MediaImage" - optional :media_bundle, :message, 4, "google.ads.googleads.v12.resources.MediaBundle" - optional :audio, :message, 10, "google.ads.googleads.v12.resources.MediaAudio" - optional :video, :message, 11, "google.ads.googleads.v12.resources.MediaVideo" - end - end - add_message "google.ads.googleads.v12.resources.MediaImage" do - proto3_optional :data, :bytes, 4 - proto3_optional :full_size_image_url, :string, 2 - proto3_optional :preview_size_image_url, :string, 3 - end - add_message "google.ads.googleads.v12.resources.MediaBundle" do - proto3_optional :data, :bytes, 3 - proto3_optional :url, :string, 2 - end - add_message "google.ads.googleads.v12.resources.MediaAudio" do - proto3_optional :ad_duration_millis, :int64, 2 - end - add_message "google.ads.googleads.v12.resources.MediaVideo" do - proto3_optional :ad_duration_millis, :int64, 5 - proto3_optional :youtube_video_id, :string, 6 - proto3_optional :advertising_id_code, :string, 7 - proto3_optional :isci_code, :string, 8 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - MediaFile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.MediaFile").msgclass - MediaImage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.MediaImage").msgclass - MediaBundle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.MediaBundle").msgclass - MediaAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.MediaAudio").msgclass - MediaVideo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.MediaVideo").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/merchant_center_link_pb.rb b/lib/google/ads/google_ads/v12/resources/merchant_center_link_pb.rb deleted file mode 100644 index 8c4440f8e..000000000 --- a/lib/google/ads/google_ads/v12/resources/merchant_center_link_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/merchant_center_link.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/merchant_center_link_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/merchant_center_link.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.MerchantCenterLink" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 6 - proto3_optional :merchant_center_account_name, :string, 7 - optional :status, :enum, 5, "google.ads.googleads.v12.enums.MerchantCenterLinkStatusEnum.MerchantCenterLinkStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - MerchantCenterLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.MerchantCenterLink").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/mobile_app_category_constant_pb.rb b/lib/google/ads/google_ads/v12/resources/mobile_app_category_constant_pb.rb deleted file mode 100644 index 48d85e868..000000000 --- a/lib/google/ads/google_ads/v12/resources/mobile_app_category_constant_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/mobile_app_category_constant.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/mobile_app_category_constant.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.MobileAppCategoryConstant" do - optional :resource_name, :string, 1 - proto3_optional :id, :int32, 4 - proto3_optional :name, :string, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - MobileAppCategoryConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.MobileAppCategoryConstant").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/mobile_device_constant_pb.rb b/lib/google/ads/google_ads/v12/resources/mobile_device_constant_pb.rb deleted file mode 100644 index 455692bdf..000000000 --- a/lib/google/ads/google_ads/v12/resources/mobile_device_constant_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/mobile_device_constant.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/mobile_device_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/mobile_device_constant.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.MobileDeviceConstant" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 7 - proto3_optional :name, :string, 8 - proto3_optional :manufacturer_name, :string, 9 - proto3_optional :operating_system_name, :string, 10 - optional :type, :enum, 6, "google.ads.googleads.v12.enums.MobileDeviceTypeEnum.MobileDeviceType" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - MobileDeviceConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.MobileDeviceConstant").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/offline_user_data_job_pb.rb b/lib/google/ads/google_ads/v12/resources/offline_user_data_job_pb.rb deleted file mode 100644 index 057013b3c..000000000 --- a/lib/google/ads/google_ads/v12/resources/offline_user_data_job_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/offline_user_data_job.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/offline_user_data_pb' -require 'google/ads/google_ads/v12/enums/offline_user_data_job_failure_reason_pb' -require 'google/ads/google_ads/v12/enums/offline_user_data_job_match_rate_range_pb' -require 'google/ads/google_ads/v12/enums/offline_user_data_job_status_pb' -require 'google/ads/google_ads/v12/enums/offline_user_data_job_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/offline_user_data_job.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.OfflineUserDataJob" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 9 - proto3_optional :external_id, :int64, 10 - optional :type, :enum, 4, "google.ads.googleads.v12.enums.OfflineUserDataJobTypeEnum.OfflineUserDataJobType" - optional :status, :enum, 5, "google.ads.googleads.v12.enums.OfflineUserDataJobStatusEnum.OfflineUserDataJobStatus" - optional :failure_reason, :enum, 6, "google.ads.googleads.v12.enums.OfflineUserDataJobFailureReasonEnum.OfflineUserDataJobFailureReason" - optional :operation_metadata, :message, 11, "google.ads.googleads.v12.resources.OfflineUserDataJobMetadata" - oneof :metadata do - optional :customer_match_user_list_metadata, :message, 7, "google.ads.googleads.v12.common.CustomerMatchUserListMetadata" - optional :store_sales_metadata, :message, 8, "google.ads.googleads.v12.common.StoreSalesMetadata" - end - end - add_message "google.ads.googleads.v12.resources.OfflineUserDataJobMetadata" do - optional :match_rate_range, :enum, 1, "google.ads.googleads.v12.enums.OfflineUserDataJobMatchRateRangeEnum.OfflineUserDataJobMatchRateRange" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - OfflineUserDataJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.OfflineUserDataJob").msgclass - OfflineUserDataJobMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.OfflineUserDataJobMetadata").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/operating_system_version_constant_pb.rb b/lib/google/ads/google_ads/v12/resources/operating_system_version_constant_pb.rb deleted file mode 100644 index 6c379f017..000000000 --- a/lib/google/ads/google_ads/v12/resources/operating_system_version_constant_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/operating_system_version_constant.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/operating_system_version_operator_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/operating_system_version_constant.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.OperatingSystemVersionConstant" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 7 - proto3_optional :name, :string, 8 - proto3_optional :os_major_version, :int32, 9 - proto3_optional :os_minor_version, :int32, 10 - optional :operator_type, :enum, 6, "google.ads.googleads.v12.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - OperatingSystemVersionConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.OperatingSystemVersionConstant").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/paid_organic_search_term_view_pb.rb b/lib/google/ads/google_ads/v12/resources/paid_organic_search_term_view_pb.rb deleted file mode 100644 index 65b03974c..000000000 --- a/lib/google/ads/google_ads/v12/resources/paid_organic_search_term_view_pb.rb +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/paid_organic_search_term_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/paid_organic_search_term_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.PaidOrganicSearchTermView" do - optional :resource_name, :string, 1 - proto3_optional :search_term, :string, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - PaidOrganicSearchTermView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.PaidOrganicSearchTermView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/parental_status_view_pb.rb b/lib/google/ads/google_ads/v12/resources/parental_status_view_pb.rb deleted file mode 100644 index 8dba47c02..000000000 --- a/lib/google/ads/google_ads/v12/resources/parental_status_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/parental_status_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/parental_status_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ParentalStatusView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ParentalStatusView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ParentalStatusView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/payments_account_pb.rb b/lib/google/ads/google_ads/v12/resources/payments_account_pb.rb deleted file mode 100644 index 18ac3653a..000000000 --- a/lib/google/ads/google_ads/v12/resources/payments_account_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/payments_account.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/payments_account.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.PaymentsAccount" do - optional :resource_name, :string, 1 - proto3_optional :payments_account_id, :string, 8 - proto3_optional :name, :string, 9 - proto3_optional :currency_code, :string, 10 - proto3_optional :payments_profile_id, :string, 11 - proto3_optional :secondary_payments_profile_id, :string, 12 - proto3_optional :paying_manager_customer, :string, 13 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - PaymentsAccount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.PaymentsAccount").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/per_store_view_pb.rb b/lib/google/ads/google_ads/v12/resources/per_store_view_pb.rb deleted file mode 100644 index fe14e9c5b..000000000 --- a/lib/google/ads/google_ads/v12/resources/per_store_view_pb.rb +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/per_store_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/per_store_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.PerStoreView" do - optional :resource_name, :string, 1 - optional :place_id, :string, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - PerStoreView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.PerStoreView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/product_bidding_category_constant_pb.rb b/lib/google/ads/google_ads/v12/resources/product_bidding_category_constant_pb.rb deleted file mode 100644 index 1ae7d44b9..000000000 --- a/lib/google/ads/google_ads/v12/resources/product_bidding_category_constant_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/product_bidding_category_constant.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/product_bidding_category_level_pb' -require 'google/ads/google_ads/v12/enums/product_bidding_category_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/product_bidding_category_constant.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ProductBiddingCategoryConstant" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 10 - proto3_optional :country_code, :string, 11 - proto3_optional :product_bidding_category_constant_parent, :string, 12 - optional :level, :enum, 5, "google.ads.googleads.v12.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel" - optional :status, :enum, 6, "google.ads.googleads.v12.enums.ProductBiddingCategoryStatusEnum.ProductBiddingCategoryStatus" - proto3_optional :language_code, :string, 13 - proto3_optional :localized_name, :string, 14 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ProductBiddingCategoryConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ProductBiddingCategoryConstant").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/product_group_view_pb.rb b/lib/google/ads/google_ads/v12/resources/product_group_view_pb.rb deleted file mode 100644 index 462a20d86..000000000 --- a/lib/google/ads/google_ads/v12/resources/product_group_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/product_group_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/product_group_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ProductGroupView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ProductGroupView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ProductGroupView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/recommendation_pb.rb b/lib/google/ads/google_ads/v12/resources/recommendation_pb.rb deleted file mode 100644 index 08315c877..000000000 --- a/lib/google/ads/google_ads/v12/resources/recommendation_pb.rb +++ /dev/null @@ -1,207 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/recommendation.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criteria_pb' -require 'google/ads/google_ads/v12/common/extensions_pb' -require 'google/ads/google_ads/v12/enums/keyword_match_type_pb' -require 'google/ads/google_ads/v12/enums/recommendation_type_pb' -require 'google/ads/google_ads/v12/enums/target_cpa_opt_in_recommendation_goal_pb' -require 'google/ads/google_ads/v12/resources/ad_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/recommendation.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.Recommendation" do - optional :resource_name, :string, 1 - optional :type, :enum, 2, "google.ads.googleads.v12.enums.RecommendationTypeEnum.RecommendationType" - optional :impact, :message, 3, "google.ads.googleads.v12.resources.Recommendation.RecommendationImpact" - proto3_optional :campaign_budget, :string, 24 - proto3_optional :campaign, :string, 25 - proto3_optional :ad_group, :string, 26 - proto3_optional :dismissed, :bool, 27 - oneof :recommendation do - optional :campaign_budget_recommendation, :message, 4, "google.ads.googleads.v12.resources.Recommendation.CampaignBudgetRecommendation" - optional :forecasting_campaign_budget_recommendation, :message, 22, "google.ads.googleads.v12.resources.Recommendation.CampaignBudgetRecommendation" - optional :keyword_recommendation, :message, 8, "google.ads.googleads.v12.resources.Recommendation.KeywordRecommendation" - optional :text_ad_recommendation, :message, 9, "google.ads.googleads.v12.resources.Recommendation.TextAdRecommendation" - optional :target_cpa_opt_in_recommendation, :message, 10, "google.ads.googleads.v12.resources.Recommendation.TargetCpaOptInRecommendation" - optional :maximize_conversions_opt_in_recommendation, :message, 11, "google.ads.googleads.v12.resources.Recommendation.MaximizeConversionsOptInRecommendation" - optional :enhanced_cpc_opt_in_recommendation, :message, 12, "google.ads.googleads.v12.resources.Recommendation.EnhancedCpcOptInRecommendation" - optional :search_partners_opt_in_recommendation, :message, 14, "google.ads.googleads.v12.resources.Recommendation.SearchPartnersOptInRecommendation" - optional :maximize_clicks_opt_in_recommendation, :message, 15, "google.ads.googleads.v12.resources.Recommendation.MaximizeClicksOptInRecommendation" - optional :optimize_ad_rotation_recommendation, :message, 16, "google.ads.googleads.v12.resources.Recommendation.OptimizeAdRotationRecommendation" - optional :callout_extension_recommendation, :message, 17, "google.ads.googleads.v12.resources.Recommendation.CalloutExtensionRecommendation" - optional :sitelink_extension_recommendation, :message, 18, "google.ads.googleads.v12.resources.Recommendation.SitelinkExtensionRecommendation" - optional :call_extension_recommendation, :message, 19, "google.ads.googleads.v12.resources.Recommendation.CallExtensionRecommendation" - optional :keyword_match_type_recommendation, :message, 20, "google.ads.googleads.v12.resources.Recommendation.KeywordMatchTypeRecommendation" - optional :move_unused_budget_recommendation, :message, 21, "google.ads.googleads.v12.resources.Recommendation.MoveUnusedBudgetRecommendation" - optional :target_roas_opt_in_recommendation, :message, 23, "google.ads.googleads.v12.resources.Recommendation.TargetRoasOptInRecommendation" - optional :responsive_search_ad_recommendation, :message, 28, "google.ads.googleads.v12.resources.Recommendation.ResponsiveSearchAdRecommendation" - optional :marginal_roi_campaign_budget_recommendation, :message, 29, "google.ads.googleads.v12.resources.Recommendation.CampaignBudgetRecommendation" - optional :use_broad_match_keyword_recommendation, :message, 30, "google.ads.googleads.v12.resources.Recommendation.UseBroadMatchKeywordRecommendation" - optional :responsive_search_ad_asset_recommendation, :message, 31, "google.ads.googleads.v12.resources.Recommendation.ResponsiveSearchAdAssetRecommendation" - optional :upgrade_smart_shopping_campaign_to_performance_max_recommendation, :message, 32, "google.ads.googleads.v12.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation" - optional :responsive_search_ad_improve_ad_strength_recommendation, :message, 33, "google.ads.googleads.v12.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation" - optional :display_expansion_opt_in_recommendation, :message, 34, "google.ads.googleads.v12.resources.Recommendation.DisplayExpansionOptInRecommendation" - optional :upgrade_local_campaign_to_performance_max_recommendation, :message, 35, "google.ads.googleads.v12.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation" - optional :raise_target_cpa_bid_too_low_recommendation, :message, 36, "google.ads.googleads.v12.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation" - optional :forecasting_set_target_roas_recommendation, :message, 37, "google.ads.googleads.v12.resources.Recommendation.ForecastingSetTargetRoasRecommendation" - end - end - add_message "google.ads.googleads.v12.resources.Recommendation.RecommendationImpact" do - optional :base_metrics, :message, 1, "google.ads.googleads.v12.resources.Recommendation.RecommendationMetrics" - optional :potential_metrics, :message, 2, "google.ads.googleads.v12.resources.Recommendation.RecommendationMetrics" - end - add_message "google.ads.googleads.v12.resources.Recommendation.RecommendationMetrics" do - proto3_optional :impressions, :double, 6 - proto3_optional :clicks, :double, 7 - proto3_optional :cost_micros, :int64, 8 - proto3_optional :conversions, :double, 9 - proto3_optional :video_views, :double, 10 - end - add_message "google.ads.googleads.v12.resources.Recommendation.CampaignBudgetRecommendation" do - proto3_optional :current_budget_amount_micros, :int64, 7 - proto3_optional :recommended_budget_amount_micros, :int64, 8 - repeated :budget_options, :message, 3, "google.ads.googleads.v12.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption" - end - add_message "google.ads.googleads.v12.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption" do - proto3_optional :budget_amount_micros, :int64, 3 - optional :impact, :message, 2, "google.ads.googleads.v12.resources.Recommendation.RecommendationImpact" - end - add_message "google.ads.googleads.v12.resources.Recommendation.KeywordRecommendation" do - optional :keyword, :message, 1, "google.ads.googleads.v12.common.KeywordInfo" - proto3_optional :recommended_cpc_bid_micros, :int64, 3 - end - add_message "google.ads.googleads.v12.resources.Recommendation.TextAdRecommendation" do - optional :ad, :message, 1, "google.ads.googleads.v12.resources.Ad" - proto3_optional :creation_date, :string, 4 - proto3_optional :auto_apply_date, :string, 5 - end - add_message "google.ads.googleads.v12.resources.Recommendation.TargetCpaOptInRecommendation" do - repeated :options, :message, 1, "google.ads.googleads.v12.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption" - proto3_optional :recommended_target_cpa_micros, :int64, 3 - end - add_message "google.ads.googleads.v12.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption" do - optional :goal, :enum, 1, "google.ads.googleads.v12.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal" - proto3_optional :target_cpa_micros, :int64, 5 - proto3_optional :required_campaign_budget_amount_micros, :int64, 6 - optional :impact, :message, 4, "google.ads.googleads.v12.resources.Recommendation.RecommendationImpact" - end - add_message "google.ads.googleads.v12.resources.Recommendation.MaximizeConversionsOptInRecommendation" do - proto3_optional :recommended_budget_amount_micros, :int64, 2 - end - add_message "google.ads.googleads.v12.resources.Recommendation.EnhancedCpcOptInRecommendation" do - end - add_message "google.ads.googleads.v12.resources.Recommendation.SearchPartnersOptInRecommendation" do - end - add_message "google.ads.googleads.v12.resources.Recommendation.MaximizeClicksOptInRecommendation" do - proto3_optional :recommended_budget_amount_micros, :int64, 2 - end - add_message "google.ads.googleads.v12.resources.Recommendation.OptimizeAdRotationRecommendation" do - end - add_message "google.ads.googleads.v12.resources.Recommendation.CalloutExtensionRecommendation" do - repeated :recommended_extensions, :message, 1, "google.ads.googleads.v12.common.CalloutFeedItem" - end - add_message "google.ads.googleads.v12.resources.Recommendation.SitelinkExtensionRecommendation" do - repeated :recommended_extensions, :message, 1, "google.ads.googleads.v12.common.SitelinkFeedItem" - end - add_message "google.ads.googleads.v12.resources.Recommendation.CallExtensionRecommendation" do - repeated :recommended_extensions, :message, 1, "google.ads.googleads.v12.common.CallFeedItem" - end - add_message "google.ads.googleads.v12.resources.Recommendation.KeywordMatchTypeRecommendation" do - optional :keyword, :message, 1, "google.ads.googleads.v12.common.KeywordInfo" - optional :recommended_match_type, :enum, 2, "google.ads.googleads.v12.enums.KeywordMatchTypeEnum.KeywordMatchType" - end - add_message "google.ads.googleads.v12.resources.Recommendation.MoveUnusedBudgetRecommendation" do - proto3_optional :excess_campaign_budget, :string, 3 - optional :budget_recommendation, :message, 2, "google.ads.googleads.v12.resources.Recommendation.CampaignBudgetRecommendation" - end - add_message "google.ads.googleads.v12.resources.Recommendation.TargetRoasOptInRecommendation" do - proto3_optional :recommended_target_roas, :double, 1 - proto3_optional :required_campaign_budget_amount_micros, :int64, 2 - end - add_message "google.ads.googleads.v12.resources.Recommendation.ResponsiveSearchAdAssetRecommendation" do - optional :current_ad, :message, 1, "google.ads.googleads.v12.resources.Ad" - optional :recommended_assets, :message, 2, "google.ads.googleads.v12.resources.Ad" - end - add_message "google.ads.googleads.v12.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation" do - optional :current_ad, :message, 1, "google.ads.googleads.v12.resources.Ad" - optional :recommended_ad, :message, 2, "google.ads.googleads.v12.resources.Ad" - end - add_message "google.ads.googleads.v12.resources.Recommendation.ResponsiveSearchAdRecommendation" do - optional :ad, :message, 1, "google.ads.googleads.v12.resources.Ad" - end - add_message "google.ads.googleads.v12.resources.Recommendation.UseBroadMatchKeywordRecommendation" do - repeated :keyword, :message, 1, "google.ads.googleads.v12.common.KeywordInfo" - optional :suggested_keywords_count, :int64, 2 - optional :campaign_keywords_count, :int64, 3 - optional :campaign_uses_shared_budget, :bool, 4 - optional :required_campaign_budget_amount_micros, :int64, 5 - end - add_message "google.ads.googleads.v12.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation" do - optional :merchant_id, :int64, 1 - optional :sales_country_code, :string, 2 - end - add_message "google.ads.googleads.v12.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation" do - proto3_optional :recommended_target_multiplier, :double, 1 - proto3_optional :average_target_cpa_micros, :int64, 2 - end - add_message "google.ads.googleads.v12.resources.Recommendation.DisplayExpansionOptInRecommendation" do - end - add_message "google.ads.googleads.v12.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation" do - end - add_message "google.ads.googleads.v12.resources.Recommendation.ForecastingSetTargetRoasRecommendation" do - optional :recommended_target_roas, :double, 1 - optional :campaign_budget, :message, 2, "google.ads.googleads.v12.resources.Recommendation.CampaignBudget" - end - add_message "google.ads.googleads.v12.resources.Recommendation.CampaignBudget" do - optional :current_amount_micros, :int64, 1 - optional :recommended_new_amount_micros, :int64, 2 - optional :new_start_date, :string, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - Recommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation").msgclass - Recommendation::RecommendationImpact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.RecommendationImpact").msgclass - Recommendation::RecommendationMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.RecommendationMetrics").msgclass - Recommendation::CampaignBudgetRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.CampaignBudgetRecommendation").msgclass - Recommendation::CampaignBudgetRecommendation::CampaignBudgetRecommendationOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption").msgclass - Recommendation::KeywordRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.KeywordRecommendation").msgclass - Recommendation::TextAdRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.TextAdRecommendation").msgclass - Recommendation::TargetCpaOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.TargetCpaOptInRecommendation").msgclass - Recommendation::TargetCpaOptInRecommendation::TargetCpaOptInRecommendationOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption").msgclass - Recommendation::MaximizeConversionsOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.MaximizeConversionsOptInRecommendation").msgclass - Recommendation::EnhancedCpcOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.EnhancedCpcOptInRecommendation").msgclass - Recommendation::SearchPartnersOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.SearchPartnersOptInRecommendation").msgclass - Recommendation::MaximizeClicksOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.MaximizeClicksOptInRecommendation").msgclass - Recommendation::OptimizeAdRotationRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.OptimizeAdRotationRecommendation").msgclass - Recommendation::CalloutExtensionRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.CalloutExtensionRecommendation").msgclass - Recommendation::SitelinkExtensionRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.SitelinkExtensionRecommendation").msgclass - Recommendation::CallExtensionRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.CallExtensionRecommendation").msgclass - Recommendation::KeywordMatchTypeRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.KeywordMatchTypeRecommendation").msgclass - Recommendation::MoveUnusedBudgetRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.MoveUnusedBudgetRecommendation").msgclass - Recommendation::TargetRoasOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.TargetRoasOptInRecommendation").msgclass - Recommendation::ResponsiveSearchAdAssetRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.ResponsiveSearchAdAssetRecommendation").msgclass - Recommendation::ResponsiveSearchAdImproveAdStrengthRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation").msgclass - Recommendation::ResponsiveSearchAdRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.ResponsiveSearchAdRecommendation").msgclass - Recommendation::UseBroadMatchKeywordRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.UseBroadMatchKeywordRecommendation").msgclass - Recommendation::UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation").msgclass - Recommendation::RaiseTargetCpaBidTooLowRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation").msgclass - Recommendation::DisplayExpansionOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.DisplayExpansionOptInRecommendation").msgclass - Recommendation::UpgradeLocalCampaignToPerformanceMaxRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation").msgclass - Recommendation::ForecastingSetTargetRoasRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.ForecastingSetTargetRoasRecommendation").msgclass - Recommendation::CampaignBudget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Recommendation.CampaignBudget").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/remarketing_action_pb.rb b/lib/google/ads/google_ads/v12/resources/remarketing_action_pb.rb deleted file mode 100644 index f85e6085c..000000000 --- a/lib/google/ads/google_ads/v12/resources/remarketing_action_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/remarketing_action.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/tag_snippet_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/remarketing_action.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.RemarketingAction" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 5 - proto3_optional :name, :string, 6 - repeated :tag_snippets, :message, 4, "google.ads.googleads.v12.common.TagSnippet" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - RemarketingAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.RemarketingAction").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/search_term_view_pb.rb b/lib/google/ads/google_ads/v12/resources/search_term_view_pb.rb deleted file mode 100644 index ca376515b..000000000 --- a/lib/google/ads/google_ads/v12/resources/search_term_view_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/search_term_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/search_term_targeting_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/search_term_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.SearchTermView" do - optional :resource_name, :string, 1 - proto3_optional :search_term, :string, 5 - proto3_optional :ad_group, :string, 6 - optional :status, :enum, 4, "google.ads.googleads.v12.enums.SearchTermTargetingStatusEnum.SearchTermTargetingStatus" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - SearchTermView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.SearchTermView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/shared_criterion_pb.rb b/lib/google/ads/google_ads/v12/resources/shared_criterion_pb.rb deleted file mode 100644 index c11b7651e..000000000 --- a/lib/google/ads/google_ads/v12/resources/shared_criterion_pb.rb +++ /dev/null @@ -1,40 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/shared_criterion.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criteria_pb' -require 'google/ads/google_ads/v12/enums/criterion_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/shared_criterion.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.SharedCriterion" do - optional :resource_name, :string, 1 - proto3_optional :shared_set, :string, 10 - proto3_optional :criterion_id, :int64, 11 - optional :type, :enum, 4, "google.ads.googleads.v12.enums.CriterionTypeEnum.CriterionType" - oneof :criterion do - optional :keyword, :message, 3, "google.ads.googleads.v12.common.KeywordInfo" - optional :youtube_video, :message, 5, "google.ads.googleads.v12.common.YouTubeVideoInfo" - optional :youtube_channel, :message, 6, "google.ads.googleads.v12.common.YouTubeChannelInfo" - optional :placement, :message, 7, "google.ads.googleads.v12.common.PlacementInfo" - optional :mobile_app_category, :message, 8, "google.ads.googleads.v12.common.MobileAppCategoryInfo" - optional :mobile_application, :message, 9, "google.ads.googleads.v12.common.MobileApplicationInfo" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - SharedCriterion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.SharedCriterion").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/shared_set_pb.rb b/lib/google/ads/google_ads/v12/resources/shared_set_pb.rb deleted file mode 100644 index f80ba5023..000000000 --- a/lib/google/ads/google_ads/v12/resources/shared_set_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/shared_set.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/shared_set_status_pb' -require 'google/ads/google_ads/v12/enums/shared_set_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/shared_set.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.SharedSet" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 8 - optional :type, :enum, 3, "google.ads.googleads.v12.enums.SharedSetTypeEnum.SharedSetType" - proto3_optional :name, :string, 9 - optional :status, :enum, 5, "google.ads.googleads.v12.enums.SharedSetStatusEnum.SharedSetStatus" - proto3_optional :member_count, :int64, 10 - proto3_optional :reference_count, :int64, 11 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - SharedSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.SharedSet").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/shopping_performance_view_pb.rb b/lib/google/ads/google_ads/v12/resources/shopping_performance_view_pb.rb deleted file mode 100644 index accb24b51..000000000 --- a/lib/google/ads/google_ads/v12/resources/shopping_performance_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/shopping_performance_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/shopping_performance_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ShoppingPerformanceView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ShoppingPerformanceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ShoppingPerformanceView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/smart_campaign_search_term_view_pb.rb b/lib/google/ads/google_ads/v12/resources/smart_campaign_search_term_view_pb.rb deleted file mode 100644 index 041165ced..000000000 --- a/lib/google/ads/google_ads/v12/resources/smart_campaign_search_term_view_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/smart_campaign_search_term_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/smart_campaign_search_term_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.SmartCampaignSearchTermView" do - optional :resource_name, :string, 1 - optional :search_term, :string, 2 - optional :campaign, :string, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - SmartCampaignSearchTermView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.SmartCampaignSearchTermView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/smart_campaign_setting_pb.rb b/lib/google/ads/google_ads/v12/resources/smart_campaign_setting_pb.rb deleted file mode 100644 index 29b70c128..000000000 --- a/lib/google/ads/google_ads/v12/resources/smart_campaign_setting_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/smart_campaign_setting.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/smart_campaign_setting.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.SmartCampaignSetting" do - optional :resource_name, :string, 1 - optional :campaign, :string, 2 - optional :phone_number, :message, 3, "google.ads.googleads.v12.resources.SmartCampaignSetting.PhoneNumber" - optional :advertising_language_code, :string, 7 - oneof :landing_page do - optional :final_url, :string, 8 - optional :ad_optimized_business_profile_setting, :message, 9, "google.ads.googleads.v12.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting" - end - oneof :business_setting do - optional :business_name, :string, 5 - optional :business_profile_location, :string, 10 - end - end - add_message "google.ads.googleads.v12.resources.SmartCampaignSetting.PhoneNumber" do - proto3_optional :phone_number, :string, 1 - proto3_optional :country_code, :string, 2 - end - add_message "google.ads.googleads.v12.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting" do - proto3_optional :include_lead_form, :bool, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - SmartCampaignSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.SmartCampaignSetting").msgclass - SmartCampaignSetting::PhoneNumber = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.SmartCampaignSetting.PhoneNumber").msgclass - SmartCampaignSetting::AdOptimizedBusinessProfileSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/third_party_app_analytics_link_pb.rb b/lib/google/ads/google_ads/v12/resources/third_party_app_analytics_link_pb.rb deleted file mode 100644 index a7ad3af23..000000000 --- a/lib/google/ads/google_ads/v12/resources/third_party_app_analytics_link_pb.rb +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/third_party_app_analytics_link.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/third_party_app_analytics_link.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.ThirdPartyAppAnalyticsLink" do - optional :resource_name, :string, 1 - proto3_optional :shareable_link_id, :string, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - ThirdPartyAppAnalyticsLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.ThirdPartyAppAnalyticsLink").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/topic_constant_pb.rb b/lib/google/ads/google_ads/v12/resources/topic_constant_pb.rb deleted file mode 100644 index 1453ef928..000000000 --- a/lib/google/ads/google_ads/v12/resources/topic_constant_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/topic_constant.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/topic_constant.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.TopicConstant" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 5 - proto3_optional :topic_constant_parent, :string, 6 - repeated :path, :string, 7 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - TopicConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.TopicConstant").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/topic_view_pb.rb b/lib/google/ads/google_ads/v12/resources/topic_view_pb.rb deleted file mode 100644 index d8a31c79c..000000000 --- a/lib/google/ads/google_ads/v12/resources/topic_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/topic_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/topic_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.TopicView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - TopicView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.TopicView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/user_interest_pb.rb b/lib/google/ads/google_ads/v12/resources/user_interest_pb.rb deleted file mode 100644 index 53be31b2a..000000000 --- a/lib/google/ads/google_ads/v12/resources/user_interest_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/user_interest.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criterion_category_availability_pb' -require 'google/ads/google_ads/v12/enums/user_interest_taxonomy_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/user_interest.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.UserInterest" do - optional :resource_name, :string, 1 - optional :taxonomy_type, :enum, 2, "google.ads.googleads.v12.enums.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyType" - proto3_optional :user_interest_id, :int64, 8 - proto3_optional :name, :string, 9 - proto3_optional :user_interest_parent, :string, 10 - proto3_optional :launched_to_all, :bool, 11 - repeated :availabilities, :message, 7, "google.ads.googleads.v12.common.CriterionCategoryAvailability" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - UserInterest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.UserInterest").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/user_list_pb.rb b/lib/google/ads/google_ads/v12/resources/user_list_pb.rb deleted file mode 100644 index bcea6b369..000000000 --- a/lib/google/ads/google_ads/v12/resources/user_list_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/user_list.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/user_lists_pb' -require 'google/ads/google_ads/v12/enums/access_reason_pb' -require 'google/ads/google_ads/v12/enums/user_list_access_status_pb' -require 'google/ads/google_ads/v12/enums/user_list_closing_reason_pb' -require 'google/ads/google_ads/v12/enums/user_list_membership_status_pb' -require 'google/ads/google_ads/v12/enums/user_list_size_range_pb' -require 'google/ads/google_ads/v12/enums/user_list_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/user_list.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.UserList" do - optional :resource_name, :string, 1 - proto3_optional :id, :int64, 25 - proto3_optional :read_only, :bool, 26 - proto3_optional :name, :string, 27 - proto3_optional :description, :string, 28 - optional :membership_status, :enum, 6, "google.ads.googleads.v12.enums.UserListMembershipStatusEnum.UserListMembershipStatus" - proto3_optional :integration_code, :string, 29 - proto3_optional :membership_life_span, :int64, 30 - proto3_optional :size_for_display, :int64, 31 - optional :size_range_for_display, :enum, 10, "google.ads.googleads.v12.enums.UserListSizeRangeEnum.UserListSizeRange" - proto3_optional :size_for_search, :int64, 32 - optional :size_range_for_search, :enum, 12, "google.ads.googleads.v12.enums.UserListSizeRangeEnum.UserListSizeRange" - optional :type, :enum, 13, "google.ads.googleads.v12.enums.UserListTypeEnum.UserListType" - optional :closing_reason, :enum, 14, "google.ads.googleads.v12.enums.UserListClosingReasonEnum.UserListClosingReason" - optional :access_reason, :enum, 15, "google.ads.googleads.v12.enums.AccessReasonEnum.AccessReason" - optional :account_user_list_status, :enum, 16, "google.ads.googleads.v12.enums.UserListAccessStatusEnum.UserListAccessStatus" - proto3_optional :eligible_for_search, :bool, 33 - proto3_optional :eligible_for_display, :bool, 34 - proto3_optional :match_rate_percentage, :int32, 24 - oneof :user_list do - optional :crm_based_user_list, :message, 19, "google.ads.googleads.v12.common.CrmBasedUserListInfo" - optional :similar_user_list, :message, 20, "google.ads.googleads.v12.common.SimilarUserListInfo" - optional :rule_based_user_list, :message, 21, "google.ads.googleads.v12.common.RuleBasedUserListInfo" - optional :logical_user_list, :message, 22, "google.ads.googleads.v12.common.LogicalUserListInfo" - optional :basic_user_list, :message, 23, "google.ads.googleads.v12.common.BasicUserListInfo" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - UserList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.UserList").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/user_location_view_pb.rb b/lib/google/ads/google_ads/v12/resources/user_location_view_pb.rb deleted file mode 100644 index 7c96c5e4b..000000000 --- a/lib/google/ads/google_ads/v12/resources/user_location_view_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/user_location_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/user_location_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.UserLocationView" do - optional :resource_name, :string, 1 - proto3_optional :country_criterion_id, :int64, 4 - proto3_optional :targeting_location, :bool, 5 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - UserLocationView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.UserLocationView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/video_pb.rb b/lib/google/ads/google_ads/v12/resources/video_pb.rb deleted file mode 100644 index f5881a26b..000000000 --- a/lib/google/ads/google_ads/v12/resources/video_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/video.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/video.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.Video" do - optional :resource_name, :string, 1 - proto3_optional :id, :string, 6 - proto3_optional :channel_id, :string, 7 - proto3_optional :duration_millis, :int64, 8 - proto3_optional :title, :string, 9 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - Video = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.Video").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/resources/webpage_view_pb.rb b/lib/google/ads/google_ads/v12/resources/webpage_view_pb.rb deleted file mode 100644 index 9487e4cec..000000000 --- a/lib/google/ads/google_ads/v12/resources/webpage_view_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/resources/webpage_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/resources/webpage_view.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.resources.WebpageView" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Resources - WebpageView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.resources.WebpageView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services.rb b/lib/google/ads/google_ads/v12/services.rb deleted file mode 100644 index 1a52a0e18..000000000 --- a/lib/google/ads/google_ads/v12/services.rb +++ /dev/null @@ -1,145 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/ads/google_ads/v12/services/account_budget_proposal_service" -require "google/ads/google_ads/v12/services/account_link_service" -require "google/ads/google_ads/v12/services/ad_group_ad_label_service" -require "google/ads/google_ads/v12/services/ad_group_ad_service" -require "google/ads/google_ads/v12/services/ad_group_asset_service" -require "google/ads/google_ads/v12/services/ad_group_asset_set_service" -require "google/ads/google_ads/v12/services/ad_group_bid_modifier_service" -require "google/ads/google_ads/v12/services/ad_group_criterion_customizer_service" -require "google/ads/google_ads/v12/services/ad_group_criterion_label_service" -require "google/ads/google_ads/v12/services/ad_group_criterion_service" -require "google/ads/google_ads/v12/services/ad_group_customizer_service" -require "google/ads/google_ads/v12/services/ad_group_extension_setting_service" -require "google/ads/google_ads/v12/services/ad_group_feed_service" -require "google/ads/google_ads/v12/services/ad_group_label_service" -require "google/ads/google_ads/v12/services/ad_group_service" -require "google/ads/google_ads/v12/services/ad_parameter_service" -require "google/ads/google_ads/v12/services/ad_service" -require "google/ads/google_ads/v12/services/asset_group_asset_service" -require "google/ads/google_ads/v12/services/asset_group_listing_group_filter_service" -require "google/ads/google_ads/v12/services/asset_group_service" -require "google/ads/google_ads/v12/services/asset_group_signal_service" -require "google/ads/google_ads/v12/services/asset_service" -require "google/ads/google_ads/v12/services/asset_set_asset_service" -require "google/ads/google_ads/v12/services/asset_set_service" -require "google/ads/google_ads/v12/services/audience_insights_service" -require "google/ads/google_ads/v12/services/audience_service" -require "google/ads/google_ads/v12/services/bidding_data_exclusion_service" -require "google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service" -require "google/ads/google_ads/v12/services/bidding_strategy_service" -require "google/ads/google_ads/v12/services/campaign_asset_service" -require "google/ads/google_ads/v12/services/campaign_asset_set_service" -require "google/ads/google_ads/v12/services/campaign_bid_modifier_service" -require "google/ads/google_ads/v12/services/campaign_budget_service" -require "google/ads/google_ads/v12/services/campaign_conversion_goal_service" -require "google/ads/google_ads/v12/services/campaign_criterion_service" -require "google/ads/google_ads/v12/services/campaign_customizer_service" -require "google/ads/google_ads/v12/services/campaign_draft_service" -require "google/ads/google_ads/v12/services/campaign_extension_setting_service" -require "google/ads/google_ads/v12/services/campaign_feed_service" -require "google/ads/google_ads/v12/services/campaign_group_service" -require "google/ads/google_ads/v12/services/campaign_label_service" -require "google/ads/google_ads/v12/services/campaign_service" -require "google/ads/google_ads/v12/services/campaign_shared_set_service" -require "google/ads/google_ads/v12/services/conversion_action_service" -require "google/ads/google_ads/v12/services/conversion_custom_variable_service" -require "google/ads/google_ads/v12/services/conversion_goal_campaign_config_service" -require "google/ads/google_ads/v12/services/conversion_value_rule_service" -require "google/ads/google_ads/v12/services/conversion_value_rule_set_service" -require "google/ads/google_ads/v12/services/custom_conversion_goal_service" -require "google/ads/google_ads/v12/services/customer_asset_service" -require "google/ads/google_ads/v12/services/customer_conversion_goal_service" -require "google/ads/google_ads/v12/services/customer_customizer_service" -require "google/ads/google_ads/v12/services/customer_extension_setting_service" -require "google/ads/google_ads/v12/services/customer_feed_service" -require "google/ads/google_ads/v12/services/customer_label_service" -require "google/ads/google_ads/v12/services/customer_negative_criterion_service" -require "google/ads/google_ads/v12/services/customer_service" -require "google/ads/google_ads/v12/services/customizer_attribute_service" -require "google/ads/google_ads/v12/services/experiment_arm_service" -require "google/ads/google_ads/v12/services/experiment_service" -require "google/ads/google_ads/v12/services/extension_feed_item_service" -require "google/ads/google_ads/v12/services/feed_item_service" -require "google/ads/google_ads/v12/services/feed_item_set_link_service" -require "google/ads/google_ads/v12/services/feed_item_set_service" -require "google/ads/google_ads/v12/services/feed_item_target_service" -require "google/ads/google_ads/v12/services/feed_mapping_service" -require "google/ads/google_ads/v12/services/feed_service" -require "google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service" -require "google/ads/google_ads/v12/services/keyword_plan_ad_group_service" -require "google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service" -require "google/ads/google_ads/v12/services/keyword_plan_campaign_service" -require "google/ads/google_ads/v12/services/keyword_plan_service" -require "google/ads/google_ads/v12/services/label_service" -require "google/ads/google_ads/v12/services/media_file_service" -require "google/ads/google_ads/v12/services/remarketing_action_service" -require "google/ads/google_ads/v12/services/shared_criterion_service" -require "google/ads/google_ads/v12/services/shared_set_service" -require "google/ads/google_ads/v12/services/smart_campaign_setting_service" -require "google/ads/google_ads/v12/services/user_list_service" -require "google/ads/google_ads/v12/services/google_ads_service" -require "google/ads/google_ads/v12/services/batch_job_service" -require "google/ads/google_ads/v12/services/billing_setup_service" -require "google/ads/google_ads/v12/services/conversion_adjustment_upload_service" -require "google/ads/google_ads/v12/services/conversion_upload_service" -require "google/ads/google_ads/v12/services/custom_audience_service" -require "google/ads/google_ads/v12/services/custom_interest_service" -require "google/ads/google_ads/v12/services/customer_asset_set_service" -require "google/ads/google_ads/v12/services/customer_client_link_service" -require "google/ads/google_ads/v12/services/customer_manager_link_service" -require "google/ads/google_ads/v12/services/customer_user_access_invitation_service" -require "google/ads/google_ads/v12/services/customer_user_access_service" -require "google/ads/google_ads/v12/services/geo_target_constant_service" -require "google/ads/google_ads/v12/services/google_ads_field_service" -require "google/ads/google_ads/v12/services/invoice_service" -require "google/ads/google_ads/v12/services/keyword_plan_idea_service" -require "google/ads/google_ads/v12/services/keyword_theme_constant_service" -require "google/ads/google_ads/v12/services/merchant_center_link_service" -require "google/ads/google_ads/v12/services/offline_user_data_job_service" -require "google/ads/google_ads/v12/services/payments_account_service" -require "google/ads/google_ads/v12/services/reach_plan_service" -require "google/ads/google_ads/v12/services/recommendation_service" -require "google/ads/google_ads/v12/services/smart_campaign_suggest_service" -require "google/ads/google_ads/v12/services/third_party_app_analytics_link_service" -require "google/ads/google_ads/v12/services/user_data_service" -require "google/ads/google_ads/version" - -module Google - module Ads - module GoogleAds - module V12 - ## - # To load this package, including all its services, and instantiate a client: - # - # @example - # - # require "google/ads/google_ads/v12/services" - # client = ::Google::Ads::GoogleAds::V12::Services::AccountBudgetProposalService::Client.new - # - module Services - end - end - end - end -end - -helper_path = ::File.join __dir__, "services", "_helpers.rb" -require "google/ads/google_ads/v12/services/_helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/account_budget_proposal_service.rb b/lib/google/ads/google_ads/v12/services/account_budget_proposal_service.rb deleted file mode 100644 index bba17f32f..000000000 --- a/lib/google/ads/google_ads/v12/services/account_budget_proposal_service.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/account_budget_proposal_service/credentials" -require "google/ads/google_ads/v12/services/account_budget_proposal_service/paths" -require "google/ads/google_ads/v12/services/account_budget_proposal_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # A service for managing account-level budgets through proposals. - # - # A proposal is a request to create a new budget or make changes to an - # existing one. - # - # Mutates: - # The CREATE operation creates a new proposal. - # UPDATE operations aren't supported. - # The REMOVE operation cancels a pending proposal. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/account_budget_proposal_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AccountBudgetProposalService::Client.new - # - module AccountBudgetProposalService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "account_budget_proposal_service", "helpers.rb" -require "google/ads/google_ads/v12/services/account_budget_proposal_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/account_budget_proposal_service/client.rb b/lib/google/ads/google_ads/v12/services/account_budget_proposal_service/client.rb deleted file mode 100644 index 500811f1e..000000000 --- a/lib/google/ads/google_ads/v12/services/account_budget_proposal_service/client.rb +++ /dev/null @@ -1,419 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/account_budget_proposal_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AccountBudgetProposalService - ## - # Client for the AccountBudgetProposalService service. - # - # A service for managing account-level budgets through proposals. - # - # A proposal is a request to create a new budget or make changes to an - # existing one. - # - # Mutates: - # The CREATE operation creates a new proposal. - # UPDATE operations aren't supported. - # The REMOVE operation cancels a pending proposal. - # - class Client - include Paths - - # @private - attr_reader :account_budget_proposal_service_stub - - ## - # Configure the AccountBudgetProposalService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AccountBudgetProposalService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AccountBudgetProposalService clients - # ::Google::Ads::GoogleAds::V12::Services::AccountBudgetProposalService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AccountBudgetProposalService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AccountBudgetProposalService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AccountBudgetProposalService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AccountBudgetProposalService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AccountBudgetProposalService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AccountBudgetProposalService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/account_budget_proposal_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @account_budget_proposal_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AccountBudgetProposalService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes account budget proposals. Operation statuses - # are returned. - # - # List of thrown errors: - # [AccountBudgetProposalError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [DateError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # [StringLengthError]() - # - # @overload mutate_account_budget_proposal(request, options = nil) - # Pass arguments to `mutate_account_budget_proposal` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAccountBudgetProposalRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAccountBudgetProposalRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_account_budget_proposal(customer_id: nil, operation: nil, validate_only: nil) - # Pass arguments to `mutate_account_budget_proposal` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param operation [::Google::Ads::GoogleAds::V12::Services::AccountBudgetProposalOperation, ::Hash] - # Required. The operation to perform on an individual account-level budget proposal. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAccountBudgetProposalResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAccountBudgetProposalResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AccountBudgetProposalService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAccountBudgetProposalRequest.new - # - # # Call the mutate_account_budget_proposal method. - # result = client.mutate_account_budget_proposal request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAccountBudgetProposalResponse. - # p result - # - def mutate_account_budget_proposal request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAccountBudgetProposalRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_account_budget_proposal.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_account_budget_proposal.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_account_budget_proposal.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @account_budget_proposal_service_stub.call_rpc :mutate_account_budget_proposal, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AccountBudgetProposalService API. - # - # This class represents the configuration for AccountBudgetProposalService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AccountBudgetProposalService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_account_budget_proposal to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AccountBudgetProposalService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_account_budget_proposal.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AccountBudgetProposalService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_account_budget_proposal.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AccountBudgetProposalService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_account_budget_proposal` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_account_budget_proposal - - # @private - def initialize parent_rpcs = nil - mutate_account_budget_proposal_config = parent_rpcs.mutate_account_budget_proposal if parent_rpcs.respond_to? :mutate_account_budget_proposal - @mutate_account_budget_proposal = ::Gapic::Config::Method.new mutate_account_budget_proposal_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/account_budget_proposal_service/credentials.rb b/lib/google/ads/google_ads/v12/services/account_budget_proposal_service/credentials.rb deleted file mode 100644 index 2e1009ae6..000000000 --- a/lib/google/ads/google_ads/v12/services/account_budget_proposal_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AccountBudgetProposalService - # Credentials for the AccountBudgetProposalService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/account_budget_proposal_service/paths.rb b/lib/google/ads/google_ads/v12/services/account_budget_proposal_service/paths.rb deleted file mode 100644 index c0643e407..000000000 --- a/lib/google/ads/google_ads/v12/services/account_budget_proposal_service/paths.rb +++ /dev/null @@ -1,86 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AccountBudgetProposalService - # Path helper methods for the AccountBudgetProposalService API. - module Paths - ## - # Create a fully-qualified AccountBudget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accountBudgets/{account_budget_id}` - # - # @param customer_id [String] - # @param account_budget_id [String] - # - # @return [::String] - def account_budget_path customer_id:, account_budget_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accountBudgets/#{account_budget_id}" - end - - ## - # Create a fully-qualified AccountBudgetProposal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` - # - # @param customer_id [String] - # @param account_budget_proposal_id [String] - # - # @return [::String] - def account_budget_proposal_path customer_id:, account_budget_proposal_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accountBudgetProposals/#{account_budget_proposal_id}" - end - - ## - # Create a fully-qualified BillingSetup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/billingSetups/{billing_setup_id}` - # - # @param customer_id [String] - # @param billing_setup_id [String] - # - # @return [::String] - def billing_setup_path customer_id:, billing_setup_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/billingSetups/#{billing_setup_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/account_budget_proposal_service_pb.rb b/lib/google/ads/google_ads/v12/services/account_budget_proposal_service_pb.rb deleted file mode 100644 index 8006d1953..000000000 --- a/lib/google/ads/google_ads/v12/services/account_budget_proposal_service_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/account_budget_proposal_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/account_budget_proposal_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/account_budget_proposal_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAccountBudgetProposalRequest" do - optional :customer_id, :string, 1 - optional :operation, :message, 2, "google.ads.googleads.v12.services.AccountBudgetProposalOperation" - optional :validate_only, :bool, 3 - end - add_message "google.ads.googleads.v12.services.AccountBudgetProposalOperation" do - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 2, "google.ads.googleads.v12.resources.AccountBudgetProposal" - optional :remove, :string, 1 - end - end - add_message "google.ads.googleads.v12.services.MutateAccountBudgetProposalResponse" do - optional :result, :message, 2, "google.ads.googleads.v12.services.MutateAccountBudgetProposalResult" - end - add_message "google.ads.googleads.v12.services.MutateAccountBudgetProposalResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAccountBudgetProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAccountBudgetProposalRequest").msgclass - AccountBudgetProposalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AccountBudgetProposalOperation").msgclass - MutateAccountBudgetProposalResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAccountBudgetProposalResponse").msgclass - MutateAccountBudgetProposalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAccountBudgetProposalResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/account_budget_proposal_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/account_budget_proposal_service_services_pb.rb deleted file mode 100644 index 9106b40f7..000000000 --- a/lib/google/ads/google_ads/v12/services/account_budget_proposal_service_services_pb.rb +++ /dev/null @@ -1,73 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/account_budget_proposal_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/account_budget_proposal_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AccountBudgetProposalService - # Proto file describing the AccountBudgetProposal service. - # - # A service for managing account-level budgets through proposals. - # - # A proposal is a request to create a new budget or make changes to an - # existing one. - # - # Mutates: - # The CREATE operation creates a new proposal. - # UPDATE operations aren't supported. - # The REMOVE operation cancels a pending proposal. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AccountBudgetProposalService' - - # Creates, updates, or removes account budget proposals. Operation statuses - # are returned. - # - # List of thrown errors: - # [AccountBudgetProposalError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [DateError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # [StringLengthError]() - rpc :MutateAccountBudgetProposal, ::Google::Ads::GoogleAds::V12::Services::MutateAccountBudgetProposalRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAccountBudgetProposalResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/account_link_service.rb b/lib/google/ads/google_ads/v12/services/account_link_service.rb deleted file mode 100644 index 1df51e97b..000000000 --- a/lib/google/ads/google_ads/v12/services/account_link_service.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/account_link_service/credentials" -require "google/ads/google_ads/v12/services/account_link_service/paths" -require "google/ads/google_ads/v12/services/account_link_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # This service allows management of links between Google Ads accounts and other - # accounts. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/account_link_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AccountLinkService::Client.new - # - module AccountLinkService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "account_link_service", "helpers.rb" -require "google/ads/google_ads/v12/services/account_link_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/account_link_service/client.rb b/lib/google/ads/google_ads/v12/services/account_link_service/client.rb deleted file mode 100644 index ecb495841..000000000 --- a/lib/google/ads/google_ads/v12/services/account_link_service/client.rb +++ /dev/null @@ -1,523 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/account_link_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AccountLinkService - ## - # Client for the AccountLinkService service. - # - # This service allows management of links between Google Ads accounts and other - # accounts. - # - class Client - include Paths - - # @private - attr_reader :account_link_service_stub - - ## - # Configure the AccountLinkService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AccountLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AccountLinkService clients - # ::Google::Ads::GoogleAds::V12::Services::AccountLinkService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AccountLinkService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AccountLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AccountLinkService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AccountLinkService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AccountLinkService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AccountLinkService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/account_link_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @account_link_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AccountLinkService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates an account link. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # [ThirdPartyAppAnalyticsLinkError]() - # - # @overload create_account_link(request, options = nil) - # Pass arguments to `create_account_link` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::CreateAccountLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::CreateAccountLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_account_link(customer_id: nil, account_link: nil) - # Pass arguments to `create_account_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer for which the account link is created. - # @param account_link [::Google::Ads::GoogleAds::V12::Resources::AccountLink, ::Hash] - # Required. The account link to be created. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::CreateAccountLinkResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::CreateAccountLinkResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AccountLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::CreateAccountLinkRequest.new - # - # # Call the create_account_link method. - # result = client.create_account_link request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::CreateAccountLinkResponse. - # p result - # - def create_account_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::CreateAccountLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_account_link.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_account_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_account_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @account_link_service_stub.call_rpc :create_account_link, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Creates or removes an account link. - # From V5, create is not supported through - # AccountLinkService.MutateAccountLink. Use - # AccountLinkService.CreateAccountLink instead. - # - # List of thrown errors: - # [AccountLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_account_link(request, options = nil) - # Pass arguments to `mutate_account_link` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAccountLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAccountLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_account_link(customer_id: nil, operation: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_account_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer being modified. - # @param operation [::Google::Ads::GoogleAds::V12::Services::AccountLinkOperation, ::Hash] - # Required. The operation to perform on the link. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAccountLinkResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAccountLinkResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AccountLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAccountLinkRequest.new - # - # # Call the mutate_account_link method. - # result = client.mutate_account_link request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAccountLinkResponse. - # p result - # - def mutate_account_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAccountLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_account_link.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_account_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_account_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @account_link_service_stub.call_rpc :mutate_account_link, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AccountLinkService API. - # - # This class represents the configuration for AccountLinkService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AccountLinkService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_account_link to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AccountLinkService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_account_link.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AccountLinkService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_account_link.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AccountLinkService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_account_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_account_link - ## - # RPC-specific configuration for `mutate_account_link` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_account_link - - # @private - def initialize parent_rpcs = nil - create_account_link_config = parent_rpcs.create_account_link if parent_rpcs.respond_to? :create_account_link - @create_account_link = ::Gapic::Config::Method.new create_account_link_config - mutate_account_link_config = parent_rpcs.mutate_account_link if parent_rpcs.respond_to? :mutate_account_link - @mutate_account_link = ::Gapic::Config::Method.new mutate_account_link_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/account_link_service/credentials.rb b/lib/google/ads/google_ads/v12/services/account_link_service/credentials.rb deleted file mode 100644 index d32c180d3..000000000 --- a/lib/google/ads/google_ads/v12/services/account_link_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AccountLinkService - # Credentials for the AccountLinkService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/account_link_service/paths.rb b/lib/google/ads/google_ads/v12/services/account_link_service/paths.rb deleted file mode 100644 index 8843dca2f..000000000 --- a/lib/google/ads/google_ads/v12/services/account_link_service/paths.rb +++ /dev/null @@ -1,66 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AccountLinkService - # Path helper methods for the AccountLinkService API. - module Paths - ## - # Create a fully-qualified AccountLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accountLinks/{account_link_id}` - # - # @param customer_id [String] - # @param account_link_id [String] - # - # @return [::String] - def account_link_path customer_id:, account_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accountLinks/#{account_link_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/account_link_service_pb.rb b/lib/google/ads/google_ads/v12/services/account_link_service_pb.rb deleted file mode 100644 index d777db724..000000000 --- a/lib/google/ads/google_ads/v12/services/account_link_service_pb.rb +++ /dev/null @@ -1,61 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/account_link_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/account_link_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/account_link_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.CreateAccountLinkRequest" do - optional :customer_id, :string, 1 - optional :account_link, :message, 2, "google.ads.googleads.v12.resources.AccountLink" - end - add_message "google.ads.googleads.v12.services.CreateAccountLinkResponse" do - optional :resource_name, :string, 1 - end - add_message "google.ads.googleads.v12.services.MutateAccountLinkRequest" do - optional :customer_id, :string, 1 - optional :operation, :message, 2, "google.ads.googleads.v12.services.AccountLinkOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.AccountLinkOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :update, :message, 2, "google.ads.googleads.v12.resources.AccountLink" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateAccountLinkResponse" do - optional :result, :message, 1, "google.ads.googleads.v12.services.MutateAccountLinkResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateAccountLinkResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - CreateAccountLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CreateAccountLinkRequest").msgclass - CreateAccountLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CreateAccountLinkResponse").msgclass - MutateAccountLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAccountLinkRequest").msgclass - AccountLinkOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AccountLinkOperation").msgclass - MutateAccountLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAccountLinkResponse").msgclass - MutateAccountLinkResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAccountLinkResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/account_link_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/account_link_service_services_pb.rb deleted file mode 100644 index 557c282e0..000000000 --- a/lib/google/ads/google_ads/v12/services/account_link_service_services_pb.rb +++ /dev/null @@ -1,76 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/account_link_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/account_link_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AccountLinkService - # This service allows management of links between Google Ads accounts and other - # accounts. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AccountLinkService' - - # Creates an account link. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # [ThirdPartyAppAnalyticsLinkError]() - rpc :CreateAccountLink, ::Google::Ads::GoogleAds::V12::Services::CreateAccountLinkRequest, ::Google::Ads::GoogleAds::V12::Services::CreateAccountLinkResponse - # Creates or removes an account link. - # From V5, create is not supported through - # AccountLinkService.MutateAccountLink. Use - # AccountLinkService.CreateAccountLink instead. - # - # List of thrown errors: - # [AccountLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateAccountLink, ::Google::Ads::GoogleAds::V12::Services::MutateAccountLinkRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAccountLinkResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service.rb b/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service.rb deleted file mode 100644 index e938609f9..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/ad_group_ad_label_service/credentials" -require "google/ads/google_ads/v12/services/ad_group_ad_label_service/paths" -require "google/ads/google_ads/v12/services/ad_group_ad_label_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage labels on ad group ads. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/ad_group_ad_label_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupAdLabelService::Client.new - # - module AdGroupAdLabelService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_group_ad_label_service", "helpers.rb" -require "google/ads/google_ads/v12/services/ad_group_ad_label_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service/client.rb b/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service/client.rb deleted file mode 100644 index 993db522e..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service/client.rb +++ /dev/null @@ -1,413 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/ad_group_ad_label_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupAdLabelService - ## - # Client for the AdGroupAdLabelService service. - # - # Service to manage labels on ad group ads. - # - class Client - include Paths - - # @private - attr_reader :ad_group_ad_label_service_stub - - ## - # Configure the AdGroupAdLabelService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupAdLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupAdLabelService clients - # ::Google::Ads::GoogleAds::V12::Services::AdGroupAdLabelService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupAdLabelService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupAdLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupAdLabelService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupAdLabelService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupAdLabelService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupAdLabelService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/ad_group_ad_label_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_ad_label_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AdGroupAdLabelService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates and removes ad group ad labels. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [HeaderError]() - # [InternalError]() - # [LabelError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_ad_group_ad_labels(request, options = nil) - # Pass arguments to `mutate_ad_group_ad_labels` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdLabelsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdLabelsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_ad_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_ad_group_ad_labels` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose ad group ad labels are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AdGroupAdLabelOperation, ::Hash>] - # Required. The list of operations to perform on ad group ad labels. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdLabelsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdLabelsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AdGroupAdLabelService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdLabelsRequest.new - # - # # Call the mutate_ad_group_ad_labels method. - # result = client.mutate_ad_group_ad_labels request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdLabelsResponse. - # p result - # - def mutate_ad_group_ad_labels request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdLabelsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_ad_labels.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_ad_labels.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_ad_labels.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_ad_label_service_stub.call_rpc :mutate_ad_group_ad_labels, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupAdLabelService API. - # - # This class represents the configuration for AdGroupAdLabelService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AdGroupAdLabelService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_ad_labels to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AdGroupAdLabelService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_ad_labels.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupAdLabelService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_ad_labels.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AdGroupAdLabelService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_ad_labels` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_ad_labels - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_ad_labels_config = parent_rpcs.mutate_ad_group_ad_labels if parent_rpcs.respond_to? :mutate_ad_group_ad_labels - @mutate_ad_group_ad_labels = ::Gapic::Config::Method.new mutate_ad_group_ad_labels_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service/credentials.rb b/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service/credentials.rb deleted file mode 100644 index a23f55ea5..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupAdLabelService - # Credentials for the AdGroupAdLabelService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service/paths.rb b/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service/paths.rb deleted file mode 100644 index f1045f9ee..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service/paths.rb +++ /dev/null @@ -1,92 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupAdLabelService - # Path helper methods for the AdGroupAdLabelService API. - module Paths - ## - # Create a fully-qualified AdGroupAd resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_group_ad_path customer_id:, ad_group_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAds/#{ad_group_id}~#{ad_id}" - end - - ## - # Create a fully-qualified AdGroupAdLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_ad_label_path customer_id:, ad_group_id:, ad_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAdLabels/#{ad_group_id}~#{ad_id}~#{label_id}" - end - - ## - # Create a fully-qualified Label resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/labels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/labels/#{label_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service_pb.rb deleted file mode 100644 index c14c2ca2b..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/ad_group_ad_label_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/ad_group_ad_label_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/ad_group_ad_label_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAdGroupAdLabelsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AdGroupAdLabelOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.AdGroupAdLabelOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AdGroupAdLabel" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateAdGroupAdLabelsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateAdGroupAdLabelResult" - end - add_message "google.ads.googleads.v12.services.MutateAdGroupAdLabelResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAdGroupAdLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupAdLabelsRequest").msgclass - AdGroupAdLabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdGroupAdLabelOperation").msgclass - MutateAdGroupAdLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupAdLabelsResponse").msgclass - MutateAdGroupAdLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupAdLabelResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service_services_pb.rb deleted file mode 100644 index 217156dd3..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_ad_label_service_services_pb.rb +++ /dev/null @@ -1,62 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/ad_group_ad_label_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/ad_group_ad_label_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupAdLabelService - # Proto file describing the Ad Group Ad Label service. - # - # Service to manage labels on ad group ads. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AdGroupAdLabelService' - - # Creates and removes ad group ad labels. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [HeaderError]() - # [InternalError]() - # [LabelError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateAdGroupAdLabels, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdLabelsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdLabelsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_ad_service.rb b/lib/google/ads/google_ads/v12/services/ad_group_ad_service.rb deleted file mode 100644 index a63742dba..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_ad_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/ad_group_ad_service/credentials" -require "google/ads/google_ads/v12/services/ad_group_ad_service/paths" -require "google/ads/google_ads/v12/services/ad_group_ad_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage ads in an ad group. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/ad_group_ad_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupAdService::Client.new - # - module AdGroupAdService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_group_ad_service", "helpers.rb" -require "google/ads/google_ads/v12/services/ad_group_ad_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/ad_group_ad_service/client.rb b/lib/google/ads/google_ads/v12/services/ad_group_ad_service/client.rb deleted file mode 100644 index 4a07bea77..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_ad_service/client.rb +++ /dev/null @@ -1,448 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/ad_group_ad_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupAdService - ## - # Client for the AdGroupAdService service. - # - # Service to manage ads in an ad group. - # - class Client - include Paths - - # @private - attr_reader :ad_group_ad_service_stub - - ## - # Configure the AdGroupAdService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupAdService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupAdService clients - # ::Google::Ads::GoogleAds::V12::Services::AdGroupAdService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupAdService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupAdService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupAdService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupAdService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupAdService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupAdService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/ad_group_ad_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_ad_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AdGroupAdService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes ads. Operation statuses are returned. - # - # List of thrown errors: - # [AdCustomizerError]() - # [AdError]() - # [AdGroupAdError]() - # [AdSharingError]() - # [AdxError]() - # [AssetError]() - # [AssetLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [ContextError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FeedAttributeReferenceError]() - # [FieldError]() - # [FieldMaskError]() - # [FunctionError]() - # [FunctionParsingError]() - # [HeaderError]() - # [IdError]() - # [ImageError]() - # [InternalError]() - # [ListOperationError]() - # [MediaBundleError]() - # [MediaFileError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [PolicyFindingError]() - # [PolicyValidationParameterError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_ad_group_ads(request, options = nil) - # Pass arguments to `mutate_ad_group_ads` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_ads(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_group_ads` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ads are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AdGroupAdOperation, ::Hash>] - # Required. The list of operations to perform on individual ads. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AdGroupAdService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdsRequest.new - # - # # Call the mutate_ad_group_ads method. - # result = client.mutate_ad_group_ads request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdsResponse. - # p result - # - def mutate_ad_group_ads request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_ads.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_ads.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_ads.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_ad_service_stub.call_rpc :mutate_ad_group_ads, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupAdService API. - # - # This class represents the configuration for AdGroupAdService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AdGroupAdService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_ads to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AdGroupAdService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_ads.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupAdService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_ads.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AdGroupAdService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_ads` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_ads - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_ads_config = parent_rpcs.mutate_ad_group_ads if parent_rpcs.respond_to? :mutate_ad_group_ads - @mutate_ad_group_ads = ::Gapic::Config::Method.new mutate_ad_group_ads_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_ad_service/credentials.rb b/lib/google/ads/google_ads/v12/services/ad_group_ad_service/credentials.rb deleted file mode 100644 index a12fbabe1..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_ad_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupAdService - # Credentials for the AdGroupAdService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_ad_service/paths.rb b/lib/google/ads/google_ads/v12/services/ad_group_ad_service/paths.rb deleted file mode 100644 index 84fec7bc7..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_ad_service/paths.rb +++ /dev/null @@ -1,109 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupAdService - # Path helper methods for the AdGroupAdService API. - module Paths - ## - # Create a fully-qualified Ad resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/ads/{ad_id}` - # - # @param customer_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_path customer_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/ads/#{ad_id}" - end - - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupAd resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_group_ad_path customer_id:, ad_group_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAds/#{ad_group_id}~#{ad_id}" - end - - ## - # Create a fully-qualified AdGroupAdLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_ad_label_path customer_id:, ad_group_id:, ad_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAdLabels/#{ad_group_id}~#{ad_id}~#{label_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_ad_service_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_ad_service_pb.rb deleted file mode 100644 index adb1451d9..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_ad_service_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/ad_group_ad_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/policy_pb' -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/ad_group_ad_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/ad_group_ad_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAdGroupAdsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AdGroupAdOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.AdGroupAdOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - optional :policy_validation_parameter, :message, 5, "google.ads.googleads.v12.common.PolicyValidationParameter" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AdGroupAd" - optional :update, :message, 2, "google.ads.googleads.v12.resources.AdGroupAd" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateAdGroupAdsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateAdGroupAdResult" - end - add_message "google.ads.googleads.v12.services.MutateAdGroupAdResult" do - optional :resource_name, :string, 1 - optional :ad_group_ad, :message, 2, "google.ads.googleads.v12.resources.AdGroupAd" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAdGroupAdsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupAdsRequest").msgclass - AdGroupAdOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdGroupAdOperation").msgclass - MutateAdGroupAdsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupAdsResponse").msgclass - MutateAdGroupAdResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupAdResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_ad_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_ad_service_services_pb.rb deleted file mode 100644 index 91b18f472..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_ad_service_services_pb.rb +++ /dev/null @@ -1,94 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/ad_group_ad_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/ad_group_ad_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupAdService - # Proto file describing the Ad Group Ad service. - # - # Service to manage ads in an ad group. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AdGroupAdService' - - # Creates, updates, or removes ads. Operation statuses are returned. - # - # List of thrown errors: - # [AdCustomizerError]() - # [AdError]() - # [AdGroupAdError]() - # [AdSharingError]() - # [AdxError]() - # [AssetError]() - # [AssetLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [ContextError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FeedAttributeReferenceError]() - # [FieldError]() - # [FieldMaskError]() - # [FunctionError]() - # [FunctionParsingError]() - # [HeaderError]() - # [IdError]() - # [ImageError]() - # [InternalError]() - # [ListOperationError]() - # [MediaBundleError]() - # [MediaFileError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [PolicyFindingError]() - # [PolicyValidationParameterError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - rpc :MutateAdGroupAds, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAdsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_asset_service.rb b/lib/google/ads/google_ads/v12/services/ad_group_asset_service.rb deleted file mode 100644 index faa86bf28..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_asset_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/ad_group_asset_service/credentials" -require "google/ads/google_ads/v12/services/ad_group_asset_service/paths" -require "google/ads/google_ads/v12/services/ad_group_asset_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage ad group assets. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/ad_group_asset_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupAssetService::Client.new - # - module AdGroupAssetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_group_asset_service", "helpers.rb" -require "google/ads/google_ads/v12/services/ad_group_asset_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/ad_group_asset_service/client.rb b/lib/google/ads/google_ads/v12/services/ad_group_asset_service/client.rb deleted file mode 100644 index 4bab2a68b..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_asset_service/client.rb +++ /dev/null @@ -1,417 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/ad_group_asset_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupAssetService - ## - # Client for the AdGroupAssetService service. - # - # Service to manage ad group assets. - # - class Client - include Paths - - # @private - attr_reader :ad_group_asset_service_stub - - ## - # Configure the AdGroupAssetService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupAssetService clients - # ::Google::Ads::GoogleAds::V12::Services::AdGroupAssetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupAssetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupAssetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupAssetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupAssetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupAssetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/ad_group_asset_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_asset_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AdGroupAssetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes ad group assets. Operation statuses are - # returned. - # - # List of thrown errors: - # [AssetLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [ContextError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [NotAllowlistedError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_ad_group_assets(request, options = nil) - # Pass arguments to `mutate_ad_group_assets` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_assets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_group_assets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ad group assets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AdGroupAssetOperation, ::Hash>] - # Required. The list of operations to perform on individual ad group assets. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AdGroupAssetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetsRequest.new - # - # # Call the mutate_ad_group_assets method. - # result = client.mutate_ad_group_assets request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetsResponse. - # p result - # - def mutate_ad_group_assets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_assets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_assets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_assets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_asset_service_stub.call_rpc :mutate_ad_group_assets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupAssetService API. - # - # This class represents the configuration for AdGroupAssetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AdGroupAssetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_assets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AdGroupAssetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_assets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupAssetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_assets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AdGroupAssetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_assets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_assets - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_assets_config = parent_rpcs.mutate_ad_group_assets if parent_rpcs.respond_to? :mutate_ad_group_assets - @mutate_ad_group_assets = ::Gapic::Config::Method.new mutate_ad_group_assets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_asset_service/credentials.rb b/lib/google/ads/google_ads/v12/services/ad_group_asset_service/credentials.rb deleted file mode 100644 index ded5e9f5d..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_asset_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupAssetService - # Credentials for the AdGroupAssetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_asset_service/paths.rb b/lib/google/ads/google_ads/v12/services/ad_group_asset_service/paths.rb deleted file mode 100644 index ca4402a98..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_asset_service/paths.rb +++ /dev/null @@ -1,90 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupAssetService - # Path helper methods for the AdGroupAssetService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def ad_group_asset_path customer_id:, ad_group_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAssets/#{ad_group_id}~#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_asset_service_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_asset_service_pb.rb deleted file mode 100644 index cf3f6d148..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_asset_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/ad_group_asset_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/ad_group_asset_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/ad_group_asset_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAdGroupAssetsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AdGroupAssetOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.AdGroupAssetOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AdGroupAsset" - optional :update, :message, 3, "google.ads.googleads.v12.resources.AdGroupAsset" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateAdGroupAssetsResponse" do - optional :partial_failure_error, :message, 1, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateAdGroupAssetResult" - end - add_message "google.ads.googleads.v12.services.MutateAdGroupAssetResult" do - optional :resource_name, :string, 1 - optional :ad_group_asset, :message, 2, "google.ads.googleads.v12.resources.AdGroupAsset" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAdGroupAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupAssetsRequest").msgclass - AdGroupAssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdGroupAssetOperation").msgclass - MutateAdGroupAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupAssetsResponse").msgclass - MutateAdGroupAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupAssetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_asset_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_asset_service_services_pb.rb deleted file mode 100644 index 95a9654ad..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_asset_service_services_pb.rb +++ /dev/null @@ -1,63 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/ad_group_asset_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/ad_group_asset_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupAssetService - # Proto file describing the AdGroupAsset service. - # - # Service to manage ad group assets. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AdGroupAssetService' - - # Creates, updates, or removes ad group assets. Operation statuses are - # returned. - # - # List of thrown errors: - # [AssetLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [ContextError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [NotAllowlistedError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateAdGroupAssets, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service.rb b/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service.rb deleted file mode 100644 index 00854cda2..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/ad_group_asset_set_service/credentials" -require "google/ads/google_ads/v12/services/ad_group_asset_set_service/paths" -require "google/ads/google_ads/v12/services/ad_group_asset_set_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage ad group asset set - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/ad_group_asset_set_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupAssetSetService::Client.new - # - module AdGroupAssetSetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_group_asset_set_service", "helpers.rb" -require "google/ads/google_ads/v12/services/ad_group_asset_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service/client.rb b/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service/client.rb deleted file mode 100644 index b789c9a5f..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service/client.rb +++ /dev/null @@ -1,404 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/ad_group_asset_set_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupAssetSetService - ## - # Client for the AdGroupAssetSetService service. - # - # Service to manage ad group asset set - # - class Client - include Paths - - # @private - attr_reader :ad_group_asset_set_service_stub - - ## - # Configure the AdGroupAssetSetService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupAssetSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupAssetSetService clients - # ::Google::Ads::GoogleAds::V12::Services::AdGroupAssetSetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupAssetSetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupAssetSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupAssetSetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupAssetSetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupAssetSetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupAssetSetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/ad_group_asset_set_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_asset_set_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AdGroupAssetSetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, or removes ad group asset sets. Operation statuses are - # returned. - # - # @overload mutate_ad_group_asset_sets(request, options = nil) - # Pass arguments to `mutate_ad_group_asset_sets` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_asset_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_group_asset_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ad group asset sets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AdGroupAssetSetOperation, ::Hash>] - # Required. The list of operations to perform on individual ad group asset sets. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetSetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetSetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AdGroupAssetSetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetSetsRequest.new - # - # # Call the mutate_ad_group_asset_sets method. - # result = client.mutate_ad_group_asset_sets request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetSetsResponse. - # p result - # - def mutate_ad_group_asset_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_asset_sets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_asset_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_asset_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_asset_set_service_stub.call_rpc :mutate_ad_group_asset_sets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupAssetSetService API. - # - # This class represents the configuration for AdGroupAssetSetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AdGroupAssetSetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_asset_sets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AdGroupAssetSetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_asset_sets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupAssetSetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_asset_sets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AdGroupAssetSetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_asset_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_asset_sets - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_asset_sets_config = parent_rpcs.mutate_ad_group_asset_sets if parent_rpcs.respond_to? :mutate_ad_group_asset_sets - @mutate_ad_group_asset_sets = ::Gapic::Config::Method.new mutate_ad_group_asset_sets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service/credentials.rb b/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service/credentials.rb deleted file mode 100644 index 57b1eadcc..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupAssetSetService - # Credentials for the AdGroupAssetSetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service/paths.rb b/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service/paths.rb deleted file mode 100644 index eb5607ea0..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupAssetSetService - # Path helper methods for the AdGroupAssetSetService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupAssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def ad_group_asset_set_path customer_id:, ad_group_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAssetSets/#{ad_group_id}~#{asset_set_id}" - end - - ## - # Create a fully-qualified AssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSets/#{asset_set_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service_pb.rb deleted file mode 100644 index e601d9272..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/ad_group_asset_set_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/ad_group_asset_set_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/ad_group_asset_set_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAdGroupAssetSetsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AdGroupAssetSetOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.AdGroupAssetSetOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AdGroupAssetSet" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateAdGroupAssetSetsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateAdGroupAssetSetResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateAdGroupAssetSetResult" do - optional :resource_name, :string, 1 - optional :ad_group_asset_set, :message, 2, "google.ads.googleads.v12.resources.AdGroupAssetSet" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAdGroupAssetSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupAssetSetsRequest").msgclass - AdGroupAssetSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdGroupAssetSetOperation").msgclass - MutateAdGroupAssetSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupAssetSetsResponse").msgclass - MutateAdGroupAssetSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupAssetSetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service_services_pb.rb deleted file mode 100644 index fd3e4ac11..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_asset_set_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/ad_group_asset_set_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/ad_group_asset_set_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupAssetSetService - # Proto file describing the AdGroupAssetSet service. - # - # Service to manage ad group asset set - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AdGroupAssetSetService' - - # Creates, or removes ad group asset sets. Operation statuses are - # returned. - rpc :MutateAdGroupAssetSets, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetSetsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupAssetSetsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service.rb b/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service.rb deleted file mode 100644 index 6a5883068..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/ad_group_bid_modifier_service/credentials" -require "google/ads/google_ads/v12/services/ad_group_bid_modifier_service/paths" -require "google/ads/google_ads/v12/services/ad_group_bid_modifier_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage ad group bid modifiers. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/ad_group_bid_modifier_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupBidModifierService::Client.new - # - module AdGroupBidModifierService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_group_bid_modifier_service", "helpers.rb" -require "google/ads/google_ads/v12/services/ad_group_bid_modifier_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service/client.rb b/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service/client.rb deleted file mode 100644 index 0b5127e04..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service/client.rb +++ /dev/null @@ -1,429 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/ad_group_bid_modifier_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupBidModifierService - ## - # Client for the AdGroupBidModifierService service. - # - # Service to manage ad group bid modifiers. - # - class Client - include Paths - - # @private - attr_reader :ad_group_bid_modifier_service_stub - - ## - # Configure the AdGroupBidModifierService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupBidModifierService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupBidModifierService clients - # ::Google::Ads::GoogleAds::V12::Services::AdGroupBidModifierService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupBidModifierService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupBidModifierService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupBidModifierService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupBidModifierService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupBidModifierService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupBidModifierService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/ad_group_bid_modifier_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_bid_modifier_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AdGroupBidModifierService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes ad group bid modifiers. - # Operation statuses are returned. - # - # List of thrown errors: - # [AdGroupBidModifierError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [ContextError]() - # [CriterionError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_ad_group_bid_modifiers(request, options = nil) - # Pass arguments to `mutate_ad_group_bid_modifiers` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAdGroupBidModifiersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupBidModifiersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_bid_modifiers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_group_bid_modifiers` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose ad group bid modifiers are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AdGroupBidModifierOperation, ::Hash>] - # Required. The list of operations to perform on individual ad group bid modifiers. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupBidModifiersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupBidModifiersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AdGroupBidModifierService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAdGroupBidModifiersRequest.new - # - # # Call the mutate_ad_group_bid_modifiers method. - # result = client.mutate_ad_group_bid_modifiers request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAdGroupBidModifiersResponse. - # p result - # - def mutate_ad_group_bid_modifiers request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupBidModifiersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_bid_modifiers.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_bid_modifiers.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_bid_modifiers.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_bid_modifier_service_stub.call_rpc :mutate_ad_group_bid_modifiers, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupBidModifierService API. - # - # This class represents the configuration for AdGroupBidModifierService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AdGroupBidModifierService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_bid_modifiers to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AdGroupBidModifierService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_bid_modifiers.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupBidModifierService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_bid_modifiers.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AdGroupBidModifierService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_bid_modifiers` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_bid_modifiers - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_bid_modifiers_config = parent_rpcs.mutate_ad_group_bid_modifiers if parent_rpcs.respond_to? :mutate_ad_group_bid_modifiers - @mutate_ad_group_bid_modifiers = ::Gapic::Config::Method.new mutate_ad_group_bid_modifiers_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service/credentials.rb b/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service/credentials.rb deleted file mode 100644 index 8ad451fc2..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupBidModifierService - # Credentials for the AdGroupBidModifierService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service/paths.rb b/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service/paths.rb deleted file mode 100644 index ec99c85cd..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupBidModifierService - # Path helper methods for the AdGroupBidModifierService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupBidModifier resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_bid_modifier_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupBidModifiers/#{ad_group_id}~#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service_pb.rb deleted file mode 100644 index c37b11ff6..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/ad_group_bid_modifier_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/ad_group_bid_modifier_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/ad_group_bid_modifier_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAdGroupBidModifiersRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AdGroupBidModifierOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.AdGroupBidModifierOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AdGroupBidModifier" - optional :update, :message, 2, "google.ads.googleads.v12.resources.AdGroupBidModifier" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateAdGroupBidModifiersResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateAdGroupBidModifierResult" - end - add_message "google.ads.googleads.v12.services.MutateAdGroupBidModifierResult" do - optional :resource_name, :string, 1 - optional :ad_group_bid_modifier, :message, 2, "google.ads.googleads.v12.resources.AdGroupBidModifier" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAdGroupBidModifiersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupBidModifiersRequest").msgclass - AdGroupBidModifierOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdGroupBidModifierOperation").msgclass - MutateAdGroupBidModifiersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupBidModifiersResponse").msgclass - MutateAdGroupBidModifierResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupBidModifierResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service_services_pb.rb deleted file mode 100644 index e1e4e7998..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_bid_modifier_service_services_pb.rb +++ /dev/null @@ -1,75 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/ad_group_bid_modifier_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/ad_group_bid_modifier_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupBidModifierService - # Proto file describing the Ad Group Bid Modifier service. - # - # Service to manage ad group bid modifiers. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AdGroupBidModifierService' - - # Creates, updates, or removes ad group bid modifiers. - # Operation statuses are returned. - # - # List of thrown errors: - # [AdGroupBidModifierError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [ContextError]() - # [CriterionError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - rpc :MutateAdGroupBidModifiers, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupBidModifiersRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupBidModifiersResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service.rb deleted file mode 100644 index ccc775651..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/ad_group_criterion_customizer_service/credentials" -require "google/ads/google_ads/v12/services/ad_group_criterion_customizer_service/paths" -require "google/ads/google_ads/v12/services/ad_group_criterion_customizer_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage ad group criterion customizer - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/ad_group_criterion_customizer_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionCustomizerService::Client.new - # - module AdGroupCriterionCustomizerService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_group_criterion_customizer_service", "helpers.rb" -require "google/ads/google_ads/v12/services/ad_group_criterion_customizer_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service/client.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service/client.rb deleted file mode 100644 index 4d96bc178..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service/client.rb +++ /dev/null @@ -1,406 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/ad_group_criterion_customizer_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupCriterionCustomizerService - ## - # Client for the AdGroupCriterionCustomizerService service. - # - # Service to manage ad group criterion customizer - # - class Client - include Paths - - # @private - attr_reader :ad_group_criterion_customizer_service_stub - - ## - # Configure the AdGroupCriterionCustomizerService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionCustomizerService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupCriterionCustomizerService clients - # ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionCustomizerService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupCriterionCustomizerService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionCustomizerService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupCriterionCustomizerService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionCustomizerService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionCustomizerService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupCriterionCustomizerService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/ad_group_criterion_customizer_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_criterion_customizer_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionCustomizerService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes ad group criterion customizers. Operation - # statuses are returned. - # - # @overload mutate_ad_group_criterion_customizers(request, options = nil) - # Pass arguments to `mutate_ad_group_criterion_customizers` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionCustomizersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionCustomizersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_criterion_customizers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_group_criterion_customizers` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ad group criterion customizers are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionCustomizerOperation, ::Hash>] - # Required. The list of operations to perform on individual ad group criterion - # customizers. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionCustomizersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionCustomizersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AdGroupCriterionCustomizerService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionCustomizersRequest.new - # - # # Call the mutate_ad_group_criterion_customizers method. - # result = client.mutate_ad_group_criterion_customizers request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionCustomizersResponse. - # p result - # - def mutate_ad_group_criterion_customizers request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionCustomizersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_criterion_customizers.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_criterion_customizers.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_criterion_customizers.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_criterion_customizer_service_stub.call_rpc :mutate_ad_group_criterion_customizers, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupCriterionCustomizerService API. - # - # This class represents the configuration for AdGroupCriterionCustomizerService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionCustomizerService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_criterion_customizers to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionCustomizerService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_criterion_customizers.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionCustomizerService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_criterion_customizers.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AdGroupCriterionCustomizerService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_criterion_customizers` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_criterion_customizers - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_criterion_customizers_config = parent_rpcs.mutate_ad_group_criterion_customizers if parent_rpcs.respond_to? :mutate_ad_group_criterion_customizers - @mutate_ad_group_criterion_customizers = ::Gapic::Config::Method.new mutate_ad_group_criterion_customizers_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service/credentials.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service/credentials.rb deleted file mode 100644 index a5bb5ffa3..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupCriterionCustomizerService - # Credentials for the AdGroupCriterionCustomizerService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service/paths.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service/paths.rb deleted file mode 100644 index 65d7e12e0..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service/paths.rb +++ /dev/null @@ -1,92 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupCriterionCustomizerService - # Path helper methods for the AdGroupCriterionCustomizerService API. - module Paths - ## - # Create a fully-qualified AdGroupCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdGroupCriterionCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def ad_group_criterion_customizer_path customer_id:, ad_group_id:, criterion_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriterionCustomizers/#{ad_group_id}~#{criterion_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified CustomizerAttribute resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customizer_attribute_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service_pb.rb deleted file mode 100644 index 146fd314b..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/ad_group_criterion_customizer_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/ad_group_criterion_customizer_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/ad_group_criterion_customizer_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAdGroupCriterionCustomizersRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AdGroupCriterionCustomizerOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.AdGroupCriterionCustomizerOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AdGroupCriterionCustomizer" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateAdGroupCriterionCustomizersResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateAdGroupCriterionCustomizerResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateAdGroupCriterionCustomizerResult" do - optional :resource_name, :string, 1 - optional :ad_group_criterion_customizer, :message, 2, "google.ads.googleads.v12.resources.AdGroupCriterionCustomizer" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAdGroupCriterionCustomizersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupCriterionCustomizersRequest").msgclass - AdGroupCriterionCustomizerOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdGroupCriterionCustomizerOperation").msgclass - MutateAdGroupCriterionCustomizersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupCriterionCustomizersResponse").msgclass - MutateAdGroupCriterionCustomizerResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupCriterionCustomizerResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service_services_pb.rb deleted file mode 100644 index 4c907e3b3..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_customizer_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/ad_group_criterion_customizer_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/ad_group_criterion_customizer_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupCriterionCustomizerService - # Proto file describing the AdGroupCriterionCustomizer service. - # - # Service to manage ad group criterion customizer - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AdGroupCriterionCustomizerService' - - # Creates, updates or removes ad group criterion customizers. Operation - # statuses are returned. - rpc :MutateAdGroupCriterionCustomizers, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionCustomizersRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionCustomizersResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service.rb deleted file mode 100644 index 2a6fb2897..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/ad_group_criterion_label_service/credentials" -require "google/ads/google_ads/v12/services/ad_group_criterion_label_service/paths" -require "google/ads/google_ads/v12/services/ad_group_criterion_label_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage labels on ad group criteria. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/ad_group_criterion_label_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionLabelService::Client.new - # - module AdGroupCriterionLabelService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_group_criterion_label_service", "helpers.rb" -require "google/ads/google_ads/v12/services/ad_group_criterion_label_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service/client.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service/client.rb deleted file mode 100644 index af2eadd74..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service/client.rb +++ /dev/null @@ -1,411 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/ad_group_criterion_label_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupCriterionLabelService - ## - # Client for the AdGroupCriterionLabelService service. - # - # Service to manage labels on ad group criteria. - # - class Client - include Paths - - # @private - attr_reader :ad_group_criterion_label_service_stub - - ## - # Configure the AdGroupCriterionLabelService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupCriterionLabelService clients - # ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionLabelService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupCriterionLabelService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupCriterionLabelService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionLabelService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionLabelService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupCriterionLabelService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/ad_group_criterion_label_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_criterion_label_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionLabelService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates and removes ad group criterion labels. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_ad_group_criterion_labels(request, options = nil) - # Pass arguments to `mutate_ad_group_criterion_labels` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionLabelsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionLabelsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_criterion_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_ad_group_criterion_labels` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose ad group criterion labels are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionLabelOperation, ::Hash>] - # Required. The list of operations to perform on ad group criterion labels. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionLabelsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionLabelsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AdGroupCriterionLabelService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionLabelsRequest.new - # - # # Call the mutate_ad_group_criterion_labels method. - # result = client.mutate_ad_group_criterion_labels request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionLabelsResponse. - # p result - # - def mutate_ad_group_criterion_labels request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionLabelsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_criterion_labels.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_criterion_labels.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_criterion_labels.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_criterion_label_service_stub.call_rpc :mutate_ad_group_criterion_labels, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupCriterionLabelService API. - # - # This class represents the configuration for AdGroupCriterionLabelService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionLabelService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_criterion_labels to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionLabelService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_criterion_labels.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionLabelService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_criterion_labels.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AdGroupCriterionLabelService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_criterion_labels` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_criterion_labels - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_criterion_labels_config = parent_rpcs.mutate_ad_group_criterion_labels if parent_rpcs.respond_to? :mutate_ad_group_criterion_labels - @mutate_ad_group_criterion_labels = ::Gapic::Config::Method.new mutate_ad_group_criterion_labels_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service/credentials.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service/credentials.rb deleted file mode 100644 index 1f4b230c9..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupCriterionLabelService - # Credentials for the AdGroupCriterionLabelService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service/paths.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service/paths.rb deleted file mode 100644 index 5bc83b22e..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service/paths.rb +++ /dev/null @@ -1,92 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupCriterionLabelService - # Path helper methods for the AdGroupCriterionLabelService API. - module Paths - ## - # Create a fully-qualified AdGroupCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdGroupCriterionLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_criterion_label_path customer_id:, ad_group_id:, criterion_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriterionLabels/#{ad_group_id}~#{criterion_id}~#{label_id}" - end - - ## - # Create a fully-qualified Label resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/labels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/labels/#{label_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service_pb.rb deleted file mode 100644 index 78d940d0f..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/ad_group_criterion_label_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/ad_group_criterion_label_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/ad_group_criterion_label_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAdGroupCriterionLabelsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AdGroupCriterionLabelOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.AdGroupCriterionLabelOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AdGroupCriterionLabel" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateAdGroupCriterionLabelsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateAdGroupCriterionLabelResult" - end - add_message "google.ads.googleads.v12.services.MutateAdGroupCriterionLabelResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAdGroupCriterionLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupCriterionLabelsRequest").msgclass - AdGroupCriterionLabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdGroupCriterionLabelOperation").msgclass - MutateAdGroupCriterionLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupCriterionLabelsResponse").msgclass - MutateAdGroupCriterionLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupCriterionLabelResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service_services_pb.rb deleted file mode 100644 index 7ba2e178e..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_label_service_services_pb.rb +++ /dev/null @@ -1,60 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/ad_group_criterion_label_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/ad_group_criterion_label_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupCriterionLabelService - # Proto file describing the Ad Group Criterion Label service. - # - # Service to manage labels on ad group criteria. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AdGroupCriterionLabelService' - - # Creates and removes ad group criterion labels. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateAdGroupCriterionLabels, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionLabelsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriterionLabelsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_service.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_service.rb deleted file mode 100644 index 987dedd9f..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/ad_group_criterion_service/credentials" -require "google/ads/google_ads/v12/services/ad_group_criterion_service/paths" -require "google/ads/google_ads/v12/services/ad_group_criterion_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage ad group criteria. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/ad_group_criterion_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionService::Client.new - # - module AdGroupCriterionService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_group_criterion_service", "helpers.rb" -require "google/ads/google_ads/v12/services/ad_group_criterion_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_service/client.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_service/client.rb deleted file mode 100644 index 98a1320e1..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_service/client.rb +++ /dev/null @@ -1,438 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/ad_group_criterion_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupCriterionService - ## - # Client for the AdGroupCriterionService service. - # - # Service to manage ad group criteria. - # - class Client - include Paths - - # @private - attr_reader :ad_group_criterion_service_stub - - ## - # Configure the AdGroupCriterionService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupCriterionService clients - # ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupCriterionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupCriterionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupCriterionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/ad_group_criterion_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_criterion_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes criteria. Operation statuses are returned. - # - # List of thrown errors: - # [AdGroupCriterionError]() - # [AdxError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [BiddingError]() - # [BiddingStrategyError]() - # [CollectionSizeError]() - # [ContextError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MultiplierError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_ad_group_criteria(request, options = nil) - # Pass arguments to `mutate_ad_group_criteria` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriteriaRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriteriaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_criteria(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_group_criteria` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose criteria are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionOperation, ::Hash>] - # Required. The list of operations to perform on individual criteria. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriteriaResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriteriaResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AdGroupCriterionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriteriaRequest.new - # - # # Call the mutate_ad_group_criteria method. - # result = client.mutate_ad_group_criteria request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriteriaResponse. - # p result - # - def mutate_ad_group_criteria request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriteriaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_criteria.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_criteria.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_criteria.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_criterion_service_stub.call_rpc :mutate_ad_group_criteria, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupCriterionService API. - # - # This class represents the configuration for AdGroupCriterionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_criteria to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_criteria.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupCriterionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_criteria.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AdGroupCriterionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_criteria` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_criteria - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_criteria_config = parent_rpcs.mutate_ad_group_criteria if parent_rpcs.respond_to? :mutate_ad_group_criteria - @mutate_ad_group_criteria = ::Gapic::Config::Method.new mutate_ad_group_criteria_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_service/credentials.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_service/credentials.rb deleted file mode 100644 index e419d50e1..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupCriterionService - # Credentials for the AdGroupCriterionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_service/paths.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_service/paths.rb deleted file mode 100644 index 1c9f0234d..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_service/paths.rb +++ /dev/null @@ -1,92 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupCriterionService - # Path helper methods for the AdGroupCriterionService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdGroupCriterionLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_criterion_label_path customer_id:, ad_group_id:, criterion_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriterionLabels/#{ad_group_id}~#{criterion_id}~#{label_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_service_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_service_pb.rb deleted file mode 100644 index 71d3cb917..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_service_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/ad_group_criterion_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/policy_pb' -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/ad_group_criterion_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/ad_group_criterion_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAdGroupCriteriaRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AdGroupCriterionOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.AdGroupCriterionOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - repeated :exempt_policy_violation_keys, :message, 5, "google.ads.googleads.v12.common.PolicyViolationKey" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AdGroupCriterion" - optional :update, :message, 2, "google.ads.googleads.v12.resources.AdGroupCriterion" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateAdGroupCriteriaResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateAdGroupCriterionResult" - end - add_message "google.ads.googleads.v12.services.MutateAdGroupCriterionResult" do - optional :resource_name, :string, 1 - optional :ad_group_criterion, :message, 2, "google.ads.googleads.v12.resources.AdGroupCriterion" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAdGroupCriteriaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupCriteriaRequest").msgclass - AdGroupCriterionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdGroupCriterionOperation").msgclass - MutateAdGroupCriteriaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupCriteriaResponse").msgclass - MutateAdGroupCriterionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupCriterionResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_criterion_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_criterion_service_services_pb.rb deleted file mode 100644 index d18aac911..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_criterion_service_services_pb.rb +++ /dev/null @@ -1,84 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/ad_group_criterion_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/ad_group_criterion_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupCriterionService - # Proto file describing the Ad Group Criterion service. - # - # Service to manage ad group criteria. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AdGroupCriterionService' - - # Creates, updates, or removes criteria. Operation statuses are returned. - # - # List of thrown errors: - # [AdGroupCriterionError]() - # [AdxError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [BiddingError]() - # [BiddingStrategyError]() - # [CollectionSizeError]() - # [ContextError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MultiplierError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - rpc :MutateAdGroupCriteria, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriteriaRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCriteriaResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_customizer_service.rb b/lib/google/ads/google_ads/v12/services/ad_group_customizer_service.rb deleted file mode 100644 index 886d32396..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_customizer_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/ad_group_customizer_service/credentials" -require "google/ads/google_ads/v12/services/ad_group_customizer_service/paths" -require "google/ads/google_ads/v12/services/ad_group_customizer_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage ad group customizer - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/ad_group_customizer_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupCustomizerService::Client.new - # - module AdGroupCustomizerService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_group_customizer_service", "helpers.rb" -require "google/ads/google_ads/v12/services/ad_group_customizer_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/ad_group_customizer_service/client.rb b/lib/google/ads/google_ads/v12/services/ad_group_customizer_service/client.rb deleted file mode 100644 index f20168742..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_customizer_service/client.rb +++ /dev/null @@ -1,404 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/ad_group_customizer_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupCustomizerService - ## - # Client for the AdGroupCustomizerService service. - # - # Service to manage ad group customizer - # - class Client - include Paths - - # @private - attr_reader :ad_group_customizer_service_stub - - ## - # Configure the AdGroupCustomizerService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupCustomizerService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupCustomizerService clients - # ::Google::Ads::GoogleAds::V12::Services::AdGroupCustomizerService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupCustomizerService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupCustomizerService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupCustomizerService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupCustomizerService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupCustomizerService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupCustomizerService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/ad_group_customizer_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_customizer_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AdGroupCustomizerService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes ad group customizers. Operation statuses are - # returned. - # - # @overload mutate_ad_group_customizers(request, options = nil) - # Pass arguments to `mutate_ad_group_customizers` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCustomizersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCustomizersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_customizers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_group_customizers` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ad group customizers are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AdGroupCustomizerOperation, ::Hash>] - # Required. The list of operations to perform on individual ad group customizers. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCustomizersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCustomizersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AdGroupCustomizerService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAdGroupCustomizersRequest.new - # - # # Call the mutate_ad_group_customizers method. - # result = client.mutate_ad_group_customizers request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAdGroupCustomizersResponse. - # p result - # - def mutate_ad_group_customizers request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCustomizersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_customizers.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_customizers.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_customizers.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_customizer_service_stub.call_rpc :mutate_ad_group_customizers, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupCustomizerService API. - # - # This class represents the configuration for AdGroupCustomizerService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AdGroupCustomizerService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_customizers to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AdGroupCustomizerService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_customizers.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupCustomizerService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_customizers.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AdGroupCustomizerService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_customizers` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_customizers - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_customizers_config = parent_rpcs.mutate_ad_group_customizers if parent_rpcs.respond_to? :mutate_ad_group_customizers - @mutate_ad_group_customizers = ::Gapic::Config::Method.new mutate_ad_group_customizers_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_customizer_service/credentials.rb b/lib/google/ads/google_ads/v12/services/ad_group_customizer_service/credentials.rb deleted file mode 100644 index a71cc806f..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_customizer_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupCustomizerService - # Credentials for the AdGroupCustomizerService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_customizer_service/paths.rb b/lib/google/ads/google_ads/v12/services/ad_group_customizer_service/paths.rb deleted file mode 100644 index 05ac7dbb5..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_customizer_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupCustomizerService - # Path helper methods for the AdGroupCustomizerService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def ad_group_customizer_path customer_id:, ad_group_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCustomizers/#{ad_group_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified CustomizerAttribute resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customizer_attribute_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_customizer_service_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_customizer_service_pb.rb deleted file mode 100644 index da9f4f321..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_customizer_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/ad_group_customizer_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/ad_group_customizer_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/ad_group_customizer_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAdGroupCustomizersRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AdGroupCustomizerOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.AdGroupCustomizerOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AdGroupCustomizer" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateAdGroupCustomizersResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateAdGroupCustomizerResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateAdGroupCustomizerResult" do - optional :resource_name, :string, 1 - optional :ad_group_customizer, :message, 2, "google.ads.googleads.v12.resources.AdGroupCustomizer" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAdGroupCustomizersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupCustomizersRequest").msgclass - AdGroupCustomizerOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdGroupCustomizerOperation").msgclass - MutateAdGroupCustomizersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupCustomizersResponse").msgclass - MutateAdGroupCustomizerResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupCustomizerResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_customizer_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_customizer_service_services_pb.rb deleted file mode 100644 index 77592a314..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_customizer_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/ad_group_customizer_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/ad_group_customizer_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupCustomizerService - # Proto file describing the AdGroupCustomizer service. - # - # Service to manage ad group customizer - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AdGroupCustomizerService' - - # Creates, updates or removes ad group customizers. Operation statuses are - # returned. - rpc :MutateAdGroupCustomizers, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCustomizersRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupCustomizersResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service.rb b/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service.rb deleted file mode 100644 index 2bfd9fb12..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/ad_group_extension_setting_service/credentials" -require "google/ads/google_ads/v12/services/ad_group_extension_setting_service/paths" -require "google/ads/google_ads/v12/services/ad_group_extension_setting_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage ad group extension settings. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/ad_group_extension_setting_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupExtensionSettingService::Client.new - # - module AdGroupExtensionSettingService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_group_extension_setting_service", "helpers.rb" -require "google/ads/google_ads/v12/services/ad_group_extension_setting_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service/client.rb b/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service/client.rb deleted file mode 100644 index a5eb27b2e..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service/client.rb +++ /dev/null @@ -1,433 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/ad_group_extension_setting_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupExtensionSettingService - ## - # Client for the AdGroupExtensionSettingService service. - # - # Service to manage ad group extension settings. - # - class Client - include Paths - - # @private - attr_reader :ad_group_extension_setting_service_stub - - ## - # Configure the AdGroupExtensionSettingService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupExtensionSettingService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupExtensionSettingService clients - # ::Google::Ads::GoogleAds::V12::Services::AdGroupExtensionSettingService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupExtensionSettingService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupExtensionSettingService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupExtensionSettingService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupExtensionSettingService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupExtensionSettingService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupExtensionSettingService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/ad_group_extension_setting_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_extension_setting_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AdGroupExtensionSettingService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes ad group extension settings. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [ExtensionSettingError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_ad_group_extension_settings(request, options = nil) - # Pass arguments to `mutate_ad_group_extension_settings` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAdGroupExtensionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupExtensionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_extension_settings(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_ad_group_extension_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ad group extension settings are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AdGroupExtensionSettingOperation, ::Hash>] - # Required. The list of operations to perform on individual ad group extension - # settings. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupExtensionSettingsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupExtensionSettingsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AdGroupExtensionSettingService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAdGroupExtensionSettingsRequest.new - # - # # Call the mutate_ad_group_extension_settings method. - # result = client.mutate_ad_group_extension_settings request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAdGroupExtensionSettingsResponse. - # p result - # - def mutate_ad_group_extension_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupExtensionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_extension_settings.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_extension_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_extension_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_extension_setting_service_stub.call_rpc :mutate_ad_group_extension_settings, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupExtensionSettingService API. - # - # This class represents the configuration for AdGroupExtensionSettingService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AdGroupExtensionSettingService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_extension_settings to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AdGroupExtensionSettingService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_extension_settings.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupExtensionSettingService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_extension_settings.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AdGroupExtensionSettingService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_extension_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_extension_settings - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_extension_settings_config = parent_rpcs.mutate_ad_group_extension_settings if parent_rpcs.respond_to? :mutate_ad_group_extension_settings - @mutate_ad_group_extension_settings = ::Gapic::Config::Method.new mutate_ad_group_extension_settings_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service/credentials.rb b/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service/credentials.rb deleted file mode 100644 index e29396d96..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupExtensionSettingService - # Credentials for the AdGroupExtensionSettingService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service/paths.rb b/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service/paths.rb deleted file mode 100644 index 62c59ae66..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupExtensionSettingService - # Path helper methods for the AdGroupExtensionSettingService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param extension_type [String] - # - # @return [::String] - def ad_group_extension_setting_path customer_id:, ad_group_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupExtensionSettings/#{ad_group_id}~#{extension_type}" - end - - ## - # Create a fully-qualified ExtensionFeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - # - # @param customer_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def extension_feed_item_path customer_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service_pb.rb deleted file mode 100644 index 742c18313..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/ad_group_extension_setting_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/ad_group_extension_setting_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/ad_group_extension_setting_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAdGroupExtensionSettingsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AdGroupExtensionSettingOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.AdGroupExtensionSettingOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AdGroupExtensionSetting" - optional :update, :message, 2, "google.ads.googleads.v12.resources.AdGroupExtensionSetting" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateAdGroupExtensionSettingsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateAdGroupExtensionSettingResult" - end - add_message "google.ads.googleads.v12.services.MutateAdGroupExtensionSettingResult" do - optional :resource_name, :string, 1 - optional :ad_group_extension_setting, :message, 2, "google.ads.googleads.v12.resources.AdGroupExtensionSetting" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAdGroupExtensionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupExtensionSettingsRequest").msgclass - AdGroupExtensionSettingOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdGroupExtensionSettingOperation").msgclass - MutateAdGroupExtensionSettingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupExtensionSettingsResponse").msgclass - MutateAdGroupExtensionSettingResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupExtensionSettingResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service_services_pb.rb deleted file mode 100644 index d5667a952..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_extension_setting_service_services_pb.rb +++ /dev/null @@ -1,80 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/ad_group_extension_setting_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/ad_group_extension_setting_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupExtensionSettingService - # Proto file describing the AdGroupExtensionSetting service. - # - # Service to manage ad group extension settings. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AdGroupExtensionSettingService' - - # Creates, updates, or removes ad group extension settings. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [ExtensionSettingError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - rpc :MutateAdGroupExtensionSettings, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupExtensionSettingsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupExtensionSettingsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_feed_service.rb b/lib/google/ads/google_ads/v12/services/ad_group_feed_service.rb deleted file mode 100644 index 965b7d092..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_feed_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/ad_group_feed_service/credentials" -require "google/ads/google_ads/v12/services/ad_group_feed_service/paths" -require "google/ads/google_ads/v12/services/ad_group_feed_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage ad group feeds. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/ad_group_feed_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupFeedService::Client.new - # - module AdGroupFeedService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_group_feed_service", "helpers.rb" -require "google/ads/google_ads/v12/services/ad_group_feed_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/ad_group_feed_service/client.rb b/lib/google/ads/google_ads/v12/services/ad_group_feed_service/client.rb deleted file mode 100644 index 3b8ba1693..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_feed_service/client.rb +++ /dev/null @@ -1,428 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/ad_group_feed_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupFeedService - ## - # Client for the AdGroupFeedService service. - # - # Service to manage ad group feeds. - # - class Client - include Paths - - # @private - attr_reader :ad_group_feed_service_stub - - ## - # Configure the AdGroupFeedService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupFeedService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupFeedService clients - # ::Google::Ads::GoogleAds::V12::Services::AdGroupFeedService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupFeedService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupFeedService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupFeedService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupFeedService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupFeedService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupFeedService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/ad_group_feed_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_feed_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AdGroupFeedService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes ad group feeds. Operation statuses are - # returned. - # - # List of thrown errors: - # [AdGroupFeedError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FunctionError]() - # [FunctionParsingError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_ad_group_feeds(request, options = nil) - # Pass arguments to `mutate_ad_group_feeds` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAdGroupFeedsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupFeedsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_feeds(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_group_feeds` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ad group feeds are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AdGroupFeedOperation, ::Hash>] - # Required. The list of operations to perform on individual ad group feeds. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupFeedsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupFeedsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AdGroupFeedService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAdGroupFeedsRequest.new - # - # # Call the mutate_ad_group_feeds method. - # result = client.mutate_ad_group_feeds request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAdGroupFeedsResponse. - # p result - # - def mutate_ad_group_feeds request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupFeedsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_feeds.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_feeds.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_feeds.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_feed_service_stub.call_rpc :mutate_ad_group_feeds, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupFeedService API. - # - # This class represents the configuration for AdGroupFeedService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AdGroupFeedService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_feeds to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AdGroupFeedService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_feeds.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupFeedService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_feeds.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AdGroupFeedService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_feeds` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_feeds - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_feeds_config = parent_rpcs.mutate_ad_group_feeds if parent_rpcs.respond_to? :mutate_ad_group_feeds - @mutate_ad_group_feeds = ::Gapic::Config::Method.new mutate_ad_group_feeds_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_feed_service/credentials.rb b/lib/google/ads/google_ads/v12/services/ad_group_feed_service/credentials.rb deleted file mode 100644 index 39a44b95d..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_feed_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupFeedService - # Credentials for the AdGroupFeedService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_feed_service/paths.rb b/lib/google/ads/google_ads/v12/services/ad_group_feed_service/paths.rb deleted file mode 100644 index 55a5ad93b..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_feed_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupFeedService - # Path helper methods for the AdGroupFeedService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param feed_id [String] - # - # @return [::String] - def ad_group_feed_path customer_id:, ad_group_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupFeeds/#{ad_group_id}~#{feed_id}" - end - - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_feed_service_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_feed_service_pb.rb deleted file mode 100644 index 5a06ca30c..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_feed_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/ad_group_feed_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/ad_group_feed_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/ad_group_feed_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAdGroupFeedsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AdGroupFeedOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.AdGroupFeedOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AdGroupFeed" - optional :update, :message, 2, "google.ads.googleads.v12.resources.AdGroupFeed" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateAdGroupFeedsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateAdGroupFeedResult" - end - add_message "google.ads.googleads.v12.services.MutateAdGroupFeedResult" do - optional :resource_name, :string, 1 - optional :ad_group_feed, :message, 2, "google.ads.googleads.v12.resources.AdGroupFeed" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAdGroupFeedsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupFeedsRequest").msgclass - AdGroupFeedOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdGroupFeedOperation").msgclass - MutateAdGroupFeedsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupFeedsResponse").msgclass - MutateAdGroupFeedResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupFeedResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_feed_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_feed_service_services_pb.rb deleted file mode 100644 index 86cc69237..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_feed_service_services_pb.rb +++ /dev/null @@ -1,74 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/ad_group_feed_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/ad_group_feed_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupFeedService - # Proto file describing the AdGroupFeed service. - # - # Service to manage ad group feeds. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AdGroupFeedService' - - # Creates, updates, or removes ad group feeds. Operation statuses are - # returned. - # - # List of thrown errors: - # [AdGroupFeedError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FunctionError]() - # [FunctionParsingError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - rpc :MutateAdGroupFeeds, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupFeedsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupFeedsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_label_service.rb b/lib/google/ads/google_ads/v12/services/ad_group_label_service.rb deleted file mode 100644 index e267c91fd..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_label_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/ad_group_label_service/credentials" -require "google/ads/google_ads/v12/services/ad_group_label_service/paths" -require "google/ads/google_ads/v12/services/ad_group_label_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage labels on ad groups. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/ad_group_label_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupLabelService::Client.new - # - module AdGroupLabelService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_group_label_service", "helpers.rb" -require "google/ads/google_ads/v12/services/ad_group_label_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/ad_group_label_service/client.rb b/lib/google/ads/google_ads/v12/services/ad_group_label_service/client.rb deleted file mode 100644 index 7dd17bf92..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_label_service/client.rb +++ /dev/null @@ -1,414 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/ad_group_label_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupLabelService - ## - # Client for the AdGroupLabelService service. - # - # Service to manage labels on ad groups. - # - class Client - include Paths - - # @private - attr_reader :ad_group_label_service_stub - - ## - # Configure the AdGroupLabelService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupLabelService clients - # ::Google::Ads::GoogleAds::V12::Services::AdGroupLabelService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupLabelService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupLabelService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupLabelService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupLabelService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupLabelService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/ad_group_label_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_label_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AdGroupLabelService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates and removes ad group labels. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [LabelError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_ad_group_labels(request, options = nil) - # Pass arguments to `mutate_ad_group_labels` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAdGroupLabelsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupLabelsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_ad_group_labels` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose ad group labels are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AdGroupLabelOperation, ::Hash>] - # Required. The list of operations to perform on ad group labels. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupLabelsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupLabelsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AdGroupLabelService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAdGroupLabelsRequest.new - # - # # Call the mutate_ad_group_labels method. - # result = client.mutate_ad_group_labels request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAdGroupLabelsResponse. - # p result - # - def mutate_ad_group_labels request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupLabelsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_labels.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_labels.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_labels.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_label_service_stub.call_rpc :mutate_ad_group_labels, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupLabelService API. - # - # This class represents the configuration for AdGroupLabelService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AdGroupLabelService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_labels to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AdGroupLabelService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_labels.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupLabelService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_labels.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AdGroupLabelService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_labels` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_labels - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_labels_config = parent_rpcs.mutate_ad_group_labels if parent_rpcs.respond_to? :mutate_ad_group_labels - @mutate_ad_group_labels = ::Gapic::Config::Method.new mutate_ad_group_labels_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_label_service/credentials.rb b/lib/google/ads/google_ads/v12/services/ad_group_label_service/credentials.rb deleted file mode 100644 index 9897e56f1..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_label_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupLabelService - # Credentials for the AdGroupLabelService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_label_service/paths.rb b/lib/google/ads/google_ads/v12/services/ad_group_label_service/paths.rb deleted file mode 100644 index 631663b13..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_label_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupLabelService - # Path helper methods for the AdGroupLabelService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_label_path customer_id:, ad_group_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupLabels/#{ad_group_id}~#{label_id}" - end - - ## - # Create a fully-qualified Label resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/labels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/labels/#{label_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_label_service_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_label_service_pb.rb deleted file mode 100644 index 750e236bc..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_label_service_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/ad_group_label_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/ad_group_label_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/ad_group_label_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAdGroupLabelsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AdGroupLabelOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.AdGroupLabelOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AdGroupLabel" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateAdGroupLabelsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateAdGroupLabelResult" - end - add_message "google.ads.googleads.v12.services.MutateAdGroupLabelResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAdGroupLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupLabelsRequest").msgclass - AdGroupLabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdGroupLabelOperation").msgclass - MutateAdGroupLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupLabelsResponse").msgclass - MutateAdGroupLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupLabelResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_label_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_label_service_services_pb.rb deleted file mode 100644 index 118eae662..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_label_service_services_pb.rb +++ /dev/null @@ -1,63 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/ad_group_label_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/ad_group_label_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupLabelService - # Proto file describing the Ad Group Label service. - # - # Service to manage labels on ad groups. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AdGroupLabelService' - - # Creates and removes ad group labels. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [LabelError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateAdGroupLabels, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupLabelsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupLabelsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_service.rb b/lib/google/ads/google_ads/v12/services/ad_group_service.rb deleted file mode 100644 index 5e3f1b7f9..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/ad_group_service/credentials" -require "google/ads/google_ads/v12/services/ad_group_service/paths" -require "google/ads/google_ads/v12/services/ad_group_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage ad groups. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/ad_group_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupService::Client.new - # - module AdGroupService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_group_service", "helpers.rb" -require "google/ads/google_ads/v12/services/ad_group_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/ad_group_service/client.rb b/lib/google/ads/google_ads/v12/services/ad_group_service/client.rb deleted file mode 100644 index 15d87e630..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_service/client.rb +++ /dev/null @@ -1,435 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/ad_group_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupService - ## - # Client for the AdGroupService service. - # - # Service to manage ad groups. - # - class Client - include Paths - - # @private - attr_reader :ad_group_service_stub - - ## - # Configure the AdGroupService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupService clients - # ::Google::Ads::GoogleAds::V12::Services::AdGroupService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdGroupService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/ad_group_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AdGroupService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes ad groups. Operation statuses are returned. - # - # List of thrown errors: - # [AdGroupError]() - # [AdxError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [BiddingError]() - # [BiddingStrategyError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MultiplierError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SettingError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_ad_groups(request, options = nil) - # Pass arguments to `mutate_ad_groups` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAdGroupsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_groups(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_groups` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ad groups are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AdGroupOperation, ::Hash>] - # Required. The list of operations to perform on individual ad groups. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAdGroupsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AdGroupService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAdGroupsRequest.new - # - # # Call the mutate_ad_groups method. - # result = client.mutate_ad_groups request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAdGroupsResponse. - # p result - # - def mutate_ad_groups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_groups.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_groups.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_groups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_service_stub.call_rpc :mutate_ad_groups, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupService API. - # - # This class represents the configuration for AdGroupService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AdGroupService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_groups to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AdGroupService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_groups.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AdGroupService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_groups.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AdGroupService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_groups` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_groups - - # @private - def initialize parent_rpcs = nil - mutate_ad_groups_config = parent_rpcs.mutate_ad_groups if parent_rpcs.respond_to? :mutate_ad_groups - @mutate_ad_groups = ::Gapic::Config::Method.new mutate_ad_groups_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_service/credentials.rb b/lib/google/ads/google_ads/v12/services/ad_group_service/credentials.rb deleted file mode 100644 index 09ccb345d..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupService - # Credentials for the AdGroupService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_service/paths.rb b/lib/google/ads/google_ads/v12/services/ad_group_service/paths.rb deleted file mode 100644 index 34d2afb04..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupService - # Path helper methods for the AdGroupService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_label_path customer_id:, ad_group_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupLabels/#{ad_group_id}~#{label_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_service_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_service_pb.rb deleted file mode 100644 index d579d414c..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/ad_group_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/ad_group_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/ad_group_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAdGroupsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AdGroupOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.AdGroupOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AdGroup" - optional :update, :message, 2, "google.ads.googleads.v12.resources.AdGroup" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateAdGroupsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateAdGroupResult" - end - add_message "google.ads.googleads.v12.services.MutateAdGroupResult" do - optional :resource_name, :string, 1 - optional :ad_group, :message, 2, "google.ads.googleads.v12.resources.AdGroup" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAdGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupsRequest").msgclass - AdGroupOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdGroupOperation").msgclass - MutateAdGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupsResponse").msgclass - MutateAdGroupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdGroupResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_group_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/ad_group_service_services_pb.rb deleted file mode 100644 index 565da9b18..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_group_service_services_pb.rb +++ /dev/null @@ -1,82 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/ad_group_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/ad_group_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdGroupService - # Proto file describing the Ad Group service. - # - # Service to manage ad groups. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AdGroupService' - - # Creates, updates, or removes ad groups. Operation statuses are returned. - # - # List of thrown errors: - # [AdGroupError]() - # [AdxError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [BiddingError]() - # [BiddingStrategyError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MultiplierError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SettingError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - rpc :MutateAdGroups, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAdGroupsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_parameter_service.rb b/lib/google/ads/google_ads/v12/services/ad_parameter_service.rb deleted file mode 100644 index 424c9fb04..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_parameter_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/ad_parameter_service/credentials" -require "google/ads/google_ads/v12/services/ad_parameter_service/paths" -require "google/ads/google_ads/v12/services/ad_parameter_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage ad parameters. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/ad_parameter_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AdParameterService::Client.new - # - module AdParameterService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_parameter_service", "helpers.rb" -require "google/ads/google_ads/v12/services/ad_parameter_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/ad_parameter_service/client.rb b/lib/google/ads/google_ads/v12/services/ad_parameter_service/client.rb deleted file mode 100644 index 2157fe2c0..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_parameter_service/client.rb +++ /dev/null @@ -1,418 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/ad_parameter_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdParameterService - ## - # Client for the AdParameterService service. - # - # Service to manage ad parameters. - # - class Client - include Paths - - # @private - attr_reader :ad_parameter_service_stub - - ## - # Configure the AdParameterService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdParameterService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdParameterService clients - # ::Google::Ads::GoogleAds::V12::Services::AdParameterService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdParameterService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdParameterService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdParameterService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdParameterService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdParameterService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdParameterService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/ad_parameter_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_parameter_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AdParameterService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes ad parameters. Operation statuses are - # returned. - # - # List of thrown errors: - # [AdParameterError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [ContextError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_ad_parameters(request, options = nil) - # Pass arguments to `mutate_ad_parameters` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAdParametersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAdParametersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_parameters(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_parameters` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ad parameters are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AdParameterOperation, ::Hash>] - # Required. The list of operations to perform on individual ad parameters. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAdParametersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAdParametersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AdParameterService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAdParametersRequest.new - # - # # Call the mutate_ad_parameters method. - # result = client.mutate_ad_parameters request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAdParametersResponse. - # p result - # - def mutate_ad_parameters request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAdParametersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_parameters.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_parameters.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_parameters.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_parameter_service_stub.call_rpc :mutate_ad_parameters, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdParameterService API. - # - # This class represents the configuration for AdParameterService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AdParameterService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_parameters to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AdParameterService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_parameters.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AdParameterService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_parameters.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AdParameterService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_parameters` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_parameters - - # @private - def initialize parent_rpcs = nil - mutate_ad_parameters_config = parent_rpcs.mutate_ad_parameters if parent_rpcs.respond_to? :mutate_ad_parameters - @mutate_ad_parameters = ::Gapic::Config::Method.new mutate_ad_parameters_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_parameter_service/credentials.rb b/lib/google/ads/google_ads/v12/services/ad_parameter_service/credentials.rb deleted file mode 100644 index 9bda151b3..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_parameter_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdParameterService - # Credentials for the AdParameterService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_parameter_service/paths.rb b/lib/google/ads/google_ads/v12/services/ad_parameter_service/paths.rb deleted file mode 100644 index 8602eac31..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_parameter_service/paths.rb +++ /dev/null @@ -1,75 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdParameterService - # Path helper methods for the AdParameterService API. - module Paths - ## - # Create a fully-qualified AdGroupCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdParameter resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param parameter_index [String] - # - # @return [::String] - def ad_parameter_path customer_id:, ad_group_id:, criterion_id:, parameter_index: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adParameters/#{ad_group_id}~#{criterion_id}~#{parameter_index}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_parameter_service_pb.rb b/lib/google/ads/google_ads/v12/services/ad_parameter_service_pb.rb deleted file mode 100644 index 229fd233c..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_parameter_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/ad_parameter_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/ad_parameter_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/ad_parameter_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAdParametersRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AdParameterOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.AdParameterOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AdParameter" - optional :update, :message, 2, "google.ads.googleads.v12.resources.AdParameter" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateAdParametersResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateAdParameterResult" - end - add_message "google.ads.googleads.v12.services.MutateAdParameterResult" do - optional :resource_name, :string, 1 - optional :ad_parameter, :message, 2, "google.ads.googleads.v12.resources.AdParameter" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAdParametersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdParametersRequest").msgclass - AdParameterOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdParameterOperation").msgclass - MutateAdParametersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdParametersResponse").msgclass - MutateAdParameterResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdParameterResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_parameter_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/ad_parameter_service_services_pb.rb deleted file mode 100644 index 62bccbd38..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_parameter_service_services_pb.rb +++ /dev/null @@ -1,64 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/ad_parameter_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/ad_parameter_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdParameterService - # Proto file describing the Ad Parameter service. - # - # Service to manage ad parameters. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AdParameterService' - - # Creates, updates, or removes ad parameters. Operation statuses are - # returned. - # - # List of thrown errors: - # [AdParameterError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [ContextError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateAdParameters, ::Google::Ads::GoogleAds::V12::Services::MutateAdParametersRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAdParametersResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_service.rb b/lib/google/ads/google_ads/v12/services/ad_service.rb deleted file mode 100644 index ed9c74923..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/ad_service/credentials" -require "google/ads/google_ads/v12/services/ad_service/paths" -require "google/ads/google_ads/v12/services/ad_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage ads. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/ad_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AdService::Client.new - # - module AdService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_service", "helpers.rb" -require "google/ads/google_ads/v12/services/ad_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/ad_service/client.rb b/lib/google/ads/google_ads/v12/services/ad_service/client.rb deleted file mode 100644 index 6986d381a..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_service/client.rb +++ /dev/null @@ -1,543 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/ad_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdService - ## - # Client for the AdService service. - # - # Service to manage ads. - # - class Client - include Paths - - # @private - attr_reader :ad_service_stub - - ## - # Configure the AdService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdService clients - # ::Google::Ads::GoogleAds::V12::Services::AdService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AdService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AdService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/ad_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AdService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Returns the requested ad in full detail. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload get_ad(request, options = nil) - # Pass arguments to `get_ad` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::GetAdRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::GetAdRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_ad(resource_name: nil) - # Pass arguments to `get_ad` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the ad to fetch. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Resources::Ad] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Resources::Ad] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AdService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::GetAdRequest.new - # - # # Call the get_ad method. - # result = client.get_ad request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Resources::Ad. - # p result - # - def get_ad request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::GoogleAds::V12::Services::GetAdRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_ad.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_ad.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_ad.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_service_stub.call_rpc :get_ad, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Updates ads. Operation statuses are returned. Updating ads is not supported - # for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - # - # List of thrown errors: - # [AdCustomizerError]() - # [AdError]() - # [AdSharingError]() - # [AdxError]() - # [AssetError]() - # [AssetLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FeedAttributeReferenceError]() - # [FieldError]() - # [FieldMaskError]() - # [FunctionError]() - # [FunctionParsingError]() - # [HeaderError]() - # [IdError]() - # [ImageError]() - # [InternalError]() - # [ListOperationError]() - # [MediaBundleError]() - # [MediaFileError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [PolicyFindingError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_ads(request, options = nil) - # Pass arguments to `mutate_ads` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAdsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAdsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ads(customer_id: nil, operations: nil, partial_failure: nil, response_content_type: nil, validate_only: nil) - # Pass arguments to `mutate_ads` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ads are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AdOperation, ::Hash>] - # Required. The list of operations to perform on individual ads. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAdsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAdsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AdService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAdsRequest.new - # - # # Call the mutate_ads method. - # result = client.mutate_ads request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAdsResponse. - # p result - # - def mutate_ads request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAdsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ads.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ads.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ads.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_service_stub.call_rpc :mutate_ads, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdService API. - # - # This class represents the configuration for AdService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AdService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_ad to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AdService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_ad.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AdService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_ad.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AdService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_ad` - # @return [::Gapic::Config::Method] - # - attr_reader :get_ad - ## - # RPC-specific configuration for `mutate_ads` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ads - - # @private - def initialize parent_rpcs = nil - get_ad_config = parent_rpcs.get_ad if parent_rpcs.respond_to? :get_ad - @get_ad = ::Gapic::Config::Method.new get_ad_config - mutate_ads_config = parent_rpcs.mutate_ads if parent_rpcs.respond_to? :mutate_ads - @mutate_ads = ::Gapic::Config::Method.new mutate_ads_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_service/credentials.rb b/lib/google/ads/google_ads/v12/services/ad_service/credentials.rb deleted file mode 100644 index 91ad4161f..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdService - # Credentials for the AdService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_service/paths.rb b/lib/google/ads/google_ads/v12/services/ad_service/paths.rb deleted file mode 100644 index 8db41322d..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdService - # Path helper methods for the AdService API. - module Paths - ## - # Create a fully-qualified Ad resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/ads/{ad_id}` - # - # @param customer_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_path customer_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/ads/#{ad_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_service_pb.rb b/lib/google/ads/google_ads/v12/services/ad_service_pb.rb deleted file mode 100644 index c1b61ca2b..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_service_pb.rb +++ /dev/null @@ -1,60 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/ad_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/policy_pb' -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/ad_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/ad_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.GetAdRequest" do - optional :resource_name, :string, 1 - end - add_message "google.ads.googleads.v12.services.MutateAdsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AdOperation" - optional :partial_failure, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - optional :validate_only, :bool, 3 - end - add_message "google.ads.googleads.v12.services.AdOperation" do - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - optional :policy_validation_parameter, :message, 3, "google.ads.googleads.v12.common.PolicyValidationParameter" - oneof :operation do - optional :update, :message, 1, "google.ads.googleads.v12.resources.Ad" - end - end - add_message "google.ads.googleads.v12.services.MutateAdsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateAdResult" - end - add_message "google.ads.googleads.v12.services.MutateAdResult" do - optional :resource_name, :string, 1 - optional :ad, :message, 2, "google.ads.googleads.v12.resources.Ad" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - GetAdRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GetAdRequest").msgclass - MutateAdsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdsRequest").msgclass - AdOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdOperation").msgclass - MutateAdsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdsResponse").msgclass - MutateAdResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAdResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/ad_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/ad_service_services_pb.rb deleted file mode 100644 index d39c91cbd..000000000 --- a/lib/google/ads/google_ads/v12/services/ad_service_services_pb.rb +++ /dev/null @@ -1,100 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/ad_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/ad_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AdService - # Proto file describing the Ad service. - # - # Service to manage ads. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AdService' - - # Returns the requested ad in full detail. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :GetAd, ::Google::Ads::GoogleAds::V12::Services::GetAdRequest, ::Google::Ads::GoogleAds::V12::Resources::Ad - # Updates ads. Operation statuses are returned. Updating ads is not supported - # for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - # - # List of thrown errors: - # [AdCustomizerError]() - # [AdError]() - # [AdSharingError]() - # [AdxError]() - # [AssetError]() - # [AssetLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FeedAttributeReferenceError]() - # [FieldError]() - # [FieldMaskError]() - # [FunctionError]() - # [FunctionParsingError]() - # [HeaderError]() - # [IdError]() - # [ImageError]() - # [InternalError]() - # [ListOperationError]() - # [MediaBundleError]() - # [MediaFileError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [PolicyFindingError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - rpc :MutateAds, ::Google::Ads::GoogleAds::V12::Services::MutateAdsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAdsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_asset_service.rb b/lib/google/ads/google_ads/v12/services/asset_group_asset_service.rb deleted file mode 100644 index 454bef69e..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_asset_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/asset_group_asset_service/credentials" -require "google/ads/google_ads/v12/services/asset_group_asset_service/paths" -require "google/ads/google_ads/v12/services/asset_group_asset_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage asset group asset. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/asset_group_asset_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AssetGroupAssetService::Client.new - # - module AssetGroupAssetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "asset_group_asset_service", "helpers.rb" -require "google/ads/google_ads/v12/services/asset_group_asset_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/asset_group_asset_service/client.rb b/lib/google/ads/google_ads/v12/services/asset_group_asset_service/client.rb deleted file mode 100644 index 8601d1bb4..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_asset_service/client.rb +++ /dev/null @@ -1,401 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/asset_group_asset_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetGroupAssetService - ## - # Client for the AssetGroupAssetService service. - # - # Service to manage asset group asset. - # - class Client - include Paths - - # @private - attr_reader :asset_group_asset_service_stub - - ## - # Configure the AssetGroupAssetService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AssetGroupAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AssetGroupAssetService clients - # ::Google::Ads::GoogleAds::V12::Services::AssetGroupAssetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AssetGroupAssetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AssetGroupAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AssetGroupAssetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AssetGroupAssetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AssetGroupAssetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AssetGroupAssetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/asset_group_asset_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @asset_group_asset_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AssetGroupAssetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes asset group assets. Operation statuses are - # returned. - # - # @overload mutate_asset_group_assets(request, options = nil) - # Pass arguments to `mutate_asset_group_assets` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupAssetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupAssetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_asset_group_assets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_asset_group_assets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose asset group assets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AssetGroupAssetOperation, ::Hash>] - # Required. The list of operations to perform on individual asset group assets. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupAssetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupAssetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AssetGroupAssetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAssetGroupAssetsRequest.new - # - # # Call the mutate_asset_group_assets method. - # result = client.mutate_asset_group_assets request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAssetGroupAssetsResponse. - # p result - # - def mutate_asset_group_assets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupAssetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_asset_group_assets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_asset_group_assets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_asset_group_assets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @asset_group_asset_service_stub.call_rpc :mutate_asset_group_assets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AssetGroupAssetService API. - # - # This class represents the configuration for AssetGroupAssetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AssetGroupAssetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_asset_group_assets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AssetGroupAssetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_group_assets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AssetGroupAssetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_group_assets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AssetGroupAssetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_asset_group_assets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_asset_group_assets - - # @private - def initialize parent_rpcs = nil - mutate_asset_group_assets_config = parent_rpcs.mutate_asset_group_assets if parent_rpcs.respond_to? :mutate_asset_group_assets - @mutate_asset_group_assets = ::Gapic::Config::Method.new mutate_asset_group_assets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_asset_service/credentials.rb b/lib/google/ads/google_ads/v12/services/asset_group_asset_service/credentials.rb deleted file mode 100644 index 44b469af1..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_asset_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetGroupAssetService - # Credentials for the AssetGroupAssetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_asset_service/paths.rb b/lib/google/ads/google_ads/v12/services/asset_group_asset_service/paths.rb deleted file mode 100644 index b572bf8fc..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_asset_service/paths.rb +++ /dev/null @@ -1,90 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetGroupAssetService - # Path helper methods for the AssetGroupAssetService API. - module Paths - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified AssetGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroups/{asset_group_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # - # @return [::String] - def asset_group_path customer_id:, asset_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroups/#{asset_group_id}" - end - - ## - # Create a fully-qualified AssetGroupAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def asset_group_asset_path customer_id:, asset_group_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupAssets/#{asset_group_id}~#{asset_id}~#{field_type}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_asset_service_pb.rb b/lib/google/ads/google_ads/v12/services/asset_group_asset_service_pb.rb deleted file mode 100644 index 80c7b00fa..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_asset_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/asset_group_asset_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/asset_group_asset_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/asset_group_asset_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAssetGroupAssetsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AssetGroupAssetOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.AssetGroupAssetOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AssetGroupAsset" - optional :update, :message, 2, "google.ads.googleads.v12.resources.AssetGroupAsset" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateAssetGroupAssetsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateAssetGroupAssetResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateAssetGroupAssetResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAssetGroupAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetGroupAssetsRequest").msgclass - AssetGroupAssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AssetGroupAssetOperation").msgclass - MutateAssetGroupAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetGroupAssetsResponse").msgclass - MutateAssetGroupAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetGroupAssetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_asset_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/asset_group_asset_service_services_pb.rb deleted file mode 100644 index 0c677bdb8..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_asset_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/asset_group_asset_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/asset_group_asset_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetGroupAssetService - # Proto file describing the AssetGroupAsset service. - # - # Service to manage asset group asset. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AssetGroupAssetService' - - # Creates, updates or removes asset group assets. Operation statuses are - # returned. - rpc :MutateAssetGroupAssets, ::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupAssetsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupAssetsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service.rb b/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service.rb deleted file mode 100644 index 3f4902f25..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/asset_group_listing_group_filter_service/credentials" -require "google/ads/google_ads/v12/services/asset_group_listing_group_filter_service/paths" -require "google/ads/google_ads/v12/services/asset_group_listing_group_filter_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage asset group listing group filter. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/asset_group_listing_group_filter_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AssetGroupListingGroupFilterService::Client.new - # - module AssetGroupListingGroupFilterService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "asset_group_listing_group_filter_service", "helpers.rb" -require "google/ads/google_ads/v12/services/asset_group_listing_group_filter_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service/client.rb b/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service/client.rb deleted file mode 100644 index 2c7458d4a..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service/client.rb +++ /dev/null @@ -1,401 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/asset_group_listing_group_filter_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetGroupListingGroupFilterService - ## - # Client for the AssetGroupListingGroupFilterService service. - # - # Service to manage asset group listing group filter. - # - class Client - include Paths - - # @private - attr_reader :asset_group_listing_group_filter_service_stub - - ## - # Configure the AssetGroupListingGroupFilterService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AssetGroupListingGroupFilterService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AssetGroupListingGroupFilterService clients - # ::Google::Ads::GoogleAds::V12::Services::AssetGroupListingGroupFilterService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AssetGroupListingGroupFilterService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AssetGroupListingGroupFilterService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AssetGroupListingGroupFilterService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AssetGroupListingGroupFilterService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AssetGroupListingGroupFilterService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AssetGroupListingGroupFilterService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/asset_group_listing_group_filter_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @asset_group_listing_group_filter_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AssetGroupListingGroupFilterService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes asset group listing group filters. Operation - # statuses are returned. - # - # @overload mutate_asset_group_listing_group_filters(request, options = nil) - # Pass arguments to `mutate_asset_group_listing_group_filters` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupListingGroupFiltersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupListingGroupFiltersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_asset_group_listing_group_filters(customer_id: nil, operations: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_asset_group_listing_group_filters` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose asset group listing group filters are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AssetGroupListingGroupFilterOperation, ::Hash>] - # Required. The list of operations to perform on individual asset group listing group - # filters. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupListingGroupFiltersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupListingGroupFiltersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AssetGroupListingGroupFilterService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAssetGroupListingGroupFiltersRequest.new - # - # # Call the mutate_asset_group_listing_group_filters method. - # result = client.mutate_asset_group_listing_group_filters request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAssetGroupListingGroupFiltersResponse. - # p result - # - def mutate_asset_group_listing_group_filters request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupListingGroupFiltersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_asset_group_listing_group_filters.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_asset_group_listing_group_filters.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_asset_group_listing_group_filters.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @asset_group_listing_group_filter_service_stub.call_rpc :mutate_asset_group_listing_group_filters, - request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AssetGroupListingGroupFilterService API. - # - # This class represents the configuration for AssetGroupListingGroupFilterService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AssetGroupListingGroupFilterService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_asset_group_listing_group_filters to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AssetGroupListingGroupFilterService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_group_listing_group_filters.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AssetGroupListingGroupFilterService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_group_listing_group_filters.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AssetGroupListingGroupFilterService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_asset_group_listing_group_filters` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_asset_group_listing_group_filters - - # @private - def initialize parent_rpcs = nil - mutate_asset_group_listing_group_filters_config = parent_rpcs.mutate_asset_group_listing_group_filters if parent_rpcs.respond_to? :mutate_asset_group_listing_group_filters - @mutate_asset_group_listing_group_filters = ::Gapic::Config::Method.new mutate_asset_group_listing_group_filters_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service/credentials.rb b/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service/credentials.rb deleted file mode 100644 index 0da6f3510..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetGroupListingGroupFilterService - # Credentials for the AssetGroupListingGroupFilterService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service/paths.rb b/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service/paths.rb deleted file mode 100644 index a731983a0..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetGroupListingGroupFilterService - # Path helper methods for the AssetGroupListingGroupFilterService API. - module Paths - ## - # Create a fully-qualified AssetGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroups/{asset_group_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # - # @return [::String] - def asset_group_path customer_id:, asset_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroups/#{asset_group_id}" - end - - ## - # Create a fully-qualified AssetGroupListingGroupFilter resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param listing_group_filter_id [String] - # - # @return [::String] - def asset_group_listing_group_filter_path customer_id:, asset_group_id:, listing_group_filter_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupListingGroupFilters/#{asset_group_id}~#{listing_group_filter_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service_pb.rb b/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service_pb.rb deleted file mode 100644 index 5a9a2e58f..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/asset_group_listing_group_filter_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/asset_group_listing_group_filter_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/asset_group_listing_group_filter_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAssetGroupListingGroupFiltersRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AssetGroupListingGroupFilterOperation" - optional :validate_only, :bool, 3 - optional :response_content_type, :enum, 4, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.AssetGroupListingGroupFilterOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AssetGroupListingGroupFilter" - optional :update, :message, 2, "google.ads.googleads.v12.resources.AssetGroupListingGroupFilter" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateAssetGroupListingGroupFiltersResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateAssetGroupListingGroupFilterResult" - end - add_message "google.ads.googleads.v12.services.MutateAssetGroupListingGroupFilterResult" do - optional :resource_name, :string, 1 - optional :asset_group_listing_group_filter, :message, 2, "google.ads.googleads.v12.resources.AssetGroupListingGroupFilter" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAssetGroupListingGroupFiltersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetGroupListingGroupFiltersRequest").msgclass - AssetGroupListingGroupFilterOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AssetGroupListingGroupFilterOperation").msgclass - MutateAssetGroupListingGroupFiltersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetGroupListingGroupFiltersResponse").msgclass - MutateAssetGroupListingGroupFilterResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetGroupListingGroupFilterResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service_services_pb.rb deleted file mode 100644 index e85c91665..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_listing_group_filter_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/asset_group_listing_group_filter_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/asset_group_listing_group_filter_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetGroupListingGroupFilterService - # Proto file describing the AssetGroupListingGroupFilter service. - # - # Service to manage asset group listing group filter. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AssetGroupListingGroupFilterService' - - # Creates, updates or removes asset group listing group filters. Operation - # statuses are returned. - rpc :MutateAssetGroupListingGroupFilters, ::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupListingGroupFiltersRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupListingGroupFiltersResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_service.rb b/lib/google/ads/google_ads/v12/services/asset_group_service.rb deleted file mode 100644 index bbbe6091d..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/asset_group_service/credentials" -require "google/ads/google_ads/v12/services/asset_group_service/paths" -require "google/ads/google_ads/v12/services/asset_group_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage asset group - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/asset_group_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AssetGroupService::Client.new - # - module AssetGroupService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "asset_group_service", "helpers.rb" -require "google/ads/google_ads/v12/services/asset_group_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/asset_group_service/client.rb b/lib/google/ads/google_ads/v12/services/asset_group_service/client.rb deleted file mode 100644 index d85abdede..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_service/client.rb +++ /dev/null @@ -1,396 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/asset_group_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetGroupService - ## - # Client for the AssetGroupService service. - # - # Service to manage asset group - # - class Client - include Paths - - # @private - attr_reader :asset_group_service_stub - - ## - # Configure the AssetGroupService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AssetGroupService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AssetGroupService clients - # ::Google::Ads::GoogleAds::V12::Services::AssetGroupService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AssetGroupService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AssetGroupService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AssetGroupService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AssetGroupService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AssetGroupService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AssetGroupService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/asset_group_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @asset_group_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AssetGroupService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes asset groups. Operation statuses are - # returned. - # - # @overload mutate_asset_groups(request, options = nil) - # Pass arguments to `mutate_asset_groups` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_asset_groups(customer_id: nil, operations: nil, validate_only: nil) - # Pass arguments to `mutate_asset_groups` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose asset groups are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AssetGroupOperation, ::Hash>] - # Required. The list of operations to perform on individual asset groups. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AssetGroupService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAssetGroupsRequest.new - # - # # Call the mutate_asset_groups method. - # result = client.mutate_asset_groups request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAssetGroupsResponse. - # p result - # - def mutate_asset_groups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_asset_groups.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_asset_groups.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_asset_groups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @asset_group_service_stub.call_rpc :mutate_asset_groups, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AssetGroupService API. - # - # This class represents the configuration for AssetGroupService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AssetGroupService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_asset_groups to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AssetGroupService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_groups.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AssetGroupService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_groups.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AssetGroupService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_asset_groups` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_asset_groups - - # @private - def initialize parent_rpcs = nil - mutate_asset_groups_config = parent_rpcs.mutate_asset_groups if parent_rpcs.respond_to? :mutate_asset_groups - @mutate_asset_groups = ::Gapic::Config::Method.new mutate_asset_groups_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_service/credentials.rb b/lib/google/ads/google_ads/v12/services/asset_group_service/credentials.rb deleted file mode 100644 index 9f19d703c..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetGroupService - # Credentials for the AssetGroupService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_service/paths.rb b/lib/google/ads/google_ads/v12/services/asset_group_service/paths.rb deleted file mode 100644 index 8c925f5db..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetGroupService - # Path helper methods for the AssetGroupService API. - module Paths - ## - # Create a fully-qualified AssetGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroups/{asset_group_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # - # @return [::String] - def asset_group_path customer_id:, asset_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroups/#{asset_group_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_service_pb.rb b/lib/google/ads/google_ads/v12/services/asset_group_service_pb.rb deleted file mode 100644 index 2a31c2120..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_service_pb.rb +++ /dev/null @@ -1,52 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/asset_group_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/asset_group_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/asset_group_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAssetGroupsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AssetGroupOperation" - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.AssetGroupOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AssetGroup" - optional :update, :message, 2, "google.ads.googleads.v12.resources.AssetGroup" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateAssetGroupsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateAssetGroupResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateAssetGroupResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAssetGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetGroupsRequest").msgclass - AssetGroupOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AssetGroupOperation").msgclass - MutateAssetGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetGroupsResponse").msgclass - MutateAssetGroupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetGroupResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/asset_group_service_services_pb.rb deleted file mode 100644 index 3096faa49..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/asset_group_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/asset_group_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetGroupService - # Proto file describing the AssetGroup service. - # - # Service to manage asset group - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AssetGroupService' - - # Creates, updates or removes asset groups. Operation statuses are - # returned. - rpc :MutateAssetGroups, ::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_signal_service.rb b/lib/google/ads/google_ads/v12/services/asset_group_signal_service.rb deleted file mode 100644 index 7ac78945c..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_signal_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/asset_group_signal_service/credentials" -require "google/ads/google_ads/v12/services/asset_group_signal_service/paths" -require "google/ads/google_ads/v12/services/asset_group_signal_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage asset group signal. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/asset_group_signal_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AssetGroupSignalService::Client.new - # - module AssetGroupSignalService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "asset_group_signal_service", "helpers.rb" -require "google/ads/google_ads/v12/services/asset_group_signal_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/asset_group_signal_service/client.rb b/lib/google/ads/google_ads/v12/services/asset_group_signal_service/client.rb deleted file mode 100644 index 149b3929c..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_signal_service/client.rb +++ /dev/null @@ -1,403 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/asset_group_signal_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetGroupSignalService - ## - # Client for the AssetGroupSignalService service. - # - # Service to manage asset group signal. - # - class Client - include Paths - - # @private - attr_reader :asset_group_signal_service_stub - - ## - # Configure the AssetGroupSignalService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AssetGroupSignalService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AssetGroupSignalService clients - # ::Google::Ads::GoogleAds::V12::Services::AssetGroupSignalService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AssetGroupSignalService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AssetGroupSignalService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AssetGroupSignalService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AssetGroupSignalService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AssetGroupSignalService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AssetGroupSignalService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/asset_group_signal_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @asset_group_signal_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AssetGroupSignalService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates or removes asset group signals. Operation statuses are - # returned. - # - # @overload mutate_asset_group_signals(request, options = nil) - # Pass arguments to `mutate_asset_group_signals` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupSignalsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupSignalsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_asset_group_signals(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_asset_group_signals` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose asset group signals are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AssetGroupSignalOperation, ::Hash>] - # Required. The list of operations to perform on individual asset group signals. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid operations - # will return errors. If false, all operations will be carried out in one - # transaction if and only if they are all valid. Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupSignalsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupSignalsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AssetGroupSignalService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAssetGroupSignalsRequest.new - # - # # Call the mutate_asset_group_signals method. - # result = client.mutate_asset_group_signals request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAssetGroupSignalsResponse. - # p result - # - def mutate_asset_group_signals request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupSignalsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_asset_group_signals.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_asset_group_signals.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_asset_group_signals.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @asset_group_signal_service_stub.call_rpc :mutate_asset_group_signals, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AssetGroupSignalService API. - # - # This class represents the configuration for AssetGroupSignalService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AssetGroupSignalService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_asset_group_signals to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AssetGroupSignalService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_group_signals.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AssetGroupSignalService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_group_signals.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AssetGroupSignalService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_asset_group_signals` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_asset_group_signals - - # @private - def initialize parent_rpcs = nil - mutate_asset_group_signals_config = parent_rpcs.mutate_asset_group_signals if parent_rpcs.respond_to? :mutate_asset_group_signals - @mutate_asset_group_signals = ::Gapic::Config::Method.new mutate_asset_group_signals_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_signal_service/credentials.rb b/lib/google/ads/google_ads/v12/services/asset_group_signal_service/credentials.rb deleted file mode 100644 index bbffae046..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_signal_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetGroupSignalService - # Credentials for the AssetGroupSignalService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_signal_service/paths.rb b/lib/google/ads/google_ads/v12/services/asset_group_signal_service/paths.rb deleted file mode 100644 index 7c5504a91..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_signal_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetGroupSignalService - # Path helper methods for the AssetGroupSignalService API. - module Paths - ## - # Create a fully-qualified AssetGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroups/{asset_group_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # - # @return [::String] - def asset_group_path customer_id:, asset_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroups/#{asset_group_id}" - end - - ## - # Create a fully-qualified AssetGroupSignal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def asset_group_signal_path customer_id:, asset_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupSignals/#{asset_group_id}~#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_signal_service_pb.rb b/lib/google/ads/google_ads/v12/services/asset_group_signal_service_pb.rb deleted file mode 100644 index cb70e205d..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_signal_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/asset_group_signal_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/asset_group_signal_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/asset_group_signal_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAssetGroupSignalsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AssetGroupSignalOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.AssetGroupSignalOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AssetGroupSignal" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateAssetGroupSignalsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateAssetGroupSignalResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateAssetGroupSignalResult" do - optional :resource_name, :string, 1 - optional :asset_group_signal, :message, 2, "google.ads.googleads.v12.resources.AssetGroupSignal" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAssetGroupSignalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetGroupSignalsRequest").msgclass - AssetGroupSignalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AssetGroupSignalOperation").msgclass - MutateAssetGroupSignalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetGroupSignalsResponse").msgclass - MutateAssetGroupSignalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetGroupSignalResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_group_signal_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/asset_group_signal_service_services_pb.rb deleted file mode 100644 index c239fbe62..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_group_signal_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/asset_group_signal_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/asset_group_signal_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetGroupSignalService - # Proto file describing the AssetGroupSignal service. - # - # Service to manage asset group signal. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AssetGroupSignalService' - - # Creates or removes asset group signals. Operation statuses are - # returned. - rpc :MutateAssetGroupSignals, ::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupSignalsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAssetGroupSignalsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_service.rb b/lib/google/ads/google_ads/v12/services/asset_service.rb deleted file mode 100644 index fbf0f701f..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_service.rb +++ /dev/null @@ -1,53 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/asset_service/credentials" -require "google/ads/google_ads/v12/services/asset_service/paths" -require "google/ads/google_ads/v12/services/asset_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage assets. Asset types can be created with AssetService are - # YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be - # created with Ad inline. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/asset_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AssetService::Client.new - # - module AssetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "asset_service", "helpers.rb" -require "google/ads/google_ads/v12/services/asset_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/asset_service/client.rb b/lib/google/ads/google_ads/v12/services/asset_service/client.rb deleted file mode 100644 index de36f95de..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_service/client.rb +++ /dev/null @@ -1,433 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/asset_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetService - ## - # Client for the AssetService service. - # - # Service to manage assets. Asset types can be created with AssetService are - # YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be - # created with Ad inline. - # - class Client - include Paths - - # @private - attr_reader :asset_service_stub - - ## - # Configure the AssetService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AssetService clients - # ::Google::Ads::GoogleAds::V12::Services::AssetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AssetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AssetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AssetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AssetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AssetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/asset_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @asset_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AssetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates assets. Operation statuses are returned. - # - # List of thrown errors: - # [AssetError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CurrencyCodeError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MediaUploadError]() - # [MutateError]() - # [NotAllowlistedError]() - # [NotEmptyError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # [YoutubeVideoRegistrationError]() - # - # @overload mutate_assets(request, options = nil) - # Pass arguments to `mutate_assets` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAssetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAssetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_assets(customer_id: nil, operations: nil, partial_failure: nil, response_content_type: nil, validate_only: nil) - # Pass arguments to `mutate_assets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose assets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AssetOperation, ::Hash>] - # Required. The list of operations to perform on individual assets. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAssetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAssetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AssetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAssetsRequest.new - # - # # Call the mutate_assets method. - # result = client.mutate_assets request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAssetsResponse. - # p result - # - def mutate_assets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAssetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_assets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_assets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_assets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @asset_service_stub.call_rpc :mutate_assets, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AssetService API. - # - # This class represents the configuration for AssetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AssetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_assets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AssetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_assets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AssetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_assets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AssetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_assets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_assets - - # @private - def initialize parent_rpcs = nil - mutate_assets_config = parent_rpcs.mutate_assets if parent_rpcs.respond_to? :mutate_assets - @mutate_assets = ::Gapic::Config::Method.new mutate_assets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_service/credentials.rb b/lib/google/ads/google_ads/v12/services/asset_service/credentials.rb deleted file mode 100644 index 438cc9975..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetService - # Credentials for the AssetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_service/paths.rb b/lib/google/ads/google_ads/v12/services/asset_service/paths.rb deleted file mode 100644 index 2721beb34..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetService - # Path helper methods for the AssetService API. - module Paths - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified ConversionAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionActions/{conversion_action_id}` - # - # @param customer_id [String] - # @param conversion_action_id [String] - # - # @return [::String] - def conversion_action_path customer_id:, conversion_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionActions/#{conversion_action_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_service_pb.rb b/lib/google/ads/google_ads/v12/services/asset_service_pb.rb deleted file mode 100644 index 6bb51cde0..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_service_pb.rb +++ /dev/null @@ -1,55 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/asset_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/asset_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/asset_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAssetsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AssetOperation" - optional :partial_failure, :bool, 5 - optional :response_content_type, :enum, 3, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.AssetOperation" do - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.Asset" - optional :update, :message, 2, "google.ads.googleads.v12.resources.Asset" - end - end - add_message "google.ads.googleads.v12.services.MutateAssetsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateAssetResult" - end - add_message "google.ads.googleads.v12.services.MutateAssetResult" do - optional :resource_name, :string, 1 - optional :asset, :message, 2, "google.ads.googleads.v12.resources.Asset" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetsRequest").msgclass - AssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AssetOperation").msgclass - MutateAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetsResponse").msgclass - MutateAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/asset_service_services_pb.rb deleted file mode 100644 index ef45fb995..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_service_services_pb.rb +++ /dev/null @@ -1,80 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/asset_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/asset_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetService - # Proto file describing the Asset service. - # - # Service to manage assets. Asset types can be created with AssetService are - # YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be - # created with Ad inline. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AssetService' - - # Creates assets. Operation statuses are returned. - # - # List of thrown errors: - # [AssetError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CurrencyCodeError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MediaUploadError]() - # [MutateError]() - # [NotAllowlistedError]() - # [NotEmptyError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # [YoutubeVideoRegistrationError]() - rpc :MutateAssets, ::Google::Ads::GoogleAds::V12::Services::MutateAssetsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAssetsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_set_asset_service.rb b/lib/google/ads/google_ads/v12/services/asset_set_asset_service.rb deleted file mode 100644 index d686ec133..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_set_asset_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/asset_set_asset_service/credentials" -require "google/ads/google_ads/v12/services/asset_set_asset_service/paths" -require "google/ads/google_ads/v12/services/asset_set_asset_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage asset set asset. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/asset_set_asset_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AssetSetAssetService::Client.new - # - module AssetSetAssetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "asset_set_asset_service", "helpers.rb" -require "google/ads/google_ads/v12/services/asset_set_asset_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/asset_set_asset_service/client.rb b/lib/google/ads/google_ads/v12/services/asset_set_asset_service/client.rb deleted file mode 100644 index 4865f174e..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_set_asset_service/client.rb +++ /dev/null @@ -1,404 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/asset_set_asset_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetSetAssetService - ## - # Client for the AssetSetAssetService service. - # - # Service to manage asset set asset. - # - class Client - include Paths - - # @private - attr_reader :asset_set_asset_service_stub - - ## - # Configure the AssetSetAssetService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AssetSetAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AssetSetAssetService clients - # ::Google::Ads::GoogleAds::V12::Services::AssetSetAssetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AssetSetAssetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AssetSetAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AssetSetAssetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AssetSetAssetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AssetSetAssetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AssetSetAssetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/asset_set_asset_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @asset_set_asset_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AssetSetAssetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes asset set assets. Operation statuses are - # returned. - # - # @overload mutate_asset_set_assets(request, options = nil) - # Pass arguments to `mutate_asset_set_assets` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAssetSetAssetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAssetSetAssetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_asset_set_assets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_asset_set_assets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose asset set assets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AssetSetAssetOperation, ::Hash>] - # Required. The list of operations to perform on individual asset set assets. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAssetSetAssetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAssetSetAssetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AssetSetAssetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAssetSetAssetsRequest.new - # - # # Call the mutate_asset_set_assets method. - # result = client.mutate_asset_set_assets request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAssetSetAssetsResponse. - # p result - # - def mutate_asset_set_assets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAssetSetAssetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_asset_set_assets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_asset_set_assets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_asset_set_assets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @asset_set_asset_service_stub.call_rpc :mutate_asset_set_assets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AssetSetAssetService API. - # - # This class represents the configuration for AssetSetAssetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AssetSetAssetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_asset_set_assets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AssetSetAssetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_set_assets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AssetSetAssetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_set_assets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AssetSetAssetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_asset_set_assets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_asset_set_assets - - # @private - def initialize parent_rpcs = nil - mutate_asset_set_assets_config = parent_rpcs.mutate_asset_set_assets if parent_rpcs.respond_to? :mutate_asset_set_assets - @mutate_asset_set_assets = ::Gapic::Config::Method.new mutate_asset_set_assets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_set_asset_service/credentials.rb b/lib/google/ads/google_ads/v12/services/asset_set_asset_service/credentials.rb deleted file mode 100644 index 491c3fb26..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_set_asset_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetSetAssetService - # Credentials for the AssetSetAssetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_set_asset_service/paths.rb b/lib/google/ads/google_ads/v12/services/asset_set_asset_service/paths.rb deleted file mode 100644 index fc3f6a319..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_set_asset_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetSetAssetService - # Path helper methods for the AssetSetAssetService API. - module Paths - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified AssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSets/#{asset_set_id}" - end - - ## - # Create a fully-qualified AssetSetAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_set_asset_path customer_id:, asset_set_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_set_id cannot contain /" if asset_set_id.to_s.include? "/" - - "customers/#{customer_id}/assetSetAssets/#{asset_set_id}~#{asset_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_set_asset_service_pb.rb b/lib/google/ads/google_ads/v12/services/asset_set_asset_service_pb.rb deleted file mode 100644 index f447143b1..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_set_asset_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/asset_set_asset_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/asset_set_asset_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/asset_set_asset_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAssetSetAssetsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AssetSetAssetOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.AssetSetAssetOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AssetSetAsset" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateAssetSetAssetsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateAssetSetAssetResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateAssetSetAssetResult" do - optional :resource_name, :string, 1 - optional :asset_set_asset, :message, 2, "google.ads.googleads.v12.resources.AssetSetAsset" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAssetSetAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetSetAssetsRequest").msgclass - AssetSetAssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AssetSetAssetOperation").msgclass - MutateAssetSetAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetSetAssetsResponse").msgclass - MutateAssetSetAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetSetAssetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_set_asset_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/asset_set_asset_service_services_pb.rb deleted file mode 100644 index c5886ca4f..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_set_asset_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/asset_set_asset_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/asset_set_asset_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetSetAssetService - # Proto file describing the AssetSetAsset service. - # - # Service to manage asset set asset. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AssetSetAssetService' - - # Creates, updates or removes asset set assets. Operation statuses are - # returned. - rpc :MutateAssetSetAssets, ::Google::Ads::GoogleAds::V12::Services::MutateAssetSetAssetsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAssetSetAssetsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_set_service.rb b/lib/google/ads/google_ads/v12/services/asset_set_service.rb deleted file mode 100644 index 3c8044bef..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_set_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/asset_set_service/credentials" -require "google/ads/google_ads/v12/services/asset_set_service/paths" -require "google/ads/google_ads/v12/services/asset_set_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage asset set - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/asset_set_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AssetSetService::Client.new - # - module AssetSetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "asset_set_service", "helpers.rb" -require "google/ads/google_ads/v12/services/asset_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/asset_set_service/client.rb b/lib/google/ads/google_ads/v12/services/asset_set_service/client.rb deleted file mode 100644 index ecf5a57a2..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_set_service/client.rb +++ /dev/null @@ -1,403 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/asset_set_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetSetService - ## - # Client for the AssetSetService service. - # - # Service to manage asset set - # - class Client - include Paths - - # @private - attr_reader :asset_set_service_stub - - ## - # Configure the AssetSetService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AssetSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AssetSetService clients - # ::Google::Ads::GoogleAds::V12::Services::AssetSetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AssetSetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AssetSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AssetSetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AssetSetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AssetSetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AssetSetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/asset_set_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @asset_set_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AssetSetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes asset sets. Operation statuses are - # returned. - # - # @overload mutate_asset_sets(request, options = nil) - # Pass arguments to `mutate_asset_sets` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAssetSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAssetSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_asset_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_asset_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose asset sets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AssetSetOperation, ::Hash>] - # Required. The list of operations to perform on individual asset sets. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAssetSetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAssetSetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AssetSetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAssetSetsRequest.new - # - # # Call the mutate_asset_sets method. - # result = client.mutate_asset_sets request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAssetSetsResponse. - # p result - # - def mutate_asset_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAssetSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_asset_sets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_asset_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_asset_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @asset_set_service_stub.call_rpc :mutate_asset_sets, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AssetSetService API. - # - # This class represents the configuration for AssetSetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AssetSetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_asset_sets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AssetSetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_sets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AssetSetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_sets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AssetSetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_asset_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_asset_sets - - # @private - def initialize parent_rpcs = nil - mutate_asset_sets_config = parent_rpcs.mutate_asset_sets if parent_rpcs.respond_to? :mutate_asset_sets - @mutate_asset_sets = ::Gapic::Config::Method.new mutate_asset_sets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_set_service/credentials.rb b/lib/google/ads/google_ads/v12/services/asset_set_service/credentials.rb deleted file mode 100644 index e2a299a85..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_set_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetSetService - # Credentials for the AssetSetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_set_service/paths.rb b/lib/google/ads/google_ads/v12/services/asset_set_service/paths.rb deleted file mode 100644 index 0394f46ff..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_set_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetSetService - # Path helper methods for the AssetSetService API. - module Paths - ## - # Create a fully-qualified AssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSets/#{asset_set_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_set_service_pb.rb b/lib/google/ads/google_ads/v12/services/asset_set_service_pb.rb deleted file mode 100644 index 3d6c70947..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_set_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/asset_set_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/asset_set_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/asset_set_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAssetSetsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AssetSetOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.AssetSetOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.AssetSet" - optional :update, :message, 2, "google.ads.googleads.v12.resources.AssetSet" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateAssetSetsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateAssetSetResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateAssetSetResult" do - optional :resource_name, :string, 1 - optional :asset_set, :message, 2, "google.ads.googleads.v12.resources.AssetSet" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAssetSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetSetsRequest").msgclass - AssetSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AssetSetOperation").msgclass - MutateAssetSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetSetsResponse").msgclass - MutateAssetSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAssetSetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/asset_set_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/asset_set_service_services_pb.rb deleted file mode 100644 index 4abedb73b..000000000 --- a/lib/google/ads/google_ads/v12/services/asset_set_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/asset_set_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/asset_set_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AssetSetService - # Proto file describing the AssetSet service. - # - # Service to manage asset set - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AssetSetService' - - # Creates, updates or removes asset sets. Operation statuses are - # returned. - rpc :MutateAssetSets, ::Google::Ads::GoogleAds::V12::Services::MutateAssetSetsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAssetSetsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/audience_insights_service.rb b/lib/google/ads/google_ads/v12/services/audience_insights_service.rb deleted file mode 100644 index 3af4e3e31..000000000 --- a/lib/google/ads/google_ads/v12/services/audience_insights_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/audience_insights_service/credentials" -require "google/ads/google_ads/v12/services/audience_insights_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Audience Insights Service helps users find information about groups of - # people and how they can be reached with Google Ads. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/audience_insights_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AudienceInsightsService::Client.new - # - module AudienceInsightsService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "audience_insights_service", "helpers.rb" -require "google/ads/google_ads/v12/services/audience_insights_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/audience_insights_service/client.rb b/lib/google/ads/google_ads/v12/services/audience_insights_service/client.rb deleted file mode 100644 index 83354042d..000000000 --- a/lib/google/ads/google_ads/v12/services/audience_insights_service/client.rb +++ /dev/null @@ -1,729 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/audience_insights_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AudienceInsightsService - ## - # Client for the AudienceInsightsService service. - # - # Audience Insights Service helps users find information about groups of - # people and how they can be reached with Google Ads. - # - class Client - # @private - attr_reader :audience_insights_service_stub - - ## - # Configure the AudienceInsightsService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AudienceInsightsService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AudienceInsightsService clients - # ::Google::Ads::GoogleAds::V12::Services::AudienceInsightsService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AudienceInsightsService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AudienceInsightsService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AudienceInsightsService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AudienceInsightsService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AudienceInsightsService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AudienceInsightsService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/audience_insights_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @audience_insights_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AudienceInsightsService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates a saved report that can be viewed in the Insights Finder tool. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # - # @overload generate_insights_finder_report(request, options = nil) - # Pass arguments to `generate_insights_finder_report` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::GenerateInsightsFinderReportRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::GenerateInsightsFinderReportRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_insights_finder_report(customer_id: nil, baseline_audience: nil, specific_audience: nil, customer_insights_group: nil) - # Pass arguments to `generate_insights_finder_report` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param baseline_audience [::Google::Ads::GoogleAds::V12::Services::BasicInsightsAudience, ::Hash] - # Required. A baseline audience for this report, typically all people in a region. - # @param specific_audience [::Google::Ads::GoogleAds::V12::Services::BasicInsightsAudience, ::Hash] - # Required. The specific audience of interest for this report. The insights in the - # report will be based on attributes more prevalent in this audience than - # in the report's baseline audience. - # @param customer_insights_group [::String] - # The name of the customer being planned for. This is a user-defined value. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::GenerateInsightsFinderReportResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::GenerateInsightsFinderReportResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AudienceInsightsService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::GenerateInsightsFinderReportRequest.new - # - # # Call the generate_insights_finder_report method. - # result = client.generate_insights_finder_report request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::GenerateInsightsFinderReportResponse. - # p result - # - def generate_insights_finder_report request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::GenerateInsightsFinderReportRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_insights_finder_report.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_insights_finder_report.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_insights_finder_report.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @audience_insights_service_stub.call_rpc :generate_insights_finder_report, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Searches for audience attributes that can be used to generate insights. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # - # @overload list_audience_insights_attributes(request, options = nil) - # Pass arguments to `list_audience_insights_attributes` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::ListAudienceInsightsAttributesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::ListAudienceInsightsAttributesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_audience_insights_attributes(customer_id: nil, dimensions: nil, query_text: nil, customer_insights_group: nil, location_country_filters: nil) - # Pass arguments to `list_audience_insights_attributes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param dimensions [::Array<::Google::Ads::GoogleAds::V12::Enums::AudienceInsightsDimensionEnum::AudienceInsightsDimension>] - # Required. The types of attributes to be returned. - # @param query_text [::String] - # Required. A free text query. Attributes matching or related to this string will be - # returned. - # @param customer_insights_group [::String] - # The name of the customer being planned for. This is a user-defined value. - # @param location_country_filters [::Array<::Google::Ads::GoogleAds::V12::Common::LocationInfo, ::Hash>] - # If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and - # this field is present, then the SUB_COUNTRY_LOCATION attributes returned - # will be located in these countries. If this field is absent, then location - # attributes are not filtered by country. Setting this field when - # SUB_COUNTRY_LOCATION attributes are not requested will return an error. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::ListAudienceInsightsAttributesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::ListAudienceInsightsAttributesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AudienceInsightsService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::ListAudienceInsightsAttributesRequest.new - # - # # Call the list_audience_insights_attributes method. - # result = client.list_audience_insights_attributes request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::ListAudienceInsightsAttributesResponse. - # p result - # - def list_audience_insights_attributes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::ListAudienceInsightsAttributesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_audience_insights_attributes.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_audience_insights_attributes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_audience_insights_attributes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @audience_insights_service_stub.call_rpc :list_audience_insights_attributes, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Lists date ranges for which audience insights data can be requested. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # - # @overload list_insights_eligible_dates(request, options = nil) - # Pass arguments to `list_insights_eligible_dates` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::ListInsightsEligibleDatesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::ListInsightsEligibleDatesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::ListInsightsEligibleDatesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::ListInsightsEligibleDatesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AudienceInsightsService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::ListInsightsEligibleDatesRequest.new - # - # # Call the list_insights_eligible_dates method. - # result = client.list_insights_eligible_dates request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::ListInsightsEligibleDatesResponse. - # p result - # - def list_insights_eligible_dates request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::ListInsightsEligibleDatesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_insights_eligible_dates.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_insights_eligible_dates.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_insights_eligible_dates.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @audience_insights_service_stub.call_rpc :list_insights_eligible_dates, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns a collection of attributes that are represented in an audience of - # interest, with metrics that compare each attribute's share of the audience - # with its share of a baseline audience. - # - # List of thrown errors: - # [AudienceInsightsError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # - # @overload generate_audience_composition_insights(request, options = nil) - # Pass arguments to `generate_audience_composition_insights` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::GenerateAudienceCompositionInsightsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::GenerateAudienceCompositionInsightsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_audience_composition_insights(customer_id: nil, audience: nil, data_month: nil, dimensions: nil, customer_insights_group: nil) - # Pass arguments to `generate_audience_composition_insights` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param audience [::Google::Ads::GoogleAds::V12::Services::InsightsAudience, ::Hash] - # Required. The audience of interest for which insights are being requested. - # @param data_month [::String] - # The one-month range of historical data to use for insights, in the format - # "yyyy-mm". If unset, insights will be returned for the last thirty days of - # data. - # @param dimensions [::Array<::Google::Ads::GoogleAds::V12::Enums::AudienceInsightsDimensionEnum::AudienceInsightsDimension>] - # Required. The audience dimensions for which composition insights should be returned. - # @param customer_insights_group [::String] - # The name of the customer being planned for. This is a user-defined value. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::GenerateAudienceCompositionInsightsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::GenerateAudienceCompositionInsightsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AudienceInsightsService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::GenerateAudienceCompositionInsightsRequest.new - # - # # Call the generate_audience_composition_insights method. - # result = client.generate_audience_composition_insights request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::GenerateAudienceCompositionInsightsResponse. - # p result - # - def generate_audience_composition_insights request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::GenerateAudienceCompositionInsightsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_audience_composition_insights.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_audience_composition_insights.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_audience_composition_insights.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @audience_insights_service_stub.call_rpc :generate_audience_composition_insights, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AudienceInsightsService API. - # - # This class represents the configuration for AudienceInsightsService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AudienceInsightsService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # generate_insights_finder_report to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AudienceInsightsService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.generate_insights_finder_report.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AudienceInsightsService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.generate_insights_finder_report.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AudienceInsightsService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `generate_insights_finder_report` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_insights_finder_report - ## - # RPC-specific configuration for `list_audience_insights_attributes` - # @return [::Gapic::Config::Method] - # - attr_reader :list_audience_insights_attributes - ## - # RPC-specific configuration for `list_insights_eligible_dates` - # @return [::Gapic::Config::Method] - # - attr_reader :list_insights_eligible_dates - ## - # RPC-specific configuration for `generate_audience_composition_insights` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_audience_composition_insights - - # @private - def initialize parent_rpcs = nil - generate_insights_finder_report_config = parent_rpcs.generate_insights_finder_report if parent_rpcs.respond_to? :generate_insights_finder_report - @generate_insights_finder_report = ::Gapic::Config::Method.new generate_insights_finder_report_config - list_audience_insights_attributes_config = parent_rpcs.list_audience_insights_attributes if parent_rpcs.respond_to? :list_audience_insights_attributes - @list_audience_insights_attributes = ::Gapic::Config::Method.new list_audience_insights_attributes_config - list_insights_eligible_dates_config = parent_rpcs.list_insights_eligible_dates if parent_rpcs.respond_to? :list_insights_eligible_dates - @list_insights_eligible_dates = ::Gapic::Config::Method.new list_insights_eligible_dates_config - generate_audience_composition_insights_config = parent_rpcs.generate_audience_composition_insights if parent_rpcs.respond_to? :generate_audience_composition_insights - @generate_audience_composition_insights = ::Gapic::Config::Method.new generate_audience_composition_insights_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/audience_insights_service/credentials.rb b/lib/google/ads/google_ads/v12/services/audience_insights_service/credentials.rb deleted file mode 100644 index f28789a5e..000000000 --- a/lib/google/ads/google_ads/v12/services/audience_insights_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AudienceInsightsService - # Credentials for the AudienceInsightsService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/audience_insights_service_pb.rb b/lib/google/ads/google_ads/v12/services/audience_insights_service_pb.rb deleted file mode 100644 index 4add4e5ff..000000000 --- a/lib/google/ads/google_ads/v12/services/audience_insights_service_pb.rb +++ /dev/null @@ -1,178 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/audience_insights_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criteria_pb' -require 'google/ads/google_ads/v12/enums/audience_insights_dimension_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/audience_insights_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.GenerateInsightsFinderReportRequest" do - optional :customer_id, :string, 1 - optional :baseline_audience, :message, 2, "google.ads.googleads.v12.services.BasicInsightsAudience" - optional :specific_audience, :message, 3, "google.ads.googleads.v12.services.BasicInsightsAudience" - optional :customer_insights_group, :string, 4 - end - add_message "google.ads.googleads.v12.services.GenerateInsightsFinderReportResponse" do - optional :saved_report_url, :string, 1 - end - add_message "google.ads.googleads.v12.services.GenerateAudienceCompositionInsightsRequest" do - optional :customer_id, :string, 1 - optional :audience, :message, 2, "google.ads.googleads.v12.services.InsightsAudience" - optional :data_month, :string, 3 - repeated :dimensions, :enum, 4, "google.ads.googleads.v12.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension" - optional :customer_insights_group, :string, 5 - end - add_message "google.ads.googleads.v12.services.GenerateAudienceCompositionInsightsResponse" do - repeated :sections, :message, 1, "google.ads.googleads.v12.services.AudienceCompositionSection" - end - add_message "google.ads.googleads.v12.services.ListAudienceInsightsAttributesRequest" do - optional :customer_id, :string, 1 - repeated :dimensions, :enum, 2, "google.ads.googleads.v12.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension" - optional :query_text, :string, 3 - optional :customer_insights_group, :string, 4 - repeated :location_country_filters, :message, 5, "google.ads.googleads.v12.common.LocationInfo" - end - add_message "google.ads.googleads.v12.services.ListAudienceInsightsAttributesResponse" do - repeated :attributes, :message, 1, "google.ads.googleads.v12.services.AudienceInsightsAttributeMetadata" - end - add_message "google.ads.googleads.v12.services.ListInsightsEligibleDatesRequest" do - end - add_message "google.ads.googleads.v12.services.ListInsightsEligibleDatesResponse" do - repeated :data_months, :string, 1 - end - add_message "google.ads.googleads.v12.services.AudienceInsightsAttribute" do - oneof :attribute do - optional :age_range, :message, 1, "google.ads.googleads.v12.common.AgeRangeInfo" - optional :gender, :message, 2, "google.ads.googleads.v12.common.GenderInfo" - optional :location, :message, 3, "google.ads.googleads.v12.common.LocationInfo" - optional :user_interest, :message, 4, "google.ads.googleads.v12.common.UserInterestInfo" - optional :entity, :message, 5, "google.ads.googleads.v12.services.AudienceInsightsEntity" - optional :category, :message, 6, "google.ads.googleads.v12.services.AudienceInsightsCategory" - optional :dynamic_lineup, :message, 7, "google.ads.googleads.v12.services.AudienceInsightsDynamicLineup" - optional :parental_status, :message, 8, "google.ads.googleads.v12.common.ParentalStatusInfo" - optional :income_range, :message, 9, "google.ads.googleads.v12.common.IncomeRangeInfo" - optional :youtube_channel, :message, 10, "google.ads.googleads.v12.common.YouTubeChannelInfo" - end - end - add_message "google.ads.googleads.v12.services.AudienceInsightsTopic" do - oneof :topic do - optional :entity, :message, 1, "google.ads.googleads.v12.services.AudienceInsightsEntity" - optional :category, :message, 2, "google.ads.googleads.v12.services.AudienceInsightsCategory" - end - end - add_message "google.ads.googleads.v12.services.AudienceInsightsEntity" do - optional :knowledge_graph_machine_id, :string, 1 - end - add_message "google.ads.googleads.v12.services.AudienceInsightsCategory" do - optional :category_id, :string, 1 - end - add_message "google.ads.googleads.v12.services.AudienceInsightsDynamicLineup" do - optional :dynamic_lineup_id, :string, 1 - end - add_message "google.ads.googleads.v12.services.BasicInsightsAudience" do - repeated :country_location, :message, 1, "google.ads.googleads.v12.common.LocationInfo" - repeated :sub_country_locations, :message, 2, "google.ads.googleads.v12.common.LocationInfo" - optional :gender, :message, 3, "google.ads.googleads.v12.common.GenderInfo" - repeated :age_ranges, :message, 4, "google.ads.googleads.v12.common.AgeRangeInfo" - repeated :user_interests, :message, 5, "google.ads.googleads.v12.common.UserInterestInfo" - repeated :topics, :message, 6, "google.ads.googleads.v12.services.AudienceInsightsTopic" - end - add_message "google.ads.googleads.v12.services.AudienceInsightsAttributeMetadata" do - optional :dimension, :enum, 1, "google.ads.googleads.v12.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension" - optional :attribute, :message, 2, "google.ads.googleads.v12.services.AudienceInsightsAttribute" - optional :display_name, :string, 3 - optional :score, :double, 4 - optional :display_info, :string, 5 - oneof :dimension_metadata do - optional :youtube_channel_metadata, :message, 6, "google.ads.googleads.v12.services.YouTubeChannelAttributeMetadata" - optional :dynamic_attribute_metadata, :message, 7, "google.ads.googleads.v12.services.DynamicLineupAttributeMetadata" - optional :location_attribute_metadata, :message, 8, "google.ads.googleads.v12.services.LocationAttributeMetadata" - end - end - add_message "google.ads.googleads.v12.services.YouTubeChannelAttributeMetadata" do - optional :subscriber_count, :int64, 1 - end - add_message "google.ads.googleads.v12.services.DynamicLineupAttributeMetadata" do - optional :inventory_country, :message, 1, "google.ads.googleads.v12.common.LocationInfo" - proto3_optional :median_monthly_inventory, :int64, 2 - proto3_optional :channel_count_lower_bound, :int64, 3 - proto3_optional :channel_count_upper_bound, :int64, 4 - end - add_message "google.ads.googleads.v12.services.LocationAttributeMetadata" do - optional :country_location, :message, 1, "google.ads.googleads.v12.common.LocationInfo" - end - add_message "google.ads.googleads.v12.services.InsightsAudience" do - repeated :country_locations, :message, 1, "google.ads.googleads.v12.common.LocationInfo" - repeated :sub_country_locations, :message, 2, "google.ads.googleads.v12.common.LocationInfo" - optional :gender, :message, 3, "google.ads.googleads.v12.common.GenderInfo" - repeated :age_ranges, :message, 4, "google.ads.googleads.v12.common.AgeRangeInfo" - optional :parental_status, :message, 5, "google.ads.googleads.v12.common.ParentalStatusInfo" - repeated :income_ranges, :message, 6, "google.ads.googleads.v12.common.IncomeRangeInfo" - repeated :dynamic_lineups, :message, 7, "google.ads.googleads.v12.services.AudienceInsightsDynamicLineup" - repeated :topic_audience_combinations, :message, 8, "google.ads.googleads.v12.services.InsightsAudienceAttributeGroup" - end - add_message "google.ads.googleads.v12.services.InsightsAudienceAttributeGroup" do - repeated :attributes, :message, 1, "google.ads.googleads.v12.services.AudienceInsightsAttribute" - end - add_message "google.ads.googleads.v12.services.AudienceCompositionSection" do - optional :dimension, :enum, 1, "google.ads.googleads.v12.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension" - repeated :top_attributes, :message, 3, "google.ads.googleads.v12.services.AudienceCompositionAttribute" - repeated :clustered_attributes, :message, 4, "google.ads.googleads.v12.services.AudienceCompositionAttributeCluster" - end - add_message "google.ads.googleads.v12.services.AudienceCompositionAttributeCluster" do - optional :cluster_display_name, :string, 1 - optional :cluster_metrics, :message, 3, "google.ads.googleads.v12.services.AudienceCompositionMetrics" - repeated :attributes, :message, 4, "google.ads.googleads.v12.services.AudienceCompositionAttribute" - end - add_message "google.ads.googleads.v12.services.AudienceCompositionMetrics" do - optional :baseline_audience_share, :double, 1 - optional :audience_share, :double, 2 - optional :index, :double, 3 - optional :score, :double, 4 - end - add_message "google.ads.googleads.v12.services.AudienceCompositionAttribute" do - optional :attribute_metadata, :message, 1, "google.ads.googleads.v12.services.AudienceInsightsAttributeMetadata" - optional :metrics, :message, 2, "google.ads.googleads.v12.services.AudienceCompositionMetrics" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - GenerateInsightsFinderReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateInsightsFinderReportRequest").msgclass - GenerateInsightsFinderReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateInsightsFinderReportResponse").msgclass - GenerateAudienceCompositionInsightsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateAudienceCompositionInsightsRequest").msgclass - GenerateAudienceCompositionInsightsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateAudienceCompositionInsightsResponse").msgclass - ListAudienceInsightsAttributesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListAudienceInsightsAttributesRequest").msgclass - ListAudienceInsightsAttributesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListAudienceInsightsAttributesResponse").msgclass - ListInsightsEligibleDatesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListInsightsEligibleDatesRequest").msgclass - ListInsightsEligibleDatesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListInsightsEligibleDatesResponse").msgclass - AudienceInsightsAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AudienceInsightsAttribute").msgclass - AudienceInsightsTopic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AudienceInsightsTopic").msgclass - AudienceInsightsEntity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AudienceInsightsEntity").msgclass - AudienceInsightsCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AudienceInsightsCategory").msgclass - AudienceInsightsDynamicLineup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AudienceInsightsDynamicLineup").msgclass - BasicInsightsAudience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.BasicInsightsAudience").msgclass - AudienceInsightsAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AudienceInsightsAttributeMetadata").msgclass - YouTubeChannelAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.YouTubeChannelAttributeMetadata").msgclass - DynamicLineupAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.DynamicLineupAttributeMetadata").msgclass - LocationAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.LocationAttributeMetadata").msgclass - InsightsAudience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.InsightsAudience").msgclass - InsightsAudienceAttributeGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.InsightsAudienceAttributeGroup").msgclass - AudienceCompositionSection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AudienceCompositionSection").msgclass - AudienceCompositionAttributeCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AudienceCompositionAttributeCluster").msgclass - AudienceCompositionMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AudienceCompositionMetrics").msgclass - AudienceCompositionAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AudienceCompositionAttribute").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/audience_insights_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/audience_insights_service_services_pb.rb deleted file mode 100644 index cb91813f9..000000000 --- a/lib/google/ads/google_ads/v12/services/audience_insights_service_services_pb.rb +++ /dev/null @@ -1,99 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/audience_insights_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/audience_insights_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AudienceInsightsService - # Proto file describing the audience insights service. - # - # Audience Insights Service helps users find information about groups of - # people and how they can be reached with Google Ads. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AudienceInsightsService' - - # Creates a saved report that can be viewed in the Insights Finder tool. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - rpc :GenerateInsightsFinderReport, ::Google::Ads::GoogleAds::V12::Services::GenerateInsightsFinderReportRequest, ::Google::Ads::GoogleAds::V12::Services::GenerateInsightsFinderReportResponse - # Searches for audience attributes that can be used to generate insights. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - rpc :ListAudienceInsightsAttributes, ::Google::Ads::GoogleAds::V12::Services::ListAudienceInsightsAttributesRequest, ::Google::Ads::GoogleAds::V12::Services::ListAudienceInsightsAttributesResponse - # Lists date ranges for which audience insights data can be requested. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - rpc :ListInsightsEligibleDates, ::Google::Ads::GoogleAds::V12::Services::ListInsightsEligibleDatesRequest, ::Google::Ads::GoogleAds::V12::Services::ListInsightsEligibleDatesResponse - # Returns a collection of attributes that are represented in an audience of - # interest, with metrics that compare each attribute's share of the audience - # with its share of a baseline audience. - # - # List of thrown errors: - # [AudienceInsightsError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - rpc :GenerateAudienceCompositionInsights, ::Google::Ads::GoogleAds::V12::Services::GenerateAudienceCompositionInsightsRequest, ::Google::Ads::GoogleAds::V12::Services::GenerateAudienceCompositionInsightsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/audience_service.rb b/lib/google/ads/google_ads/v12/services/audience_service.rb deleted file mode 100644 index 686b9a9df..000000000 --- a/lib/google/ads/google_ads/v12/services/audience_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/audience_service/credentials" -require "google/ads/google_ads/v12/services/audience_service/paths" -require "google/ads/google_ads/v12/services/audience_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage audiences. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/audience_service" - # client = ::Google::Ads::GoogleAds::V12::Services::AudienceService::Client.new - # - module AudienceService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "audience_service", "helpers.rb" -require "google/ads/google_ads/v12/services/audience_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/audience_service/client.rb b/lib/google/ads/google_ads/v12/services/audience_service/client.rb deleted file mode 100644 index be3dd650c..000000000 --- a/lib/google/ads/google_ads/v12/services/audience_service/client.rb +++ /dev/null @@ -1,404 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/audience_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AudienceService - ## - # Client for the AudienceService service. - # - # Service to manage audiences. - # - class Client - include Paths - - # @private - attr_reader :audience_service_stub - - ## - # Configure the AudienceService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::AudienceService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AudienceService clients - # ::Google::Ads::GoogleAds::V12::Services::AudienceService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AudienceService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::AudienceService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AudienceService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AudienceService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::AudienceService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AudienceService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/audience_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @audience_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::AudienceService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates audiences. Operation statuses are returned. - # - # List of thrown errors: - # [AudienceError]() - # - # @overload mutate_audiences(request, options = nil) - # Pass arguments to `mutate_audiences` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateAudiencesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateAudiencesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_audiences(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_audiences` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose audiences are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::AudienceOperation, ::Hash>] - # Required. The list of operations to perform on individual audiences. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid operations - # will return errors. If false, all operations will be carried out in one - # transaction if and only if they are all valid. Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateAudiencesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateAudiencesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::AudienceService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateAudiencesRequest.new - # - # # Call the mutate_audiences method. - # result = client.mutate_audiences request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateAudiencesResponse. - # p result - # - def mutate_audiences request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateAudiencesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_audiences.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_audiences.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_audiences.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @audience_service_stub.call_rpc :mutate_audiences, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AudienceService API. - # - # This class represents the configuration for AudienceService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::AudienceService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_audiences to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::AudienceService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_audiences.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::AudienceService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_audiences.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AudienceService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_audiences` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_audiences - - # @private - def initialize parent_rpcs = nil - mutate_audiences_config = parent_rpcs.mutate_audiences if parent_rpcs.respond_to? :mutate_audiences - @mutate_audiences = ::Gapic::Config::Method.new mutate_audiences_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/audience_service/credentials.rb b/lib/google/ads/google_ads/v12/services/audience_service/credentials.rb deleted file mode 100644 index 2fee88b94..000000000 --- a/lib/google/ads/google_ads/v12/services/audience_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AudienceService - # Credentials for the AudienceService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/audience_service/paths.rb b/lib/google/ads/google_ads/v12/services/audience_service/paths.rb deleted file mode 100644 index d6dfd813f..000000000 --- a/lib/google/ads/google_ads/v12/services/audience_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AudienceService - # Path helper methods for the AudienceService API. - module Paths - ## - # Create a fully-qualified Audience resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/audiences/{audience_id}` - # - # @param customer_id [String] - # @param audience_id [String] - # - # @return [::String] - def audience_path customer_id:, audience_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/audiences/#{audience_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/audience_service_pb.rb b/lib/google/ads/google_ads/v12/services/audience_service_pb.rb deleted file mode 100644 index 6d10f9a93..000000000 --- a/lib/google/ads/google_ads/v12/services/audience_service_pb.rb +++ /dev/null @@ -1,55 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/audience_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/audience_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/audience_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateAudiencesRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.AudienceOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.MutateAudiencesResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateAudienceResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.AudienceOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.Audience" - optional :update, :message, 2, "google.ads.googleads.v12.resources.Audience" - end - end - add_message "google.ads.googleads.v12.services.MutateAudienceResult" do - optional :resource_name, :string, 1 - optional :audience, :message, 2, "google.ads.googleads.v12.resources.Audience" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateAudiencesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAudiencesRequest").msgclass - MutateAudiencesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAudiencesResponse").msgclass - AudienceOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AudienceOperation").msgclass - MutateAudienceResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateAudienceResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/audience_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/audience_service_services_pb.rb deleted file mode 100644 index 51b8de2c5..000000000 --- a/lib/google/ads/google_ads/v12/services/audience_service_services_pb.rb +++ /dev/null @@ -1,52 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/audience_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/audience_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module AudienceService - # Proto file describing the Audience service. - # - # Service to manage audiences. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.AudienceService' - - # Creates audiences. Operation statuses are returned. - # - # List of thrown errors: - # [AudienceError]() - rpc :MutateAudiences, ::Google::Ads::GoogleAds::V12::Services::MutateAudiencesRequest, ::Google::Ads::GoogleAds::V12::Services::MutateAudiencesResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/batch_job_service.rb b/lib/google/ads/google_ads/v12/services/batch_job_service.rb deleted file mode 100644 index 0dbf5df47..000000000 --- a/lib/google/ads/google_ads/v12/services/batch_job_service.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/batch_job_service/credentials" -require "google/ads/google_ads/v12/services/batch_job_service/paths" -require "google/ads/google_ads/v12/services/batch_job_service/operations" -require "google/ads/google_ads/v12/services/batch_job_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage batch jobs. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/batch_job_service" - # client = ::Google::Ads::GoogleAds::V12::Services::BatchJobService::Client.new - # - module BatchJobService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "batch_job_service", "helpers.rb" -require "google/ads/google_ads/v12/services/batch_job_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/batch_job_service/client.rb b/lib/google/ads/google_ads/v12/services/batch_job_service/client.rb deleted file mode 100644 index f89ff6791..000000000 --- a/lib/google/ads/google_ads/v12/services/batch_job_service/client.rb +++ /dev/null @@ -1,772 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/batch_job_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BatchJobService - ## - # Client for the BatchJobService service. - # - # Service to manage batch jobs. - # - class Client - include Paths - - # @private - attr_reader :batch_job_service_stub - - ## - # Configure the BatchJobService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::BatchJobService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BatchJobService clients - # ::Google::Ads::GoogleAds::V12::Services::BatchJobService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BatchJobService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::BatchJobService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new BatchJobService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::BatchJobService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::BatchJobService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BatchJobService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/batch_job_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - end - - @batch_job_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::BatchJobService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Ads::GoogleAds::V12::Services::BatchJobService::Operations] - # - attr_reader :operations_client - - # Service calls - - ## - # Mutates a batch job. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # - # @overload mutate_batch_job(request, options = nil) - # Pass arguments to `mutate_batch_job` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateBatchJobRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateBatchJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_batch_job(customer_id: nil, operation: nil) - # Pass arguments to `mutate_batch_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer for which to create a batch job. - # @param operation [::Google::Ads::GoogleAds::V12::Services::BatchJobOperation, ::Hash] - # Required. The operation to perform on an individual batch job. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateBatchJobResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateBatchJobResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::BatchJobService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateBatchJobRequest.new - # - # # Call the mutate_batch_job method. - # result = client.mutate_batch_job request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateBatchJobResponse. - # p result - # - def mutate_batch_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateBatchJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_batch_job.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_batch_job.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_batch_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @batch_job_service_stub.call_rpc :mutate_batch_job, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns the results of the batch job. The job must be done. - # Supports standard list paging. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [BatchJobError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_batch_job_results(request, options = nil) - # Pass arguments to `list_batch_job_results` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::ListBatchJobResultsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::ListBatchJobResultsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_batch_job_results(resource_name: nil, page_token: nil, page_size: nil, response_content_type: nil) - # Pass arguments to `list_batch_job_results` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the batch job whose results are being listed. - # @param page_token [::String] - # Token of the page to retrieve. If not specified, the first - # page of results will be returned. Use the value obtained from - # `next_page_token` in the previous response in order to request - # the next page of results. - # @param page_size [::Integer] - # Number of elements to retrieve in a single page. - # When a page request is too large, the server may decide to - # further limit the number of returned resources. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V12::Services::BatchJobResult>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V12::Services::BatchJobResult>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::BatchJobService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::ListBatchJobResultsRequest.new - # - # # Call the list_batch_job_results method. - # result = client.list_batch_job_results request - # - # # The returned object is of type Gapic::PagedEnumerable. You can - # # iterate over all elements by calling #each, and the enumerable - # # will lazily make API calls to fetch subsequent pages. Other - # # methods are also available for managing paging directly. - # result.each do |response| - # # Each element is of type ::Google::Ads::GoogleAds::V12::Services::BatchJobResult. - # p response - # end - # - def list_batch_job_results request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::ListBatchJobResultsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_batch_job_results.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_batch_job_results.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_batch_job_results.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @batch_job_service_stub.call_rpc :list_batch_job_results, request, - options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @batch_job_service_stub, :list_batch_job_results, request, - response, operation, options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Runs the batch job. - # - # The Operation.metadata field type is BatchJobMetadata. When finished, the - # long running operation will not contain errors or a response. Instead, use - # ListBatchJobResults to get the results of the job. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [BatchJobError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload run_batch_job(request, options = nil) - # Pass arguments to `run_batch_job` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::RunBatchJobRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::RunBatchJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload run_batch_job(resource_name: nil) - # Pass arguments to `run_batch_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the BatchJob to run. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::BatchJobService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::RunBatchJobRequest.new - # - # # Call the run_batch_job method. - # result = client.run_batch_job request - # - # # The returned object is of type Gapic::Operation. You can use this - # # object to check the status of an operation, cancel it, or wait - # # for results. Here is how to block until completion: - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "Error!" - # end - # - def run_batch_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::RunBatchJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.run_batch_job.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.run_batch_job.timeout, - metadata: metadata, - retry_policy: @config.rpcs.run_batch_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @batch_job_service_stub.call_rpc :run_batch_job, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Add operations to the batch job. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [BatchJobError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # - # @overload add_batch_job_operations(request, options = nil) - # Pass arguments to `add_batch_job_operations` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::AddBatchJobOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::AddBatchJobOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload add_batch_job_operations(resource_name: nil, sequence_token: nil, mutate_operations: nil) - # Pass arguments to `add_batch_job_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the batch job. - # @param sequence_token [::String] - # A token used to enforce sequencing. - # - # The first AddBatchJobOperations request for a batch job should not set - # sequence_token. Subsequent requests must set sequence_token to the value of - # next_sequence_token received in the previous AddBatchJobOperations - # response. - # @param mutate_operations [::Array<::Google::Ads::GoogleAds::V12::Services::MutateOperation, ::Hash>] - # Required. The list of mutates being added. - # - # Operations can use negative integers as temp ids to signify dependencies - # between entities created in this batch job. For example, a customer with - # id = 1234 can create a campaign and an ad group in that same campaign by - # creating a campaign in the first operation with the resource name - # explicitly set to "customers/1234/campaigns/-1", and creating an ad group - # in the second operation with the campaign field also set to - # "customers/1234/campaigns/-1". - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::AddBatchJobOperationsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::AddBatchJobOperationsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::BatchJobService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::AddBatchJobOperationsRequest.new - # - # # Call the add_batch_job_operations method. - # result = client.add_batch_job_operations request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::AddBatchJobOperationsResponse. - # p result - # - def add_batch_job_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::AddBatchJobOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.add_batch_job_operations.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.add_batch_job_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.add_batch_job_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @batch_job_service_stub.call_rpc :add_batch_job_operations, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the BatchJobService API. - # - # This class represents the configuration for BatchJobService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::BatchJobService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_batch_job to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::BatchJobService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_batch_job.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::BatchJobService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_batch_job.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the BatchJobService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_batch_job` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_batch_job - ## - # RPC-specific configuration for `list_batch_job_results` - # @return [::Gapic::Config::Method] - # - attr_reader :list_batch_job_results - ## - # RPC-specific configuration for `run_batch_job` - # @return [::Gapic::Config::Method] - # - attr_reader :run_batch_job - ## - # RPC-specific configuration for `add_batch_job_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :add_batch_job_operations - - # @private - def initialize parent_rpcs = nil - mutate_batch_job_config = parent_rpcs.mutate_batch_job if parent_rpcs.respond_to? :mutate_batch_job - @mutate_batch_job = ::Gapic::Config::Method.new mutate_batch_job_config - list_batch_job_results_config = parent_rpcs.list_batch_job_results if parent_rpcs.respond_to? :list_batch_job_results - @list_batch_job_results = ::Gapic::Config::Method.new list_batch_job_results_config - run_batch_job_config = parent_rpcs.run_batch_job if parent_rpcs.respond_to? :run_batch_job - @run_batch_job = ::Gapic::Config::Method.new run_batch_job_config - add_batch_job_operations_config = parent_rpcs.add_batch_job_operations if parent_rpcs.respond_to? :add_batch_job_operations - @add_batch_job_operations = ::Gapic::Config::Method.new add_batch_job_operations_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/batch_job_service/credentials.rb b/lib/google/ads/google_ads/v12/services/batch_job_service/credentials.rb deleted file mode 100644 index 34b68cd09..000000000 --- a/lib/google/ads/google_ads/v12/services/batch_job_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BatchJobService - # Credentials for the BatchJobService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/batch_job_service/operations.rb b/lib/google/ads/google_ads/v12/services/batch_job_service/operations.rb deleted file mode 100644 index a93f12a7c..000000000 --- a/lib/google/ads/google_ads/v12/services/batch_job_service/operations.rb +++ /dev/null @@ -1,774 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BatchJobService - # Service that implements Longrunning Operations API. - class Operations - # @private - attr_reader :operations_stub - - ## - # Configuration for the BatchJobService Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the BatchJobService Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/{name=users/*}/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can - # # iterate over all elements by calling #each, and the enumerable - # # will lazily make API calls to fetch subsequent pages. Other - # # methods are also available for managing paging directly. - # result.each do |response| - # # Each element is of type ::Google::Longrunning::Operation. - # p response - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, - operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use this - # # object to check the status of an operation, cancel it, or wait - # # for results. Here is how to block until completion: - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "Error!" - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1, - # corresponding to `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use this - # # object to check the status of an operation, cancel it, or wait - # # for results. Here is how to block until completion: - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "Error!" - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/batch_job_service/paths.rb b/lib/google/ads/google_ads/v12/services/batch_job_service/paths.rb deleted file mode 100644 index ae7669652..000000000 --- a/lib/google/ads/google_ads/v12/services/batch_job_service/paths.rb +++ /dev/null @@ -1,1482 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BatchJobService - # Path helper methods for the BatchJobService API. - module Paths - ## - # Create a fully-qualified AccessibleBiddingStrategy resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}` - # - # @param customer_id [String] - # @param bidding_strategy_id [String] - # - # @return [::String] - def accessible_bidding_strategy_path customer_id:, bidding_strategy_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accessibleBiddingStrategies/#{bidding_strategy_id}" - end - - ## - # Create a fully-qualified Ad resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/ads/{ad_id}` - # - # @param customer_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_path customer_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/ads/#{ad_id}" - end - - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupAd resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_group_ad_path customer_id:, ad_group_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAds/#{ad_group_id}~#{ad_id}" - end - - ## - # Create a fully-qualified AdGroupAdLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_ad_label_path customer_id:, ad_group_id:, ad_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAdLabels/#{ad_group_id}~#{ad_id}~#{label_id}" - end - - ## - # Create a fully-qualified AdGroupAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def ad_group_asset_path customer_id:, ad_group_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAssets/#{ad_group_id}~#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified AdGroupBidModifier resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_bid_modifier_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupBidModifiers/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdGroupCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdGroupCriterionCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def ad_group_criterion_customizer_path customer_id:, ad_group_id:, criterion_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriterionCustomizers/#{ad_group_id}~#{criterion_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified AdGroupCriterionLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_criterion_label_path customer_id:, ad_group_id:, criterion_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriterionLabels/#{ad_group_id}~#{criterion_id}~#{label_id}" - end - - ## - # Create a fully-qualified AdGroupCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def ad_group_customizer_path customer_id:, ad_group_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCustomizers/#{ad_group_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified AdGroupExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param extension_type [String] - # - # @return [::String] - def ad_group_extension_setting_path customer_id:, ad_group_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupExtensionSettings/#{ad_group_id}~#{extension_type}" - end - - ## - # Create a fully-qualified AdGroupFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param feed_id [String] - # - # @return [::String] - def ad_group_feed_path customer_id:, ad_group_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupFeeds/#{ad_group_id}~#{feed_id}" - end - - ## - # Create a fully-qualified AdGroupLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_label_path customer_id:, ad_group_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupLabels/#{ad_group_id}~#{label_id}" - end - - ## - # Create a fully-qualified AdParameter resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param parameter_index [String] - # - # @return [::String] - def ad_parameter_path customer_id:, ad_group_id:, criterion_id:, parameter_index: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adParameters/#{ad_group_id}~#{criterion_id}~#{parameter_index}" - end - - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified AssetGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroups/{asset_group_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # - # @return [::String] - def asset_group_path customer_id:, asset_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroups/#{asset_group_id}" - end - - ## - # Create a fully-qualified AssetGroupAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def asset_group_asset_path customer_id:, asset_group_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupAssets/#{asset_group_id}~#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified AssetGroupListingGroupFilter resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param listing_group_filter_id [String] - # - # @return [::String] - def asset_group_listing_group_filter_path customer_id:, asset_group_id:, listing_group_filter_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupListingGroupFilters/#{asset_group_id}~#{listing_group_filter_id}" - end - - ## - # Create a fully-qualified AssetGroupSignal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def asset_group_signal_path customer_id:, asset_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupSignals/#{asset_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSets/#{asset_set_id}" - end - - ## - # Create a fully-qualified AssetSetAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_set_asset_path customer_id:, asset_set_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_set_id cannot contain /" if asset_set_id.to_s.include? "/" - - "customers/#{customer_id}/assetSetAssets/#{asset_set_id}~#{asset_id}" - end - - ## - # Create a fully-qualified Audience resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/audiences/{audience_id}` - # - # @param customer_id [String] - # @param audience_id [String] - # - # @return [::String] - def audience_path customer_id:, audience_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/audiences/#{audience_id}" - end - - ## - # Create a fully-qualified BatchJob resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/batchJobs/{batch_job_id}` - # - # @param customer_id [String] - # @param batch_job_id [String] - # - # @return [::String] - def batch_job_path customer_id:, batch_job_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/batchJobs/#{batch_job_id}" - end - - ## - # Create a fully-qualified BiddingDataExclusion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}` - # - # @param customer_id [String] - # @param seasonality_event_id [String] - # - # @return [::String] - def bidding_data_exclusion_path customer_id:, seasonality_event_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingDataExclusions/#{seasonality_event_id}" - end - - ## - # Create a fully-qualified BiddingSeasonalityAdjustment resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}` - # - # @param customer_id [String] - # @param seasonality_event_id [String] - # - # @return [::String] - def bidding_seasonality_adjustment_path customer_id:, seasonality_event_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingSeasonalityAdjustments/#{seasonality_event_id}" - end - - ## - # Create a fully-qualified BiddingStrategy resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` - # - # @param customer_id [String] - # @param bidding_strategy_id [String] - # - # @return [::String] - def bidding_strategy_path customer_id:, bidding_strategy_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingStrategies/#{bidding_strategy_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def campaign_asset_path customer_id:, campaign_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/campaignAssets/#{campaign_id}~#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified CampaignAssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def campaign_asset_set_path customer_id:, campaign_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignAssetSets/#{campaign_id}~#{asset_set_id}" - end - - ## - # Create a fully-qualified CampaignBidModifier resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def campaign_bid_modifier_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignBidModifiers/#{campaign_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified CampaignBudget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` - # - # @param customer_id [String] - # @param campaign_budget_id [String] - # - # @return [::String] - def campaign_budget_path customer_id:, campaign_budget_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" - end - - ## - # Create a fully-qualified CampaignConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param category [String] - # @param source [String] - # - # @return [::String] - def campaign_conversion_goal_path customer_id:, campaign_id:, category:, source: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" - - "customers/#{customer_id}/campaignConversionGoals/#{campaign_id}~#{category}~#{source}" - end - - ## - # Create a fully-qualified CampaignCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def campaign_criterion_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignCriteria/#{campaign_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified CampaignCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def campaign_customizer_path customer_id:, campaign_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignCustomizers/#{campaign_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified CampaignDraft resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` - # - # @param customer_id [String] - # @param base_campaign_id [String] - # @param draft_id [String] - # - # @return [::String] - def campaign_draft_path customer_id:, base_campaign_id:, draft_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "base_campaign_id cannot contain /" if base_campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignDrafts/#{base_campaign_id}~#{draft_id}" - end - - ## - # Create a fully-qualified CampaignExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param extension_type [String] - # - # @return [::String] - def campaign_extension_setting_path customer_id:, campaign_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignExtensionSettings/#{campaign_id}~#{extension_type}" - end - - ## - # Create a fully-qualified CampaignFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param feed_id [String] - # - # @return [::String] - def campaign_feed_path customer_id:, campaign_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignFeeds/#{campaign_id}~#{feed_id}" - end - - ## - # Create a fully-qualified CampaignGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignGroups/{campaign_group_id}` - # - # @param customer_id [String] - # @param campaign_group_id [String] - # - # @return [::String] - def campaign_group_path customer_id:, campaign_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignGroups/#{campaign_group_id}" - end - - ## - # Create a fully-qualified CampaignLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param label_id [String] - # - # @return [::String] - def campaign_label_path customer_id:, campaign_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignLabels/#{campaign_id}~#{label_id}" - end - - ## - # Create a fully-qualified CampaignSharedSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param shared_set_id [String] - # - # @return [::String] - def campaign_shared_set_path customer_id:, campaign_id:, shared_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignSharedSets/#{campaign_id}~#{shared_set_id}" - end - - ## - # Create a fully-qualified ConversionAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionActions/{conversion_action_id}` - # - # @param customer_id [String] - # @param conversion_action_id [String] - # - # @return [::String] - def conversion_action_path customer_id:, conversion_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionActions/#{conversion_action_id}" - end - - ## - # Create a fully-qualified ConversionCustomVariable resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}` - # - # @param customer_id [String] - # @param conversion_custom_variable_id [String] - # - # @return [::String] - def conversion_custom_variable_path customer_id:, conversion_custom_variable_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionCustomVariables/#{conversion_custom_variable_id}" - end - - ## - # Create a fully-qualified ConversionGoalCampaignConfig resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def conversion_goal_campaign_config_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionGoalCampaignConfigs/#{campaign_id}" - end - - ## - # Create a fully-qualified ConversionValueRule resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}` - # - # @param customer_id [String] - # @param conversion_value_rule_id [String] - # - # @return [::String] - def conversion_value_rule_path customer_id:, conversion_value_rule_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionValueRules/#{conversion_value_rule_id}" - end - - ## - # Create a fully-qualified ConversionValueRuleSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}` - # - # @param customer_id [String] - # @param conversion_value_rule_set_id [String] - # - # @return [::String] - def conversion_value_rule_set_path customer_id:, conversion_value_rule_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionValueRuleSets/#{conversion_value_rule_set_id}" - end - - ## - # Create a fully-qualified CustomConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customConversionGoals/{goal_id}` - # - # @param customer_id [String] - # @param goal_id [String] - # - # @return [::String] - def custom_conversion_goal_path customer_id:, goal_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customConversionGoals/#{goal_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified CustomerAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerAssets/{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def customer_asset_path customer_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/customerAssets/#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified CustomerConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerConversionGoals/{category}~{source}` - # - # @param customer_id [String] - # @param category [String] - # @param source [String] - # - # @return [::String] - def customer_conversion_goal_path customer_id:, category:, source: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" - - "customers/#{customer_id}/customerConversionGoals/#{category}~#{source}" - end - - ## - # Create a fully-qualified CustomerCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customer_customizer_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerCustomizers/#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified CustomerExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerExtensionSettings/{extension_type}` - # - # @param customer_id [String] - # @param extension_type [String] - # - # @return [::String] - def customer_extension_setting_path customer_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerExtensionSettings/#{extension_type}" - end - - ## - # Create a fully-qualified CustomerFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerFeeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def customer_feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerFeeds/#{feed_id}" - end - - ## - # Create a fully-qualified CustomerLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerLabels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def customer_label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerLabels/#{label_id}" - end - - ## - # Create a fully-qualified CustomerNegativeCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` - # - # @param customer_id [String] - # @param criterion_id [String] - # - # @return [::String] - def customer_negative_criterion_path customer_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerNegativeCriteria/#{criterion_id}" - end - - ## - # Create a fully-qualified CustomizerAttribute resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customizer_attribute_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified Experiment resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/experiments/{trial_id}` - # - # @param customer_id [String] - # @param trial_id [String] - # - # @return [::String] - def experiment_path customer_id:, trial_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/experiments/#{trial_id}" - end - - ## - # Create a fully-qualified ExperimentArm resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}` - # - # @param customer_id [String] - # @param trial_id [String] - # @param trial_arm_id [String] - # - # @return [::String] - def experiment_arm_path customer_id:, trial_id:, trial_arm_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "trial_id cannot contain /" if trial_id.to_s.include? "/" - - "customers/#{customer_id}/experimentArms/#{trial_id}~#{trial_arm_id}" - end - - ## - # Create a fully-qualified ExtensionFeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - # - # @param customer_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def extension_feed_item_path customer_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" - end - - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - ## - # Create a fully-qualified FeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def feed_item_path customer_id:, feed_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItems/#{feed_id}~#{feed_item_id}" - end - - ## - # Create a fully-qualified FeedItemSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_set_id [String] - # - # @return [::String] - def feed_item_set_path customer_id:, feed_id:, feed_item_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItemSets/#{feed_id}~#{feed_item_set_id}" - end - - ## - # Create a fully-qualified FeedItemSetLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_set_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def feed_item_set_link_path customer_id:, feed_id:, feed_item_set_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - raise ::ArgumentError, "feed_item_set_id cannot contain /" if feed_item_set_id.to_s.include? "/" - - "customers/#{customer_id}/feedItemSetLinks/#{feed_id}~#{feed_item_set_id}~#{feed_item_id}" - end - - ## - # Create a fully-qualified FeedItemTarget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_id [String] - # @param feed_item_target_type [String] - # @param feed_item_target_id [String] - # - # @return [::String] - def feed_item_target_path customer_id:, feed_id:, feed_item_id:, feed_item_target_type:, - feed_item_target_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - raise ::ArgumentError, "feed_item_id cannot contain /" if feed_item_id.to_s.include? "/" - raise ::ArgumentError, - "feed_item_target_type cannot contain /" if feed_item_target_type.to_s.include? "/" - - "customers/#{customer_id}/feedItemTargets/#{feed_id}~#{feed_item_id}~#{feed_item_target_type}~#{feed_item_target_id}" - end - - ## - # Create a fully-qualified FeedMapping resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_mapping_id [String] - # - # @return [::String] - def feed_mapping_path customer_id:, feed_id:, feed_mapping_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedMappings/#{feed_id}~#{feed_mapping_id}" - end - - ## - # Create a fully-qualified GeoTargetConstant resource string. - # - # The resource will be in the following format: - # - # `geoTargetConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def geo_target_constant_path criterion_id: - "geoTargetConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified KeywordPlan resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlans/{keyword_plan_id}` - # - # @param customer_id [String] - # @param keyword_plan_id [String] - # - # @return [::String] - def keyword_plan_path customer_id:, keyword_plan_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlans/#{keyword_plan_id}" - end - - ## - # Create a fully-qualified KeywordPlanAdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}` - # - # @param customer_id [String] - # @param keyword_plan_ad_group_id [String] - # - # @return [::String] - def keyword_plan_ad_group_path customer_id:, keyword_plan_ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanAdGroups/#{keyword_plan_ad_group_id}" - end - - ## - # Create a fully-qualified KeywordPlanAdGroupKeyword resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}` - # - # @param customer_id [String] - # @param keyword_plan_ad_group_keyword_id [String] - # - # @return [::String] - def keyword_plan_ad_group_keyword_path customer_id:, keyword_plan_ad_group_keyword_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanAdGroupKeywords/#{keyword_plan_ad_group_keyword_id}" - end - - ## - # Create a fully-qualified KeywordPlanCampaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` - # - # @param customer_id [String] - # @param keyword_plan_campaign_id [String] - # - # @return [::String] - def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}" - end - - ## - # Create a fully-qualified KeywordPlanCampaignKeyword resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}` - # - # @param customer_id [String] - # @param keyword_plan_campaign_keyword_id [String] - # - # @return [::String] - def keyword_plan_campaign_keyword_path customer_id:, keyword_plan_campaign_keyword_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanCampaignKeywords/#{keyword_plan_campaign_keyword_id}" - end - - ## - # Create a fully-qualified Label resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/labels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/labels/#{label_id}" - end - - ## - # Create a fully-qualified LanguageConstant resource string. - # - # The resource will be in the following format: - # - # `languageConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def language_constant_path criterion_id: - "languageConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified MediaFile resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/mediaFiles/{media_file_id}` - # - # @param customer_id [String] - # @param media_file_id [String] - # - # @return [::String] - def media_file_path customer_id:, media_file_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/mediaFiles/#{media_file_id}" - end - - ## - # Create a fully-qualified RemarketingAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/remarketingActions/{remarketing_action_id}` - # - # @param customer_id [String] - # @param remarketing_action_id [String] - # - # @return [::String] - def remarketing_action_path customer_id:, remarketing_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/remarketingActions/#{remarketing_action_id}" - end - - ## - # Create a fully-qualified SharedCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}` - # - # @param customer_id [String] - # @param shared_set_id [String] - # @param criterion_id [String] - # - # @return [::String] - def shared_criterion_path customer_id:, shared_set_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "shared_set_id cannot contain /" if shared_set_id.to_s.include? "/" - - "customers/#{customer_id}/sharedCriteria/#{shared_set_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified SharedSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/sharedSets/{shared_set_id}` - # - # @param customer_id [String] - # @param shared_set_id [String] - # - # @return [::String] - def shared_set_path customer_id:, shared_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/sharedSets/#{shared_set_id}" - end - - ## - # Create a fully-qualified SmartCampaignSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/smartCampaignSettings/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def smart_campaign_setting_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/smartCampaignSettings/#{campaign_id}" - end - - ## - # Create a fully-qualified UserInterest resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userInterests/{user_interest_id}` - # - # @param customer_id [String] - # @param user_interest_id [String] - # - # @return [::String] - def user_interest_path customer_id:, user_interest_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/userInterests/#{user_interest_id}" - end - - ## - # Create a fully-qualified UserList resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userLists/{user_list_id}` - # - # @param customer_id [String] - # @param user_list_id [String] - # - # @return [::String] - def user_list_path customer_id:, user_list_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/userLists/#{user_list_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/batch_job_service_pb.rb b/lib/google/ads/google_ads/v12/services/batch_job_service_pb.rb deleted file mode 100644 index 8b5020943..000000000 --- a/lib/google/ads/google_ads/v12/services/batch_job_service_pb.rb +++ /dev/null @@ -1,83 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/batch_job_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/batch_job_pb' -require 'google/ads/google_ads/v12/services/google_ads_service_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/longrunning/operations_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/batch_job_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateBatchJobRequest" do - optional :customer_id, :string, 1 - optional :operation, :message, 2, "google.ads.googleads.v12.services.BatchJobOperation" - end - add_message "google.ads.googleads.v12.services.BatchJobOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.BatchJob" - optional :remove, :string, 4 - end - end - add_message "google.ads.googleads.v12.services.MutateBatchJobResponse" do - optional :result, :message, 1, "google.ads.googleads.v12.services.MutateBatchJobResult" - end - add_message "google.ads.googleads.v12.services.MutateBatchJobResult" do - optional :resource_name, :string, 1 - end - add_message "google.ads.googleads.v12.services.RunBatchJobRequest" do - optional :resource_name, :string, 1 - end - add_message "google.ads.googleads.v12.services.AddBatchJobOperationsRequest" do - optional :resource_name, :string, 1 - optional :sequence_token, :string, 2 - repeated :mutate_operations, :message, 3, "google.ads.googleads.v12.services.MutateOperation" - end - add_message "google.ads.googleads.v12.services.AddBatchJobOperationsResponse" do - optional :total_operations, :int64, 1 - optional :next_sequence_token, :string, 2 - end - add_message "google.ads.googleads.v12.services.ListBatchJobResultsRequest" do - optional :resource_name, :string, 1 - optional :page_token, :string, 2 - optional :page_size, :int32, 3 - optional :response_content_type, :enum, 4, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.ListBatchJobResultsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.BatchJobResult" - optional :next_page_token, :string, 2 - end - add_message "google.ads.googleads.v12.services.BatchJobResult" do - optional :operation_index, :int64, 1 - optional :mutate_operation_response, :message, 2, "google.ads.googleads.v12.services.MutateOperationResponse" - optional :status, :message, 3, "google.rpc.Status" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateBatchJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateBatchJobRequest").msgclass - BatchJobOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.BatchJobOperation").msgclass - MutateBatchJobResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateBatchJobResponse").msgclass - MutateBatchJobResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateBatchJobResult").msgclass - RunBatchJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.RunBatchJobRequest").msgclass - AddBatchJobOperationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AddBatchJobOperationsRequest").msgclass - AddBatchJobOperationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AddBatchJobOperationsResponse").msgclass - ListBatchJobResultsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListBatchJobResultsRequest").msgclass - ListBatchJobResultsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListBatchJobResultsResponse").msgclass - BatchJobResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.BatchJobResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/batch_job_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/batch_job_service_services_pb.rb deleted file mode 100644 index 81f4b9d5d..000000000 --- a/lib/google/ads/google_ads/v12/services/batch_job_service_services_pb.rb +++ /dev/null @@ -1,97 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/batch_job_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/batch_job_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BatchJobService - # Proto file describing the BatchJobService. - # - # Service to manage batch jobs. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.BatchJobService' - - # Mutates a batch job. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - rpc :MutateBatchJob, ::Google::Ads::GoogleAds::V12::Services::MutateBatchJobRequest, ::Google::Ads::GoogleAds::V12::Services::MutateBatchJobResponse - # Returns the results of the batch job. The job must be done. - # Supports standard list paging. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [BatchJobError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :ListBatchJobResults, ::Google::Ads::GoogleAds::V12::Services::ListBatchJobResultsRequest, ::Google::Ads::GoogleAds::V12::Services::ListBatchJobResultsResponse - # Runs the batch job. - # - # The Operation.metadata field type is BatchJobMetadata. When finished, the - # long running operation will not contain errors or a response. Instead, use - # ListBatchJobResults to get the results of the job. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [BatchJobError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :RunBatchJob, ::Google::Ads::GoogleAds::V12::Services::RunBatchJobRequest, ::Google::Longrunning::Operation - # Add operations to the batch job. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [BatchJobError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - rpc :AddBatchJobOperations, ::Google::Ads::GoogleAds::V12::Services::AddBatchJobOperationsRequest, ::Google::Ads::GoogleAds::V12::Services::AddBatchJobOperationsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service.rb b/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service.rb deleted file mode 100644 index 76cc31db5..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/bidding_data_exclusion_service/credentials" -require "google/ads/google_ads/v12/services/bidding_data_exclusion_service/paths" -require "google/ads/google_ads/v12/services/bidding_data_exclusion_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage bidding data exclusions. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/bidding_data_exclusion_service" - # client = ::Google::Ads::GoogleAds::V12::Services::BiddingDataExclusionService::Client.new - # - module BiddingDataExclusionService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "bidding_data_exclusion_service", "helpers.rb" -require "google/ads/google_ads/v12/services/bidding_data_exclusion_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service/client.rb b/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service/client.rb deleted file mode 100644 index 313610db4..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service/client.rb +++ /dev/null @@ -1,404 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/bidding_data_exclusion_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BiddingDataExclusionService - ## - # Client for the BiddingDataExclusionService service. - # - # Service to manage bidding data exclusions. - # - class Client - include Paths - - # @private - attr_reader :bidding_data_exclusion_service_stub - - ## - # Configure the BiddingDataExclusionService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::BiddingDataExclusionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BiddingDataExclusionService clients - # ::Google::Ads::GoogleAds::V12::Services::BiddingDataExclusionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BiddingDataExclusionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::BiddingDataExclusionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new BiddingDataExclusionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::BiddingDataExclusionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::BiddingDataExclusionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BiddingDataExclusionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/bidding_data_exclusion_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @bidding_data_exclusion_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::BiddingDataExclusionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes data exclusions. - # Operation statuses are returned. - # - # @overload mutate_bidding_data_exclusions(request, options = nil) - # Pass arguments to `mutate_bidding_data_exclusions` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateBiddingDataExclusionsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateBiddingDataExclusionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_bidding_data_exclusions(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_bidding_data_exclusions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose data exclusions are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::BiddingDataExclusionOperation, ::Hash>] - # Required. The list of operations to perform on individual data exclusions. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateBiddingDataExclusionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateBiddingDataExclusionsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::BiddingDataExclusionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateBiddingDataExclusionsRequest.new - # - # # Call the mutate_bidding_data_exclusions method. - # result = client.mutate_bidding_data_exclusions request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateBiddingDataExclusionsResponse. - # p result - # - def mutate_bidding_data_exclusions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateBiddingDataExclusionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_bidding_data_exclusions.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_bidding_data_exclusions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_bidding_data_exclusions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bidding_data_exclusion_service_stub.call_rpc :mutate_bidding_data_exclusions, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the BiddingDataExclusionService API. - # - # This class represents the configuration for BiddingDataExclusionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::BiddingDataExclusionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_bidding_data_exclusions to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::BiddingDataExclusionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_bidding_data_exclusions.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::BiddingDataExclusionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_bidding_data_exclusions.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the BiddingDataExclusionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_bidding_data_exclusions` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_bidding_data_exclusions - - # @private - def initialize parent_rpcs = nil - mutate_bidding_data_exclusions_config = parent_rpcs.mutate_bidding_data_exclusions if parent_rpcs.respond_to? :mutate_bidding_data_exclusions - @mutate_bidding_data_exclusions = ::Gapic::Config::Method.new mutate_bidding_data_exclusions_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service/credentials.rb b/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service/credentials.rb deleted file mode 100644 index d7c8fb81e..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BiddingDataExclusionService - # Credentials for the BiddingDataExclusionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service/paths.rb b/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service/paths.rb deleted file mode 100644 index c03bffc7d..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BiddingDataExclusionService - # Path helper methods for the BiddingDataExclusionService API. - module Paths - ## - # Create a fully-qualified BiddingDataExclusion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}` - # - # @param customer_id [String] - # @param seasonality_event_id [String] - # - # @return [::String] - def bidding_data_exclusion_path customer_id:, seasonality_event_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingDataExclusions/#{seasonality_event_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service_pb.rb b/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service_pb.rb deleted file mode 100644 index 91abbe760..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/bidding_data_exclusion_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/bidding_data_exclusion_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/bidding_data_exclusion_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateBiddingDataExclusionsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.BiddingDataExclusionOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.BiddingDataExclusionOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.BiddingDataExclusion" - optional :update, :message, 2, "google.ads.googleads.v12.resources.BiddingDataExclusion" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateBiddingDataExclusionsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateBiddingDataExclusionsResult" - end - add_message "google.ads.googleads.v12.services.MutateBiddingDataExclusionsResult" do - optional :resource_name, :string, 1 - optional :bidding_data_exclusion, :message, 2, "google.ads.googleads.v12.resources.BiddingDataExclusion" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateBiddingDataExclusionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateBiddingDataExclusionsRequest").msgclass - BiddingDataExclusionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.BiddingDataExclusionOperation").msgclass - MutateBiddingDataExclusionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateBiddingDataExclusionsResponse").msgclass - MutateBiddingDataExclusionsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateBiddingDataExclusionsResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service_services_pb.rb deleted file mode 100644 index 74470b8d1..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_data_exclusion_service_services_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/bidding_data_exclusion_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/bidding_data_exclusion_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BiddingDataExclusionService - # Service to manage bidding data exclusions. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.BiddingDataExclusionService' - - # Creates, updates, or removes data exclusions. - # Operation statuses are returned. - rpc :MutateBiddingDataExclusions, ::Google::Ads::GoogleAds::V12::Services::MutateBiddingDataExclusionsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateBiddingDataExclusionsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service.rb b/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service.rb deleted file mode 100644 index 04ee1f3df..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service/credentials" -require "google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service/paths" -require "google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage bidding seasonality adjustments. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service" - # client = ::Google::Ads::GoogleAds::V12::Services::BiddingSeasonalityAdjustmentService::Client.new - # - module BiddingSeasonalityAdjustmentService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "bidding_seasonality_adjustment_service", "helpers.rb" -require "google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service/client.rb b/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service/client.rb deleted file mode 100644 index 9c0d3da11..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service/client.rb +++ /dev/null @@ -1,404 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BiddingSeasonalityAdjustmentService - ## - # Client for the BiddingSeasonalityAdjustmentService service. - # - # Service to manage bidding seasonality adjustments. - # - class Client - include Paths - - # @private - attr_reader :bidding_seasonality_adjustment_service_stub - - ## - # Configure the BiddingSeasonalityAdjustmentService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::BiddingSeasonalityAdjustmentService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BiddingSeasonalityAdjustmentService clients - # ::Google::Ads::GoogleAds::V12::Services::BiddingSeasonalityAdjustmentService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BiddingSeasonalityAdjustmentService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::BiddingSeasonalityAdjustmentService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new BiddingSeasonalityAdjustmentService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::BiddingSeasonalityAdjustmentService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::BiddingSeasonalityAdjustmentService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BiddingSeasonalityAdjustmentService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @bidding_seasonality_adjustment_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::BiddingSeasonalityAdjustmentService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes seasonality adjustments. - # Operation statuses are returned. - # - # @overload mutate_bidding_seasonality_adjustments(request, options = nil) - # Pass arguments to `mutate_bidding_seasonality_adjustments` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateBiddingSeasonalityAdjustmentsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateBiddingSeasonalityAdjustmentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_bidding_seasonality_adjustments(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_bidding_seasonality_adjustments` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose seasonality adjustments are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::BiddingSeasonalityAdjustmentOperation, ::Hash>] - # Required. The list of operations to perform on individual seasonality adjustments. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateBiddingSeasonalityAdjustmentsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateBiddingSeasonalityAdjustmentsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::BiddingSeasonalityAdjustmentService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateBiddingSeasonalityAdjustmentsRequest.new - # - # # Call the mutate_bidding_seasonality_adjustments method. - # result = client.mutate_bidding_seasonality_adjustments request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateBiddingSeasonalityAdjustmentsResponse. - # p result - # - def mutate_bidding_seasonality_adjustments request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateBiddingSeasonalityAdjustmentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_bidding_seasonality_adjustments.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_bidding_seasonality_adjustments.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_bidding_seasonality_adjustments.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bidding_seasonality_adjustment_service_stub.call_rpc :mutate_bidding_seasonality_adjustments, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the BiddingSeasonalityAdjustmentService API. - # - # This class represents the configuration for BiddingSeasonalityAdjustmentService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::BiddingSeasonalityAdjustmentService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_bidding_seasonality_adjustments to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::BiddingSeasonalityAdjustmentService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_bidding_seasonality_adjustments.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::BiddingSeasonalityAdjustmentService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_bidding_seasonality_adjustments.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the BiddingSeasonalityAdjustmentService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_bidding_seasonality_adjustments` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_bidding_seasonality_adjustments - - # @private - def initialize parent_rpcs = nil - mutate_bidding_seasonality_adjustments_config = parent_rpcs.mutate_bidding_seasonality_adjustments if parent_rpcs.respond_to? :mutate_bidding_seasonality_adjustments - @mutate_bidding_seasonality_adjustments = ::Gapic::Config::Method.new mutate_bidding_seasonality_adjustments_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service/credentials.rb b/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service/credentials.rb deleted file mode 100644 index 2eabd43ef..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BiddingSeasonalityAdjustmentService - # Credentials for the BiddingSeasonalityAdjustmentService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service/paths.rb b/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service/paths.rb deleted file mode 100644 index ae71d8bd1..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BiddingSeasonalityAdjustmentService - # Path helper methods for the BiddingSeasonalityAdjustmentService API. - module Paths - ## - # Create a fully-qualified BiddingSeasonalityAdjustment resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}` - # - # @param customer_id [String] - # @param seasonality_event_id [String] - # - # @return [::String] - def bidding_seasonality_adjustment_path customer_id:, seasonality_event_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingSeasonalityAdjustments/#{seasonality_event_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service_pb.rb b/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service_pb.rb deleted file mode 100644 index 409b1c7b9..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/bidding_seasonality_adjustment_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/bidding_seasonality_adjustment_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/bidding_seasonality_adjustment_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateBiddingSeasonalityAdjustmentsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.BiddingSeasonalityAdjustmentOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.BiddingSeasonalityAdjustmentOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.BiddingSeasonalityAdjustment" - optional :update, :message, 2, "google.ads.googleads.v12.resources.BiddingSeasonalityAdjustment" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateBiddingSeasonalityAdjustmentsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateBiddingSeasonalityAdjustmentsResult" - end - add_message "google.ads.googleads.v12.services.MutateBiddingSeasonalityAdjustmentsResult" do - optional :resource_name, :string, 1 - optional :bidding_seasonality_adjustment, :message, 2, "google.ads.googleads.v12.resources.BiddingSeasonalityAdjustment" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateBiddingSeasonalityAdjustmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateBiddingSeasonalityAdjustmentsRequest").msgclass - BiddingSeasonalityAdjustmentOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.BiddingSeasonalityAdjustmentOperation").msgclass - MutateBiddingSeasonalityAdjustmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateBiddingSeasonalityAdjustmentsResponse").msgclass - MutateBiddingSeasonalityAdjustmentsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateBiddingSeasonalityAdjustmentsResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service_services_pb.rb deleted file mode 100644 index eda7c13d3..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service_services_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/bidding_seasonality_adjustment_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BiddingSeasonalityAdjustmentService - # Service to manage bidding seasonality adjustments. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.BiddingSeasonalityAdjustmentService' - - # Creates, updates, or removes seasonality adjustments. - # Operation statuses are returned. - rpc :MutateBiddingSeasonalityAdjustments, ::Google::Ads::GoogleAds::V12::Services::MutateBiddingSeasonalityAdjustmentsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateBiddingSeasonalityAdjustmentsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/bidding_strategy_service.rb b/lib/google/ads/google_ads/v12/services/bidding_strategy_service.rb deleted file mode 100644 index 73ecd86f2..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_strategy_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/bidding_strategy_service/credentials" -require "google/ads/google_ads/v12/services/bidding_strategy_service/paths" -require "google/ads/google_ads/v12/services/bidding_strategy_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage bidding strategies. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/bidding_strategy_service" - # client = ::Google::Ads::GoogleAds::V12::Services::BiddingStrategyService::Client.new - # - module BiddingStrategyService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "bidding_strategy_service", "helpers.rb" -require "google/ads/google_ads/v12/services/bidding_strategy_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/bidding_strategy_service/client.rb b/lib/google/ads/google_ads/v12/services/bidding_strategy_service/client.rb deleted file mode 100644 index 0c426bdca..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_strategy_service/client.rb +++ /dev/null @@ -1,432 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/bidding_strategy_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BiddingStrategyService - ## - # Client for the BiddingStrategyService service. - # - # Service to manage bidding strategies. - # - class Client - include Paths - - # @private - attr_reader :bidding_strategy_service_stub - - ## - # Configure the BiddingStrategyService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::BiddingStrategyService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BiddingStrategyService clients - # ::Google::Ads::GoogleAds::V12::Services::BiddingStrategyService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BiddingStrategyService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::BiddingStrategyService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new BiddingStrategyService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::BiddingStrategyService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::BiddingStrategyService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BiddingStrategyService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/bidding_strategy_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @bidding_strategy_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::BiddingStrategyService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes bidding strategies. Operation statuses are - # returned. - # - # List of thrown errors: - # [AdxError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [BiddingError]() - # [BiddingStrategyError]() - # [ContextError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_bidding_strategies(request, options = nil) - # Pass arguments to `mutate_bidding_strategies` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateBiddingStrategiesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateBiddingStrategiesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_bidding_strategies(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_bidding_strategies` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose bidding strategies are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::BiddingStrategyOperation, ::Hash>] - # Required. The list of operations to perform on individual bidding strategies. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateBiddingStrategiesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateBiddingStrategiesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::BiddingStrategyService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateBiddingStrategiesRequest.new - # - # # Call the mutate_bidding_strategies method. - # result = client.mutate_bidding_strategies request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateBiddingStrategiesResponse. - # p result - # - def mutate_bidding_strategies request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateBiddingStrategiesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_bidding_strategies.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_bidding_strategies.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_bidding_strategies.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bidding_strategy_service_stub.call_rpc :mutate_bidding_strategies, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the BiddingStrategyService API. - # - # This class represents the configuration for BiddingStrategyService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::BiddingStrategyService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_bidding_strategies to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::BiddingStrategyService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_bidding_strategies.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::BiddingStrategyService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_bidding_strategies.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the BiddingStrategyService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_bidding_strategies` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_bidding_strategies - - # @private - def initialize parent_rpcs = nil - mutate_bidding_strategies_config = parent_rpcs.mutate_bidding_strategies if parent_rpcs.respond_to? :mutate_bidding_strategies - @mutate_bidding_strategies = ::Gapic::Config::Method.new mutate_bidding_strategies_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/bidding_strategy_service/credentials.rb b/lib/google/ads/google_ads/v12/services/bidding_strategy_service/credentials.rb deleted file mode 100644 index 610e01592..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_strategy_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BiddingStrategyService - # Credentials for the BiddingStrategyService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/bidding_strategy_service/paths.rb b/lib/google/ads/google_ads/v12/services/bidding_strategy_service/paths.rb deleted file mode 100644 index d8621b8a7..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_strategy_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BiddingStrategyService - # Path helper methods for the BiddingStrategyService API. - module Paths - ## - # Create a fully-qualified BiddingStrategy resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` - # - # @param customer_id [String] - # @param bidding_strategy_id [String] - # - # @return [::String] - def bidding_strategy_path customer_id:, bidding_strategy_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingStrategies/#{bidding_strategy_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/bidding_strategy_service_pb.rb b/lib/google/ads/google_ads/v12/services/bidding_strategy_service_pb.rb deleted file mode 100644 index 0e496991f..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_strategy_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/bidding_strategy_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/bidding_strategy_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/bidding_strategy_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateBiddingStrategiesRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.BiddingStrategyOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.BiddingStrategyOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.BiddingStrategy" - optional :update, :message, 2, "google.ads.googleads.v12.resources.BiddingStrategy" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateBiddingStrategiesResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateBiddingStrategyResult" - end - add_message "google.ads.googleads.v12.services.MutateBiddingStrategyResult" do - optional :resource_name, :string, 1 - optional :bidding_strategy, :message, 2, "google.ads.googleads.v12.resources.BiddingStrategy" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateBiddingStrategiesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateBiddingStrategiesRequest").msgclass - BiddingStrategyOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.BiddingStrategyOperation").msgclass - MutateBiddingStrategiesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateBiddingStrategiesResponse").msgclass - MutateBiddingStrategyResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateBiddingStrategyResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/bidding_strategy_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/bidding_strategy_service_services_pb.rb deleted file mode 100644 index 9548ca62b..000000000 --- a/lib/google/ads/google_ads/v12/services/bidding_strategy_service_services_pb.rb +++ /dev/null @@ -1,78 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/bidding_strategy_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/bidding_strategy_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BiddingStrategyService - # Proto file describing the Bidding Strategy service. - # - # Service to manage bidding strategies. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.BiddingStrategyService' - - # Creates, updates, or removes bidding strategies. Operation statuses are - # returned. - # - # List of thrown errors: - # [AdxError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [BiddingError]() - # [BiddingStrategyError]() - # [ContextError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - rpc :MutateBiddingStrategies, ::Google::Ads::GoogleAds::V12::Services::MutateBiddingStrategiesRequest, ::Google::Ads::GoogleAds::V12::Services::MutateBiddingStrategiesResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/billing_setup_service.rb b/lib/google/ads/google_ads/v12/services/billing_setup_service.rb deleted file mode 100644 index cda1d7e85..000000000 --- a/lib/google/ads/google_ads/v12/services/billing_setup_service.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/billing_setup_service/credentials" -require "google/ads/google_ads/v12/services/billing_setup_service/paths" -require "google/ads/google_ads/v12/services/billing_setup_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # A service for designating the business entity responsible for accrued costs. - # - # A billing setup is associated with a payments account. Billing-related - # activity for all billing setups associated with a particular payments account - # will appear on a single invoice generated monthly. - # - # Mutates: - # The REMOVE operation cancels a pending billing setup. - # The CREATE operation creates a new billing setup. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/billing_setup_service" - # client = ::Google::Ads::GoogleAds::V12::Services::BillingSetupService::Client.new - # - module BillingSetupService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "billing_setup_service", "helpers.rb" -require "google/ads/google_ads/v12/services/billing_setup_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/billing_setup_service/client.rb b/lib/google/ads/google_ads/v12/services/billing_setup_service/client.rb deleted file mode 100644 index 54b38a2de..000000000 --- a/lib/google/ads/google_ads/v12/services/billing_setup_service/client.rb +++ /dev/null @@ -1,412 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/billing_setup_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BillingSetupService - ## - # Client for the BillingSetupService service. - # - # A service for designating the business entity responsible for accrued costs. - # - # A billing setup is associated with a payments account. Billing-related - # activity for all billing setups associated with a particular payments account - # will appear on a single invoice generated monthly. - # - # Mutates: - # The REMOVE operation cancels a pending billing setup. - # The CREATE operation creates a new billing setup. - # - class Client - include Paths - - # @private - attr_reader :billing_setup_service_stub - - ## - # Configure the BillingSetupService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::BillingSetupService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BillingSetupService clients - # ::Google::Ads::GoogleAds::V12::Services::BillingSetupService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BillingSetupService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::BillingSetupService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new BillingSetupService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::BillingSetupService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::BillingSetupService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BillingSetupService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/billing_setup_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @billing_setup_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::BillingSetupService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates a billing setup, or cancels an existing billing setup. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [BillingSetupError]() - # [DateError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_billing_setup(request, options = nil) - # Pass arguments to `mutate_billing_setup` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateBillingSetupRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateBillingSetupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_billing_setup(customer_id: nil, operation: nil) - # Pass arguments to `mutate_billing_setup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. Id of the customer to apply the billing setup mutate operation to. - # @param operation [::Google::Ads::GoogleAds::V12::Services::BillingSetupOperation, ::Hash] - # Required. The operation to perform. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateBillingSetupResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateBillingSetupResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::BillingSetupService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateBillingSetupRequest.new - # - # # Call the mutate_billing_setup method. - # result = client.mutate_billing_setup request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateBillingSetupResponse. - # p result - # - def mutate_billing_setup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateBillingSetupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_billing_setup.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_billing_setup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_billing_setup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @billing_setup_service_stub.call_rpc :mutate_billing_setup, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the BillingSetupService API. - # - # This class represents the configuration for BillingSetupService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::BillingSetupService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_billing_setup to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::BillingSetupService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_billing_setup.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::BillingSetupService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_billing_setup.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the BillingSetupService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_billing_setup` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_billing_setup - - # @private - def initialize parent_rpcs = nil - mutate_billing_setup_config = parent_rpcs.mutate_billing_setup if parent_rpcs.respond_to? :mutate_billing_setup - @mutate_billing_setup = ::Gapic::Config::Method.new mutate_billing_setup_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/billing_setup_service/credentials.rb b/lib/google/ads/google_ads/v12/services/billing_setup_service/credentials.rb deleted file mode 100644 index 6babff606..000000000 --- a/lib/google/ads/google_ads/v12/services/billing_setup_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BillingSetupService - # Credentials for the BillingSetupService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/billing_setup_service/paths.rb b/lib/google/ads/google_ads/v12/services/billing_setup_service/paths.rb deleted file mode 100644 index 8102164e8..000000000 --- a/lib/google/ads/google_ads/v12/services/billing_setup_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BillingSetupService - # Path helper methods for the BillingSetupService API. - module Paths - ## - # Create a fully-qualified BillingSetup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/billingSetups/{billing_setup_id}` - # - # @param customer_id [String] - # @param billing_setup_id [String] - # - # @return [::String] - def billing_setup_path customer_id:, billing_setup_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/billingSetups/#{billing_setup_id}" - end - - ## - # Create a fully-qualified PaymentsAccount resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/paymentsAccounts/{payments_account_id}` - # - # @param customer_id [String] - # @param payments_account_id [String] - # - # @return [::String] - def payments_account_path customer_id:, payments_account_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/paymentsAccounts/#{payments_account_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/billing_setup_service_pb.rb b/lib/google/ads/google_ads/v12/services/billing_setup_service_pb.rb deleted file mode 100644 index d325d01d7..000000000 --- a/lib/google/ads/google_ads/v12/services/billing_setup_service_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/billing_setup_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/billing_setup_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/billing_setup_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateBillingSetupRequest" do - optional :customer_id, :string, 1 - optional :operation, :message, 2, "google.ads.googleads.v12.services.BillingSetupOperation" - end - add_message "google.ads.googleads.v12.services.BillingSetupOperation" do - oneof :operation do - optional :create, :message, 2, "google.ads.googleads.v12.resources.BillingSetup" - optional :remove, :string, 1 - end - end - add_message "google.ads.googleads.v12.services.MutateBillingSetupResponse" do - optional :result, :message, 1, "google.ads.googleads.v12.services.MutateBillingSetupResult" - end - add_message "google.ads.googleads.v12.services.MutateBillingSetupResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateBillingSetupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateBillingSetupRequest").msgclass - BillingSetupOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.BillingSetupOperation").msgclass - MutateBillingSetupResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateBillingSetupResponse").msgclass - MutateBillingSetupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateBillingSetupResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/billing_setup_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/billing_setup_service_services_pb.rb deleted file mode 100644 index f83e4635f..000000000 --- a/lib/google/ads/google_ads/v12/services/billing_setup_service_services_pb.rb +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/billing_setup_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/billing_setup_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module BillingSetupService - # Proto file describing the BillingSetup service. - # - # A service for designating the business entity responsible for accrued costs. - # - # A billing setup is associated with a payments account. Billing-related - # activity for all billing setups associated with a particular payments account - # will appear on a single invoice generated monthly. - # - # Mutates: - # The REMOVE operation cancels a pending billing setup. - # The CREATE operation creates a new billing setup. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.BillingSetupService' - - # Creates a billing setup, or cancels an existing billing setup. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [BillingSetupError]() - # [DateError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateBillingSetup, ::Google::Ads::GoogleAds::V12::Services::MutateBillingSetupRequest, ::Google::Ads::GoogleAds::V12::Services::MutateBillingSetupResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_asset_service.rb b/lib/google/ads/google_ads/v12/services/campaign_asset_service.rb deleted file mode 100644 index c7e62b7bc..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_asset_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/campaign_asset_service/credentials" -require "google/ads/google_ads/v12/services/campaign_asset_service/paths" -require "google/ads/google_ads/v12/services/campaign_asset_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage campaign assets. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/campaign_asset_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignAssetService::Client.new - # - module CampaignAssetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_asset_service", "helpers.rb" -require "google/ads/google_ads/v12/services/campaign_asset_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/campaign_asset_service/client.rb b/lib/google/ads/google_ads/v12/services/campaign_asset_service/client.rb deleted file mode 100644 index 089230737..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_asset_service/client.rb +++ /dev/null @@ -1,418 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/campaign_asset_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignAssetService - ## - # Client for the CampaignAssetService service. - # - # Service to manage campaign assets. - # - class Client - include Paths - - # @private - attr_reader :campaign_asset_service_stub - - ## - # Configure the CampaignAssetService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignAssetService clients - # ::Google::Ads::GoogleAds::V12::Services::CampaignAssetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignAssetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignAssetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignAssetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignAssetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignAssetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/campaign_asset_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_asset_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CampaignAssetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes campaign assets. Operation statuses are - # returned. - # - # List of thrown errors: - # [AssetLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [ContextError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [NotAllowlistedError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_campaign_assets(request, options = nil) - # Pass arguments to `mutate_campaign_assets` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_assets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_assets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign assets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CampaignAssetOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign assets. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CampaignAssetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetsRequest.new - # - # # Call the mutate_campaign_assets method. - # result = client.mutate_campaign_assets request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetsResponse. - # p result - # - def mutate_campaign_assets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_assets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_assets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_assets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_asset_service_stub.call_rpc :mutate_campaign_assets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignAssetService API. - # - # This class represents the configuration for CampaignAssetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CampaignAssetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_assets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CampaignAssetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_assets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignAssetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_assets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CampaignAssetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_assets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_assets - - # @private - def initialize parent_rpcs = nil - mutate_campaign_assets_config = parent_rpcs.mutate_campaign_assets if parent_rpcs.respond_to? :mutate_campaign_assets - @mutate_campaign_assets = ::Gapic::Config::Method.new mutate_campaign_assets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_asset_service/credentials.rb b/lib/google/ads/google_ads/v12/services/campaign_asset_service/credentials.rb deleted file mode 100644 index 27fa0d2d3..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_asset_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignAssetService - # Credentials for the CampaignAssetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_asset_service/paths.rb b/lib/google/ads/google_ads/v12/services/campaign_asset_service/paths.rb deleted file mode 100644 index 605ff43e1..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_asset_service/paths.rb +++ /dev/null @@ -1,90 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignAssetService - # Path helper methods for the CampaignAssetService API. - module Paths - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def campaign_asset_path customer_id:, campaign_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/campaignAssets/#{campaign_id}~#{asset_id}~#{field_type}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_asset_service_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_asset_service_pb.rb deleted file mode 100644 index d0c440891..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_asset_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/campaign_asset_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/campaign_asset_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/campaign_asset_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCampaignAssetsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CampaignAssetOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CampaignAssetOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CampaignAsset" - optional :update, :message, 3, "google.ads.googleads.v12.resources.CampaignAsset" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateCampaignAssetsResponse" do - optional :partial_failure_error, :message, 1, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCampaignAssetResult" - end - add_message "google.ads.googleads.v12.services.MutateCampaignAssetResult" do - optional :resource_name, :string, 1 - optional :campaign_asset, :message, 2, "google.ads.googleads.v12.resources.CampaignAsset" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCampaignAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignAssetsRequest").msgclass - CampaignAssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CampaignAssetOperation").msgclass - MutateCampaignAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignAssetsResponse").msgclass - MutateCampaignAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignAssetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_asset_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_asset_service_services_pb.rb deleted file mode 100644 index f8fefd99c..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_asset_service_services_pb.rb +++ /dev/null @@ -1,64 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/campaign_asset_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/campaign_asset_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignAssetService - # Proto file describing the CampaignAsset service. - # - # Service to manage campaign assets. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CampaignAssetService' - - # Creates, updates, or removes campaign assets. Operation statuses are - # returned. - # - # List of thrown errors: - # [AssetLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [ContextError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [NotAllowlistedError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateCampaignAssets, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_asset_set_service.rb b/lib/google/ads/google_ads/v12/services/campaign_asset_set_service.rb deleted file mode 100644 index 2cebc2885..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_asset_set_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/campaign_asset_set_service/credentials" -require "google/ads/google_ads/v12/services/campaign_asset_set_service/paths" -require "google/ads/google_ads/v12/services/campaign_asset_set_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage campaign asset set - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/campaign_asset_set_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignAssetSetService::Client.new - # - module CampaignAssetSetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_asset_set_service", "helpers.rb" -require "google/ads/google_ads/v12/services/campaign_asset_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/campaign_asset_set_service/client.rb b/lib/google/ads/google_ads/v12/services/campaign_asset_set_service/client.rb deleted file mode 100644 index 9bf3f1921..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_asset_set_service/client.rb +++ /dev/null @@ -1,404 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/campaign_asset_set_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignAssetSetService - ## - # Client for the CampaignAssetSetService service. - # - # Service to manage campaign asset set - # - class Client - include Paths - - # @private - attr_reader :campaign_asset_set_service_stub - - ## - # Configure the CampaignAssetSetService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignAssetSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignAssetSetService clients - # ::Google::Ads::GoogleAds::V12::Services::CampaignAssetSetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignAssetSetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignAssetSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignAssetSetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignAssetSetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignAssetSetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignAssetSetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/campaign_asset_set_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_asset_set_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CampaignAssetSetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes campaign asset sets. Operation statuses are - # returned. - # - # @overload mutate_campaign_asset_sets(request, options = nil) - # Pass arguments to `mutate_campaign_asset_sets` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_asset_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_asset_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign asset sets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CampaignAssetSetOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign asset sets. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetSetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetSetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CampaignAssetSetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetSetsRequest.new - # - # # Call the mutate_campaign_asset_sets method. - # result = client.mutate_campaign_asset_sets request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetSetsResponse. - # p result - # - def mutate_campaign_asset_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_asset_sets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_asset_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_asset_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_asset_set_service_stub.call_rpc :mutate_campaign_asset_sets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignAssetSetService API. - # - # This class represents the configuration for CampaignAssetSetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CampaignAssetSetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_asset_sets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CampaignAssetSetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_asset_sets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignAssetSetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_asset_sets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CampaignAssetSetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_asset_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_asset_sets - - # @private - def initialize parent_rpcs = nil - mutate_campaign_asset_sets_config = parent_rpcs.mutate_campaign_asset_sets if parent_rpcs.respond_to? :mutate_campaign_asset_sets - @mutate_campaign_asset_sets = ::Gapic::Config::Method.new mutate_campaign_asset_sets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_asset_set_service/credentials.rb b/lib/google/ads/google_ads/v12/services/campaign_asset_set_service/credentials.rb deleted file mode 100644 index 1ef539b7a..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_asset_set_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignAssetSetService - # Credentials for the CampaignAssetSetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_asset_set_service/paths.rb b/lib/google/ads/google_ads/v12/services/campaign_asset_set_service/paths.rb deleted file mode 100644 index 30cec177b..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_asset_set_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignAssetSetService - # Path helper methods for the CampaignAssetSetService API. - module Paths - ## - # Create a fully-qualified AssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSets/#{asset_set_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignAssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def campaign_asset_set_path customer_id:, campaign_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignAssetSets/#{campaign_id}~#{asset_set_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_asset_set_service_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_asset_set_service_pb.rb deleted file mode 100644 index 052ba05e4..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_asset_set_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/campaign_asset_set_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/campaign_asset_set_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/campaign_asset_set_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCampaignAssetSetsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CampaignAssetSetOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CampaignAssetSetOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CampaignAssetSet" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateCampaignAssetSetsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateCampaignAssetSetResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateCampaignAssetSetResult" do - optional :resource_name, :string, 1 - optional :campaign_asset_set, :message, 2, "google.ads.googleads.v12.resources.CampaignAssetSet" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCampaignAssetSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignAssetSetsRequest").msgclass - CampaignAssetSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CampaignAssetSetOperation").msgclass - MutateCampaignAssetSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignAssetSetsResponse").msgclass - MutateCampaignAssetSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignAssetSetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_asset_set_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_asset_set_service_services_pb.rb deleted file mode 100644 index 50bd8577e..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_asset_set_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/campaign_asset_set_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/campaign_asset_set_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignAssetSetService - # Proto file describing the CampaignAssetSet service. - # - # Service to manage campaign asset set - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CampaignAssetSetService' - - # Creates, updates or removes campaign asset sets. Operation statuses are - # returned. - rpc :MutateCampaignAssetSets, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetSetsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignAssetSetsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service.rb b/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service.rb deleted file mode 100644 index 2c552a27f..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/campaign_bid_modifier_service/credentials" -require "google/ads/google_ads/v12/services/campaign_bid_modifier_service/paths" -require "google/ads/google_ads/v12/services/campaign_bid_modifier_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage campaign bid modifiers. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/campaign_bid_modifier_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignBidModifierService::Client.new - # - module CampaignBidModifierService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_bid_modifier_service", "helpers.rb" -require "google/ads/google_ads/v12/services/campaign_bid_modifier_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service/client.rb b/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service/client.rb deleted file mode 100644 index d7de09f0f..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service/client.rb +++ /dev/null @@ -1,428 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/campaign_bid_modifier_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignBidModifierService - ## - # Client for the CampaignBidModifierService service. - # - # Service to manage campaign bid modifiers. - # - class Client - include Paths - - # @private - attr_reader :campaign_bid_modifier_service_stub - - ## - # Configure the CampaignBidModifierService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignBidModifierService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignBidModifierService clients - # ::Google::Ads::GoogleAds::V12::Services::CampaignBidModifierService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignBidModifierService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignBidModifierService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignBidModifierService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignBidModifierService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignBidModifierService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignBidModifierService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/campaign_bid_modifier_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_bid_modifier_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CampaignBidModifierService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes campaign bid modifiers. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ContextError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_campaign_bid_modifiers(request, options = nil) - # Pass arguments to `mutate_campaign_bid_modifiers` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCampaignBidModifiersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCampaignBidModifiersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_bid_modifiers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_bid_modifiers` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose campaign bid modifiers are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CampaignBidModifierOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign bid modifiers. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCampaignBidModifiersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCampaignBidModifiersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CampaignBidModifierService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCampaignBidModifiersRequest.new - # - # # Call the mutate_campaign_bid_modifiers method. - # result = client.mutate_campaign_bid_modifiers request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCampaignBidModifiersResponse. - # p result - # - def mutate_campaign_bid_modifiers request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCampaignBidModifiersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_bid_modifiers.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_bid_modifiers.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_bid_modifiers.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_bid_modifier_service_stub.call_rpc :mutate_campaign_bid_modifiers, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignBidModifierService API. - # - # This class represents the configuration for CampaignBidModifierService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CampaignBidModifierService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_bid_modifiers to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CampaignBidModifierService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_bid_modifiers.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignBidModifierService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_bid_modifiers.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CampaignBidModifierService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_bid_modifiers` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_bid_modifiers - - # @private - def initialize parent_rpcs = nil - mutate_campaign_bid_modifiers_config = parent_rpcs.mutate_campaign_bid_modifiers if parent_rpcs.respond_to? :mutate_campaign_bid_modifiers - @mutate_campaign_bid_modifiers = ::Gapic::Config::Method.new mutate_campaign_bid_modifiers_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service/credentials.rb b/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service/credentials.rb deleted file mode 100644 index af21f7003..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignBidModifierService - # Credentials for the CampaignBidModifierService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service/paths.rb b/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service/paths.rb deleted file mode 100644 index d45c4114b..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignBidModifierService - # Path helper methods for the CampaignBidModifierService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignBidModifier resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def campaign_bid_modifier_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignBidModifiers/#{campaign_id}~#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service_pb.rb deleted file mode 100644 index 11a1f5141..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/campaign_bid_modifier_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/campaign_bid_modifier_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/campaign_bid_modifier_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCampaignBidModifiersRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CampaignBidModifierOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CampaignBidModifierOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CampaignBidModifier" - optional :update, :message, 2, "google.ads.googleads.v12.resources.CampaignBidModifier" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateCampaignBidModifiersResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCampaignBidModifierResult" - end - add_message "google.ads.googleads.v12.services.MutateCampaignBidModifierResult" do - optional :resource_name, :string, 1 - optional :campaign_bid_modifier, :message, 2, "google.ads.googleads.v12.resources.CampaignBidModifier" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCampaignBidModifiersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignBidModifiersRequest").msgclass - CampaignBidModifierOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CampaignBidModifierOperation").msgclass - MutateCampaignBidModifiersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignBidModifiersResponse").msgclass - MutateCampaignBidModifierResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignBidModifierResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service_services_pb.rb deleted file mode 100644 index a857fc3b5..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_bid_modifier_service_services_pb.rb +++ /dev/null @@ -1,74 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/campaign_bid_modifier_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/campaign_bid_modifier_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignBidModifierService - # Proto file describing the Campaign Bid Modifier service. - # - # Service to manage campaign bid modifiers. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CampaignBidModifierService' - - # Creates, updates, or removes campaign bid modifiers. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ContextError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - rpc :MutateCampaignBidModifiers, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignBidModifiersRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignBidModifiersResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_budget_service.rb b/lib/google/ads/google_ads/v12/services/campaign_budget_service.rb deleted file mode 100644 index d829ba2f3..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_budget_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/campaign_budget_service/credentials" -require "google/ads/google_ads/v12/services/campaign_budget_service/paths" -require "google/ads/google_ads/v12/services/campaign_budget_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage campaign budgets. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/campaign_budget_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignBudgetService::Client.new - # - module CampaignBudgetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_budget_service", "helpers.rb" -require "google/ads/google_ads/v12/services/campaign_budget_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/campaign_budget_service/client.rb b/lib/google/ads/google_ads/v12/services/campaign_budget_service/client.rb deleted file mode 100644 index 63f86fc91..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_budget_service/client.rb +++ /dev/null @@ -1,423 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/campaign_budget_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignBudgetService - ## - # Client for the CampaignBudgetService service. - # - # Service to manage campaign budgets. - # - class Client - include Paths - - # @private - attr_reader :campaign_budget_service_stub - - ## - # Configure the CampaignBudgetService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignBudgetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignBudgetService clients - # ::Google::Ads::GoogleAds::V12::Services::CampaignBudgetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignBudgetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignBudgetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignBudgetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignBudgetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignBudgetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignBudgetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/campaign_budget_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_budget_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CampaignBudgetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes campaign budgets. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignBudgetError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [OperationAccessDeniedError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [StringLengthError]() - # - # @overload mutate_campaign_budgets(request, options = nil) - # Pass arguments to `mutate_campaign_budgets` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCampaignBudgetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCampaignBudgetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_budgets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_budgets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign budgets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CampaignBudgetOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign budgets. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCampaignBudgetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCampaignBudgetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CampaignBudgetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCampaignBudgetsRequest.new - # - # # Call the mutate_campaign_budgets method. - # result = client.mutate_campaign_budgets request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCampaignBudgetsResponse. - # p result - # - def mutate_campaign_budgets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCampaignBudgetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_budgets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_budgets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_budgets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_budget_service_stub.call_rpc :mutate_campaign_budgets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignBudgetService API. - # - # This class represents the configuration for CampaignBudgetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CampaignBudgetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_budgets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CampaignBudgetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_budgets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignBudgetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_budgets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CampaignBudgetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_budgets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_budgets - - # @private - def initialize parent_rpcs = nil - mutate_campaign_budgets_config = parent_rpcs.mutate_campaign_budgets if parent_rpcs.respond_to? :mutate_campaign_budgets - @mutate_campaign_budgets = ::Gapic::Config::Method.new mutate_campaign_budgets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_budget_service/credentials.rb b/lib/google/ads/google_ads/v12/services/campaign_budget_service/credentials.rb deleted file mode 100644 index f9ed79ae6..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_budget_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignBudgetService - # Credentials for the CampaignBudgetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_budget_service/paths.rb b/lib/google/ads/google_ads/v12/services/campaign_budget_service/paths.rb deleted file mode 100644 index 28a880a69..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_budget_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignBudgetService - # Path helper methods for the CampaignBudgetService API. - module Paths - ## - # Create a fully-qualified CampaignBudget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` - # - # @param customer_id [String] - # @param campaign_budget_id [String] - # - # @return [::String] - def campaign_budget_path customer_id:, campaign_budget_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_budget_service_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_budget_service_pb.rb deleted file mode 100644 index c394a3b21..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_budget_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/campaign_budget_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/campaign_budget_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/campaign_budget_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCampaignBudgetsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CampaignBudgetOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CampaignBudgetOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CampaignBudget" - optional :update, :message, 2, "google.ads.googleads.v12.resources.CampaignBudget" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateCampaignBudgetsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCampaignBudgetResult" - end - add_message "google.ads.googleads.v12.services.MutateCampaignBudgetResult" do - optional :resource_name, :string, 1 - optional :campaign_budget, :message, 2, "google.ads.googleads.v12.resources.CampaignBudget" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCampaignBudgetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignBudgetsRequest").msgclass - CampaignBudgetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CampaignBudgetOperation").msgclass - MutateCampaignBudgetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignBudgetsResponse").msgclass - MutateCampaignBudgetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignBudgetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_budget_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_budget_service_services_pb.rb deleted file mode 100644 index fc14d94af..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_budget_service_services_pb.rb +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/campaign_budget_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/campaign_budget_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignBudgetService - # Proto file describing the Campaign Budget service. - # - # Service to manage campaign budgets. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CampaignBudgetService' - - # Creates, updates, or removes campaign budgets. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignBudgetError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [OperationAccessDeniedError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [StringLengthError]() - rpc :MutateCampaignBudgets, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignBudgetsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignBudgetsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service.rb b/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service.rb deleted file mode 100644 index 94518888f..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/campaign_conversion_goal_service/credentials" -require "google/ads/google_ads/v12/services/campaign_conversion_goal_service/paths" -require "google/ads/google_ads/v12/services/campaign_conversion_goal_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage campaign conversion goal. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/campaign_conversion_goal_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignConversionGoalService::Client.new - # - module CampaignConversionGoalService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_conversion_goal_service", "helpers.rb" -require "google/ads/google_ads/v12/services/campaign_conversion_goal_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service/client.rb b/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service/client.rb deleted file mode 100644 index 24a46ec51..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service/client.rb +++ /dev/null @@ -1,396 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/campaign_conversion_goal_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignConversionGoalService - ## - # Client for the CampaignConversionGoalService service. - # - # Service to manage campaign conversion goal. - # - class Client - include Paths - - # @private - attr_reader :campaign_conversion_goal_service_stub - - ## - # Configure the CampaignConversionGoalService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignConversionGoalService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignConversionGoalService clients - # ::Google::Ads::GoogleAds::V12::Services::CampaignConversionGoalService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignConversionGoalService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignConversionGoalService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignConversionGoalService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignConversionGoalService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignConversionGoalService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignConversionGoalService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/campaign_conversion_goal_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_conversion_goal_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CampaignConversionGoalService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes campaign conversion goals. Operation statuses - # are returned. - # - # @overload mutate_campaign_conversion_goals(request, options = nil) - # Pass arguments to `mutate_campaign_conversion_goals` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCampaignConversionGoalsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCampaignConversionGoalsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_conversion_goals(customer_id: nil, operations: nil, validate_only: nil) - # Pass arguments to `mutate_campaign_conversion_goals` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign conversion goals are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CampaignConversionGoalOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign conversion goal. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCampaignConversionGoalsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCampaignConversionGoalsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CampaignConversionGoalService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCampaignConversionGoalsRequest.new - # - # # Call the mutate_campaign_conversion_goals method. - # result = client.mutate_campaign_conversion_goals request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCampaignConversionGoalsResponse. - # p result - # - def mutate_campaign_conversion_goals request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCampaignConversionGoalsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_conversion_goals.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_conversion_goals.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_conversion_goals.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_conversion_goal_service_stub.call_rpc :mutate_campaign_conversion_goals, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignConversionGoalService API. - # - # This class represents the configuration for CampaignConversionGoalService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CampaignConversionGoalService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_conversion_goals to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CampaignConversionGoalService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_conversion_goals.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignConversionGoalService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_conversion_goals.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CampaignConversionGoalService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_conversion_goals` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_conversion_goals - - # @private - def initialize parent_rpcs = nil - mutate_campaign_conversion_goals_config = parent_rpcs.mutate_campaign_conversion_goals if parent_rpcs.respond_to? :mutate_campaign_conversion_goals - @mutate_campaign_conversion_goals = ::Gapic::Config::Method.new mutate_campaign_conversion_goals_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service/credentials.rb b/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service/credentials.rb deleted file mode 100644 index d163b73fc..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignConversionGoalService - # Credentials for the CampaignConversionGoalService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service/paths.rb b/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service/paths.rb deleted file mode 100644 index f7e2d8cac..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service/paths.rb +++ /dev/null @@ -1,73 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignConversionGoalService - # Path helper methods for the CampaignConversionGoalService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param category [String] - # @param source [String] - # - # @return [::String] - def campaign_conversion_goal_path customer_id:, campaign_id:, category:, source: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" - - "customers/#{customer_id}/campaignConversionGoals/#{campaign_id}~#{category}~#{source}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service_pb.rb deleted file mode 100644 index 2efb1f9c0..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/campaign_conversion_goal_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/campaign_conversion_goal_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/campaign_conversion_goal_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCampaignConversionGoalsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CampaignConversionGoalOperation" - optional :validate_only, :bool, 3 - end - add_message "google.ads.googleads.v12.services.CampaignConversionGoalOperation" do - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - oneof :operation do - optional :update, :message, 1, "google.ads.googleads.v12.resources.CampaignConversionGoal" - end - end - add_message "google.ads.googleads.v12.services.MutateCampaignConversionGoalsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateCampaignConversionGoalResult" - end - add_message "google.ads.googleads.v12.services.MutateCampaignConversionGoalResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCampaignConversionGoalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignConversionGoalsRequest").msgclass - CampaignConversionGoalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CampaignConversionGoalOperation").msgclass - MutateCampaignConversionGoalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignConversionGoalsResponse").msgclass - MutateCampaignConversionGoalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignConversionGoalResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service_services_pb.rb deleted file mode 100644 index 7df35bc20..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_conversion_goal_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/campaign_conversion_goal_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/campaign_conversion_goal_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignConversionGoalService - # Proto file describing the CampaignConversionGoal service. - # - # Service to manage campaign conversion goal. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CampaignConversionGoalService' - - # Creates, updates or removes campaign conversion goals. Operation statuses - # are returned. - rpc :MutateCampaignConversionGoals, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignConversionGoalsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignConversionGoalsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_criterion_service.rb b/lib/google/ads/google_ads/v12/services/campaign_criterion_service.rb deleted file mode 100644 index 378f1de1a..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_criterion_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/campaign_criterion_service/credentials" -require "google/ads/google_ads/v12/services/campaign_criterion_service/paths" -require "google/ads/google_ads/v12/services/campaign_criterion_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage campaign criteria. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/campaign_criterion_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignCriterionService::Client.new - # - module CampaignCriterionService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_criterion_service", "helpers.rb" -require "google/ads/google_ads/v12/services/campaign_criterion_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/campaign_criterion_service/client.rb b/lib/google/ads/google_ads/v12/services/campaign_criterion_service/client.rb deleted file mode 100644 index eed2e9945..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_criterion_service/client.rb +++ /dev/null @@ -1,434 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/campaign_criterion_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignCriterionService - ## - # Client for the CampaignCriterionService service. - # - # Service to manage campaign criteria. - # - class Client - include Paths - - # @private - attr_reader :campaign_criterion_service_stub - - ## - # Configure the CampaignCriterionService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignCriterionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignCriterionService clients - # ::Google::Ads::GoogleAds::V12::Services::CampaignCriterionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignCriterionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignCriterionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignCriterionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignCriterionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignCriterionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignCriterionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/campaign_criterion_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_criterion_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CampaignCriterionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes criteria. Operation statuses are returned. - # - # List of thrown errors: - # [AdxError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignCriterionError]() - # [CollectionSizeError]() - # [ContextError]() - # [CriterionError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [FunctionError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RegionCodeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_campaign_criteria(request, options = nil) - # Pass arguments to `mutate_campaign_criteria` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCampaignCriteriaRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCampaignCriteriaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_criteria(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_criteria` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose criteria are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CampaignCriterionOperation, ::Hash>] - # Required. The list of operations to perform on individual criteria. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCampaignCriteriaResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCampaignCriteriaResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CampaignCriterionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCampaignCriteriaRequest.new - # - # # Call the mutate_campaign_criteria method. - # result = client.mutate_campaign_criteria request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCampaignCriteriaResponse. - # p result - # - def mutate_campaign_criteria request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCampaignCriteriaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_criteria.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_criteria.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_criteria.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_criterion_service_stub.call_rpc :mutate_campaign_criteria, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignCriterionService API. - # - # This class represents the configuration for CampaignCriterionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CampaignCriterionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_criteria to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CampaignCriterionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_criteria.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignCriterionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_criteria.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CampaignCriterionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_criteria` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_criteria - - # @private - def initialize parent_rpcs = nil - mutate_campaign_criteria_config = parent_rpcs.mutate_campaign_criteria if parent_rpcs.respond_to? :mutate_campaign_criteria - @mutate_campaign_criteria = ::Gapic::Config::Method.new mutate_campaign_criteria_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_criterion_service/credentials.rb b/lib/google/ads/google_ads/v12/services/campaign_criterion_service/credentials.rb deleted file mode 100644 index b5a07913a..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_criterion_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignCriterionService - # Credentials for the CampaignCriterionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_criterion_service/paths.rb b/lib/google/ads/google_ads/v12/services/campaign_criterion_service/paths.rb deleted file mode 100644 index 796bdf020..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_criterion_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignCriterionService - # Path helper methods for the CampaignCriterionService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def campaign_criterion_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignCriteria/#{campaign_id}~#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_criterion_service_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_criterion_service_pb.rb deleted file mode 100644 index c0106377c..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_criterion_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/campaign_criterion_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/campaign_criterion_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/campaign_criterion_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCampaignCriteriaRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CampaignCriterionOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CampaignCriterionOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CampaignCriterion" - optional :update, :message, 2, "google.ads.googleads.v12.resources.CampaignCriterion" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateCampaignCriteriaResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCampaignCriterionResult" - end - add_message "google.ads.googleads.v12.services.MutateCampaignCriterionResult" do - optional :resource_name, :string, 1 - optional :campaign_criterion, :message, 2, "google.ads.googleads.v12.resources.CampaignCriterion" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCampaignCriteriaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignCriteriaRequest").msgclass - CampaignCriterionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CampaignCriterionOperation").msgclass - MutateCampaignCriteriaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignCriteriaResponse").msgclass - MutateCampaignCriterionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignCriterionResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_criterion_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_criterion_service_services_pb.rb deleted file mode 100644 index c507d7fa4..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_criterion_service_services_pb.rb +++ /dev/null @@ -1,80 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/campaign_criterion_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/campaign_criterion_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignCriterionService - # Proto file describing the Campaign Criterion service. - # - # Service to manage campaign criteria. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CampaignCriterionService' - - # Creates, updates, or removes criteria. Operation statuses are returned. - # - # List of thrown errors: - # [AdxError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignCriterionError]() - # [CollectionSizeError]() - # [ContextError]() - # [CriterionError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [FunctionError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RegionCodeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - rpc :MutateCampaignCriteria, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignCriteriaRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignCriteriaResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_customizer_service.rb b/lib/google/ads/google_ads/v12/services/campaign_customizer_service.rb deleted file mode 100644 index b053a81d9..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_customizer_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/campaign_customizer_service/credentials" -require "google/ads/google_ads/v12/services/campaign_customizer_service/paths" -require "google/ads/google_ads/v12/services/campaign_customizer_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage campaign customizer - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/campaign_customizer_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignCustomizerService::Client.new - # - module CampaignCustomizerService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_customizer_service", "helpers.rb" -require "google/ads/google_ads/v12/services/campaign_customizer_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/campaign_customizer_service/client.rb b/lib/google/ads/google_ads/v12/services/campaign_customizer_service/client.rb deleted file mode 100644 index bb2eb704f..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_customizer_service/client.rb +++ /dev/null @@ -1,404 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/campaign_customizer_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignCustomizerService - ## - # Client for the CampaignCustomizerService service. - # - # Service to manage campaign customizer - # - class Client - include Paths - - # @private - attr_reader :campaign_customizer_service_stub - - ## - # Configure the CampaignCustomizerService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignCustomizerService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignCustomizerService clients - # ::Google::Ads::GoogleAds::V12::Services::CampaignCustomizerService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignCustomizerService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignCustomizerService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignCustomizerService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignCustomizerService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignCustomizerService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignCustomizerService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/campaign_customizer_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_customizer_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CampaignCustomizerService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes campaign customizers. Operation statuses are - # returned. - # - # @overload mutate_campaign_customizers(request, options = nil) - # Pass arguments to `mutate_campaign_customizers` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCampaignCustomizersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCampaignCustomizersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_customizers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_customizers` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign customizers are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CampaignCustomizerOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign customizers. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCampaignCustomizersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCampaignCustomizersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CampaignCustomizerService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCampaignCustomizersRequest.new - # - # # Call the mutate_campaign_customizers method. - # result = client.mutate_campaign_customizers request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCampaignCustomizersResponse. - # p result - # - def mutate_campaign_customizers request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCampaignCustomizersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_customizers.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_customizers.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_customizers.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_customizer_service_stub.call_rpc :mutate_campaign_customizers, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignCustomizerService API. - # - # This class represents the configuration for CampaignCustomizerService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CampaignCustomizerService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_customizers to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CampaignCustomizerService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_customizers.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignCustomizerService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_customizers.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CampaignCustomizerService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_customizers` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_customizers - - # @private - def initialize parent_rpcs = nil - mutate_campaign_customizers_config = parent_rpcs.mutate_campaign_customizers if parent_rpcs.respond_to? :mutate_campaign_customizers - @mutate_campaign_customizers = ::Gapic::Config::Method.new mutate_campaign_customizers_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_customizer_service/credentials.rb b/lib/google/ads/google_ads/v12/services/campaign_customizer_service/credentials.rb deleted file mode 100644 index b3fc204dd..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_customizer_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignCustomizerService - # Credentials for the CampaignCustomizerService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_customizer_service/paths.rb b/lib/google/ads/google_ads/v12/services/campaign_customizer_service/paths.rb deleted file mode 100644 index 932b1bf94..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_customizer_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignCustomizerService - # Path helper methods for the CampaignCustomizerService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def campaign_customizer_path customer_id:, campaign_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignCustomizers/#{campaign_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified CustomizerAttribute resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customizer_attribute_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_customizer_service_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_customizer_service_pb.rb deleted file mode 100644 index 745b3e470..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_customizer_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/campaign_customizer_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/campaign_customizer_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/campaign_customizer_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCampaignCustomizersRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CampaignCustomizerOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CampaignCustomizerOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CampaignCustomizer" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateCampaignCustomizersResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateCampaignCustomizerResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateCampaignCustomizerResult" do - optional :resource_name, :string, 1 - optional :campaign_customizer, :message, 2, "google.ads.googleads.v12.resources.CampaignCustomizer" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCampaignCustomizersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignCustomizersRequest").msgclass - CampaignCustomizerOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CampaignCustomizerOperation").msgclass - MutateCampaignCustomizersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignCustomizersResponse").msgclass - MutateCampaignCustomizerResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignCustomizerResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_customizer_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_customizer_service_services_pb.rb deleted file mode 100644 index ab37b8e38..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_customizer_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/campaign_customizer_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/campaign_customizer_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignCustomizerService - # Proto file describing the CampaignCustomizer service. - # - # Service to manage campaign customizer - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CampaignCustomizerService' - - # Creates, updates or removes campaign customizers. Operation statuses are - # returned. - rpc :MutateCampaignCustomizers, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignCustomizersRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignCustomizersResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_draft_service.rb b/lib/google/ads/google_ads/v12/services/campaign_draft_service.rb deleted file mode 100644 index d59da2489..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_draft_service.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/campaign_draft_service/credentials" -require "google/ads/google_ads/v12/services/campaign_draft_service/paths" -require "google/ads/google_ads/v12/services/campaign_draft_service/operations" -require "google/ads/google_ads/v12/services/campaign_draft_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage campaign drafts. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/campaign_draft_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignDraftService::Client.new - # - module CampaignDraftService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_draft_service", "helpers.rb" -require "google/ads/google_ads/v12/services/campaign_draft_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/campaign_draft_service/client.rb b/lib/google/ads/google_ads/v12/services/campaign_draft_service/client.rb deleted file mode 100644 index 7506544c3..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_draft_service/client.rb +++ /dev/null @@ -1,672 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/campaign_draft_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignDraftService - ## - # Client for the CampaignDraftService service. - # - # Service to manage campaign drafts. - # - class Client - include Paths - - # @private - attr_reader :campaign_draft_service_stub - - ## - # Configure the CampaignDraftService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignDraftService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignDraftService clients - # ::Google::Ads::GoogleAds::V12::Services::CampaignDraftService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignDraftService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignDraftService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignDraftService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignDraftService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignDraftService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignDraftService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/campaign_draft_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - end - - @campaign_draft_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CampaignDraftService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Ads::GoogleAds::V12::Services::CampaignDraftService::Operations] - # - attr_reader :operations_client - - # Service calls - - ## - # Creates, updates, or removes campaign drafts. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignDraftError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_campaign_drafts(request, options = nil) - # Pass arguments to `mutate_campaign_drafts` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCampaignDraftsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCampaignDraftsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_drafts(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_drafts` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign drafts are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CampaignDraftOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign drafts. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCampaignDraftsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCampaignDraftsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CampaignDraftService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCampaignDraftsRequest.new - # - # # Call the mutate_campaign_drafts method. - # result = client.mutate_campaign_drafts request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCampaignDraftsResponse. - # p result - # - def mutate_campaign_drafts request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCampaignDraftsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_drafts.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_drafts.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_drafts.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_draft_service_stub.call_rpc :mutate_campaign_drafts, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Promotes the changes in a draft back to the base campaign. - # - # This method returns a Long Running Operation (LRO) indicating if the - # Promote is done. Use [Operations.GetOperation] to poll the LRO until it - # is done. Only a done status is returned in the response. See the status - # in the Campaign Draft resource to determine if the promotion was - # successful. If the LRO failed, use - # {::Google::Ads::GoogleAds::V12::Services::CampaignDraftService::Client#list_campaign_draft_async_errors CampaignDraftService.ListCampaignDraftAsyncErrors} to view the list of - # error reasons. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignDraftError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload promote_campaign_draft(request, options = nil) - # Pass arguments to `promote_campaign_draft` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::PromoteCampaignDraftRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::PromoteCampaignDraftRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload promote_campaign_draft(campaign_draft: nil, validate_only: nil) - # Pass arguments to `promote_campaign_draft` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param campaign_draft [::String] - # Required. The resource name of the campaign draft to promote. - # @param validate_only [::Boolean] - # If true, the request is validated but no Long Running Operation is created. - # Only errors are returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CampaignDraftService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::PromoteCampaignDraftRequest.new - # - # # Call the promote_campaign_draft method. - # result = client.promote_campaign_draft request - # - # # The returned object is of type Gapic::Operation. You can use this - # # object to check the status of an operation, cancel it, or wait - # # for results. Here is how to block until completion: - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "Error!" - # end - # - def promote_campaign_draft request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::PromoteCampaignDraftRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.promote_campaign_draft.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.campaign_draft - header_params["campaign_draft"] = request.campaign_draft - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.promote_campaign_draft.timeout, - metadata: metadata, - retry_policy: @config.rpcs.promote_campaign_draft.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_draft_service_stub.call_rpc :promote_campaign_draft, request, - options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns all errors that occurred during CampaignDraft promote. Throws an - # error if called before campaign draft is promoted. - # Supports standard list paging. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_campaign_draft_async_errors(request, options = nil) - # Pass arguments to `list_campaign_draft_async_errors` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::ListCampaignDraftAsyncErrorsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::ListCampaignDraftAsyncErrorsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_campaign_draft_async_errors(resource_name: nil, page_token: nil, page_size: nil) - # Pass arguments to `list_campaign_draft_async_errors` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The name of the campaign draft from which to retrieve the async errors. - # @param page_token [::String] - # Token of the page to retrieve. If not specified, the first - # page of results will be returned. Use the value obtained from - # `next_page_token` in the previous response in order to request - # the next page of results. - # @param page_size [::Integer] - # Number of elements to retrieve in a single page. - # When a page request is too large, the server may decide to - # further limit the number of returned resources. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Rpc::Status>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Rpc::Status>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CampaignDraftService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::ListCampaignDraftAsyncErrorsRequest.new - # - # # Call the list_campaign_draft_async_errors method. - # result = client.list_campaign_draft_async_errors request - # - # # The returned object is of type Gapic::PagedEnumerable. You can - # # iterate over all elements by calling #each, and the enumerable - # # will lazily make API calls to fetch subsequent pages. Other - # # methods are also available for managing paging directly. - # result.each do |response| - # # Each element is of type ::Google::Rpc::Status. - # p response - # end - # - def list_campaign_draft_async_errors request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::ListCampaignDraftAsyncErrorsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_campaign_draft_async_errors.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_campaign_draft_async_errors.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_campaign_draft_async_errors.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_draft_service_stub.call_rpc :list_campaign_draft_async_errors, request, - options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @campaign_draft_service_stub, - :list_campaign_draft_async_errors, request, response, operation, options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignDraftService API. - # - # This class represents the configuration for CampaignDraftService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CampaignDraftService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_drafts to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CampaignDraftService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_drafts.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignDraftService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_drafts.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CampaignDraftService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_drafts` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_drafts - ## - # RPC-specific configuration for `promote_campaign_draft` - # @return [::Gapic::Config::Method] - # - attr_reader :promote_campaign_draft - ## - # RPC-specific configuration for `list_campaign_draft_async_errors` - # @return [::Gapic::Config::Method] - # - attr_reader :list_campaign_draft_async_errors - - # @private - def initialize parent_rpcs = nil - mutate_campaign_drafts_config = parent_rpcs.mutate_campaign_drafts if parent_rpcs.respond_to? :mutate_campaign_drafts - @mutate_campaign_drafts = ::Gapic::Config::Method.new mutate_campaign_drafts_config - promote_campaign_draft_config = parent_rpcs.promote_campaign_draft if parent_rpcs.respond_to? :promote_campaign_draft - @promote_campaign_draft = ::Gapic::Config::Method.new promote_campaign_draft_config - list_campaign_draft_async_errors_config = parent_rpcs.list_campaign_draft_async_errors if parent_rpcs.respond_to? :list_campaign_draft_async_errors - @list_campaign_draft_async_errors = ::Gapic::Config::Method.new list_campaign_draft_async_errors_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_draft_service/credentials.rb b/lib/google/ads/google_ads/v12/services/campaign_draft_service/credentials.rb deleted file mode 100644 index 5fdcc0173..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_draft_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignDraftService - # Credentials for the CampaignDraftService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_draft_service/operations.rb b/lib/google/ads/google_ads/v12/services/campaign_draft_service/operations.rb deleted file mode 100644 index b1cb42dc0..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_draft_service/operations.rb +++ /dev/null @@ -1,774 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignDraftService - # Service that implements Longrunning Operations API. - class Operations - # @private - attr_reader :operations_stub - - ## - # Configuration for the CampaignDraftService Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignDraftService Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/{name=users/*}/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can - # # iterate over all elements by calling #each, and the enumerable - # # will lazily make API calls to fetch subsequent pages. Other - # # methods are also available for managing paging directly. - # result.each do |response| - # # Each element is of type ::Google::Longrunning::Operation. - # p response - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, - operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use this - # # object to check the status of an operation, cancel it, or wait - # # for results. Here is how to block until completion: - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "Error!" - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1, - # corresponding to `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use this - # # object to check the status of an operation, cancel it, or wait - # # for results. Here is how to block until completion: - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "Error!" - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_draft_service/paths.rb b/lib/google/ads/google_ads/v12/services/campaign_draft_service/paths.rb deleted file mode 100644 index bce79d2f2..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_draft_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignDraftService - # Path helper methods for the CampaignDraftService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignDraft resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` - # - # @param customer_id [String] - # @param base_campaign_id [String] - # @param draft_id [String] - # - # @return [::String] - def campaign_draft_path customer_id:, base_campaign_id:, draft_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "base_campaign_id cannot contain /" if base_campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignDrafts/#{base_campaign_id}~#{draft_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_draft_service_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_draft_service_pb.rb deleted file mode 100644 index b00da7b90..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_draft_service_pb.rb +++ /dev/null @@ -1,73 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/campaign_draft_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/campaign_draft_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/campaign_draft_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCampaignDraftsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CampaignDraftOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.PromoteCampaignDraftRequest" do - optional :campaign_draft, :string, 1 - optional :validate_only, :bool, 2 - end - add_message "google.ads.googleads.v12.services.CampaignDraftOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CampaignDraft" - optional :update, :message, 2, "google.ads.googleads.v12.resources.CampaignDraft" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateCampaignDraftsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCampaignDraftResult" - end - add_message "google.ads.googleads.v12.services.MutateCampaignDraftResult" do - optional :resource_name, :string, 1 - optional :campaign_draft, :message, 2, "google.ads.googleads.v12.resources.CampaignDraft" - end - add_message "google.ads.googleads.v12.services.ListCampaignDraftAsyncErrorsRequest" do - optional :resource_name, :string, 1 - optional :page_token, :string, 2 - optional :page_size, :int32, 3 - end - add_message "google.ads.googleads.v12.services.ListCampaignDraftAsyncErrorsResponse" do - repeated :errors, :message, 1, "google.rpc.Status" - optional :next_page_token, :string, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCampaignDraftsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignDraftsRequest").msgclass - PromoteCampaignDraftRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.PromoteCampaignDraftRequest").msgclass - CampaignDraftOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CampaignDraftOperation").msgclass - MutateCampaignDraftsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignDraftsResponse").msgclass - MutateCampaignDraftResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignDraftResult").msgclass - ListCampaignDraftAsyncErrorsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListCampaignDraftAsyncErrorsRequest").msgclass - ListCampaignDraftAsyncErrorsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListCampaignDraftAsyncErrorsResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_draft_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_draft_service_services_pb.rb deleted file mode 100644 index 2d3b046f7..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_draft_service_services_pb.rb +++ /dev/null @@ -1,93 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/campaign_draft_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/campaign_draft_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignDraftService - # Proto file describing the Campaign Draft service. - # - # Service to manage campaign drafts. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CampaignDraftService' - - # Creates, updates, or removes campaign drafts. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignDraftError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateCampaignDrafts, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignDraftsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignDraftsResponse - # Promotes the changes in a draft back to the base campaign. - # - # This method returns a Long Running Operation (LRO) indicating if the - # Promote is done. Use [Operations.GetOperation] to poll the LRO until it - # is done. Only a done status is returned in the response. See the status - # in the Campaign Draft resource to determine if the promotion was - # successful. If the LRO failed, use - # [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - # error reasons. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignDraftError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :PromoteCampaignDraft, ::Google::Ads::GoogleAds::V12::Services::PromoteCampaignDraftRequest, ::Google::Longrunning::Operation - # Returns all errors that occurred during CampaignDraft promote. Throws an - # error if called before campaign draft is promoted. - # Supports standard list paging. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :ListCampaignDraftAsyncErrors, ::Google::Ads::GoogleAds::V12::Services::ListCampaignDraftAsyncErrorsRequest, ::Google::Ads::GoogleAds::V12::Services::ListCampaignDraftAsyncErrorsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service.rb b/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service.rb deleted file mode 100644 index 935943dba..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/campaign_extension_setting_service/credentials" -require "google/ads/google_ads/v12/services/campaign_extension_setting_service/paths" -require "google/ads/google_ads/v12/services/campaign_extension_setting_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage campaign extension settings. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/campaign_extension_setting_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignExtensionSettingService::Client.new - # - module CampaignExtensionSettingService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_extension_setting_service", "helpers.rb" -require "google/ads/google_ads/v12/services/campaign_extension_setting_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service/client.rb b/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service/client.rb deleted file mode 100644 index 5f80bf31e..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service/client.rb +++ /dev/null @@ -1,435 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/campaign_extension_setting_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignExtensionSettingService - ## - # Client for the CampaignExtensionSettingService service. - # - # Service to manage campaign extension settings. - # - class Client - include Paths - - # @private - attr_reader :campaign_extension_setting_service_stub - - ## - # Configure the CampaignExtensionSettingService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignExtensionSettingService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignExtensionSettingService clients - # ::Google::Ads::GoogleAds::V12::Services::CampaignExtensionSettingService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignExtensionSettingService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignExtensionSettingService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignExtensionSettingService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignExtensionSettingService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignExtensionSettingService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignExtensionSettingService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/campaign_extension_setting_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_extension_setting_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CampaignExtensionSettingService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes campaign extension settings. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [ExtensionSettingError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_campaign_extension_settings(request, options = nil) - # Pass arguments to `mutate_campaign_extension_settings` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCampaignExtensionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCampaignExtensionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_extension_settings(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_extension_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign extension settings are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CampaignExtensionSettingOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign extension - # settings. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCampaignExtensionSettingsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCampaignExtensionSettingsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CampaignExtensionSettingService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCampaignExtensionSettingsRequest.new - # - # # Call the mutate_campaign_extension_settings method. - # result = client.mutate_campaign_extension_settings request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCampaignExtensionSettingsResponse. - # p result - # - def mutate_campaign_extension_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCampaignExtensionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_extension_settings.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_extension_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_extension_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_extension_setting_service_stub.call_rpc :mutate_campaign_extension_settings, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignExtensionSettingService API. - # - # This class represents the configuration for CampaignExtensionSettingService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CampaignExtensionSettingService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_extension_settings to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CampaignExtensionSettingService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_extension_settings.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignExtensionSettingService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_extension_settings.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CampaignExtensionSettingService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_extension_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_extension_settings - - # @private - def initialize parent_rpcs = nil - mutate_campaign_extension_settings_config = parent_rpcs.mutate_campaign_extension_settings if parent_rpcs.respond_to? :mutate_campaign_extension_settings - @mutate_campaign_extension_settings = ::Gapic::Config::Method.new mutate_campaign_extension_settings_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service/credentials.rb b/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service/credentials.rb deleted file mode 100644 index 6443ac4e4..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignExtensionSettingService - # Credentials for the CampaignExtensionSettingService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service/paths.rb b/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service/paths.rb deleted file mode 100644 index 57a7f1909..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignExtensionSettingService - # Path helper methods for the CampaignExtensionSettingService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param extension_type [String] - # - # @return [::String] - def campaign_extension_setting_path customer_id:, campaign_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignExtensionSettings/#{campaign_id}~#{extension_type}" - end - - ## - # Create a fully-qualified ExtensionFeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - # - # @param customer_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def extension_feed_item_path customer_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service_pb.rb deleted file mode 100644 index f91da6d70..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/campaign_extension_setting_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/campaign_extension_setting_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/campaign_extension_setting_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCampaignExtensionSettingsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CampaignExtensionSettingOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CampaignExtensionSettingOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CampaignExtensionSetting" - optional :update, :message, 2, "google.ads.googleads.v12.resources.CampaignExtensionSetting" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateCampaignExtensionSettingsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCampaignExtensionSettingResult" - end - add_message "google.ads.googleads.v12.services.MutateCampaignExtensionSettingResult" do - optional :resource_name, :string, 1 - optional :campaign_extension_setting, :message, 2, "google.ads.googleads.v12.resources.CampaignExtensionSetting" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCampaignExtensionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignExtensionSettingsRequest").msgclass - CampaignExtensionSettingOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CampaignExtensionSettingOperation").msgclass - MutateCampaignExtensionSettingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignExtensionSettingsResponse").msgclass - MutateCampaignExtensionSettingResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignExtensionSettingResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service_services_pb.rb deleted file mode 100644 index bd2ff87fe..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_extension_setting_service_services_pb.rb +++ /dev/null @@ -1,79 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/campaign_extension_setting_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/campaign_extension_setting_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignExtensionSettingService - # Proto file describing the CampaignExtensionSetting service. - # - # Service to manage campaign extension settings. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CampaignExtensionSettingService' - - # Creates, updates, or removes campaign extension settings. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [ExtensionSettingError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - rpc :MutateCampaignExtensionSettings, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignExtensionSettingsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignExtensionSettingsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_feed_service.rb b/lib/google/ads/google_ads/v12/services/campaign_feed_service.rb deleted file mode 100644 index 3c91a0793..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_feed_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/campaign_feed_service/credentials" -require "google/ads/google_ads/v12/services/campaign_feed_service/paths" -require "google/ads/google_ads/v12/services/campaign_feed_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage campaign feeds. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/campaign_feed_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignFeedService::Client.new - # - module CampaignFeedService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_feed_service", "helpers.rb" -require "google/ads/google_ads/v12/services/campaign_feed_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/campaign_feed_service/client.rb b/lib/google/ads/google_ads/v12/services/campaign_feed_service/client.rb deleted file mode 100644 index 15637b0be..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_feed_service/client.rb +++ /dev/null @@ -1,429 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/campaign_feed_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignFeedService - ## - # Client for the CampaignFeedService service. - # - # Service to manage campaign feeds. - # - class Client - include Paths - - # @private - attr_reader :campaign_feed_service_stub - - ## - # Configure the CampaignFeedService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignFeedService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignFeedService clients - # ::Google::Ads::GoogleAds::V12::Services::CampaignFeedService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignFeedService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignFeedService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignFeedService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignFeedService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignFeedService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignFeedService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/campaign_feed_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_feed_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CampaignFeedService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes campaign feeds. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignFeedError]() - # [CollectionSizeError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FunctionError]() - # [FunctionParsingError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_campaign_feeds(request, options = nil) - # Pass arguments to `mutate_campaign_feeds` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCampaignFeedsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCampaignFeedsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_feeds(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_feeds` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign feeds are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CampaignFeedOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign feeds. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCampaignFeedsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCampaignFeedsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CampaignFeedService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCampaignFeedsRequest.new - # - # # Call the mutate_campaign_feeds method. - # result = client.mutate_campaign_feeds request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCampaignFeedsResponse. - # p result - # - def mutate_campaign_feeds request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCampaignFeedsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_feeds.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_feeds.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_feeds.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_feed_service_stub.call_rpc :mutate_campaign_feeds, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignFeedService API. - # - # This class represents the configuration for CampaignFeedService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CampaignFeedService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_feeds to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CampaignFeedService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_feeds.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignFeedService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_feeds.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CampaignFeedService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_feeds` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_feeds - - # @private - def initialize parent_rpcs = nil - mutate_campaign_feeds_config = parent_rpcs.mutate_campaign_feeds if parent_rpcs.respond_to? :mutate_campaign_feeds - @mutate_campaign_feeds = ::Gapic::Config::Method.new mutate_campaign_feeds_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_feed_service/credentials.rb b/lib/google/ads/google_ads/v12/services/campaign_feed_service/credentials.rb deleted file mode 100644 index d100756c8..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_feed_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignFeedService - # Credentials for the CampaignFeedService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_feed_service/paths.rb b/lib/google/ads/google_ads/v12/services/campaign_feed_service/paths.rb deleted file mode 100644 index 10ca6912a..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_feed_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignFeedService - # Path helper methods for the CampaignFeedService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param feed_id [String] - # - # @return [::String] - def campaign_feed_path customer_id:, campaign_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignFeeds/#{campaign_id}~#{feed_id}" - end - - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_feed_service_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_feed_service_pb.rb deleted file mode 100644 index de70bfbed..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_feed_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/campaign_feed_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/campaign_feed_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/campaign_feed_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCampaignFeedsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CampaignFeedOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CampaignFeedOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CampaignFeed" - optional :update, :message, 2, "google.ads.googleads.v12.resources.CampaignFeed" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateCampaignFeedsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCampaignFeedResult" - end - add_message "google.ads.googleads.v12.services.MutateCampaignFeedResult" do - optional :resource_name, :string, 1 - optional :campaign_feed, :message, 2, "google.ads.googleads.v12.resources.CampaignFeed" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCampaignFeedsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignFeedsRequest").msgclass - CampaignFeedOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CampaignFeedOperation").msgclass - MutateCampaignFeedsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignFeedsResponse").msgclass - MutateCampaignFeedResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignFeedResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_feed_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_feed_service_services_pb.rb deleted file mode 100644 index c77f275d1..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_feed_service_services_pb.rb +++ /dev/null @@ -1,75 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/campaign_feed_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/campaign_feed_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignFeedService - # Proto file describing the CampaignFeed service. - # - # Service to manage campaign feeds. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CampaignFeedService' - - # Creates, updates, or removes campaign feeds. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignFeedError]() - # [CollectionSizeError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FunctionError]() - # [FunctionParsingError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - rpc :MutateCampaignFeeds, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignFeedsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignFeedsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_group_service.rb b/lib/google/ads/google_ads/v12/services/campaign_group_service.rb deleted file mode 100644 index ca82ba118..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_group_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/campaign_group_service/credentials" -require "google/ads/google_ads/v12/services/campaign_group_service/paths" -require "google/ads/google_ads/v12/services/campaign_group_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage campaign groups. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/campaign_group_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignGroupService::Client.new - # - module CampaignGroupService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_group_service", "helpers.rb" -require "google/ads/google_ads/v12/services/campaign_group_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/campaign_group_service/client.rb b/lib/google/ads/google_ads/v12/services/campaign_group_service/client.rb deleted file mode 100644 index c62205fa9..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_group_service/client.rb +++ /dev/null @@ -1,404 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/campaign_group_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignGroupService - ## - # Client for the CampaignGroupService service. - # - # Service to manage campaign groups. - # - class Client - include Paths - - # @private - attr_reader :campaign_group_service_stub - - ## - # Configure the CampaignGroupService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignGroupService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignGroupService clients - # ::Google::Ads::GoogleAds::V12::Services::CampaignGroupService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignGroupService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignGroupService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignGroupService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignGroupService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignGroupService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignGroupService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/campaign_group_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_group_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CampaignGroupService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes campaign groups. Operation statuses are - # returned. - # - # @overload mutate_campaign_groups(request, options = nil) - # Pass arguments to `mutate_campaign_groups` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCampaignGroupsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCampaignGroupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_groups(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_groups` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign groups are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CampaignGroupOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign groups. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCampaignGroupsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCampaignGroupsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CampaignGroupService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCampaignGroupsRequest.new - # - # # Call the mutate_campaign_groups method. - # result = client.mutate_campaign_groups request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCampaignGroupsResponse. - # p result - # - def mutate_campaign_groups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCampaignGroupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_groups.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_groups.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_groups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_group_service_stub.call_rpc :mutate_campaign_groups, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignGroupService API. - # - # This class represents the configuration for CampaignGroupService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CampaignGroupService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_groups to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CampaignGroupService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_groups.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignGroupService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_groups.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CampaignGroupService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_groups` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_groups - - # @private - def initialize parent_rpcs = nil - mutate_campaign_groups_config = parent_rpcs.mutate_campaign_groups if parent_rpcs.respond_to? :mutate_campaign_groups - @mutate_campaign_groups = ::Gapic::Config::Method.new mutate_campaign_groups_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_group_service/credentials.rb b/lib/google/ads/google_ads/v12/services/campaign_group_service/credentials.rb deleted file mode 100644 index fdc57fa57..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_group_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignGroupService - # Credentials for the CampaignGroupService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_group_service/paths.rb b/lib/google/ads/google_ads/v12/services/campaign_group_service/paths.rb deleted file mode 100644 index a3dd0093d..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_group_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignGroupService - # Path helper methods for the CampaignGroupService API. - module Paths - ## - # Create a fully-qualified CampaignGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignGroups/{campaign_group_id}` - # - # @param customer_id [String] - # @param campaign_group_id [String] - # - # @return [::String] - def campaign_group_path customer_id:, campaign_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignGroups/#{campaign_group_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_group_service_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_group_service_pb.rb deleted file mode 100644 index 0b11d8925..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_group_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/campaign_group_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/campaign_group_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/campaign_group_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCampaignGroupsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CampaignGroupOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CampaignGroupOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CampaignGroup" - optional :update, :message, 2, "google.ads.googleads.v12.resources.CampaignGroup" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateCampaignGroupsResponse" do - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCampaignGroupResult" - optional :partial_failure_error, :message, 3, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateCampaignGroupResult" do - optional :resource_name, :string, 1 - optional :campaign_group, :message, 2, "google.ads.googleads.v12.resources.CampaignGroup" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCampaignGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignGroupsRequest").msgclass - CampaignGroupOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CampaignGroupOperation").msgclass - MutateCampaignGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignGroupsResponse").msgclass - MutateCampaignGroupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignGroupResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_group_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_group_service_services_pb.rb deleted file mode 100644 index 6a30af7f0..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_group_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/campaign_group_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/campaign_group_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignGroupService - # Proto file describing the Campaign group service. - # - # Service to manage campaign groups. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CampaignGroupService' - - # Creates, updates, or removes campaign groups. Operation statuses are - # returned. - rpc :MutateCampaignGroups, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignGroupsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignGroupsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_label_service.rb b/lib/google/ads/google_ads/v12/services/campaign_label_service.rb deleted file mode 100644 index 48953caa7..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_label_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/campaign_label_service/credentials" -require "google/ads/google_ads/v12/services/campaign_label_service/paths" -require "google/ads/google_ads/v12/services/campaign_label_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage labels on campaigns. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/campaign_label_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignLabelService::Client.new - # - module CampaignLabelService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_label_service", "helpers.rb" -require "google/ads/google_ads/v12/services/campaign_label_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/campaign_label_service/client.rb b/lib/google/ads/google_ads/v12/services/campaign_label_service/client.rb deleted file mode 100644 index 0ade4878f..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_label_service/client.rb +++ /dev/null @@ -1,414 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/campaign_label_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignLabelService - ## - # Client for the CampaignLabelService service. - # - # Service to manage labels on campaigns. - # - class Client - include Paths - - # @private - attr_reader :campaign_label_service_stub - - ## - # Configure the CampaignLabelService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignLabelService clients - # ::Google::Ads::GoogleAds::V12::Services::CampaignLabelService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignLabelService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignLabelService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignLabelService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignLabelService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignLabelService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/campaign_label_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_label_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CampaignLabelService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates and removes campaign-label relationships. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [LabelError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_campaign_labels(request, options = nil) - # Pass arguments to `mutate_campaign_labels` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCampaignLabelsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCampaignLabelsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_campaign_labels` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose campaign-label relationships are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CampaignLabelOperation, ::Hash>] - # Required. The list of operations to perform on campaign-label relationships. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCampaignLabelsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCampaignLabelsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CampaignLabelService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCampaignLabelsRequest.new - # - # # Call the mutate_campaign_labels method. - # result = client.mutate_campaign_labels request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCampaignLabelsResponse. - # p result - # - def mutate_campaign_labels request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCampaignLabelsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_labels.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_labels.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_labels.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_label_service_stub.call_rpc :mutate_campaign_labels, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignLabelService API. - # - # This class represents the configuration for CampaignLabelService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CampaignLabelService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_labels to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CampaignLabelService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_labels.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignLabelService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_labels.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CampaignLabelService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_labels` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_labels - - # @private - def initialize parent_rpcs = nil - mutate_campaign_labels_config = parent_rpcs.mutate_campaign_labels if parent_rpcs.respond_to? :mutate_campaign_labels - @mutate_campaign_labels = ::Gapic::Config::Method.new mutate_campaign_labels_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_label_service/credentials.rb b/lib/google/ads/google_ads/v12/services/campaign_label_service/credentials.rb deleted file mode 100644 index 190278aa9..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_label_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignLabelService - # Credentials for the CampaignLabelService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_label_service/paths.rb b/lib/google/ads/google_ads/v12/services/campaign_label_service/paths.rb deleted file mode 100644 index 347cc94be..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_label_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignLabelService - # Path helper methods for the CampaignLabelService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param label_id [String] - # - # @return [::String] - def campaign_label_path customer_id:, campaign_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignLabels/#{campaign_id}~#{label_id}" - end - - ## - # Create a fully-qualified Label resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/labels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/labels/#{label_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_label_service_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_label_service_pb.rb deleted file mode 100644 index 1551be7cd..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_label_service_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/campaign_label_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/campaign_label_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/campaign_label_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCampaignLabelsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CampaignLabelOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.CampaignLabelOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CampaignLabel" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateCampaignLabelsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCampaignLabelResult" - end - add_message "google.ads.googleads.v12.services.MutateCampaignLabelResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCampaignLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignLabelsRequest").msgclass - CampaignLabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CampaignLabelOperation").msgclass - MutateCampaignLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignLabelsResponse").msgclass - MutateCampaignLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignLabelResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_label_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_label_service_services_pb.rb deleted file mode 100644 index 603ce8f17..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_label_service_services_pb.rb +++ /dev/null @@ -1,63 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/campaign_label_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/campaign_label_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignLabelService - # Proto file describing the Campaign Label service. - # - # Service to manage labels on campaigns. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CampaignLabelService' - - # Creates and removes campaign-label relationships. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [LabelError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateCampaignLabels, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignLabelsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignLabelsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_service.rb b/lib/google/ads/google_ads/v12/services/campaign_service.rb deleted file mode 100644 index d5683b0bd..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/campaign_service/credentials" -require "google/ads/google_ads/v12/services/campaign_service/paths" -require "google/ads/google_ads/v12/services/campaign_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage campaigns. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/campaign_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignService::Client.new - # - module CampaignService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_service", "helpers.rb" -require "google/ads/google_ads/v12/services/campaign_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/campaign_service/client.rb b/lib/google/ads/google_ads/v12/services/campaign_service/client.rb deleted file mode 100644 index 411c53b2f..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_service/client.rb +++ /dev/null @@ -1,439 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/campaign_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignService - ## - # Client for the CampaignService service. - # - # Service to manage campaigns. - # - class Client - include Paths - - # @private - attr_reader :campaign_service_stub - - ## - # Configure the CampaignService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignService clients - # ::Google::Ads::GoogleAds::V12::Services::CampaignService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/campaign_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CampaignService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes campaigns. Operation statuses are returned. - # - # List of thrown errors: - # [AdxError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [BiddingError]() - # [BiddingStrategyError]() - # [CampaignBudgetError]() - # [CampaignError]() - # [ContextError]() - # [DatabaseError]() - # [DateError]() - # [DateRangeError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotAllowlistedError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RegionCodeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SettingError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_campaigns(request, options = nil) - # Pass arguments to `mutate_campaigns` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCampaignsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCampaignsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaigns(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaigns` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaigns are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CampaignOperation, ::Hash>] - # Required. The list of operations to perform on individual campaigns. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCampaignsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCampaignsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CampaignService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCampaignsRequest.new - # - # # Call the mutate_campaigns method. - # result = client.mutate_campaigns request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCampaignsResponse. - # p result - # - def mutate_campaigns request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCampaignsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaigns.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaigns.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaigns.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_service_stub.call_rpc :mutate_campaigns, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignService API. - # - # This class represents the configuration for CampaignService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CampaignService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaigns to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CampaignService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaigns.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaigns.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CampaignService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaigns` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaigns - - # @private - def initialize parent_rpcs = nil - mutate_campaigns_config = parent_rpcs.mutate_campaigns if parent_rpcs.respond_to? :mutate_campaigns - @mutate_campaigns = ::Gapic::Config::Method.new mutate_campaigns_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_service/credentials.rb b/lib/google/ads/google_ads/v12/services/campaign_service/credentials.rb deleted file mode 100644 index e516440dd..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignService - # Credentials for the CampaignService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_service/paths.rb b/lib/google/ads/google_ads/v12/services/campaign_service/paths.rb deleted file mode 100644 index 842699666..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_service/paths.rb +++ /dev/null @@ -1,173 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignService - # Path helper methods for the CampaignService API. - module Paths - ## - # Create a fully-qualified AccessibleBiddingStrategy resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}` - # - # @param customer_id [String] - # @param bidding_strategy_id [String] - # - # @return [::String] - def accessible_bidding_strategy_path customer_id:, bidding_strategy_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accessibleBiddingStrategies/#{bidding_strategy_id}" - end - - ## - # Create a fully-qualified BiddingStrategy resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` - # - # @param customer_id [String] - # @param bidding_strategy_id [String] - # - # @return [::String] - def bidding_strategy_path customer_id:, bidding_strategy_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingStrategies/#{bidding_strategy_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignBudget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` - # - # @param customer_id [String] - # @param campaign_budget_id [String] - # - # @return [::String] - def campaign_budget_path customer_id:, campaign_budget_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" - end - - ## - # Create a fully-qualified CampaignGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignGroups/{campaign_group_id}` - # - # @param customer_id [String] - # @param campaign_group_id [String] - # - # @return [::String] - def campaign_group_path customer_id:, campaign_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignGroups/#{campaign_group_id}" - end - - ## - # Create a fully-qualified CampaignLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param label_id [String] - # - # @return [::String] - def campaign_label_path customer_id:, campaign_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignLabels/#{campaign_id}~#{label_id}" - end - - ## - # Create a fully-qualified ConversionAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionActions/{conversion_action_id}` - # - # @param customer_id [String] - # @param conversion_action_id [String] - # - # @return [::String] - def conversion_action_path customer_id:, conversion_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionActions/#{conversion_action_id}" - end - - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_service_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_service_pb.rb deleted file mode 100644 index 4666e8af8..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/campaign_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/campaign_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/campaign_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCampaignsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CampaignOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CampaignOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.Campaign" - optional :update, :message, 2, "google.ads.googleads.v12.resources.Campaign" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateCampaignsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCampaignResult" - end - add_message "google.ads.googleads.v12.services.MutateCampaignResult" do - optional :resource_name, :string, 1 - optional :campaign, :message, 2, "google.ads.googleads.v12.resources.Campaign" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCampaignsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignsRequest").msgclass - CampaignOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CampaignOperation").msgclass - MutateCampaignsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignsResponse").msgclass - MutateCampaignResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_service_services_pb.rb deleted file mode 100644 index 08f99c015..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_service_services_pb.rb +++ /dev/null @@ -1,86 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/campaign_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/campaign_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignService - # Proto file describing the Campaign service. - # - # Service to manage campaigns. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CampaignService' - - # Creates, updates, or removes campaigns. Operation statuses are returned. - # - # List of thrown errors: - # [AdxError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [BiddingError]() - # [BiddingStrategyError]() - # [CampaignBudgetError]() - # [CampaignError]() - # [ContextError]() - # [DatabaseError]() - # [DateError]() - # [DateRangeError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotAllowlistedError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RegionCodeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SettingError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - rpc :MutateCampaigns, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_shared_set_service.rb b/lib/google/ads/google_ads/v12/services/campaign_shared_set_service.rb deleted file mode 100644 index c34f3897c..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_shared_set_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/campaign_shared_set_service/credentials" -require "google/ads/google_ads/v12/services/campaign_shared_set_service/paths" -require "google/ads/google_ads/v12/services/campaign_shared_set_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage campaign shared sets. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/campaign_shared_set_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignSharedSetService::Client.new - # - module CampaignSharedSetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_shared_set_service", "helpers.rb" -require "google/ads/google_ads/v12/services/campaign_shared_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/campaign_shared_set_service/client.rb b/lib/google/ads/google_ads/v12/services/campaign_shared_set_service/client.rb deleted file mode 100644 index 0e5058f7b..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_shared_set_service/client.rb +++ /dev/null @@ -1,427 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/campaign_shared_set_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignSharedSetService - ## - # Client for the CampaignSharedSetService service. - # - # Service to manage campaign shared sets. - # - class Client - include Paths - - # @private - attr_reader :campaign_shared_set_service_stub - - ## - # Configure the CampaignSharedSetService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignSharedSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignSharedSetService clients - # ::Google::Ads::GoogleAds::V12::Services::CampaignSharedSetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignSharedSetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CampaignSharedSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignSharedSetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignSharedSetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignSharedSetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignSharedSetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/campaign_shared_set_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_shared_set_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CampaignSharedSetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates or removes campaign shared sets. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignSharedSetError]() - # [ContextError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_campaign_shared_sets(request, options = nil) - # Pass arguments to `mutate_campaign_shared_sets` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCampaignSharedSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCampaignSharedSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_shared_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_shared_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign shared sets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CampaignSharedSetOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign shared sets. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCampaignSharedSetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCampaignSharedSetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CampaignSharedSetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCampaignSharedSetsRequest.new - # - # # Call the mutate_campaign_shared_sets method. - # result = client.mutate_campaign_shared_sets request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCampaignSharedSetsResponse. - # p result - # - def mutate_campaign_shared_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCampaignSharedSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_shared_sets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_shared_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_shared_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_shared_set_service_stub.call_rpc :mutate_campaign_shared_sets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignSharedSetService API. - # - # This class represents the configuration for CampaignSharedSetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CampaignSharedSetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_shared_sets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CampaignSharedSetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_shared_sets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CampaignSharedSetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_shared_sets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CampaignSharedSetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_shared_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_shared_sets - - # @private - def initialize parent_rpcs = nil - mutate_campaign_shared_sets_config = parent_rpcs.mutate_campaign_shared_sets if parent_rpcs.respond_to? :mutate_campaign_shared_sets - @mutate_campaign_shared_sets = ::Gapic::Config::Method.new mutate_campaign_shared_sets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_shared_set_service/credentials.rb b/lib/google/ads/google_ads/v12/services/campaign_shared_set_service/credentials.rb deleted file mode 100644 index 1590a1030..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_shared_set_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignSharedSetService - # Credentials for the CampaignSharedSetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_shared_set_service/paths.rb b/lib/google/ads/google_ads/v12/services/campaign_shared_set_service/paths.rb deleted file mode 100644 index 2bb04a3e1..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_shared_set_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignSharedSetService - # Path helper methods for the CampaignSharedSetService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignSharedSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param shared_set_id [String] - # - # @return [::String] - def campaign_shared_set_path customer_id:, campaign_id:, shared_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignSharedSets/#{campaign_id}~#{shared_set_id}" - end - - ## - # Create a fully-qualified SharedSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/sharedSets/{shared_set_id}` - # - # @param customer_id [String] - # @param shared_set_id [String] - # - # @return [::String] - def shared_set_path customer_id:, shared_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/sharedSets/#{shared_set_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_shared_set_service_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_shared_set_service_pb.rb deleted file mode 100644 index 2c28bbb35..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_shared_set_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/campaign_shared_set_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/campaign_shared_set_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/campaign_shared_set_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCampaignSharedSetsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CampaignSharedSetOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CampaignSharedSetOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CampaignSharedSet" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateCampaignSharedSetsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCampaignSharedSetResult" - end - add_message "google.ads.googleads.v12.services.MutateCampaignSharedSetResult" do - optional :resource_name, :string, 1 - optional :campaign_shared_set, :message, 2, "google.ads.googleads.v12.resources.CampaignSharedSet" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCampaignSharedSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignSharedSetsRequest").msgclass - CampaignSharedSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CampaignSharedSetOperation").msgclass - MutateCampaignSharedSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignSharedSetsResponse").msgclass - MutateCampaignSharedSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCampaignSharedSetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/campaign_shared_set_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/campaign_shared_set_service_services_pb.rb deleted file mode 100644 index e46dea65d..000000000 --- a/lib/google/ads/google_ads/v12/services/campaign_shared_set_service_services_pb.rb +++ /dev/null @@ -1,73 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/campaign_shared_set_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/campaign_shared_set_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CampaignSharedSetService - # Proto file describing the Campaign Shared Set service. - # - # Service to manage campaign shared sets. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CampaignSharedSetService' - - # Creates or removes campaign shared sets. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignSharedSetError]() - # [ContextError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - rpc :MutateCampaignSharedSets, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignSharedSetsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCampaignSharedSetsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_action_service.rb b/lib/google/ads/google_ads/v12/services/conversion_action_service.rb deleted file mode 100644 index 8e1dfc965..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_action_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/conversion_action_service/credentials" -require "google/ads/google_ads/v12/services/conversion_action_service/paths" -require "google/ads/google_ads/v12/services/conversion_action_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage conversion actions. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/conversion_action_service" - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionActionService::Client.new - # - module ConversionActionService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "conversion_action_service", "helpers.rb" -require "google/ads/google_ads/v12/services/conversion_action_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/conversion_action_service/client.rb b/lib/google/ads/google_ads/v12/services/conversion_action_service/client.rb deleted file mode 100644 index 5ce0229b3..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_action_service/client.rb +++ /dev/null @@ -1,422 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/conversion_action_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionActionService - ## - # Client for the ConversionActionService service. - # - # Service to manage conversion actions. - # - class Client - include Paths - - # @private - attr_reader :conversion_action_service_stub - - ## - # Configure the ConversionActionService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::ConversionActionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ConversionActionService clients - # ::Google::Ads::GoogleAds::V12::Services::ConversionActionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ConversionActionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::ConversionActionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ConversionActionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionActionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionActionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ConversionActionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/conversion_action_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @conversion_action_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::ConversionActionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes conversion actions. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ConversionActionError]() - # [CurrencyCodeError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [StringLengthError]() - # - # @overload mutate_conversion_actions(request, options = nil) - # Pass arguments to `mutate_conversion_actions` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateConversionActionsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateConversionActionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_conversion_actions(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_conversion_actions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose conversion actions are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::ConversionActionOperation, ::Hash>] - # Required. The list of operations to perform on individual conversion actions. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateConversionActionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateConversionActionsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ConversionActionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateConversionActionsRequest.new - # - # # Call the mutate_conversion_actions method. - # result = client.mutate_conversion_actions request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateConversionActionsResponse. - # p result - # - def mutate_conversion_actions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateConversionActionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_conversion_actions.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_conversion_actions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_conversion_actions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @conversion_action_service_stub.call_rpc :mutate_conversion_actions, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ConversionActionService API. - # - # This class represents the configuration for ConversionActionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::ConversionActionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_conversion_actions to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::ConversionActionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_actions.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionActionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_actions.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the ConversionActionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_conversion_actions` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_conversion_actions - - # @private - def initialize parent_rpcs = nil - mutate_conversion_actions_config = parent_rpcs.mutate_conversion_actions if parent_rpcs.respond_to? :mutate_conversion_actions - @mutate_conversion_actions = ::Gapic::Config::Method.new mutate_conversion_actions_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_action_service/credentials.rb b/lib/google/ads/google_ads/v12/services/conversion_action_service/credentials.rb deleted file mode 100644 index 9dc04519e..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_action_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionActionService - # Credentials for the ConversionActionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_action_service/paths.rb b/lib/google/ads/google_ads/v12/services/conversion_action_service/paths.rb deleted file mode 100644 index 44b2344c5..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_action_service/paths.rb +++ /dev/null @@ -1,66 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionActionService - # Path helper methods for the ConversionActionService API. - module Paths - ## - # Create a fully-qualified ConversionAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionActions/{conversion_action_id}` - # - # @param customer_id [String] - # @param conversion_action_id [String] - # - # @return [::String] - def conversion_action_path customer_id:, conversion_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionActions/#{conversion_action_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_action_service_pb.rb b/lib/google/ads/google_ads/v12/services/conversion_action_service_pb.rb deleted file mode 100644 index 42d6073b7..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_action_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/conversion_action_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/conversion_action_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/conversion_action_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateConversionActionsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.ConversionActionOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.ConversionActionOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.ConversionAction" - optional :update, :message, 2, "google.ads.googleads.v12.resources.ConversionAction" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateConversionActionsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateConversionActionResult" - end - add_message "google.ads.googleads.v12.services.MutateConversionActionResult" do - optional :resource_name, :string, 1 - optional :conversion_action, :message, 2, "google.ads.googleads.v12.resources.ConversionAction" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateConversionActionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateConversionActionsRequest").msgclass - ConversionActionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ConversionActionOperation").msgclass - MutateConversionActionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateConversionActionsResponse").msgclass - MutateConversionActionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateConversionActionResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_action_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/conversion_action_service_services_pb.rb deleted file mode 100644 index 304b73b33..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_action_service_services_pb.rb +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/conversion_action_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/conversion_action_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionActionService - # Proto file describing the Conversion Action service. - # - # Service to manage conversion actions. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.ConversionActionService' - - # Creates, updates or removes conversion actions. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ConversionActionError]() - # [CurrencyCodeError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [StringLengthError]() - rpc :MutateConversionActions, ::Google::Ads::GoogleAds::V12::Services::MutateConversionActionsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateConversionActionsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_adjustment_upload_service.rb b/lib/google/ads/google_ads/v12/services/conversion_adjustment_upload_service.rb deleted file mode 100644 index efbdc6b0c..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_adjustment_upload_service.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/conversion_adjustment_upload_service/credentials" -require "google/ads/google_ads/v12/services/conversion_adjustment_upload_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to upload conversion adjustments. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/conversion_adjustment_upload_service" - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionAdjustmentUploadService::Client.new - # - module ConversionAdjustmentUploadService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "conversion_adjustment_upload_service", "helpers.rb" -require "google/ads/google_ads/v12/services/conversion_adjustment_upload_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/conversion_adjustment_upload_service/client.rb b/lib/google/ads/google_ads/v12/services/conversion_adjustment_upload_service/client.rb deleted file mode 100644 index cc9f94ce9..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_adjustment_upload_service/client.rb +++ /dev/null @@ -1,410 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/conversion_adjustment_upload_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionAdjustmentUploadService - ## - # Client for the ConversionAdjustmentUploadService service. - # - # Service to upload conversion adjustments. - # - class Client - # @private - attr_reader :conversion_adjustment_upload_service_stub - - ## - # Configure the ConversionAdjustmentUploadService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::ConversionAdjustmentUploadService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ConversionAdjustmentUploadService clients - # ::Google::Ads::GoogleAds::V12::Services::ConversionAdjustmentUploadService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ConversionAdjustmentUploadService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::ConversionAdjustmentUploadService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ConversionAdjustmentUploadService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionAdjustmentUploadService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionAdjustmentUploadService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ConversionAdjustmentUploadService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/conversion_adjustment_upload_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @conversion_adjustment_upload_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::ConversionAdjustmentUploadService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Processes the given conversion adjustments. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [PartialFailureError]() - # [QuotaError]() - # [RequestError]() - # - # @overload upload_conversion_adjustments(request, options = nil) - # Pass arguments to `upload_conversion_adjustments` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::UploadConversionAdjustmentsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::UploadConversionAdjustmentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload upload_conversion_adjustments(customer_id: nil, conversion_adjustments: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `upload_conversion_adjustments` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer performing the upload. - # @param conversion_adjustments [::Array<::Google::Ads::GoogleAds::V12::Services::ConversionAdjustment, ::Hash>] - # Required. The conversion adjustments that are being uploaded. - # @param partial_failure [::Boolean] - # Required. If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried out - # in one transaction if and only if they are all valid. This should always be - # set to true. - # See - # https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - # for more information about partial failure. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::UploadConversionAdjustmentsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::UploadConversionAdjustmentsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ConversionAdjustmentUploadService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::UploadConversionAdjustmentsRequest.new - # - # # Call the upload_conversion_adjustments method. - # result = client.upload_conversion_adjustments request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::UploadConversionAdjustmentsResponse. - # p result - # - def upload_conversion_adjustments request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::UploadConversionAdjustmentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.upload_conversion_adjustments.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.upload_conversion_adjustments.timeout, - metadata: metadata, - retry_policy: @config.rpcs.upload_conversion_adjustments.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @conversion_adjustment_upload_service_stub.call_rpc :upload_conversion_adjustments, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ConversionAdjustmentUploadService API. - # - # This class represents the configuration for ConversionAdjustmentUploadService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::ConversionAdjustmentUploadService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # upload_conversion_adjustments to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::ConversionAdjustmentUploadService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.upload_conversion_adjustments.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionAdjustmentUploadService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.upload_conversion_adjustments.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the ConversionAdjustmentUploadService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `upload_conversion_adjustments` - # @return [::Gapic::Config::Method] - # - attr_reader :upload_conversion_adjustments - - # @private - def initialize parent_rpcs = nil - upload_conversion_adjustments_config = parent_rpcs.upload_conversion_adjustments if parent_rpcs.respond_to? :upload_conversion_adjustments - @upload_conversion_adjustments = ::Gapic::Config::Method.new upload_conversion_adjustments_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_adjustment_upload_service/credentials.rb b/lib/google/ads/google_ads/v12/services/conversion_adjustment_upload_service/credentials.rb deleted file mode 100644 index 3bdac53b4..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_adjustment_upload_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionAdjustmentUploadService - # Credentials for the ConversionAdjustmentUploadService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_adjustment_upload_service_pb.rb b/lib/google/ads/google_ads/v12/services/conversion_adjustment_upload_service_pb.rb deleted file mode 100644 index f4b7df67b..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_adjustment_upload_service_pb.rb +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/conversion_adjustment_upload_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/offline_user_data_pb' -require 'google/ads/google_ads/v12/enums/conversion_adjustment_type_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/conversion_adjustment_upload_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.UploadConversionAdjustmentsRequest" do - optional :customer_id, :string, 1 - repeated :conversion_adjustments, :message, 2, "google.ads.googleads.v12.services.ConversionAdjustment" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.UploadConversionAdjustmentsResponse" do - optional :partial_failure_error, :message, 1, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.ConversionAdjustmentResult" - end - add_message "google.ads.googleads.v12.services.ConversionAdjustment" do - optional :gclid_date_time_pair, :message, 12, "google.ads.googleads.v12.services.GclidDateTimePair" - proto3_optional :order_id, :string, 13 - proto3_optional :conversion_action, :string, 8 - proto3_optional :adjustment_date_time, :string, 9 - optional :adjustment_type, :enum, 5, "google.ads.googleads.v12.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType" - optional :restatement_value, :message, 6, "google.ads.googleads.v12.services.RestatementValue" - repeated :user_identifiers, :message, 10, "google.ads.googleads.v12.common.UserIdentifier" - proto3_optional :user_agent, :string, 11 - end - add_message "google.ads.googleads.v12.services.RestatementValue" do - proto3_optional :adjusted_value, :double, 3 - proto3_optional :currency_code, :string, 4 - end - add_message "google.ads.googleads.v12.services.GclidDateTimePair" do - proto3_optional :gclid, :string, 3 - proto3_optional :conversion_date_time, :string, 4 - end - add_message "google.ads.googleads.v12.services.ConversionAdjustmentResult" do - optional :gclid_date_time_pair, :message, 9, "google.ads.googleads.v12.services.GclidDateTimePair" - optional :order_id, :string, 10 - proto3_optional :conversion_action, :string, 7 - proto3_optional :adjustment_date_time, :string, 8 - optional :adjustment_type, :enum, 5, "google.ads.googleads.v12.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - UploadConversionAdjustmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.UploadConversionAdjustmentsRequest").msgclass - UploadConversionAdjustmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.UploadConversionAdjustmentsResponse").msgclass - ConversionAdjustment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ConversionAdjustment").msgclass - RestatementValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.RestatementValue").msgclass - GclidDateTimePair = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GclidDateTimePair").msgclass - ConversionAdjustmentResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ConversionAdjustmentResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_adjustment_upload_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/conversion_adjustment_upload_service_services_pb.rb deleted file mode 100644 index a0ca122c8..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_adjustment_upload_service_services_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/conversion_adjustment_upload_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/conversion_adjustment_upload_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionAdjustmentUploadService - # Service to upload conversion adjustments. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.ConversionAdjustmentUploadService' - - # Processes the given conversion adjustments. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [PartialFailureError]() - # [QuotaError]() - # [RequestError]() - rpc :UploadConversionAdjustments, ::Google::Ads::GoogleAds::V12::Services::UploadConversionAdjustmentsRequest, ::Google::Ads::GoogleAds::V12::Services::UploadConversionAdjustmentsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service.rb b/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service.rb deleted file mode 100644 index 0c2f2511a..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/conversion_custom_variable_service/credentials" -require "google/ads/google_ads/v12/services/conversion_custom_variable_service/paths" -require "google/ads/google_ads/v12/services/conversion_custom_variable_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage conversion custom variables. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/conversion_custom_variable_service" - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionCustomVariableService::Client.new - # - module ConversionCustomVariableService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "conversion_custom_variable_service", "helpers.rb" -require "google/ads/google_ads/v12/services/conversion_custom_variable_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service/client.rb b/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service/client.rb deleted file mode 100644 index 73148a003..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service/client.rb +++ /dev/null @@ -1,416 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/conversion_custom_variable_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionCustomVariableService - ## - # Client for the ConversionCustomVariableService service. - # - # Service to manage conversion custom variables. - # - class Client - include Paths - - # @private - attr_reader :conversion_custom_variable_service_stub - - ## - # Configure the ConversionCustomVariableService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::ConversionCustomVariableService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ConversionCustomVariableService clients - # ::Google::Ads::GoogleAds::V12::Services::ConversionCustomVariableService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ConversionCustomVariableService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::ConversionCustomVariableService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ConversionCustomVariableService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionCustomVariableService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionCustomVariableService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ConversionCustomVariableService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/conversion_custom_variable_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @conversion_custom_variable_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::ConversionCustomVariableService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates or updates conversion custom variables. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ConversionCustomVariableError]() - # [DatabaseError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_conversion_custom_variables(request, options = nil) - # Pass arguments to `mutate_conversion_custom_variables` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateConversionCustomVariablesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateConversionCustomVariablesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_conversion_custom_variables(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_conversion_custom_variables` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose conversion custom variables are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::ConversionCustomVariableOperation, ::Hash>] - # Required. The list of operations to perform on individual conversion custom - # variables. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateConversionCustomVariablesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateConversionCustomVariablesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ConversionCustomVariableService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateConversionCustomVariablesRequest.new - # - # # Call the mutate_conversion_custom_variables method. - # result = client.mutate_conversion_custom_variables request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateConversionCustomVariablesResponse. - # p result - # - def mutate_conversion_custom_variables request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateConversionCustomVariablesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_conversion_custom_variables.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_conversion_custom_variables.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_conversion_custom_variables.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @conversion_custom_variable_service_stub.call_rpc :mutate_conversion_custom_variables, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ConversionCustomVariableService API. - # - # This class represents the configuration for ConversionCustomVariableService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::ConversionCustomVariableService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_conversion_custom_variables to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::ConversionCustomVariableService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_custom_variables.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionCustomVariableService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_custom_variables.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the ConversionCustomVariableService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_conversion_custom_variables` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_conversion_custom_variables - - # @private - def initialize parent_rpcs = nil - mutate_conversion_custom_variables_config = parent_rpcs.mutate_conversion_custom_variables if parent_rpcs.respond_to? :mutate_conversion_custom_variables - @mutate_conversion_custom_variables = ::Gapic::Config::Method.new mutate_conversion_custom_variables_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service/credentials.rb b/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service/credentials.rb deleted file mode 100644 index ffb7906cc..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionCustomVariableService - # Credentials for the ConversionCustomVariableService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service/paths.rb b/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service/paths.rb deleted file mode 100644 index a378f431f..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service/paths.rb +++ /dev/null @@ -1,66 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionCustomVariableService - # Path helper methods for the ConversionCustomVariableService API. - module Paths - ## - # Create a fully-qualified ConversionCustomVariable resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}` - # - # @param customer_id [String] - # @param conversion_custom_variable_id [String] - # - # @return [::String] - def conversion_custom_variable_path customer_id:, conversion_custom_variable_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionCustomVariables/#{conversion_custom_variable_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service_pb.rb b/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service_pb.rb deleted file mode 100644 index db841e038..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service_pb.rb +++ /dev/null @@ -1,55 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/conversion_custom_variable_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/conversion_custom_variable_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/conversion_custom_variable_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateConversionCustomVariablesRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.ConversionCustomVariableOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.ConversionCustomVariableOperation" do - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.ConversionCustomVariable" - optional :update, :message, 2, "google.ads.googleads.v12.resources.ConversionCustomVariable" - end - end - add_message "google.ads.googleads.v12.services.MutateConversionCustomVariablesResponse" do - optional :partial_failure_error, :message, 1, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateConversionCustomVariableResult" - end - add_message "google.ads.googleads.v12.services.MutateConversionCustomVariableResult" do - optional :resource_name, :string, 1 - optional :conversion_custom_variable, :message, 2, "google.ads.googleads.v12.resources.ConversionCustomVariable" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateConversionCustomVariablesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateConversionCustomVariablesRequest").msgclass - ConversionCustomVariableOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ConversionCustomVariableOperation").msgclass - MutateConversionCustomVariablesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateConversionCustomVariablesResponse").msgclass - MutateConversionCustomVariableResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateConversionCustomVariableResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service_services_pb.rb deleted file mode 100644 index cbd74c77a..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_custom_variable_service_services_pb.rb +++ /dev/null @@ -1,60 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/conversion_custom_variable_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/conversion_custom_variable_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionCustomVariableService - # Proto file describing the Conversion Custom Variable service. - # - # Service to manage conversion custom variables. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.ConversionCustomVariableService' - - # Creates or updates conversion custom variables. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ConversionCustomVariableError]() - # [DatabaseError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateConversionCustomVariables, ::Google::Ads::GoogleAds::V12::Services::MutateConversionCustomVariablesRequest, ::Google::Ads::GoogleAds::V12::Services::MutateConversionCustomVariablesResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service.rb b/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service.rb deleted file mode 100644 index 88fc6af5a..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/conversion_goal_campaign_config_service/credentials" -require "google/ads/google_ads/v12/services/conversion_goal_campaign_config_service/paths" -require "google/ads/google_ads/v12/services/conversion_goal_campaign_config_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage conversion goal campaign config. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/conversion_goal_campaign_config_service" - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionGoalCampaignConfigService::Client.new - # - module ConversionGoalCampaignConfigService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "conversion_goal_campaign_config_service", "helpers.rb" -require "google/ads/google_ads/v12/services/conversion_goal_campaign_config_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service/client.rb b/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service/client.rb deleted file mode 100644 index 9be74b511..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service/client.rb +++ /dev/null @@ -1,400 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/conversion_goal_campaign_config_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionGoalCampaignConfigService - ## - # Client for the ConversionGoalCampaignConfigService service. - # - # Service to manage conversion goal campaign config. - # - class Client - include Paths - - # @private - attr_reader :conversion_goal_campaign_config_service_stub - - ## - # Configure the ConversionGoalCampaignConfigService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::ConversionGoalCampaignConfigService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ConversionGoalCampaignConfigService clients - # ::Google::Ads::GoogleAds::V12::Services::ConversionGoalCampaignConfigService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ConversionGoalCampaignConfigService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::ConversionGoalCampaignConfigService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ConversionGoalCampaignConfigService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionGoalCampaignConfigService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionGoalCampaignConfigService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ConversionGoalCampaignConfigService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/conversion_goal_campaign_config_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @conversion_goal_campaign_config_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::ConversionGoalCampaignConfigService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes conversion goal campaign config. Operation - # statuses are returned. - # - # @overload mutate_conversion_goal_campaign_configs(request, options = nil) - # Pass arguments to `mutate_conversion_goal_campaign_configs` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateConversionGoalCampaignConfigsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateConversionGoalCampaignConfigsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_conversion_goal_campaign_configs(customer_id: nil, operations: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_conversion_goal_campaign_configs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose custom conversion goals are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::ConversionGoalCampaignConfigOperation, ::Hash>] - # Required. The list of operations to perform on individual conversion goal campaign - # config. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateConversionGoalCampaignConfigsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateConversionGoalCampaignConfigsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ConversionGoalCampaignConfigService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateConversionGoalCampaignConfigsRequest.new - # - # # Call the mutate_conversion_goal_campaign_configs method. - # result = client.mutate_conversion_goal_campaign_configs request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateConversionGoalCampaignConfigsResponse. - # p result - # - def mutate_conversion_goal_campaign_configs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateConversionGoalCampaignConfigsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_conversion_goal_campaign_configs.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_conversion_goal_campaign_configs.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_conversion_goal_campaign_configs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @conversion_goal_campaign_config_service_stub.call_rpc :mutate_conversion_goal_campaign_configs, - request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ConversionGoalCampaignConfigService API. - # - # This class represents the configuration for ConversionGoalCampaignConfigService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::ConversionGoalCampaignConfigService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_conversion_goal_campaign_configs to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::ConversionGoalCampaignConfigService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_goal_campaign_configs.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionGoalCampaignConfigService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_goal_campaign_configs.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the ConversionGoalCampaignConfigService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_conversion_goal_campaign_configs` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_conversion_goal_campaign_configs - - # @private - def initialize parent_rpcs = nil - mutate_conversion_goal_campaign_configs_config = parent_rpcs.mutate_conversion_goal_campaign_configs if parent_rpcs.respond_to? :mutate_conversion_goal_campaign_configs - @mutate_conversion_goal_campaign_configs = ::Gapic::Config::Method.new mutate_conversion_goal_campaign_configs_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service/credentials.rb b/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service/credentials.rb deleted file mode 100644 index 35e383542..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionGoalCampaignConfigService - # Credentials for the ConversionGoalCampaignConfigService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service/paths.rb b/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service/paths.rb deleted file mode 100644 index b7d2d6101..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service/paths.rb +++ /dev/null @@ -1,86 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionGoalCampaignConfigService - # Path helper methods for the ConversionGoalCampaignConfigService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified ConversionGoalCampaignConfig resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def conversion_goal_campaign_config_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionGoalCampaignConfigs/#{campaign_id}" - end - - ## - # Create a fully-qualified CustomConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customConversionGoals/{goal_id}` - # - # @param customer_id [String] - # @param goal_id [String] - # - # @return [::String] - def custom_conversion_goal_path customer_id:, goal_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customConversionGoals/#{goal_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service_pb.rb b/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service_pb.rb deleted file mode 100644 index c875d114f..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/conversion_goal_campaign_config_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/conversion_goal_campaign_config_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/conversion_goal_campaign_config_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateConversionGoalCampaignConfigsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.ConversionGoalCampaignConfigOperation" - optional :validate_only, :bool, 3 - optional :response_content_type, :enum, 4, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.ConversionGoalCampaignConfigOperation" do - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - oneof :operation do - optional :update, :message, 1, "google.ads.googleads.v12.resources.ConversionGoalCampaignConfig" - end - end - add_message "google.ads.googleads.v12.services.MutateConversionGoalCampaignConfigsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateConversionGoalCampaignConfigResult" - end - add_message "google.ads.googleads.v12.services.MutateConversionGoalCampaignConfigResult" do - optional :resource_name, :string, 1 - optional :conversion_goal_campaign_config, :message, 2, "google.ads.googleads.v12.resources.ConversionGoalCampaignConfig" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateConversionGoalCampaignConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateConversionGoalCampaignConfigsRequest").msgclass - ConversionGoalCampaignConfigOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ConversionGoalCampaignConfigOperation").msgclass - MutateConversionGoalCampaignConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateConversionGoalCampaignConfigsResponse").msgclass - MutateConversionGoalCampaignConfigResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateConversionGoalCampaignConfigResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service_services_pb.rb deleted file mode 100644 index 6424a21f1..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_goal_campaign_config_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/conversion_goal_campaign_config_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/conversion_goal_campaign_config_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionGoalCampaignConfigService - # Proto file describing the ConversionGoalCampaignConfig service. - # - # Service to manage conversion goal campaign config. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.ConversionGoalCampaignConfigService' - - # Creates, updates or removes conversion goal campaign config. Operation - # statuses are returned. - rpc :MutateConversionGoalCampaignConfigs, ::Google::Ads::GoogleAds::V12::Services::MutateConversionGoalCampaignConfigsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateConversionGoalCampaignConfigsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_upload_service.rb b/lib/google/ads/google_ads/v12/services/conversion_upload_service.rb deleted file mode 100644 index 4ae12ce75..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_upload_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/conversion_upload_service/credentials" -require "google/ads/google_ads/v12/services/conversion_upload_service/paths" -require "google/ads/google_ads/v12/services/conversion_upload_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to upload conversions. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/conversion_upload_service" - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionUploadService::Client.new - # - module ConversionUploadService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "conversion_upload_service", "helpers.rb" -require "google/ads/google_ads/v12/services/conversion_upload_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/conversion_upload_service/client.rb b/lib/google/ads/google_ads/v12/services/conversion_upload_service/client.rb deleted file mode 100644 index 985e211ad..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_upload_service/client.rb +++ /dev/null @@ -1,548 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/conversion_upload_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionUploadService - ## - # Client for the ConversionUploadService service. - # - # Service to upload conversions. - # - class Client - include Paths - - # @private - attr_reader :conversion_upload_service_stub - - ## - # Configure the ConversionUploadService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::ConversionUploadService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ConversionUploadService clients - # ::Google::Ads::GoogleAds::V12::Services::ConversionUploadService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ConversionUploadService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::ConversionUploadService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ConversionUploadService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionUploadService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionUploadService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ConversionUploadService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/conversion_upload_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @conversion_upload_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::ConversionUploadService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Processes the given click conversions. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ConversionUploadError]() - # [HeaderError]() - # [InternalError]() - # [PartialFailureError]() - # [QuotaError]() - # [RequestError]() - # - # @overload upload_click_conversions(request, options = nil) - # Pass arguments to `upload_click_conversions` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::UploadClickConversionsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::UploadClickConversionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload upload_click_conversions(customer_id: nil, conversions: nil, partial_failure: nil, validate_only: nil, debug_enabled: nil) - # Pass arguments to `upload_click_conversions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer performing the upload. - # @param conversions [::Array<::Google::Ads::GoogleAds::V12::Services::ClickConversion, ::Hash>] - # Required. The conversions that are being uploaded. - # @param partial_failure [::Boolean] - # Required. If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # This should always be set to true. - # See - # https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - # for more information about partial failure. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param debug_enabled [::Boolean] - # If true, the API will perform all upload checks and return errors if - # any are found. If false, it will perform only basic input validation, - # skip subsequent upload checks, and return success even if no click - # was found for the provided `user_identifiers`. - # - # This setting only affects Enhanced conversions for leads uploads that use - # `user_identifiers` instead of `GCLID`, `GBRAID`, or `WBRAID`. When - # uploading enhanced conversions for leads, you should upload all conversion - # events to the API, including those that may not come from Google Ads - # campaigns. The upload of an event that is not from a Google Ads campaign - # will result in a `CLICK_NOT_FOUND` error if this field is set to `true`. - # Since these errors are expected for such events, set this field to `false` - # so you can confirm your uploads are properly formatted but ignore - # `CLICK_NOT_FOUND` errors from all of the conversions that are not from a - # Google Ads campaign. This will allow you to focus only on errors that you - # can address. - # - # Default is false. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::UploadClickConversionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::UploadClickConversionsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ConversionUploadService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::UploadClickConversionsRequest.new - # - # # Call the upload_click_conversions method. - # result = client.upload_click_conversions request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::UploadClickConversionsResponse. - # p result - # - def upload_click_conversions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::UploadClickConversionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.upload_click_conversions.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.upload_click_conversions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.upload_click_conversions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @conversion_upload_service_stub.call_rpc :upload_click_conversions, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Processes the given call conversions. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [PartialFailureError]() - # [QuotaError]() - # [RequestError]() - # - # @overload upload_call_conversions(request, options = nil) - # Pass arguments to `upload_call_conversions` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::UploadCallConversionsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::UploadCallConversionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload upload_call_conversions(customer_id: nil, conversions: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `upload_call_conversions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer performing the upload. - # @param conversions [::Array<::Google::Ads::GoogleAds::V12::Services::CallConversion, ::Hash>] - # Required. The conversions that are being uploaded. - # @param partial_failure [::Boolean] - # Required. If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # This should always be set to true. - # See - # https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - # for more information about partial failure. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::UploadCallConversionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::UploadCallConversionsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ConversionUploadService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::UploadCallConversionsRequest.new - # - # # Call the upload_call_conversions method. - # result = client.upload_call_conversions request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::UploadCallConversionsResponse. - # p result - # - def upload_call_conversions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::UploadCallConversionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.upload_call_conversions.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.upload_call_conversions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.upload_call_conversions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @conversion_upload_service_stub.call_rpc :upload_call_conversions, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ConversionUploadService API. - # - # This class represents the configuration for ConversionUploadService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::ConversionUploadService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # upload_click_conversions to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::ConversionUploadService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.upload_click_conversions.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionUploadService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.upload_click_conversions.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the ConversionUploadService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `upload_click_conversions` - # @return [::Gapic::Config::Method] - # - attr_reader :upload_click_conversions - ## - # RPC-specific configuration for `upload_call_conversions` - # @return [::Gapic::Config::Method] - # - attr_reader :upload_call_conversions - - # @private - def initialize parent_rpcs = nil - upload_click_conversions_config = parent_rpcs.upload_click_conversions if parent_rpcs.respond_to? :upload_click_conversions - @upload_click_conversions = ::Gapic::Config::Method.new upload_click_conversions_config - upload_call_conversions_config = parent_rpcs.upload_call_conversions if parent_rpcs.respond_to? :upload_call_conversions - @upload_call_conversions = ::Gapic::Config::Method.new upload_call_conversions_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_upload_service/credentials.rb b/lib/google/ads/google_ads/v12/services/conversion_upload_service/credentials.rb deleted file mode 100644 index 29a67172e..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_upload_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionUploadService - # Credentials for the ConversionUploadService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_upload_service/paths.rb b/lib/google/ads/google_ads/v12/services/conversion_upload_service/paths.rb deleted file mode 100644 index 63a77f1b4..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_upload_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionUploadService - # Path helper methods for the ConversionUploadService API. - module Paths - ## - # Create a fully-qualified ConversionCustomVariable resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}` - # - # @param customer_id [String] - # @param conversion_custom_variable_id [String] - # - # @return [::String] - def conversion_custom_variable_path customer_id:, conversion_custom_variable_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionCustomVariables/#{conversion_custom_variable_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_upload_service_pb.rb b/lib/google/ads/google_ads/v12/services/conversion_upload_service_pb.rb deleted file mode 100644 index 64b54e59e..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_upload_service_pb.rb +++ /dev/null @@ -1,119 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/conversion_upload_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/offline_user_data_pb' -require 'google/ads/google_ads/v12/enums/conversion_environment_enum_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/conversion_upload_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.UploadClickConversionsRequest" do - optional :customer_id, :string, 1 - repeated :conversions, :message, 2, "google.ads.googleads.v12.services.ClickConversion" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :debug_enabled, :bool, 5 - end - add_message "google.ads.googleads.v12.services.UploadClickConversionsResponse" do - optional :partial_failure_error, :message, 1, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.ClickConversionResult" - end - add_message "google.ads.googleads.v12.services.UploadCallConversionsRequest" do - optional :customer_id, :string, 1 - repeated :conversions, :message, 2, "google.ads.googleads.v12.services.CallConversion" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.UploadCallConversionsResponse" do - optional :partial_failure_error, :message, 1, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.CallConversionResult" - end - add_message "google.ads.googleads.v12.services.ClickConversion" do - proto3_optional :gclid, :string, 9 - optional :gbraid, :string, 18 - optional :wbraid, :string, 19 - proto3_optional :conversion_action, :string, 10 - proto3_optional :conversion_date_time, :string, 11 - proto3_optional :conversion_value, :double, 12 - proto3_optional :currency_code, :string, 13 - proto3_optional :order_id, :string, 14 - optional :external_attribution_data, :message, 7, "google.ads.googleads.v12.services.ExternalAttributionData" - repeated :custom_variables, :message, 15, "google.ads.googleads.v12.services.CustomVariable" - optional :cart_data, :message, 16, "google.ads.googleads.v12.services.CartData" - repeated :user_identifiers, :message, 17, "google.ads.googleads.v12.common.UserIdentifier" - optional :conversion_environment, :enum, 20, "google.ads.googleads.v12.enums.ConversionEnvironmentEnum.ConversionEnvironment" - end - add_message "google.ads.googleads.v12.services.CallConversion" do - proto3_optional :caller_id, :string, 7 - proto3_optional :call_start_date_time, :string, 8 - proto3_optional :conversion_action, :string, 9 - proto3_optional :conversion_date_time, :string, 10 - proto3_optional :conversion_value, :double, 11 - proto3_optional :currency_code, :string, 12 - repeated :custom_variables, :message, 13, "google.ads.googleads.v12.services.CustomVariable" - end - add_message "google.ads.googleads.v12.services.ExternalAttributionData" do - proto3_optional :external_attribution_credit, :double, 3 - proto3_optional :external_attribution_model, :string, 4 - end - add_message "google.ads.googleads.v12.services.ClickConversionResult" do - proto3_optional :gclid, :string, 4 - optional :gbraid, :string, 8 - optional :wbraid, :string, 9 - proto3_optional :conversion_action, :string, 5 - proto3_optional :conversion_date_time, :string, 6 - repeated :user_identifiers, :message, 7, "google.ads.googleads.v12.common.UserIdentifier" - end - add_message "google.ads.googleads.v12.services.CallConversionResult" do - proto3_optional :caller_id, :string, 5 - proto3_optional :call_start_date_time, :string, 6 - proto3_optional :conversion_action, :string, 7 - proto3_optional :conversion_date_time, :string, 8 - end - add_message "google.ads.googleads.v12.services.CustomVariable" do - optional :conversion_custom_variable, :string, 1 - optional :value, :string, 2 - end - add_message "google.ads.googleads.v12.services.CartData" do - optional :merchant_id, :int64, 6 - optional :feed_country_code, :string, 2 - optional :feed_language_code, :string, 3 - optional :local_transaction_cost, :double, 4 - repeated :items, :message, 5, "google.ads.googleads.v12.services.CartData.Item" - end - add_message "google.ads.googleads.v12.services.CartData.Item" do - optional :product_id, :string, 1 - optional :quantity, :int32, 2 - optional :unit_price, :double, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - UploadClickConversionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.UploadClickConversionsRequest").msgclass - UploadClickConversionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.UploadClickConversionsResponse").msgclass - UploadCallConversionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.UploadCallConversionsRequest").msgclass - UploadCallConversionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.UploadCallConversionsResponse").msgclass - ClickConversion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ClickConversion").msgclass - CallConversion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CallConversion").msgclass - ExternalAttributionData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ExternalAttributionData").msgclass - ClickConversionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ClickConversionResult").msgclass - CallConversionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CallConversionResult").msgclass - CustomVariable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomVariable").msgclass - CartData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CartData").msgclass - CartData::Item = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CartData.Item").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_upload_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/conversion_upload_service_services_pb.rb deleted file mode 100644 index 9e34db7a1..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_upload_service_services_pb.rb +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/conversion_upload_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/conversion_upload_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionUploadService - # Service to upload conversions. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.ConversionUploadService' - - # Processes the given click conversions. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ConversionUploadError]() - # [HeaderError]() - # [InternalError]() - # [PartialFailureError]() - # [QuotaError]() - # [RequestError]() - rpc :UploadClickConversions, ::Google::Ads::GoogleAds::V12::Services::UploadClickConversionsRequest, ::Google::Ads::GoogleAds::V12::Services::UploadClickConversionsResponse - # Processes the given call conversions. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [PartialFailureError]() - # [QuotaError]() - # [RequestError]() - rpc :UploadCallConversions, ::Google::Ads::GoogleAds::V12::Services::UploadCallConversionsRequest, ::Google::Ads::GoogleAds::V12::Services::UploadCallConversionsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_value_rule_service.rb b/lib/google/ads/google_ads/v12/services/conversion_value_rule_service.rb deleted file mode 100644 index ebb25b2c5..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_value_rule_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/conversion_value_rule_service/credentials" -require "google/ads/google_ads/v12/services/conversion_value_rule_service/paths" -require "google/ads/google_ads/v12/services/conversion_value_rule_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage conversion value rules. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/conversion_value_rule_service" - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleService::Client.new - # - module ConversionValueRuleService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "conversion_value_rule_service", "helpers.rb" -require "google/ads/google_ads/v12/services/conversion_value_rule_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/conversion_value_rule_service/client.rb b/lib/google/ads/google_ads/v12/services/conversion_value_rule_service/client.rb deleted file mode 100644 index ec24596c1..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_value_rule_service/client.rb +++ /dev/null @@ -1,404 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/conversion_value_rule_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionValueRuleService - ## - # Client for the ConversionValueRuleService service. - # - # Service to manage conversion value rules. - # - class Client - include Paths - - # @private - attr_reader :conversion_value_rule_service_stub - - ## - # Configure the ConversionValueRuleService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ConversionValueRuleService clients - # ::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ConversionValueRuleService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ConversionValueRuleService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ConversionValueRuleService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/conversion_value_rule_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @conversion_value_rule_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes conversion value rules. Operation statuses are - # returned. - # - # @overload mutate_conversion_value_rules(request, options = nil) - # Pass arguments to `mutate_conversion_value_rules` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateConversionValueRulesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateConversionValueRulesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_conversion_value_rules(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_conversion_value_rules` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose conversion value rules are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleOperation, ::Hash>] - # Required. The list of operations to perform on individual conversion value rules. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateConversionValueRulesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateConversionValueRulesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ConversionValueRuleService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateConversionValueRulesRequest.new - # - # # Call the mutate_conversion_value_rules method. - # result = client.mutate_conversion_value_rules request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateConversionValueRulesResponse. - # p result - # - def mutate_conversion_value_rules request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateConversionValueRulesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_conversion_value_rules.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_conversion_value_rules.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_conversion_value_rules.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @conversion_value_rule_service_stub.call_rpc :mutate_conversion_value_rules, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ConversionValueRuleService API. - # - # This class represents the configuration for ConversionValueRuleService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_conversion_value_rules to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_value_rules.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_value_rules.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the ConversionValueRuleService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_conversion_value_rules` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_conversion_value_rules - - # @private - def initialize parent_rpcs = nil - mutate_conversion_value_rules_config = parent_rpcs.mutate_conversion_value_rules if parent_rpcs.respond_to? :mutate_conversion_value_rules - @mutate_conversion_value_rules = ::Gapic::Config::Method.new mutate_conversion_value_rules_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_value_rule_service/credentials.rb b/lib/google/ads/google_ads/v12/services/conversion_value_rule_service/credentials.rb deleted file mode 100644 index 7529122e8..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_value_rule_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionValueRuleService - # Credentials for the ConversionValueRuleService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_value_rule_service/paths.rb b/lib/google/ads/google_ads/v12/services/conversion_value_rule_service/paths.rb deleted file mode 100644 index d35fdebe1..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_value_rule_service/paths.rb +++ /dev/null @@ -1,114 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionValueRuleService - # Path helper methods for the ConversionValueRuleService API. - module Paths - ## - # Create a fully-qualified ConversionValueRule resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}` - # - # @param customer_id [String] - # @param conversion_value_rule_id [String] - # - # @return [::String] - def conversion_value_rule_path customer_id:, conversion_value_rule_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionValueRules/#{conversion_value_rule_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified GeoTargetConstant resource string. - # - # The resource will be in the following format: - # - # `geoTargetConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def geo_target_constant_path criterion_id: - "geoTargetConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified UserInterest resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userInterests/{user_interest_id}` - # - # @param customer_id [String] - # @param user_interest_id [String] - # - # @return [::String] - def user_interest_path customer_id:, user_interest_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/userInterests/#{user_interest_id}" - end - - ## - # Create a fully-qualified UserList resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userLists/{user_list_id}` - # - # @param customer_id [String] - # @param user_list_id [String] - # - # @return [::String] - def user_list_path customer_id:, user_list_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/userLists/#{user_list_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_value_rule_service_pb.rb b/lib/google/ads/google_ads/v12/services/conversion_value_rule_service_pb.rb deleted file mode 100644 index d9054bc84..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_value_rule_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/conversion_value_rule_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/conversion_value_rule_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/conversion_value_rule_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateConversionValueRulesRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.ConversionValueRuleOperation" - optional :partial_failure, :bool, 5 - optional :validate_only, :bool, 3 - optional :response_content_type, :enum, 4, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.ConversionValueRuleOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.ConversionValueRule" - optional :update, :message, 2, "google.ads.googleads.v12.resources.ConversionValueRule" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateConversionValueRulesResponse" do - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateConversionValueRuleResult" - optional :partial_failure_error, :message, 3, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateConversionValueRuleResult" do - optional :resource_name, :string, 1 - optional :conversion_value_rule, :message, 2, "google.ads.googleads.v12.resources.ConversionValueRule" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateConversionValueRulesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateConversionValueRulesRequest").msgclass - ConversionValueRuleOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ConversionValueRuleOperation").msgclass - MutateConversionValueRulesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateConversionValueRulesResponse").msgclass - MutateConversionValueRuleResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateConversionValueRuleResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_value_rule_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/conversion_value_rule_service_services_pb.rb deleted file mode 100644 index 04902aab6..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_value_rule_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/conversion_value_rule_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/conversion_value_rule_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionValueRuleService - # Proto file describing the Conversion Value Rule service. - # - # Service to manage conversion value rules. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.ConversionValueRuleService' - - # Creates, updates, or removes conversion value rules. Operation statuses are - # returned. - rpc :MutateConversionValueRules, ::Google::Ads::GoogleAds::V12::Services::MutateConversionValueRulesRequest, ::Google::Ads::GoogleAds::V12::Services::MutateConversionValueRulesResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service.rb b/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service.rb deleted file mode 100644 index 6a20d5745..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/conversion_value_rule_set_service/credentials" -require "google/ads/google_ads/v12/services/conversion_value_rule_set_service/paths" -require "google/ads/google_ads/v12/services/conversion_value_rule_set_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage conversion value rule sets. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/conversion_value_rule_set_service" - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleSetService::Client.new - # - module ConversionValueRuleSetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "conversion_value_rule_set_service", "helpers.rb" -require "google/ads/google_ads/v12/services/conversion_value_rule_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service/client.rb b/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service/client.rb deleted file mode 100644 index 0b65c26a5..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service/client.rb +++ /dev/null @@ -1,404 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/conversion_value_rule_set_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionValueRuleSetService - ## - # Client for the ConversionValueRuleSetService service. - # - # Service to manage conversion value rule sets. - # - class Client - include Paths - - # @private - attr_reader :conversion_value_rule_set_service_stub - - ## - # Configure the ConversionValueRuleSetService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ConversionValueRuleSetService clients - # ::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleSetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ConversionValueRuleSetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ConversionValueRuleSetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleSetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleSetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ConversionValueRuleSetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/conversion_value_rule_set_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @conversion_value_rule_set_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleSetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes conversion value rule sets. Operation statuses - # are returned. - # - # @overload mutate_conversion_value_rule_sets(request, options = nil) - # Pass arguments to `mutate_conversion_value_rule_sets` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateConversionValueRuleSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateConversionValueRuleSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_conversion_value_rule_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_conversion_value_rule_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose conversion value rule sets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleSetOperation, ::Hash>] - # Required. The list of operations to perform on individual conversion value rule sets. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateConversionValueRuleSetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateConversionValueRuleSetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ConversionValueRuleSetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateConversionValueRuleSetsRequest.new - # - # # Call the mutate_conversion_value_rule_sets method. - # result = client.mutate_conversion_value_rule_sets request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateConversionValueRuleSetsResponse. - # p result - # - def mutate_conversion_value_rule_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateConversionValueRuleSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_conversion_value_rule_sets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_conversion_value_rule_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_conversion_value_rule_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @conversion_value_rule_set_service_stub.call_rpc :mutate_conversion_value_rule_sets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ConversionValueRuleSetService API. - # - # This class represents the configuration for ConversionValueRuleSetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleSetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_conversion_value_rule_sets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleSetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_value_rule_sets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::ConversionValueRuleSetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_value_rule_sets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the ConversionValueRuleSetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_conversion_value_rule_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_conversion_value_rule_sets - - # @private - def initialize parent_rpcs = nil - mutate_conversion_value_rule_sets_config = parent_rpcs.mutate_conversion_value_rule_sets if parent_rpcs.respond_to? :mutate_conversion_value_rule_sets - @mutate_conversion_value_rule_sets = ::Gapic::Config::Method.new mutate_conversion_value_rule_sets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service/credentials.rb b/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service/credentials.rb deleted file mode 100644 index 1a6f8e6bf..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionValueRuleSetService - # Credentials for the ConversionValueRuleSetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service/paths.rb b/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service/paths.rb deleted file mode 100644 index f42730ede..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service/paths.rb +++ /dev/null @@ -1,100 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionValueRuleSetService - # Path helper methods for the ConversionValueRuleSetService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified ConversionValueRule resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}` - # - # @param customer_id [String] - # @param conversion_value_rule_id [String] - # - # @return [::String] - def conversion_value_rule_path customer_id:, conversion_value_rule_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionValueRules/#{conversion_value_rule_id}" - end - - ## - # Create a fully-qualified ConversionValueRuleSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}` - # - # @param customer_id [String] - # @param conversion_value_rule_set_id [String] - # - # @return [::String] - def conversion_value_rule_set_path customer_id:, conversion_value_rule_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionValueRuleSets/#{conversion_value_rule_set_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service_pb.rb b/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service_pb.rb deleted file mode 100644 index 9ac261be2..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/conversion_value_rule_set_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/conversion_value_rule_set_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/conversion_value_rule_set_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateConversionValueRuleSetsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.ConversionValueRuleSetOperation" - optional :partial_failure, :bool, 5 - optional :validate_only, :bool, 3 - optional :response_content_type, :enum, 4, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.ConversionValueRuleSetOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.ConversionValueRuleSet" - optional :update, :message, 2, "google.ads.googleads.v12.resources.ConversionValueRuleSet" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateConversionValueRuleSetsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateConversionValueRuleSetResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateConversionValueRuleSetResult" do - optional :resource_name, :string, 1 - optional :conversion_value_rule_set, :message, 2, "google.ads.googleads.v12.resources.ConversionValueRuleSet" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateConversionValueRuleSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateConversionValueRuleSetsRequest").msgclass - ConversionValueRuleSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ConversionValueRuleSetOperation").msgclass - MutateConversionValueRuleSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateConversionValueRuleSetsResponse").msgclass - MutateConversionValueRuleSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateConversionValueRuleSetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service_services_pb.rb deleted file mode 100644 index 02c99f8d0..000000000 --- a/lib/google/ads/google_ads/v12/services/conversion_value_rule_set_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/conversion_value_rule_set_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/conversion_value_rule_set_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ConversionValueRuleSetService - # Proto file describing the Conversion Value Rule Set service. - # - # Service to manage conversion value rule sets. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.ConversionValueRuleSetService' - - # Creates, updates or removes conversion value rule sets. Operation statuses - # are returned. - rpc :MutateConversionValueRuleSets, ::Google::Ads::GoogleAds::V12::Services::MutateConversionValueRuleSetsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateConversionValueRuleSetsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/custom_audience_service.rb b/lib/google/ads/google_ads/v12/services/custom_audience_service.rb deleted file mode 100644 index e7e3945c8..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_audience_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/custom_audience_service/credentials" -require "google/ads/google_ads/v12/services/custom_audience_service/paths" -require "google/ads/google_ads/v12/services/custom_audience_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage custom audiences. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/custom_audience_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomAudienceService::Client.new - # - module CustomAudienceService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "custom_audience_service", "helpers.rb" -require "google/ads/google_ads/v12/services/custom_audience_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/custom_audience_service/client.rb b/lib/google/ads/google_ads/v12/services/custom_audience_service/client.rb deleted file mode 100644 index 0dbdbd8b2..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_audience_service/client.rb +++ /dev/null @@ -1,410 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/custom_audience_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomAudienceService - ## - # Client for the CustomAudienceService service. - # - # Service to manage custom audiences. - # - class Client - include Paths - - # @private - attr_reader :custom_audience_service_stub - - ## - # Configure the CustomAudienceService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomAudienceService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomAudienceService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomAudienceService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomAudienceService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomAudienceService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomAudienceService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomAudienceService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomAudienceService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomAudienceService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/custom_audience_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @custom_audience_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomAudienceService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates or updates custom audiences. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CustomAudienceError]() - # [CustomInterestError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [OperationAccessDeniedError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_custom_audiences(request, options = nil) - # Pass arguments to `mutate_custom_audiences` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomAudiencesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomAudiencesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_custom_audiences(customer_id: nil, operations: nil, validate_only: nil) - # Pass arguments to `mutate_custom_audiences` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose custom audiences are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CustomAudienceOperation, ::Hash>] - # Required. The list of operations to perform on individual custom audiences. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomAudiencesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomAudiencesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomAudienceService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomAudiencesRequest.new - # - # # Call the mutate_custom_audiences method. - # result = client.mutate_custom_audiences request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomAudiencesResponse. - # p result - # - def mutate_custom_audiences request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomAudiencesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_custom_audiences.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_custom_audiences.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_custom_audiences.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @custom_audience_service_stub.call_rpc :mutate_custom_audiences, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomAudienceService API. - # - # This class represents the configuration for CustomAudienceService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomAudienceService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_custom_audiences to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomAudienceService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_custom_audiences.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomAudienceService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_custom_audiences.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomAudienceService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_custom_audiences` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_custom_audiences - - # @private - def initialize parent_rpcs = nil - mutate_custom_audiences_config = parent_rpcs.mutate_custom_audiences if parent_rpcs.respond_to? :mutate_custom_audiences - @mutate_custom_audiences = ::Gapic::Config::Method.new mutate_custom_audiences_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/custom_audience_service/credentials.rb b/lib/google/ads/google_ads/v12/services/custom_audience_service/credentials.rb deleted file mode 100644 index de10740a3..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_audience_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomAudienceService - # Credentials for the CustomAudienceService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/custom_audience_service/paths.rb b/lib/google/ads/google_ads/v12/services/custom_audience_service/paths.rb deleted file mode 100644 index aca9d2c88..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_audience_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomAudienceService - # Path helper methods for the CustomAudienceService API. - module Paths - ## - # Create a fully-qualified CustomAudience resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customAudiences/{custom_audience_id}` - # - # @param customer_id [String] - # @param custom_audience_id [String] - # - # @return [::String] - def custom_audience_path customer_id:, custom_audience_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customAudiences/#{custom_audience_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/custom_audience_service_pb.rb b/lib/google/ads/google_ads/v12/services/custom_audience_service_pb.rb deleted file mode 100644 index 0dc2937ad..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_audience_service_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/custom_audience_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/custom_audience_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/custom_audience_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomAudiencesRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CustomAudienceOperation" - optional :validate_only, :bool, 3 - end - add_message "google.ads.googleads.v12.services.CustomAudienceOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CustomAudience" - optional :update, :message, 2, "google.ads.googleads.v12.resources.CustomAudience" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateCustomAudiencesResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateCustomAudienceResult" - end - add_message "google.ads.googleads.v12.services.MutateCustomAudienceResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomAudiencesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomAudiencesRequest").msgclass - CustomAudienceOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomAudienceOperation").msgclass - MutateCustomAudiencesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomAudiencesResponse").msgclass - MutateCustomAudienceResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomAudienceResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/custom_audience_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/custom_audience_service_services_pb.rb deleted file mode 100644 index abf60aef9..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_audience_service_services_pb.rb +++ /dev/null @@ -1,64 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/custom_audience_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/custom_audience_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomAudienceService - # Proto file describing the Custom Audience service. - # - # Service to manage custom audiences. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomAudienceService' - - # Creates or updates custom audiences. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CustomAudienceError]() - # [CustomInterestError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [OperationAccessDeniedError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateCustomAudiences, ::Google::Ads::GoogleAds::V12::Services::MutateCustomAudiencesRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomAudiencesResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service.rb b/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service.rb deleted file mode 100644 index 25c038146..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/custom_conversion_goal_service/credentials" -require "google/ads/google_ads/v12/services/custom_conversion_goal_service/paths" -require "google/ads/google_ads/v12/services/custom_conversion_goal_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage custom conversion goal. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/custom_conversion_goal_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomConversionGoalService::Client.new - # - module CustomConversionGoalService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "custom_conversion_goal_service", "helpers.rb" -require "google/ads/google_ads/v12/services/custom_conversion_goal_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service/client.rb b/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service/client.rb deleted file mode 100644 index 19b07ec6e..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service/client.rb +++ /dev/null @@ -1,399 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/custom_conversion_goal_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomConversionGoalService - ## - # Client for the CustomConversionGoalService service. - # - # Service to manage custom conversion goal. - # - class Client - include Paths - - # @private - attr_reader :custom_conversion_goal_service_stub - - ## - # Configure the CustomConversionGoalService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomConversionGoalService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomConversionGoalService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomConversionGoalService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomConversionGoalService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomConversionGoalService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomConversionGoalService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomConversionGoalService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomConversionGoalService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomConversionGoalService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/custom_conversion_goal_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @custom_conversion_goal_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomConversionGoalService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes custom conversion goals. Operation statuses - # are returned. - # - # @overload mutate_custom_conversion_goals(request, options = nil) - # Pass arguments to `mutate_custom_conversion_goals` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomConversionGoalsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomConversionGoalsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_custom_conversion_goals(customer_id: nil, operations: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_custom_conversion_goals` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose custom conversion goals are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CustomConversionGoalOperation, ::Hash>] - # Required. The list of operations to perform on individual custom conversion goal. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomConversionGoalsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomConversionGoalsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomConversionGoalService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomConversionGoalsRequest.new - # - # # Call the mutate_custom_conversion_goals method. - # result = client.mutate_custom_conversion_goals request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomConversionGoalsResponse. - # p result - # - def mutate_custom_conversion_goals request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomConversionGoalsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_custom_conversion_goals.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_custom_conversion_goals.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_custom_conversion_goals.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @custom_conversion_goal_service_stub.call_rpc :mutate_custom_conversion_goals, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomConversionGoalService API. - # - # This class represents the configuration for CustomConversionGoalService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomConversionGoalService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_custom_conversion_goals to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomConversionGoalService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_custom_conversion_goals.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomConversionGoalService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_custom_conversion_goals.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomConversionGoalService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_custom_conversion_goals` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_custom_conversion_goals - - # @private - def initialize parent_rpcs = nil - mutate_custom_conversion_goals_config = parent_rpcs.mutate_custom_conversion_goals if parent_rpcs.respond_to? :mutate_custom_conversion_goals - @mutate_custom_conversion_goals = ::Gapic::Config::Method.new mutate_custom_conversion_goals_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service/credentials.rb b/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service/credentials.rb deleted file mode 100644 index 9c0dae4f2..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomConversionGoalService - # Credentials for the CustomConversionGoalService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service/paths.rb b/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service/paths.rb deleted file mode 100644 index dc5fd393f..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomConversionGoalService - # Path helper methods for the CustomConversionGoalService API. - module Paths - ## - # Create a fully-qualified ConversionAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionActions/{conversion_action_id}` - # - # @param customer_id [String] - # @param conversion_action_id [String] - # - # @return [::String] - def conversion_action_path customer_id:, conversion_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionActions/#{conversion_action_id}" - end - - ## - # Create a fully-qualified CustomConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customConversionGoals/{goal_id}` - # - # @param customer_id [String] - # @param goal_id [String] - # - # @return [::String] - def custom_conversion_goal_path customer_id:, goal_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customConversionGoals/#{goal_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service_pb.rb b/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service_pb.rb deleted file mode 100644 index a434b51ec..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/custom_conversion_goal_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/custom_conversion_goal_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/custom_conversion_goal_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomConversionGoalsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CustomConversionGoalOperation" - optional :validate_only, :bool, 3 - optional :response_content_type, :enum, 4, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CustomConversionGoalOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CustomConversionGoal" - optional :update, :message, 2, "google.ads.googleads.v12.resources.CustomConversionGoal" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateCustomConversionGoalsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateCustomConversionGoalResult" - end - add_message "google.ads.googleads.v12.services.MutateCustomConversionGoalResult" do - optional :resource_name, :string, 1 - optional :custom_conversion_goal, :message, 2, "google.ads.googleads.v12.resources.CustomConversionGoal" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomConversionGoalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomConversionGoalsRequest").msgclass - CustomConversionGoalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomConversionGoalOperation").msgclass - MutateCustomConversionGoalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomConversionGoalsResponse").msgclass - MutateCustomConversionGoalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomConversionGoalResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service_services_pb.rb deleted file mode 100644 index da9729eb0..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_conversion_goal_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/custom_conversion_goal_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/custom_conversion_goal_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomConversionGoalService - # Proto file describing the CustomConversionGoal service. - # - # Service to manage custom conversion goal. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomConversionGoalService' - - # Creates, updates or removes custom conversion goals. Operation statuses - # are returned. - rpc :MutateCustomConversionGoals, ::Google::Ads::GoogleAds::V12::Services::MutateCustomConversionGoalsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomConversionGoalsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/custom_interest_service.rb b/lib/google/ads/google_ads/v12/services/custom_interest_service.rb deleted file mode 100644 index c909793ce..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_interest_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/custom_interest_service/credentials" -require "google/ads/google_ads/v12/services/custom_interest_service/paths" -require "google/ads/google_ads/v12/services/custom_interest_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage custom interests. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/custom_interest_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomInterestService::Client.new - # - module CustomInterestService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "custom_interest_service", "helpers.rb" -require "google/ads/google_ads/v12/services/custom_interest_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/custom_interest_service/client.rb b/lib/google/ads/google_ads/v12/services/custom_interest_service/client.rb deleted file mode 100644 index 1dc646475..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_interest_service/client.rb +++ /dev/null @@ -1,408 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/custom_interest_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomInterestService - ## - # Client for the CustomInterestService service. - # - # Service to manage custom interests. - # - class Client - include Paths - - # @private - attr_reader :custom_interest_service_stub - - ## - # Configure the CustomInterestService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomInterestService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomInterestService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomInterestService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomInterestService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomInterestService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomInterestService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomInterestService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomInterestService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomInterestService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/custom_interest_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @custom_interest_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomInterestService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates or updates custom interests. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CriterionError]() - # [CustomInterestError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RequestError]() - # [StringLengthError]() - # - # @overload mutate_custom_interests(request, options = nil) - # Pass arguments to `mutate_custom_interests` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomInterestsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomInterestsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_custom_interests(customer_id: nil, operations: nil, validate_only: nil) - # Pass arguments to `mutate_custom_interests` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose custom interests are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CustomInterestOperation, ::Hash>] - # Required. The list of operations to perform on individual custom interests. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomInterestsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomInterestsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomInterestService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomInterestsRequest.new - # - # # Call the mutate_custom_interests method. - # result = client.mutate_custom_interests request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomInterestsResponse. - # p result - # - def mutate_custom_interests request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomInterestsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_custom_interests.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_custom_interests.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_custom_interests.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @custom_interest_service_stub.call_rpc :mutate_custom_interests, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomInterestService API. - # - # This class represents the configuration for CustomInterestService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomInterestService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_custom_interests to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomInterestService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_custom_interests.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomInterestService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_custom_interests.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomInterestService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_custom_interests` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_custom_interests - - # @private - def initialize parent_rpcs = nil - mutate_custom_interests_config = parent_rpcs.mutate_custom_interests if parent_rpcs.respond_to? :mutate_custom_interests - @mutate_custom_interests = ::Gapic::Config::Method.new mutate_custom_interests_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/custom_interest_service/credentials.rb b/lib/google/ads/google_ads/v12/services/custom_interest_service/credentials.rb deleted file mode 100644 index 0a445d3fe..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_interest_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomInterestService - # Credentials for the CustomInterestService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/custom_interest_service/paths.rb b/lib/google/ads/google_ads/v12/services/custom_interest_service/paths.rb deleted file mode 100644 index d4535ac57..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_interest_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomInterestService - # Path helper methods for the CustomInterestService API. - module Paths - ## - # Create a fully-qualified CustomInterest resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customInterests/{custom_interest_id}` - # - # @param customer_id [String] - # @param custom_interest_id [String] - # - # @return [::String] - def custom_interest_path customer_id:, custom_interest_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customInterests/#{custom_interest_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/custom_interest_service_pb.rb b/lib/google/ads/google_ads/v12/services/custom_interest_service_pb.rb deleted file mode 100644 index 758de982d..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_interest_service_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/custom_interest_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/custom_interest_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/custom_interest_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomInterestsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CustomInterestOperation" - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.CustomInterestOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CustomInterest" - optional :update, :message, 2, "google.ads.googleads.v12.resources.CustomInterest" - end - end - add_message "google.ads.googleads.v12.services.MutateCustomInterestsResponse" do - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCustomInterestResult" - end - add_message "google.ads.googleads.v12.services.MutateCustomInterestResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomInterestsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomInterestsRequest").msgclass - CustomInterestOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomInterestOperation").msgclass - MutateCustomInterestsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomInterestsResponse").msgclass - MutateCustomInterestResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomInterestResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/custom_interest_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/custom_interest_service_services_pb.rb deleted file mode 100644 index ad434f847..000000000 --- a/lib/google/ads/google_ads/v12/services/custom_interest_service_services_pb.rb +++ /dev/null @@ -1,62 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/custom_interest_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/custom_interest_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomInterestService - # Proto file describing the Custom Interest service. - # - # Service to manage custom interests. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomInterestService' - - # Creates or updates custom interests. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CriterionError]() - # [CustomInterestError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RequestError]() - # [StringLengthError]() - rpc :MutateCustomInterests, ::Google::Ads::GoogleAds::V12::Services::MutateCustomInterestsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomInterestsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_asset_service.rb b/lib/google/ads/google_ads/v12/services/customer_asset_service.rb deleted file mode 100644 index 9d74ae1ca..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_asset_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/customer_asset_service/credentials" -require "google/ads/google_ads/v12/services/customer_asset_service/paths" -require "google/ads/google_ads/v12/services/customer_asset_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage customer assets. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/customer_asset_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerAssetService::Client.new - # - module CustomerAssetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "customer_asset_service", "helpers.rb" -require "google/ads/google_ads/v12/services/customer_asset_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/customer_asset_service/client.rb b/lib/google/ads/google_ads/v12/services/customer_asset_service/client.rb deleted file mode 100644 index 4f36d3414..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_asset_service/client.rb +++ /dev/null @@ -1,415 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/customer_asset_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerAssetService - ## - # Client for the CustomerAssetService service. - # - # Service to manage customer assets. - # - class Client - include Paths - - # @private - attr_reader :customer_asset_service_stub - - ## - # Configure the CustomerAssetService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerAssetService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomerAssetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerAssetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerAssetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerAssetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerAssetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerAssetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/customer_asset_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_asset_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomerAssetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes customer assets. Operation statuses are - # returned. - # - # List of thrown errors: - # [AssetLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_customer_assets(request, options = nil) - # Pass arguments to `mutate_customer_assets` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_assets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_customer_assets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customer assets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CustomerAssetOperation, ::Hash>] - # Required. The list of operations to perform on individual customer assets. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomerAssetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetsRequest.new - # - # # Call the mutate_customer_assets method. - # result = client.mutate_customer_assets request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetsResponse. - # p result - # - def mutate_customer_assets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_assets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_assets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_assets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_asset_service_stub.call_rpc :mutate_customer_assets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerAssetService API. - # - # This class represents the configuration for CustomerAssetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomerAssetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_assets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomerAssetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_assets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerAssetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_assets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomerAssetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_assets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_assets - - # @private - def initialize parent_rpcs = nil - mutate_customer_assets_config = parent_rpcs.mutate_customer_assets if parent_rpcs.respond_to? :mutate_customer_assets - @mutate_customer_assets = ::Gapic::Config::Method.new mutate_customer_assets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_asset_service/credentials.rb b/lib/google/ads/google_ads/v12/services/customer_asset_service/credentials.rb deleted file mode 100644 index 6ff1465dc..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_asset_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerAssetService - # Credentials for the CustomerAssetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_asset_service/paths.rb b/lib/google/ads/google_ads/v12/services/customer_asset_service/paths.rb deleted file mode 100644 index 6a6acbe29..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_asset_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerAssetService - # Path helper methods for the CustomerAssetService API. - module Paths - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified CustomerAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerAssets/{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def customer_asset_path customer_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/customerAssets/#{asset_id}~#{field_type}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_asset_service_pb.rb b/lib/google/ads/google_ads/v12/services/customer_asset_service_pb.rb deleted file mode 100644 index 7b02f27d8..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_asset_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/customer_asset_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/customer_asset_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/customer_asset_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomerAssetsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CustomerAssetOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CustomerAssetOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CustomerAsset" - optional :update, :message, 3, "google.ads.googleads.v12.resources.CustomerAsset" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateCustomerAssetsResponse" do - optional :partial_failure_error, :message, 1, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCustomerAssetResult" - end - add_message "google.ads.googleads.v12.services.MutateCustomerAssetResult" do - optional :resource_name, :string, 1 - optional :customer_asset, :message, 2, "google.ads.googleads.v12.resources.CustomerAsset" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomerAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerAssetsRequest").msgclass - CustomerAssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomerAssetOperation").msgclass - MutateCustomerAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerAssetsResponse").msgclass - MutateCustomerAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerAssetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_asset_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/customer_asset_service_services_pb.rb deleted file mode 100644 index 32618aaa8..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_asset_service_services_pb.rb +++ /dev/null @@ -1,61 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/customer_asset_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/customer_asset_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerAssetService - # Proto file describing the CustomerAsset service. - # - # Service to manage customer assets. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomerAssetService' - - # Creates, updates, or removes customer assets. Operation statuses are - # returned. - # - # List of thrown errors: - # [AssetLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateCustomerAssets, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_asset_set_service.rb b/lib/google/ads/google_ads/v12/services/customer_asset_set_service.rb deleted file mode 100644 index 78fb06db4..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_asset_set_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/customer_asset_set_service/credentials" -require "google/ads/google_ads/v12/services/customer_asset_set_service/paths" -require "google/ads/google_ads/v12/services/customer_asset_set_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage customer asset set - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/customer_asset_set_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerAssetSetService::Client.new - # - module CustomerAssetSetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "customer_asset_set_service", "helpers.rb" -require "google/ads/google_ads/v12/services/customer_asset_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/customer_asset_set_service/client.rb b/lib/google/ads/google_ads/v12/services/customer_asset_set_service/client.rb deleted file mode 100644 index 85b7357ef..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_asset_set_service/client.rb +++ /dev/null @@ -1,404 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/customer_asset_set_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerAssetSetService - ## - # Client for the CustomerAssetSetService service. - # - # Service to manage customer asset set - # - class Client - include Paths - - # @private - attr_reader :customer_asset_set_service_stub - - ## - # Configure the CustomerAssetSetService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerAssetSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerAssetSetService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomerAssetSetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerAssetSetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerAssetSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerAssetSetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerAssetSetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerAssetSetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerAssetSetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/customer_asset_set_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_asset_set_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomerAssetSetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, or removes customer asset sets. Operation statuses are - # returned. - # - # @overload mutate_customer_asset_sets(request, options = nil) - # Pass arguments to `mutate_customer_asset_sets` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_asset_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_customer_asset_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customer asset sets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CustomerAssetSetOperation, ::Hash>] - # Required. The list of operations to perform on individual customer asset sets. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetSetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetSetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomerAssetSetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetSetsRequest.new - # - # # Call the mutate_customer_asset_sets method. - # result = client.mutate_customer_asset_sets request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetSetsResponse. - # p result - # - def mutate_customer_asset_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_asset_sets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_asset_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_asset_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_asset_set_service_stub.call_rpc :mutate_customer_asset_sets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerAssetSetService API. - # - # This class represents the configuration for CustomerAssetSetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomerAssetSetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_asset_sets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomerAssetSetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_asset_sets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerAssetSetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_asset_sets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomerAssetSetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_asset_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_asset_sets - - # @private - def initialize parent_rpcs = nil - mutate_customer_asset_sets_config = parent_rpcs.mutate_customer_asset_sets if parent_rpcs.respond_to? :mutate_customer_asset_sets - @mutate_customer_asset_sets = ::Gapic::Config::Method.new mutate_customer_asset_sets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_asset_set_service/credentials.rb b/lib/google/ads/google_ads/v12/services/customer_asset_set_service/credentials.rb deleted file mode 100644 index 71b891294..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_asset_set_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerAssetSetService - # Credentials for the CustomerAssetSetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_asset_set_service/paths.rb b/lib/google/ads/google_ads/v12/services/customer_asset_set_service/paths.rb deleted file mode 100644 index 524a6acad..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_asset_set_service/paths.rb +++ /dev/null @@ -1,83 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerAssetSetService - # Path helper methods for the CustomerAssetSetService API. - module Paths - ## - # Create a fully-qualified AssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSets/#{asset_set_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified CustomerAssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerAssetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def customer_asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerAssetSets/#{asset_set_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_asset_set_service_pb.rb b/lib/google/ads/google_ads/v12/services/customer_asset_set_service_pb.rb deleted file mode 100644 index 7c1e7b419..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_asset_set_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/customer_asset_set_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/customer_asset_set_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/customer_asset_set_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomerAssetSetsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CustomerAssetSetOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CustomerAssetSetOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CustomerAssetSet" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateCustomerAssetSetsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateCustomerAssetSetResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateCustomerAssetSetResult" do - optional :resource_name, :string, 1 - optional :customer_asset_set, :message, 2, "google.ads.googleads.v12.resources.CustomerAssetSet" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomerAssetSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerAssetSetsRequest").msgclass - CustomerAssetSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomerAssetSetOperation").msgclass - MutateCustomerAssetSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerAssetSetsResponse").msgclass - MutateCustomerAssetSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerAssetSetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_asset_set_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/customer_asset_set_service_services_pb.rb deleted file mode 100644 index c8ca435c7..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_asset_set_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/customer_asset_set_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/customer_asset_set_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerAssetSetService - # Proto file describing the CustomerAssetSet service. - # - # Service to manage customer asset set - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomerAssetSetService' - - # Creates, or removes customer asset sets. Operation statuses are - # returned. - rpc :MutateCustomerAssetSets, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetSetsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerAssetSetsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_client_link_service.rb b/lib/google/ads/google_ads/v12/services/customer_client_link_service.rb deleted file mode 100644 index 766861ae7..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_client_link_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/customer_client_link_service/credentials" -require "google/ads/google_ads/v12/services/customer_client_link_service/paths" -require "google/ads/google_ads/v12/services/customer_client_link_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage customer client links. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/customer_client_link_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerClientLinkService::Client.new - # - module CustomerClientLinkService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "customer_client_link_service", "helpers.rb" -require "google/ads/google_ads/v12/services/customer_client_link_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/customer_client_link_service/client.rb b/lib/google/ads/google_ads/v12/services/customer_client_link_service/client.rb deleted file mode 100644 index 49997429b..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_client_link_service/client.rb +++ /dev/null @@ -1,409 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/customer_client_link_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerClientLinkService - ## - # Client for the CustomerClientLinkService service. - # - # Service to manage customer client links. - # - class Client - include Paths - - # @private - attr_reader :customer_client_link_service_stub - - ## - # Configure the CustomerClientLinkService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerClientLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerClientLinkService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomerClientLinkService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerClientLinkService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerClientLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerClientLinkService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerClientLinkService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerClientLinkService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerClientLinkService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/customer_client_link_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_client_link_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomerClientLinkService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates or updates a customer client link. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [ManagerLinkError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_customer_client_link(request, options = nil) - # Pass arguments to `mutate_customer_client_link` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomerClientLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomerClientLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_client_link(customer_id: nil, operation: nil, validate_only: nil) - # Pass arguments to `mutate_customer_client_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customer link are being modified. - # @param operation [::Google::Ads::GoogleAds::V12::Services::CustomerClientLinkOperation, ::Hash] - # Required. The operation to perform on the individual CustomerClientLink. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomerClientLinkResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomerClientLinkResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomerClientLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomerClientLinkRequest.new - # - # # Call the mutate_customer_client_link method. - # result = client.mutate_customer_client_link request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomerClientLinkResponse. - # p result - # - def mutate_customer_client_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomerClientLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_client_link.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_client_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_client_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_client_link_service_stub.call_rpc :mutate_customer_client_link, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerClientLinkService API. - # - # This class represents the configuration for CustomerClientLinkService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomerClientLinkService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_client_link to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomerClientLinkService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_client_link.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerClientLinkService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_client_link.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomerClientLinkService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_client_link` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_client_link - - # @private - def initialize parent_rpcs = nil - mutate_customer_client_link_config = parent_rpcs.mutate_customer_client_link if parent_rpcs.respond_to? :mutate_customer_client_link - @mutate_customer_client_link = ::Gapic::Config::Method.new mutate_customer_client_link_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_client_link_service/credentials.rb b/lib/google/ads/google_ads/v12/services/customer_client_link_service/credentials.rb deleted file mode 100644 index 716123652..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_client_link_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerClientLinkService - # Credentials for the CustomerClientLinkService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_client_link_service/paths.rb b/lib/google/ads/google_ads/v12/services/customer_client_link_service/paths.rb deleted file mode 100644 index 6ff561d6f..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_client_link_service/paths.rb +++ /dev/null @@ -1,68 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerClientLinkService - # Path helper methods for the CustomerClientLinkService API. - module Paths - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified CustomerClientLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}` - # - # @param customer_id [String] - # @param client_customer_id [String] - # @param manager_link_id [String] - # - # @return [::String] - def customer_client_link_path customer_id:, client_customer_id:, manager_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "client_customer_id cannot contain /" if client_customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerClientLinks/#{client_customer_id}~#{manager_link_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_client_link_service_pb.rb b/lib/google/ads/google_ads/v12/services/customer_client_link_service_pb.rb deleted file mode 100644 index d4a90b6ce..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_client_link_service_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/customer_client_link_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/customer_client_link_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/customer_client_link_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomerClientLinkRequest" do - optional :customer_id, :string, 1 - optional :operation, :message, 2, "google.ads.googleads.v12.services.CustomerClientLinkOperation" - optional :validate_only, :bool, 3 - end - add_message "google.ads.googleads.v12.services.CustomerClientLinkOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CustomerClientLink" - optional :update, :message, 2, "google.ads.googleads.v12.resources.CustomerClientLink" - end - end - add_message "google.ads.googleads.v12.services.MutateCustomerClientLinkResponse" do - optional :result, :message, 1, "google.ads.googleads.v12.services.MutateCustomerClientLinkResult" - end - add_message "google.ads.googleads.v12.services.MutateCustomerClientLinkResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomerClientLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerClientLinkRequest").msgclass - CustomerClientLinkOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomerClientLinkOperation").msgclass - MutateCustomerClientLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerClientLinkResponse").msgclass - MutateCustomerClientLinkResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerClientLinkResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_client_link_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/customer_client_link_service_services_pb.rb deleted file mode 100644 index 4a357f8b3..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_client_link_service_services_pb.rb +++ /dev/null @@ -1,61 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/customer_client_link_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/customer_client_link_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerClientLinkService - # Service to manage customer client links. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomerClientLinkService' - - # Creates or updates a customer client link. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [ManagerLinkError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateCustomerClientLink, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerClientLinkRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerClientLinkResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service.rb b/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service.rb deleted file mode 100644 index 2242a57d9..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/customer_conversion_goal_service/credentials" -require "google/ads/google_ads/v12/services/customer_conversion_goal_service/paths" -require "google/ads/google_ads/v12/services/customer_conversion_goal_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage customer conversion goal. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/customer_conversion_goal_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerConversionGoalService::Client.new - # - module CustomerConversionGoalService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "customer_conversion_goal_service", "helpers.rb" -require "google/ads/google_ads/v12/services/customer_conversion_goal_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service/client.rb b/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service/client.rb deleted file mode 100644 index 9989e0416..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service/client.rb +++ /dev/null @@ -1,396 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/customer_conversion_goal_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerConversionGoalService - ## - # Client for the CustomerConversionGoalService service. - # - # Service to manage customer conversion goal. - # - class Client - include Paths - - # @private - attr_reader :customer_conversion_goal_service_stub - - ## - # Configure the CustomerConversionGoalService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerConversionGoalService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerConversionGoalService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomerConversionGoalService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerConversionGoalService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerConversionGoalService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerConversionGoalService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerConversionGoalService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerConversionGoalService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerConversionGoalService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/customer_conversion_goal_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_conversion_goal_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomerConversionGoalService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes customer conversion goals. Operation statuses - # are returned. - # - # @overload mutate_customer_conversion_goals(request, options = nil) - # Pass arguments to `mutate_customer_conversion_goals` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomerConversionGoalsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomerConversionGoalsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_conversion_goals(customer_id: nil, operations: nil, validate_only: nil) - # Pass arguments to `mutate_customer_conversion_goals` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customer conversion goals are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CustomerConversionGoalOperation, ::Hash>] - # Required. The list of operations to perform on individual customer conversion goal. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomerConversionGoalsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomerConversionGoalsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomerConversionGoalService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomerConversionGoalsRequest.new - # - # # Call the mutate_customer_conversion_goals method. - # result = client.mutate_customer_conversion_goals request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomerConversionGoalsResponse. - # p result - # - def mutate_customer_conversion_goals request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomerConversionGoalsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_conversion_goals.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_conversion_goals.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_conversion_goals.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_conversion_goal_service_stub.call_rpc :mutate_customer_conversion_goals, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerConversionGoalService API. - # - # This class represents the configuration for CustomerConversionGoalService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomerConversionGoalService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_conversion_goals to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomerConversionGoalService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_conversion_goals.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerConversionGoalService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_conversion_goals.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomerConversionGoalService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_conversion_goals` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_conversion_goals - - # @private - def initialize parent_rpcs = nil - mutate_customer_conversion_goals_config = parent_rpcs.mutate_customer_conversion_goals if parent_rpcs.respond_to? :mutate_customer_conversion_goals - @mutate_customer_conversion_goals = ::Gapic::Config::Method.new mutate_customer_conversion_goals_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service/credentials.rb b/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service/credentials.rb deleted file mode 100644 index 0bd446d90..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerConversionGoalService - # Credentials for the CustomerConversionGoalService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service/paths.rb b/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service/paths.rb deleted file mode 100644 index 19792db72..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service/paths.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerConversionGoalService - # Path helper methods for the CustomerConversionGoalService API. - module Paths - ## - # Create a fully-qualified CustomerConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerConversionGoals/{category}~{source}` - # - # @param customer_id [String] - # @param category [String] - # @param source [String] - # - # @return [::String] - def customer_conversion_goal_path customer_id:, category:, source: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" - - "customers/#{customer_id}/customerConversionGoals/#{category}~#{source}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service_pb.rb b/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service_pb.rb deleted file mode 100644 index 1737f7cbf..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/customer_conversion_goal_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/customer_conversion_goal_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/customer_conversion_goal_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomerConversionGoalsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CustomerConversionGoalOperation" - optional :validate_only, :bool, 3 - end - add_message "google.ads.googleads.v12.services.CustomerConversionGoalOperation" do - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - oneof :operation do - optional :update, :message, 1, "google.ads.googleads.v12.resources.CustomerConversionGoal" - end - end - add_message "google.ads.googleads.v12.services.MutateCustomerConversionGoalsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateCustomerConversionGoalResult" - end - add_message "google.ads.googleads.v12.services.MutateCustomerConversionGoalResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomerConversionGoalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerConversionGoalsRequest").msgclass - CustomerConversionGoalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomerConversionGoalOperation").msgclass - MutateCustomerConversionGoalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerConversionGoalsResponse").msgclass - MutateCustomerConversionGoalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerConversionGoalResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service_services_pb.rb deleted file mode 100644 index 62e339d4a..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_conversion_goal_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/customer_conversion_goal_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/customer_conversion_goal_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerConversionGoalService - # Proto file describing the CustomerConversionGoal service. - # - # Service to manage customer conversion goal. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomerConversionGoalService' - - # Creates, updates or removes customer conversion goals. Operation statuses - # are returned. - rpc :MutateCustomerConversionGoals, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerConversionGoalsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerConversionGoalsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_customizer_service.rb b/lib/google/ads/google_ads/v12/services/customer_customizer_service.rb deleted file mode 100644 index 18b2c3fc6..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_customizer_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/customer_customizer_service/credentials" -require "google/ads/google_ads/v12/services/customer_customizer_service/paths" -require "google/ads/google_ads/v12/services/customer_customizer_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage customer customizer - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/customer_customizer_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerCustomizerService::Client.new - # - module CustomerCustomizerService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "customer_customizer_service", "helpers.rb" -require "google/ads/google_ads/v12/services/customer_customizer_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/customer_customizer_service/client.rb b/lib/google/ads/google_ads/v12/services/customer_customizer_service/client.rb deleted file mode 100644 index 6856ff9b4..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_customizer_service/client.rb +++ /dev/null @@ -1,404 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/customer_customizer_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerCustomizerService - ## - # Client for the CustomerCustomizerService service. - # - # Service to manage customer customizer - # - class Client - include Paths - - # @private - attr_reader :customer_customizer_service_stub - - ## - # Configure the CustomerCustomizerService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerCustomizerService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerCustomizerService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomerCustomizerService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerCustomizerService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerCustomizerService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerCustomizerService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerCustomizerService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerCustomizerService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerCustomizerService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/customer_customizer_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_customizer_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomerCustomizerService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes customer customizers. Operation statuses are - # returned. - # - # @overload mutate_customer_customizers(request, options = nil) - # Pass arguments to `mutate_customer_customizers` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomerCustomizersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomerCustomizersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_customizers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_customer_customizers` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customer customizers are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CustomerCustomizerOperation, ::Hash>] - # Required. The list of operations to perform on individual customer customizers. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomerCustomizersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomerCustomizersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomerCustomizerService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomerCustomizersRequest.new - # - # # Call the mutate_customer_customizers method. - # result = client.mutate_customer_customizers request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomerCustomizersResponse. - # p result - # - def mutate_customer_customizers request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomerCustomizersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_customizers.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_customizers.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_customizers.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_customizer_service_stub.call_rpc :mutate_customer_customizers, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerCustomizerService API. - # - # This class represents the configuration for CustomerCustomizerService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomerCustomizerService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_customizers to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomerCustomizerService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_customizers.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerCustomizerService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_customizers.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomerCustomizerService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_customizers` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_customizers - - # @private - def initialize parent_rpcs = nil - mutate_customer_customizers_config = parent_rpcs.mutate_customer_customizers if parent_rpcs.respond_to? :mutate_customer_customizers - @mutate_customer_customizers = ::Gapic::Config::Method.new mutate_customer_customizers_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_customizer_service/credentials.rb b/lib/google/ads/google_ads/v12/services/customer_customizer_service/credentials.rb deleted file mode 100644 index f84377dd1..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_customizer_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerCustomizerService - # Credentials for the CustomerCustomizerService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_customizer_service/paths.rb b/lib/google/ads/google_ads/v12/services/customer_customizer_service/paths.rb deleted file mode 100644 index 0c0e9f964..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_customizer_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerCustomizerService - # Path helper methods for the CustomerCustomizerService API. - module Paths - ## - # Create a fully-qualified CustomerCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customer_customizer_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerCustomizers/#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified CustomizerAttribute resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customizer_attribute_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_customizer_service_pb.rb b/lib/google/ads/google_ads/v12/services/customer_customizer_service_pb.rb deleted file mode 100644 index c054294e7..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_customizer_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/customer_customizer_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/customer_customizer_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/customer_customizer_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomerCustomizersRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CustomerCustomizerOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CustomerCustomizerOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CustomerCustomizer" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateCustomerCustomizersResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateCustomerCustomizerResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateCustomerCustomizerResult" do - optional :resource_name, :string, 1 - optional :customer_customizer, :message, 2, "google.ads.googleads.v12.resources.CustomerCustomizer" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomerCustomizersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerCustomizersRequest").msgclass - CustomerCustomizerOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomerCustomizerOperation").msgclass - MutateCustomerCustomizersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerCustomizersResponse").msgclass - MutateCustomerCustomizerResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerCustomizerResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_customizer_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/customer_customizer_service_services_pb.rb deleted file mode 100644 index 9b3b5fc42..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_customizer_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/customer_customizer_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/customer_customizer_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerCustomizerService - # Proto file describing the CustomerCustomizer service. - # - # Service to manage customer customizer - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomerCustomizerService' - - # Creates, updates or removes customer customizers. Operation statuses are - # returned. - rpc :MutateCustomerCustomizers, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerCustomizersRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerCustomizersResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_extension_setting_service.rb b/lib/google/ads/google_ads/v12/services/customer_extension_setting_service.rb deleted file mode 100644 index c37d9c522..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_extension_setting_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/customer_extension_setting_service/credentials" -require "google/ads/google_ads/v12/services/customer_extension_setting_service/paths" -require "google/ads/google_ads/v12/services/customer_extension_setting_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage customer extension settings. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/customer_extension_setting_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerExtensionSettingService::Client.new - # - module CustomerExtensionSettingService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "customer_extension_setting_service", "helpers.rb" -require "google/ads/google_ads/v12/services/customer_extension_setting_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/customer_extension_setting_service/client.rb b/lib/google/ads/google_ads/v12/services/customer_extension_setting_service/client.rb deleted file mode 100644 index c80f0b13b..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_extension_setting_service/client.rb +++ /dev/null @@ -1,433 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/customer_extension_setting_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerExtensionSettingService - ## - # Client for the CustomerExtensionSettingService service. - # - # Service to manage customer extension settings. - # - class Client - include Paths - - # @private - attr_reader :customer_extension_setting_service_stub - - ## - # Configure the CustomerExtensionSettingService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerExtensionSettingService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerExtensionSettingService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomerExtensionSettingService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerExtensionSettingService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerExtensionSettingService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerExtensionSettingService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerExtensionSettingService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerExtensionSettingService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerExtensionSettingService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/customer_extension_setting_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_extension_setting_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomerExtensionSettingService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes customer extension settings. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [ExtensionSettingError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_customer_extension_settings(request, options = nil) - # Pass arguments to `mutate_customer_extension_settings` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomerExtensionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomerExtensionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_extension_settings(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_customer_extension_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customer extension settings are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CustomerExtensionSettingOperation, ::Hash>] - # Required. The list of operations to perform on individual customer extension - # settings. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomerExtensionSettingsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomerExtensionSettingsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomerExtensionSettingService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomerExtensionSettingsRequest.new - # - # # Call the mutate_customer_extension_settings method. - # result = client.mutate_customer_extension_settings request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomerExtensionSettingsResponse. - # p result - # - def mutate_customer_extension_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomerExtensionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_extension_settings.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_extension_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_extension_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_extension_setting_service_stub.call_rpc :mutate_customer_extension_settings, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerExtensionSettingService API. - # - # This class represents the configuration for CustomerExtensionSettingService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomerExtensionSettingService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_extension_settings to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomerExtensionSettingService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_extension_settings.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerExtensionSettingService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_extension_settings.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomerExtensionSettingService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_extension_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_extension_settings - - # @private - def initialize parent_rpcs = nil - mutate_customer_extension_settings_config = parent_rpcs.mutate_customer_extension_settings if parent_rpcs.respond_to? :mutate_customer_extension_settings - @mutate_customer_extension_settings = ::Gapic::Config::Method.new mutate_customer_extension_settings_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_extension_setting_service/credentials.rb b/lib/google/ads/google_ads/v12/services/customer_extension_setting_service/credentials.rb deleted file mode 100644 index a199627c5..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_extension_setting_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerExtensionSettingService - # Credentials for the CustomerExtensionSettingService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_extension_setting_service/paths.rb b/lib/google/ads/google_ads/v12/services/customer_extension_setting_service/paths.rb deleted file mode 100644 index 8463a3738..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_extension_setting_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerExtensionSettingService - # Path helper methods for the CustomerExtensionSettingService API. - module Paths - ## - # Create a fully-qualified CustomerExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerExtensionSettings/{extension_type}` - # - # @param customer_id [String] - # @param extension_type [String] - # - # @return [::String] - def customer_extension_setting_path customer_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerExtensionSettings/#{extension_type}" - end - - ## - # Create a fully-qualified ExtensionFeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - # - # @param customer_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def extension_feed_item_path customer_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_extension_setting_service_pb.rb b/lib/google/ads/google_ads/v12/services/customer_extension_setting_service_pb.rb deleted file mode 100644 index 006167459..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_extension_setting_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/customer_extension_setting_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/customer_extension_setting_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/customer_extension_setting_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomerExtensionSettingsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CustomerExtensionSettingOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CustomerExtensionSettingOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CustomerExtensionSetting" - optional :update, :message, 2, "google.ads.googleads.v12.resources.CustomerExtensionSetting" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateCustomerExtensionSettingsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCustomerExtensionSettingResult" - end - add_message "google.ads.googleads.v12.services.MutateCustomerExtensionSettingResult" do - optional :resource_name, :string, 1 - optional :customer_extension_setting, :message, 2, "google.ads.googleads.v12.resources.CustomerExtensionSetting" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomerExtensionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerExtensionSettingsRequest").msgclass - CustomerExtensionSettingOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomerExtensionSettingOperation").msgclass - MutateCustomerExtensionSettingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerExtensionSettingsResponse").msgclass - MutateCustomerExtensionSettingResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerExtensionSettingResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_extension_setting_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/customer_extension_setting_service_services_pb.rb deleted file mode 100644 index ccc0a9924..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_extension_setting_service_services_pb.rb +++ /dev/null @@ -1,77 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/customer_extension_setting_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/customer_extension_setting_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerExtensionSettingService - # Proto file describing the CustomerExtensionSetting service. - # - # Service to manage customer extension settings. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomerExtensionSettingService' - - # Creates, updates, or removes customer extension settings. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [ExtensionSettingError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - rpc :MutateCustomerExtensionSettings, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerExtensionSettingsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerExtensionSettingsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_feed_service.rb b/lib/google/ads/google_ads/v12/services/customer_feed_service.rb deleted file mode 100644 index a93565e3a..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_feed_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/customer_feed_service/credentials" -require "google/ads/google_ads/v12/services/customer_feed_service/paths" -require "google/ads/google_ads/v12/services/customer_feed_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage customer feeds. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/customer_feed_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerFeedService::Client.new - # - module CustomerFeedService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "customer_feed_service", "helpers.rb" -require "google/ads/google_ads/v12/services/customer_feed_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/customer_feed_service/client.rb b/lib/google/ads/google_ads/v12/services/customer_feed_service/client.rb deleted file mode 100644 index a4cecbf82..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_feed_service/client.rb +++ /dev/null @@ -1,428 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/customer_feed_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerFeedService - ## - # Client for the CustomerFeedService service. - # - # Service to manage customer feeds. - # - class Client - include Paths - - # @private - attr_reader :customer_feed_service_stub - - ## - # Configure the CustomerFeedService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerFeedService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerFeedService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomerFeedService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerFeedService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerFeedService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerFeedService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerFeedService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerFeedService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerFeedService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/customer_feed_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_feed_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomerFeedService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes customer feeds. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CustomerFeedError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [FunctionError]() - # [FunctionParsingError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_customer_feeds(request, options = nil) - # Pass arguments to `mutate_customer_feeds` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomerFeedsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomerFeedsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_feeds(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_customer_feeds` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customer feeds are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CustomerFeedOperation, ::Hash>] - # Required. The list of operations to perform on individual customer feeds. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomerFeedsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomerFeedsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomerFeedService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomerFeedsRequest.new - # - # # Call the mutate_customer_feeds method. - # result = client.mutate_customer_feeds request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomerFeedsResponse. - # p result - # - def mutate_customer_feeds request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomerFeedsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_feeds.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_feeds.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_feeds.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_feed_service_stub.call_rpc :mutate_customer_feeds, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerFeedService API. - # - # This class represents the configuration for CustomerFeedService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomerFeedService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_feeds to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomerFeedService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_feeds.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerFeedService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_feeds.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomerFeedService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_feeds` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_feeds - - # @private - def initialize parent_rpcs = nil - mutate_customer_feeds_config = parent_rpcs.mutate_customer_feeds if parent_rpcs.respond_to? :mutate_customer_feeds - @mutate_customer_feeds = ::Gapic::Config::Method.new mutate_customer_feeds_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_feed_service/credentials.rb b/lib/google/ads/google_ads/v12/services/customer_feed_service/credentials.rb deleted file mode 100644 index 10f76aeca..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_feed_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerFeedService - # Credentials for the CustomerFeedService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_feed_service/paths.rb b/lib/google/ads/google_ads/v12/services/customer_feed_service/paths.rb deleted file mode 100644 index 299258a6f..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_feed_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerFeedService - # Path helper methods for the CustomerFeedService API. - module Paths - ## - # Create a fully-qualified CustomerFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerFeeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def customer_feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerFeeds/#{feed_id}" - end - - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_feed_service_pb.rb b/lib/google/ads/google_ads/v12/services/customer_feed_service_pb.rb deleted file mode 100644 index c3ad4d05f..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_feed_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/customer_feed_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/customer_feed_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/customer_feed_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomerFeedsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CustomerFeedOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CustomerFeedOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CustomerFeed" - optional :update, :message, 2, "google.ads.googleads.v12.resources.CustomerFeed" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateCustomerFeedsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCustomerFeedResult" - end - add_message "google.ads.googleads.v12.services.MutateCustomerFeedResult" do - optional :resource_name, :string, 1 - optional :customer_feed, :message, 2, "google.ads.googleads.v12.resources.CustomerFeed" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomerFeedsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerFeedsRequest").msgclass - CustomerFeedOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomerFeedOperation").msgclass - MutateCustomerFeedsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerFeedsResponse").msgclass - MutateCustomerFeedResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerFeedResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_feed_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/customer_feed_service_services_pb.rb deleted file mode 100644 index 05b362a91..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_feed_service_services_pb.rb +++ /dev/null @@ -1,74 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/customer_feed_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/customer_feed_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerFeedService - # Proto file describing the CustomerFeed service. - # - # Service to manage customer feeds. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomerFeedService' - - # Creates, updates, or removes customer feeds. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CustomerFeedError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [FunctionError]() - # [FunctionParsingError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - rpc :MutateCustomerFeeds, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerFeedsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerFeedsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_label_service.rb b/lib/google/ads/google_ads/v12/services/customer_label_service.rb deleted file mode 100644 index 52d512219..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_label_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/customer_label_service/credentials" -require "google/ads/google_ads/v12/services/customer_label_service/paths" -require "google/ads/google_ads/v12/services/customer_label_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage labels on customers. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/customer_label_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerLabelService::Client.new - # - module CustomerLabelService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "customer_label_service", "helpers.rb" -require "google/ads/google_ads/v12/services/customer_label_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/customer_label_service/client.rb b/lib/google/ads/google_ads/v12/services/customer_label_service/client.rb deleted file mode 100644 index b940a07af..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_label_service/client.rb +++ /dev/null @@ -1,412 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/customer_label_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerLabelService - ## - # Client for the CustomerLabelService service. - # - # Service to manage labels on customers. - # - class Client - include Paths - - # @private - attr_reader :customer_label_service_stub - - ## - # Configure the CustomerLabelService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerLabelService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomerLabelService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerLabelService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerLabelService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerLabelService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerLabelService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerLabelService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/customer_label_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_label_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomerLabelService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates and removes customer-label relationships. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [HeaderError]() - # [InternalError]() - # [LabelError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_customer_labels(request, options = nil) - # Pass arguments to `mutate_customer_labels` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomerLabelsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomerLabelsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_customer_labels` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose customer-label relationships are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CustomerLabelOperation, ::Hash>] - # Required. The list of operations to perform on customer-label relationships. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomerLabelsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomerLabelsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomerLabelService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomerLabelsRequest.new - # - # # Call the mutate_customer_labels method. - # result = client.mutate_customer_labels request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomerLabelsResponse. - # p result - # - def mutate_customer_labels request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomerLabelsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_labels.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_labels.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_labels.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_label_service_stub.call_rpc :mutate_customer_labels, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerLabelService API. - # - # This class represents the configuration for CustomerLabelService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomerLabelService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_labels to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomerLabelService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_labels.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerLabelService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_labels.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomerLabelService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_labels` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_labels - - # @private - def initialize parent_rpcs = nil - mutate_customer_labels_config = parent_rpcs.mutate_customer_labels if parent_rpcs.respond_to? :mutate_customer_labels - @mutate_customer_labels = ::Gapic::Config::Method.new mutate_customer_labels_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_label_service/credentials.rb b/lib/google/ads/google_ads/v12/services/customer_label_service/credentials.rb deleted file mode 100644 index eb9ebb8b0..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_label_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerLabelService - # Credentials for the CustomerLabelService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_label_service/paths.rb b/lib/google/ads/google_ads/v12/services/customer_label_service/paths.rb deleted file mode 100644 index c958d09f7..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_label_service/paths.rb +++ /dev/null @@ -1,83 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerLabelService - # Path helper methods for the CustomerLabelService API. - module Paths - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified CustomerLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerLabels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def customer_label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerLabels/#{label_id}" - end - - ## - # Create a fully-qualified Label resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/labels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/labels/#{label_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_label_service_pb.rb b/lib/google/ads/google_ads/v12/services/customer_label_service_pb.rb deleted file mode 100644 index c79e57758..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_label_service_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/customer_label_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/customer_label_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/customer_label_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomerLabelsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CustomerLabelOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.CustomerLabelOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CustomerLabel" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateCustomerLabelsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCustomerLabelResult" - end - add_message "google.ads.googleads.v12.services.MutateCustomerLabelResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomerLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerLabelsRequest").msgclass - CustomerLabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomerLabelOperation").msgclass - MutateCustomerLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerLabelsResponse").msgclass - MutateCustomerLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerLabelResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_label_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/customer_label_service_services_pb.rb deleted file mode 100644 index 282f2c710..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_label_service_services_pb.rb +++ /dev/null @@ -1,61 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/customer_label_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/customer_label_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerLabelService - # Proto file describing the Customer Label service. - # - # Service to manage labels on customers. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomerLabelService' - - # Creates and removes customer-label relationships. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [HeaderError]() - # [InternalError]() - # [LabelError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateCustomerLabels, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerLabelsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerLabelsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_manager_link_service.rb b/lib/google/ads/google_ads/v12/services/customer_manager_link_service.rb deleted file mode 100644 index 8971416f4..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_manager_link_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/customer_manager_link_service/credentials" -require "google/ads/google_ads/v12/services/customer_manager_link_service/paths" -require "google/ads/google_ads/v12/services/customer_manager_link_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage customer-manager links. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/customer_manager_link_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerManagerLinkService::Client.new - # - module CustomerManagerLinkService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "customer_manager_link_service", "helpers.rb" -require "google/ads/google_ads/v12/services/customer_manager_link_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/customer_manager_link_service/client.rb b/lib/google/ads/google_ads/v12/services/customer_manager_link_service/client.rb deleted file mode 100644 index 0001e83d0..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_manager_link_service/client.rb +++ /dev/null @@ -1,527 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/customer_manager_link_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerManagerLinkService - ## - # Client for the CustomerManagerLinkService service. - # - # Service to manage customer-manager links. - # - class Client - include Paths - - # @private - attr_reader :customer_manager_link_service_stub - - ## - # Configure the CustomerManagerLinkService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerManagerLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerManagerLinkService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomerManagerLinkService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerManagerLinkService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerManagerLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerManagerLinkService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerManagerLinkService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerManagerLinkService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerManagerLinkService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/customer_manager_link_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_manager_link_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomerManagerLinkService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Updates customer manager links. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [ManagerLinkError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_customer_manager_link(request, options = nil) - # Pass arguments to `mutate_customer_manager_link` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomerManagerLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomerManagerLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_manager_link(customer_id: nil, operations: nil, validate_only: nil) - # Pass arguments to `mutate_customer_manager_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customer manager links are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CustomerManagerLinkOperation, ::Hash>] - # Required. The list of operations to perform on individual customer manager links. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomerManagerLinkResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomerManagerLinkResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomerManagerLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomerManagerLinkRequest.new - # - # # Call the mutate_customer_manager_link method. - # result = client.mutate_customer_manager_link request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomerManagerLinkResponse. - # p result - # - def mutate_customer_manager_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomerManagerLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_manager_link.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_manager_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_manager_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_manager_link_service_stub.call_rpc :mutate_customer_manager_link, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Moves a client customer to a new manager customer. - # This simplifies the complex request that requires two operations to move - # a client customer to a new manager, for example: - # 1. Update operation with Status INACTIVE (previous manager) and, - # 2. Update operation with Status ACTIVE (new manager). - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload move_manager_link(request, options = nil) - # Pass arguments to `move_manager_link` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MoveManagerLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MoveManagerLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload move_manager_link(customer_id: nil, previous_customer_manager_link: nil, new_manager: nil, validate_only: nil) - # Pass arguments to `move_manager_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the client customer that is being moved. - # @param previous_customer_manager_link [::String] - # Required. The resource name of the previous CustomerManagerLink. - # The resource name has the form: - # `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` - # @param new_manager [::String] - # Required. The resource name of the new manager customer that the client wants to move - # to. Customer resource names have the format: "customers/\\{customer_id}" - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MoveManagerLinkResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MoveManagerLinkResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomerManagerLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MoveManagerLinkRequest.new - # - # # Call the move_manager_link method. - # result = client.move_manager_link request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MoveManagerLinkResponse. - # p result - # - def move_manager_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MoveManagerLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.move_manager_link.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.move_manager_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.move_manager_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_manager_link_service_stub.call_rpc :move_manager_link, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerManagerLinkService API. - # - # This class represents the configuration for CustomerManagerLinkService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomerManagerLinkService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_manager_link to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomerManagerLinkService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_manager_link.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerManagerLinkService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_manager_link.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomerManagerLinkService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_manager_link` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_manager_link - ## - # RPC-specific configuration for `move_manager_link` - # @return [::Gapic::Config::Method] - # - attr_reader :move_manager_link - - # @private - def initialize parent_rpcs = nil - mutate_customer_manager_link_config = parent_rpcs.mutate_customer_manager_link if parent_rpcs.respond_to? :mutate_customer_manager_link - @mutate_customer_manager_link = ::Gapic::Config::Method.new mutate_customer_manager_link_config - move_manager_link_config = parent_rpcs.move_manager_link if parent_rpcs.respond_to? :move_manager_link - @move_manager_link = ::Gapic::Config::Method.new move_manager_link_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_manager_link_service/credentials.rb b/lib/google/ads/google_ads/v12/services/customer_manager_link_service/credentials.rb deleted file mode 100644 index ab21f0322..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_manager_link_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerManagerLinkService - # Credentials for the CustomerManagerLinkService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_manager_link_service/paths.rb b/lib/google/ads/google_ads/v12/services/customer_manager_link_service/paths.rb deleted file mode 100644 index 3501c9346..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_manager_link_service/paths.rb +++ /dev/null @@ -1,68 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerManagerLinkService - # Path helper methods for the CustomerManagerLinkService API. - module Paths - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified CustomerManagerLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` - # - # @param customer_id [String] - # @param manager_customer_id [String] - # @param manager_link_id [String] - # - # @return [::String] - def customer_manager_link_path customer_id:, manager_customer_id:, manager_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "manager_customer_id cannot contain /" if manager_customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerManagerLinks/#{manager_customer_id}~#{manager_link_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_manager_link_service_pb.rb b/lib/google/ads/google_ads/v12/services/customer_manager_link_service_pb.rb deleted file mode 100644 index bc47b3f9e..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_manager_link_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/customer_manager_link_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/customer_manager_link_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/customer_manager_link_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomerManagerLinkRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CustomerManagerLinkOperation" - optional :validate_only, :bool, 3 - end - add_message "google.ads.googleads.v12.services.MoveManagerLinkRequest" do - optional :customer_id, :string, 1 - optional :previous_customer_manager_link, :string, 2 - optional :new_manager, :string, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.CustomerManagerLinkOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :update, :message, 2, "google.ads.googleads.v12.resources.CustomerManagerLink" - end - end - add_message "google.ads.googleads.v12.services.MutateCustomerManagerLinkResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateCustomerManagerLinkResult" - end - add_message "google.ads.googleads.v12.services.MoveManagerLinkResponse" do - optional :resource_name, :string, 1 - end - add_message "google.ads.googleads.v12.services.MutateCustomerManagerLinkResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomerManagerLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerManagerLinkRequest").msgclass - MoveManagerLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MoveManagerLinkRequest").msgclass - CustomerManagerLinkOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomerManagerLinkOperation").msgclass - MutateCustomerManagerLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerManagerLinkResponse").msgclass - MoveManagerLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MoveManagerLinkResponse").msgclass - MutateCustomerManagerLinkResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerManagerLinkResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_manager_link_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/customer_manager_link_service_services_pb.rb deleted file mode 100644 index daf48d817..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_manager_link_service_services_pb.rb +++ /dev/null @@ -1,77 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/customer_manager_link_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/customer_manager_link_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerManagerLinkService - # Service to manage customer-manager links. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomerManagerLinkService' - - # Updates customer manager links. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [ManagerLinkError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateCustomerManagerLink, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerManagerLinkRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerManagerLinkResponse - # Moves a client customer to a new manager customer. - # This simplifies the complex request that requires two operations to move - # a client customer to a new manager, for example: - # 1. Update operation with Status INACTIVE (previous manager) and, - # 2. Update operation with Status ACTIVE (new manager). - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - rpc :MoveManagerLink, ::Google::Ads::GoogleAds::V12::Services::MoveManagerLinkRequest, ::Google::Ads::GoogleAds::V12::Services::MoveManagerLinkResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service.rb b/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service.rb deleted file mode 100644 index 755fd558f..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/customer_negative_criterion_service/credentials" -require "google/ads/google_ads/v12/services/customer_negative_criterion_service/paths" -require "google/ads/google_ads/v12/services/customer_negative_criterion_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage customer negative criteria. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/customer_negative_criterion_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerNegativeCriterionService::Client.new - # - module CustomerNegativeCriterionService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "customer_negative_criterion_service", "helpers.rb" -require "google/ads/google_ads/v12/services/customer_negative_criterion_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service/client.rb b/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service/client.rb deleted file mode 100644 index c9e1a84e0..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service/client.rb +++ /dev/null @@ -1,415 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/customer_negative_criterion_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerNegativeCriterionService - ## - # Client for the CustomerNegativeCriterionService service. - # - # Service to manage customer negative criteria. - # - class Client - include Paths - - # @private - attr_reader :customer_negative_criterion_service_stub - - ## - # Configure the CustomerNegativeCriterionService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerNegativeCriterionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerNegativeCriterionService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomerNegativeCriterionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerNegativeCriterionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerNegativeCriterionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerNegativeCriterionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerNegativeCriterionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerNegativeCriterionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerNegativeCriterionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/customer_negative_criterion_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_negative_criterion_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomerNegativeCriterionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates or removes criteria. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CriterionError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_customer_negative_criteria(request, options = nil) - # Pass arguments to `mutate_customer_negative_criteria` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomerNegativeCriteriaRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomerNegativeCriteriaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_negative_criteria(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_customer_negative_criteria` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose criteria are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CustomerNegativeCriterionOperation, ::Hash>] - # Required. The list of operations to perform on individual criteria. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomerNegativeCriteriaResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomerNegativeCriteriaResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomerNegativeCriterionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomerNegativeCriteriaRequest.new - # - # # Call the mutate_customer_negative_criteria method. - # result = client.mutate_customer_negative_criteria request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomerNegativeCriteriaResponse. - # p result - # - def mutate_customer_negative_criteria request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomerNegativeCriteriaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_negative_criteria.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_negative_criteria.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_negative_criteria.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_negative_criterion_service_stub.call_rpc :mutate_customer_negative_criteria, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerNegativeCriterionService API. - # - # This class represents the configuration for CustomerNegativeCriterionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomerNegativeCriterionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_negative_criteria to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomerNegativeCriterionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_negative_criteria.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerNegativeCriterionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_negative_criteria.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomerNegativeCriterionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_negative_criteria` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_negative_criteria - - # @private - def initialize parent_rpcs = nil - mutate_customer_negative_criteria_config = parent_rpcs.mutate_customer_negative_criteria if parent_rpcs.respond_to? :mutate_customer_negative_criteria - @mutate_customer_negative_criteria = ::Gapic::Config::Method.new mutate_customer_negative_criteria_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service/credentials.rb b/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service/credentials.rb deleted file mode 100644 index f50fc8e16..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerNegativeCriterionService - # Credentials for the CustomerNegativeCriterionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service/paths.rb b/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service/paths.rb deleted file mode 100644 index f2862d84b..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerNegativeCriterionService - # Path helper methods for the CustomerNegativeCriterionService API. - module Paths - ## - # Create a fully-qualified CustomerNegativeCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` - # - # @param customer_id [String] - # @param criterion_id [String] - # - # @return [::String] - def customer_negative_criterion_path customer_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerNegativeCriteria/#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service_pb.rb b/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service_pb.rb deleted file mode 100644 index f47a7d5ba..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/customer_negative_criterion_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/customer_negative_criterion_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/customer_negative_criterion_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomerNegativeCriteriaRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CustomerNegativeCriterionOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CustomerNegativeCriterionOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CustomerNegativeCriterion" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateCustomerNegativeCriteriaResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateCustomerNegativeCriteriaResult" - end - add_message "google.ads.googleads.v12.services.MutateCustomerNegativeCriteriaResult" do - optional :resource_name, :string, 1 - optional :customer_negative_criterion, :message, 2, "google.ads.googleads.v12.resources.CustomerNegativeCriterion" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomerNegativeCriteriaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerNegativeCriteriaRequest").msgclass - CustomerNegativeCriterionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomerNegativeCriterionOperation").msgclass - MutateCustomerNegativeCriteriaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerNegativeCriteriaResponse").msgclass - MutateCustomerNegativeCriteriaResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerNegativeCriteriaResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service_services_pb.rb deleted file mode 100644 index f10c741a4..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_negative_criterion_service_services_pb.rb +++ /dev/null @@ -1,61 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/customer_negative_criterion_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/customer_negative_criterion_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerNegativeCriterionService - # Proto file describing the Customer Negative Criterion service. - # - # Service to manage customer negative criteria. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomerNegativeCriterionService' - - # Creates or removes criteria. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CriterionError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateCustomerNegativeCriteria, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerNegativeCriteriaRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerNegativeCriteriaResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_service.rb b/lib/google/ads/google_ads/v12/services/customer_service.rb deleted file mode 100644 index 366203b7c..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/customer_service/credentials" -require "google/ads/google_ads/v12/services/customer_service/paths" -require "google/ads/google_ads/v12/services/customer_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage customers. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/customer_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerService::Client.new - # - module CustomerService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "customer_service", "helpers.rb" -require "google/ads/google_ads/v12/services/customer_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/customer_service/client.rb b/lib/google/ads/google_ads/v12/services/customer_service/client.rb deleted file mode 100644 index 41e3ea685..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_service/client.rb +++ /dev/null @@ -1,614 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/customer_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerService - ## - # Client for the CustomerService service. - # - # Service to manage customers. - # - class Client - include Paths - - # @private - attr_reader :customer_service_stub - - ## - # Configure the CustomerService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomerService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/customer_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomerService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Updates a customer. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # [UrlFieldError]() - # - # @overload mutate_customer(request, options = nil) - # Pass arguments to `mutate_customer` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomerRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomerRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer(customer_id: nil, operation: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_customer` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer being modified. - # @param operation [::Google::Ads::GoogleAds::V12::Services::CustomerOperation, ::Hash] - # Required. The operation to perform on the customer - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomerResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomerResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomerService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomerRequest.new - # - # # Call the mutate_customer method. - # result = client.mutate_customer request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomerResponse. - # p result - # - def mutate_customer request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomerRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_service_stub.call_rpc :mutate_customer, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns resource names of customers directly accessible by the - # user authenticating the call. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_accessible_customers(request, options = nil) - # Pass arguments to `list_accessible_customers` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::ListAccessibleCustomersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::ListAccessibleCustomersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::ListAccessibleCustomersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::ListAccessibleCustomersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomerService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::ListAccessibleCustomersRequest.new - # - # # Call the list_accessible_customers method. - # result = client.list_accessible_customers request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::ListAccessibleCustomersResponse. - # p result - # - def list_accessible_customers request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::ListAccessibleCustomersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_accessible_customers.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_accessible_customers.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_accessible_customers.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_service_stub.call_rpc :list_accessible_customers, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Creates a new client under manager. The new client customer is returned. - # - # List of thrown errors: - # [AccessInvitationError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CurrencyCodeError]() - # [HeaderError]() - # [InternalError]() - # [ManagerLinkError]() - # [QuotaError]() - # [RequestError]() - # [StringLengthError]() - # [TimeZoneError]() - # - # @overload create_customer_client(request, options = nil) - # Pass arguments to `create_customer_client` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::CreateCustomerClientRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::CreateCustomerClientRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_customer_client(customer_id: nil, customer_client: nil, email_address: nil, access_role: nil, validate_only: nil) - # Pass arguments to `create_customer_client` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the Manager under whom client customer is being created. - # @param customer_client [::Google::Ads::GoogleAds::V12::Resources::Customer, ::Hash] - # Required. The new client customer to create. The resource name on this customer - # will be ignored. - # @param email_address [::String] - # Email address of the user who should be invited on the created client - # customer. Accessible only to customers on the allow-list. - # @param access_role [::Google::Ads::GoogleAds::V12::Enums::AccessRoleEnum::AccessRole] - # The proposed role of user on the created client customer. - # Accessible only to customers on the allow-list. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::CreateCustomerClientResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::CreateCustomerClientResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomerService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::CreateCustomerClientRequest.new - # - # # Call the create_customer_client method. - # result = client.create_customer_client request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::CreateCustomerClientResponse. - # p result - # - def create_customer_client request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::CreateCustomerClientRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_customer_client.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_customer_client.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_customer_client.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_service_stub.call_rpc :create_customer_client, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerService API. - # - # This class represents the configuration for CustomerService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomerService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomerService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomerService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer - ## - # RPC-specific configuration for `list_accessible_customers` - # @return [::Gapic::Config::Method] - # - attr_reader :list_accessible_customers - ## - # RPC-specific configuration for `create_customer_client` - # @return [::Gapic::Config::Method] - # - attr_reader :create_customer_client - - # @private - def initialize parent_rpcs = nil - mutate_customer_config = parent_rpcs.mutate_customer if parent_rpcs.respond_to? :mutate_customer - @mutate_customer = ::Gapic::Config::Method.new mutate_customer_config - list_accessible_customers_config = parent_rpcs.list_accessible_customers if parent_rpcs.respond_to? :list_accessible_customers - @list_accessible_customers = ::Gapic::Config::Method.new list_accessible_customers_config - create_customer_client_config = parent_rpcs.create_customer_client if parent_rpcs.respond_to? :create_customer_client - @create_customer_client = ::Gapic::Config::Method.new create_customer_client_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_service/credentials.rb b/lib/google/ads/google_ads/v12/services/customer_service/credentials.rb deleted file mode 100644 index 96627ee74..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerService - # Credentials for the CustomerService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_service/paths.rb b/lib/google/ads/google_ads/v12/services/customer_service/paths.rb deleted file mode 100644 index 9518fbc8d..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_service/paths.rb +++ /dev/null @@ -1,66 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerService - # Path helper methods for the CustomerService API. - module Paths - ## - # Create a fully-qualified ConversionAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionActions/{conversion_action_id}` - # - # @param customer_id [String] - # @param conversion_action_id [String] - # - # @return [::String] - def conversion_action_path customer_id:, conversion_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionActions/#{conversion_action_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_service_pb.rb b/lib/google/ads/google_ads/v12/services/customer_service_pb.rb deleted file mode 100644 index 9bb24f371..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_service_pb.rb +++ /dev/null @@ -1,70 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/customer_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/access_role_pb' -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/customer_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/customer_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomerRequest" do - optional :customer_id, :string, 1 - optional :operation, :message, 4, "google.ads.googleads.v12.services.CustomerOperation" - optional :validate_only, :bool, 5 - optional :response_content_type, :enum, 6, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CreateCustomerClientRequest" do - optional :customer_id, :string, 1 - optional :customer_client, :message, 2, "google.ads.googleads.v12.resources.Customer" - proto3_optional :email_address, :string, 5 - optional :access_role, :enum, 4, "google.ads.googleads.v12.enums.AccessRoleEnum.AccessRole" - optional :validate_only, :bool, 6 - end - add_message "google.ads.googleads.v12.services.CustomerOperation" do - optional :update, :message, 1, "google.ads.googleads.v12.resources.Customer" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.ads.googleads.v12.services.CreateCustomerClientResponse" do - optional :resource_name, :string, 2 - optional :invitation_link, :string, 3 - end - add_message "google.ads.googleads.v12.services.MutateCustomerResponse" do - optional :result, :message, 2, "google.ads.googleads.v12.services.MutateCustomerResult" - end - add_message "google.ads.googleads.v12.services.MutateCustomerResult" do - optional :resource_name, :string, 1 - optional :customer, :message, 2, "google.ads.googleads.v12.resources.Customer" - end - add_message "google.ads.googleads.v12.services.ListAccessibleCustomersRequest" do - end - add_message "google.ads.googleads.v12.services.ListAccessibleCustomersResponse" do - repeated :resource_names, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerRequest").msgclass - CreateCustomerClientRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CreateCustomerClientRequest").msgclass - CustomerOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomerOperation").msgclass - CreateCustomerClientResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CreateCustomerClientResponse").msgclass - MutateCustomerResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerResponse").msgclass - MutateCustomerResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerResult").msgclass - ListAccessibleCustomersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListAccessibleCustomersRequest").msgclass - ListAccessibleCustomersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListAccessibleCustomersResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/customer_service_services_pb.rb deleted file mode 100644 index 34b4ba064..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_service_services_pb.rb +++ /dev/null @@ -1,86 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/customer_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/customer_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerService - # Proto file describing the Customer service. - # - # Service to manage customers. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomerService' - - # Updates a customer. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # [UrlFieldError]() - rpc :MutateCustomer, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerResponse - # Returns resource names of customers directly accessible by the - # user authenticating the call. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :ListAccessibleCustomers, ::Google::Ads::GoogleAds::V12::Services::ListAccessibleCustomersRequest, ::Google::Ads::GoogleAds::V12::Services::ListAccessibleCustomersResponse - # Creates a new client under manager. The new client customer is returned. - # - # List of thrown errors: - # [AccessInvitationError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CurrencyCodeError]() - # [HeaderError]() - # [InternalError]() - # [ManagerLinkError]() - # [QuotaError]() - # [RequestError]() - # [StringLengthError]() - # [TimeZoneError]() - rpc :CreateCustomerClient, ::Google::Ads::GoogleAds::V12::Services::CreateCustomerClientRequest, ::Google::Ads::GoogleAds::V12::Services::CreateCustomerClientResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service.rb b/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service.rb deleted file mode 100644 index bcb56638b..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/customer_user_access_invitation_service/credentials" -require "google/ads/google_ads/v12/services/customer_user_access_invitation_service/paths" -require "google/ads/google_ads/v12/services/customer_user_access_invitation_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # This service manages the access invitation extended to users for a given - # customer. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/customer_user_access_invitation_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessInvitationService::Client.new - # - module CustomerUserAccessInvitationService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "customer_user_access_invitation_service", "helpers.rb" -require "google/ads/google_ads/v12/services/customer_user_access_invitation_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service/client.rb b/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service/client.rb deleted file mode 100644 index 696f3809d..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service/client.rb +++ /dev/null @@ -1,402 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/customer_user_access_invitation_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerUserAccessInvitationService - ## - # Client for the CustomerUserAccessInvitationService service. - # - # This service manages the access invitation extended to users for a given - # customer. - # - class Client - include Paths - - # @private - attr_reader :customer_user_access_invitation_service_stub - - ## - # Configure the CustomerUserAccessInvitationService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessInvitationService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerUserAccessInvitationService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessInvitationService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerUserAccessInvitationService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessInvitationService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerUserAccessInvitationService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessInvitationService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessInvitationService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerUserAccessInvitationService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/customer_user_access_invitation_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_user_access_invitation_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessInvitationService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates or removes an access invitation. - # - # List of thrown errors: - # [AccessInvitationError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_customer_user_access_invitation(request, options = nil) - # Pass arguments to `mutate_customer_user_access_invitation` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessInvitationRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessInvitationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_user_access_invitation(customer_id: nil, operation: nil) - # Pass arguments to `mutate_customer_user_access_invitation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose access invitation is being modified. - # @param operation [::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessInvitationOperation, ::Hash] - # Required. The operation to perform on the access invitation - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessInvitationResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessInvitationResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomerUserAccessInvitationService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessInvitationRequest.new - # - # # Call the mutate_customer_user_access_invitation method. - # result = client.mutate_customer_user_access_invitation request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessInvitationResponse. - # p result - # - def mutate_customer_user_access_invitation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessInvitationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_user_access_invitation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_user_access_invitation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_user_access_invitation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_user_access_invitation_service_stub.call_rpc :mutate_customer_user_access_invitation, - request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerUserAccessInvitationService API. - # - # This class represents the configuration for CustomerUserAccessInvitationService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessInvitationService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_user_access_invitation to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessInvitationService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_user_access_invitation.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessInvitationService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_user_access_invitation.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomerUserAccessInvitationService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_user_access_invitation` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_user_access_invitation - - # @private - def initialize parent_rpcs = nil - mutate_customer_user_access_invitation_config = parent_rpcs.mutate_customer_user_access_invitation if parent_rpcs.respond_to? :mutate_customer_user_access_invitation - @mutate_customer_user_access_invitation = ::Gapic::Config::Method.new mutate_customer_user_access_invitation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service/credentials.rb b/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service/credentials.rb deleted file mode 100644 index 9c8ebb0fd..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerUserAccessInvitationService - # Credentials for the CustomerUserAccessInvitationService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service/paths.rb b/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service/paths.rb deleted file mode 100644 index 3d147fc9d..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerUserAccessInvitationService - # Path helper methods for the CustomerUserAccessInvitationService API. - module Paths - ## - # Create a fully-qualified CustomerUserAccessInvitation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerUserAccessInvitations/{invitation_id}` - # - # @param customer_id [String] - # @param invitation_id [String] - # - # @return [::String] - def customer_user_access_invitation_path customer_id:, invitation_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerUserAccessInvitations/#{invitation_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service_pb.rb b/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service_pb.rb deleted file mode 100644 index 15a2e89df..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/customer_user_access_invitation_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/customer_user_access_invitation_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/customer_user_access_invitation_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomerUserAccessInvitationRequest" do - optional :customer_id, :string, 1 - optional :operation, :message, 2, "google.ads.googleads.v12.services.CustomerUserAccessInvitationOperation" - end - add_message "google.ads.googleads.v12.services.CustomerUserAccessInvitationOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CustomerUserAccessInvitation" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateCustomerUserAccessInvitationResponse" do - optional :result, :message, 1, "google.ads.googleads.v12.services.MutateCustomerUserAccessInvitationResult" - end - add_message "google.ads.googleads.v12.services.MutateCustomerUserAccessInvitationResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomerUserAccessInvitationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerUserAccessInvitationRequest").msgclass - CustomerUserAccessInvitationOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomerUserAccessInvitationOperation").msgclass - MutateCustomerUserAccessInvitationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerUserAccessInvitationResponse").msgclass - MutateCustomerUserAccessInvitationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerUserAccessInvitationResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service_services_pb.rb deleted file mode 100644 index ef3f6eccb..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_user_access_invitation_service_services_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/customer_user_access_invitation_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/customer_user_access_invitation_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerUserAccessInvitationService - # Proto file describing the CustomerUserAccessInvitation service. - # - # This service manages the access invitation extended to users for a given - # customer. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomerUserAccessInvitationService' - - # Creates or removes an access invitation. - # - # List of thrown errors: - # [AccessInvitationError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateCustomerUserAccessInvitation, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessInvitationRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessInvitationResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_user_access_service.rb b/lib/google/ads/google_ads/v12/services/customer_user_access_service.rb deleted file mode 100644 index 189ecfeda..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_user_access_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/customer_user_access_service/credentials" -require "google/ads/google_ads/v12/services/customer_user_access_service/paths" -require "google/ads/google_ads/v12/services/customer_user_access_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # This service manages the permissions of a user on a given customer. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/customer_user_access_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessService::Client.new - # - module CustomerUserAccessService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "customer_user_access_service", "helpers.rb" -require "google/ads/google_ads/v12/services/customer_user_access_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/customer_user_access_service/client.rb b/lib/google/ads/google_ads/v12/services/customer_user_access_service/client.rb deleted file mode 100644 index e221ff118..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_user_access_service/client.rb +++ /dev/null @@ -1,404 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/customer_user_access_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerUserAccessService - ## - # Client for the CustomerUserAccessService service. - # - # This service manages the permissions of a user on a given customer. - # - class Client - include Paths - - # @private - attr_reader :customer_user_access_service_stub - - ## - # Configure the CustomerUserAccessService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerUserAccessService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerUserAccessService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerUserAccessService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerUserAccessService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/customer_user_access_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_user_access_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Updates, removes permission of a user on a given customer. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CustomerUserAccessError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_customer_user_access(request, options = nil) - # Pass arguments to `mutate_customer_user_access` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_user_access(customer_id: nil, operation: nil) - # Pass arguments to `mutate_customer_user_access` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer being modified. - # @param operation [::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessOperation, ::Hash] - # Required. The operation to perform on the customer - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomerUserAccessService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessRequest.new - # - # # Call the mutate_customer_user_access method. - # result = client.mutate_customer_user_access request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessResponse. - # p result - # - def mutate_customer_user_access request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_user_access.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_user_access.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_user_access.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_user_access_service_stub.call_rpc :mutate_customer_user_access, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerUserAccessService API. - # - # This class represents the configuration for CustomerUserAccessService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_user_access to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_user_access.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomerUserAccessService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_user_access.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomerUserAccessService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_user_access` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_user_access - - # @private - def initialize parent_rpcs = nil - mutate_customer_user_access_config = parent_rpcs.mutate_customer_user_access if parent_rpcs.respond_to? :mutate_customer_user_access - @mutate_customer_user_access = ::Gapic::Config::Method.new mutate_customer_user_access_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_user_access_service/credentials.rb b/lib/google/ads/google_ads/v12/services/customer_user_access_service/credentials.rb deleted file mode 100644 index e5fd85583..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_user_access_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerUserAccessService - # Credentials for the CustomerUserAccessService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_user_access_service/paths.rb b/lib/google/ads/google_ads/v12/services/customer_user_access_service/paths.rb deleted file mode 100644 index 3d59e26a2..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_user_access_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerUserAccessService - # Path helper methods for the CustomerUserAccessService API. - module Paths - ## - # Create a fully-qualified CustomerUserAccess resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerUserAccesses/{user_id}` - # - # @param customer_id [String] - # @param user_id [String] - # - # @return [::String] - def customer_user_access_path customer_id:, user_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerUserAccesses/#{user_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_user_access_service_pb.rb b/lib/google/ads/google_ads/v12/services/customer_user_access_service_pb.rb deleted file mode 100644 index 8fbf7fd9c..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_user_access_service_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/customer_user_access_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/customer_user_access_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/customer_user_access_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomerUserAccessRequest" do - optional :customer_id, :string, 1 - optional :operation, :message, 2, "google.ads.googleads.v12.services.CustomerUserAccessOperation" - end - add_message "google.ads.googleads.v12.services.CustomerUserAccessOperation" do - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - oneof :operation do - optional :update, :message, 1, "google.ads.googleads.v12.resources.CustomerUserAccess" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateCustomerUserAccessResponse" do - optional :result, :message, 1, "google.ads.googleads.v12.services.MutateCustomerUserAccessResult" - end - add_message "google.ads.googleads.v12.services.MutateCustomerUserAccessResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomerUserAccessRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerUserAccessRequest").msgclass - CustomerUserAccessOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomerUserAccessOperation").msgclass - MutateCustomerUserAccessResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerUserAccessResponse").msgclass - MutateCustomerUserAccessResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomerUserAccessResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customer_user_access_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/customer_user_access_service_services_pb.rb deleted file mode 100644 index f29149835..000000000 --- a/lib/google/ads/google_ads/v12/services/customer_user_access_service_services_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/customer_user_access_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/customer_user_access_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomerUserAccessService - # This service manages the permissions of a user on a given customer. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomerUserAccessService' - - # Updates, removes permission of a user on a given customer. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CustomerUserAccessError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateCustomerUserAccess, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomerUserAccessResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customizer_attribute_service.rb b/lib/google/ads/google_ads/v12/services/customizer_attribute_service.rb deleted file mode 100644 index 72c4b737b..000000000 --- a/lib/google/ads/google_ads/v12/services/customizer_attribute_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/customizer_attribute_service/credentials" -require "google/ads/google_ads/v12/services/customizer_attribute_service/paths" -require "google/ads/google_ads/v12/services/customizer_attribute_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage customizer attribute - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/customizer_attribute_service" - # client = ::Google::Ads::GoogleAds::V12::Services::CustomizerAttributeService::Client.new - # - module CustomizerAttributeService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "customizer_attribute_service", "helpers.rb" -require "google/ads/google_ads/v12/services/customizer_attribute_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/customizer_attribute_service/client.rb b/lib/google/ads/google_ads/v12/services/customizer_attribute_service/client.rb deleted file mode 100644 index 855d62bb0..000000000 --- a/lib/google/ads/google_ads/v12/services/customizer_attribute_service/client.rb +++ /dev/null @@ -1,404 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/customizer_attribute_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomizerAttributeService - ## - # Client for the CustomizerAttributeService service. - # - # Service to manage customizer attribute - # - class Client - include Paths - - # @private - attr_reader :customizer_attribute_service_stub - - ## - # Configure the CustomizerAttributeService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomizerAttributeService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomizerAttributeService clients - # ::Google::Ads::GoogleAds::V12::Services::CustomizerAttributeService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomizerAttributeService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::CustomizerAttributeService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomizerAttributeService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomizerAttributeService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::CustomizerAttributeService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomizerAttributeService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/customizer_attribute_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customizer_attribute_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::CustomizerAttributeService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes customizer attributes. Operation statuses are - # returned. - # - # @overload mutate_customizer_attributes(request, options = nil) - # Pass arguments to `mutate_customizer_attributes` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateCustomizerAttributesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateCustomizerAttributesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customizer_attributes(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_customizer_attributes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customizer attributes are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::CustomizerAttributeOperation, ::Hash>] - # Required. The list of operations to perform on individual customizer attributes. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateCustomizerAttributesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateCustomizerAttributesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::CustomizerAttributeService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateCustomizerAttributesRequest.new - # - # # Call the mutate_customizer_attributes method. - # result = client.mutate_customizer_attributes request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateCustomizerAttributesResponse. - # p result - # - def mutate_customizer_attributes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateCustomizerAttributesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customizer_attributes.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customizer_attributes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customizer_attributes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customizer_attribute_service_stub.call_rpc :mutate_customizer_attributes, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomizerAttributeService API. - # - # This class represents the configuration for CustomizerAttributeService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::CustomizerAttributeService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customizer_attributes to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::CustomizerAttributeService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customizer_attributes.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::CustomizerAttributeService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customizer_attributes.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the CustomizerAttributeService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customizer_attributes` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customizer_attributes - - # @private - def initialize parent_rpcs = nil - mutate_customizer_attributes_config = parent_rpcs.mutate_customizer_attributes if parent_rpcs.respond_to? :mutate_customizer_attributes - @mutate_customizer_attributes = ::Gapic::Config::Method.new mutate_customizer_attributes_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customizer_attribute_service/credentials.rb b/lib/google/ads/google_ads/v12/services/customizer_attribute_service/credentials.rb deleted file mode 100644 index 38a0be950..000000000 --- a/lib/google/ads/google_ads/v12/services/customizer_attribute_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomizerAttributeService - # Credentials for the CustomizerAttributeService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customizer_attribute_service/paths.rb b/lib/google/ads/google_ads/v12/services/customizer_attribute_service/paths.rb deleted file mode 100644 index 3410387fb..000000000 --- a/lib/google/ads/google_ads/v12/services/customizer_attribute_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomizerAttributeService - # Path helper methods for the CustomizerAttributeService API. - module Paths - ## - # Create a fully-qualified CustomizerAttribute resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customizer_attribute_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customizer_attribute_service_pb.rb b/lib/google/ads/google_ads/v12/services/customizer_attribute_service_pb.rb deleted file mode 100644 index c0731b6ec..000000000 --- a/lib/google/ads/google_ads/v12/services/customizer_attribute_service_pb.rb +++ /dev/null @@ -1,55 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/customizer_attribute_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/customizer_attribute_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/customizer_attribute_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateCustomizerAttributesRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.CustomizerAttributeOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.CustomizerAttributeOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.CustomizerAttribute" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateCustomizerAttributesResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateCustomizerAttributeResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateCustomizerAttributeResult" do - optional :resource_name, :string, 1 - optional :customizer_attribute, :message, 2, "google.ads.googleads.v12.resources.CustomizerAttribute" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateCustomizerAttributesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomizerAttributesRequest").msgclass - CustomizerAttributeOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CustomizerAttributeOperation").msgclass - MutateCustomizerAttributesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomizerAttributesResponse").msgclass - MutateCustomizerAttributeResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateCustomizerAttributeResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/customizer_attribute_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/customizer_attribute_service_services_pb.rb deleted file mode 100644 index 35659a6ba..000000000 --- a/lib/google/ads/google_ads/v12/services/customizer_attribute_service_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/customizer_attribute_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/customizer_attribute_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module CustomizerAttributeService - # Proto file describing the CustomizerAttribute service. - # - # Service to manage customizer attribute - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.CustomizerAttributeService' - - # Creates, updates or removes customizer attributes. Operation statuses are - # returned. - rpc :MutateCustomizerAttributes, ::Google::Ads::GoogleAds::V12::Services::MutateCustomizerAttributesRequest, ::Google::Ads::GoogleAds::V12::Services::MutateCustomizerAttributesResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/experiment_arm_service.rb b/lib/google/ads/google_ads/v12/services/experiment_arm_service.rb deleted file mode 100644 index 432175dcd..000000000 --- a/lib/google/ads/google_ads/v12/services/experiment_arm_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/experiment_arm_service/credentials" -require "google/ads/google_ads/v12/services/experiment_arm_service/paths" -require "google/ads/google_ads/v12/services/experiment_arm_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage experiment arms. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/experiment_arm_service" - # client = ::Google::Ads::GoogleAds::V12::Services::ExperimentArmService::Client.new - # - module ExperimentArmService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "experiment_arm_service", "helpers.rb" -require "google/ads/google_ads/v12/services/experiment_arm_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/experiment_arm_service/client.rb b/lib/google/ads/google_ads/v12/services/experiment_arm_service/client.rb deleted file mode 100644 index 2e056bd01..000000000 --- a/lib/google/ads/google_ads/v12/services/experiment_arm_service/client.rb +++ /dev/null @@ -1,413 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/experiment_arm_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ExperimentArmService - ## - # Client for the ExperimentArmService service. - # - # Service to manage experiment arms. - # - class Client - include Paths - - # @private - attr_reader :experiment_arm_service_stub - - ## - # Configure the ExperimentArmService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::ExperimentArmService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ExperimentArmService clients - # ::Google::Ads::GoogleAds::V12::Services::ExperimentArmService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ExperimentArmService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::ExperimentArmService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ExperimentArmService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ExperimentArmService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ExperimentArmService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ExperimentArmService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/experiment_arm_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @experiment_arm_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::ExperimentArmService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes experiment arms. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentArmError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_experiment_arms(request, options = nil) - # Pass arguments to `mutate_experiment_arms` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateExperimentArmsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateExperimentArmsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_experiment_arms(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_experiment_arms` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose experiments are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::ExperimentArmOperation, ::Hash>] - # Required. The list of operations to perform on individual experiment arm. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateExperimentArmsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateExperimentArmsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ExperimentArmService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateExperimentArmsRequest.new - # - # # Call the mutate_experiment_arms method. - # result = client.mutate_experiment_arms request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateExperimentArmsResponse. - # p result - # - def mutate_experiment_arms request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateExperimentArmsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_experiment_arms.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_experiment_arms.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_experiment_arms.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @experiment_arm_service_stub.call_rpc :mutate_experiment_arms, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ExperimentArmService API. - # - # This class represents the configuration for ExperimentArmService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::ExperimentArmService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_experiment_arms to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::ExperimentArmService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_experiment_arms.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::ExperimentArmService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_experiment_arms.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the ExperimentArmService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_experiment_arms` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_experiment_arms - - # @private - def initialize parent_rpcs = nil - mutate_experiment_arms_config = parent_rpcs.mutate_experiment_arms if parent_rpcs.respond_to? :mutate_experiment_arms - @mutate_experiment_arms = ::Gapic::Config::Method.new mutate_experiment_arms_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/experiment_arm_service/credentials.rb b/lib/google/ads/google_ads/v12/services/experiment_arm_service/credentials.rb deleted file mode 100644 index 0c5f847ea..000000000 --- a/lib/google/ads/google_ads/v12/services/experiment_arm_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ExperimentArmService - # Credentials for the ExperimentArmService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/experiment_arm_service/paths.rb b/lib/google/ads/google_ads/v12/services/experiment_arm_service/paths.rb deleted file mode 100644 index fb5dddfa2..000000000 --- a/lib/google/ads/google_ads/v12/services/experiment_arm_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ExperimentArmService - # Path helper methods for the ExperimentArmService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified Experiment resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/experiments/{trial_id}` - # - # @param customer_id [String] - # @param trial_id [String] - # - # @return [::String] - def experiment_path customer_id:, trial_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/experiments/#{trial_id}" - end - - ## - # Create a fully-qualified ExperimentArm resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}` - # - # @param customer_id [String] - # @param trial_id [String] - # @param trial_arm_id [String] - # - # @return [::String] - def experiment_arm_path customer_id:, trial_id:, trial_arm_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "trial_id cannot contain /" if trial_id.to_s.include? "/" - - "customers/#{customer_id}/experimentArms/#{trial_id}~#{trial_arm_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/experiment_arm_service_pb.rb b/lib/google/ads/google_ads/v12/services/experiment_arm_service_pb.rb deleted file mode 100644 index 5c35eeda3..000000000 --- a/lib/google/ads/google_ads/v12/services/experiment_arm_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/experiment_arm_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/experiment_arm_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/experiment_arm_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateExperimentArmsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.ExperimentArmOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.ExperimentArmOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.ExperimentArm" - optional :update, :message, 2, "google.ads.googleads.v12.resources.ExperimentArm" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateExperimentArmsResponse" do - optional :partial_failure_error, :message, 1, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateExperimentArmResult" - end - add_message "google.ads.googleads.v12.services.MutateExperimentArmResult" do - optional :resource_name, :string, 1 - optional :experiment_arm, :message, 2, "google.ads.googleads.v12.resources.ExperimentArm" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateExperimentArmsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateExperimentArmsRequest").msgclass - ExperimentArmOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ExperimentArmOperation").msgclass - MutateExperimentArmsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateExperimentArmsResponse").msgclass - MutateExperimentArmResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateExperimentArmResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/experiment_arm_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/experiment_arm_service_services_pb.rb deleted file mode 100644 index da806c951..000000000 --- a/lib/google/ads/google_ads/v12/services/experiment_arm_service_services_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/experiment_arm_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/experiment_arm_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ExperimentArmService - # Proto file describing the Experiment Arm service. - # - # Service to manage experiment arms. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.ExperimentArmService' - - # Creates, updates, or removes experiment arms. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentArmError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateExperimentArms, ::Google::Ads::GoogleAds::V12::Services::MutateExperimentArmsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateExperimentArmsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/experiment_service.rb b/lib/google/ads/google_ads/v12/services/experiment_service.rb deleted file mode 100644 index af8389ee4..000000000 --- a/lib/google/ads/google_ads/v12/services/experiment_service.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/experiment_service/credentials" -require "google/ads/google_ads/v12/services/experiment_service/paths" -require "google/ads/google_ads/v12/services/experiment_service/operations" -require "google/ads/google_ads/v12/services/experiment_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage experiments. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/experiment_service" - # client = ::Google::Ads::GoogleAds::V12::Services::ExperimentService::Client.new - # - module ExperimentService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "experiment_service", "helpers.rb" -require "google/ads/google_ads/v12/services/experiment_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/experiment_service/client.rb b/lib/google/ads/google_ads/v12/services/experiment_service/client.rb deleted file mode 100644 index 55a24bdc9..000000000 --- a/lib/google/ads/google_ads/v12/services/experiment_service/client.rb +++ /dev/null @@ -1,1011 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/experiment_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ExperimentService - ## - # Client for the ExperimentService service. - # - # Service to manage experiments. - # - class Client - include Paths - - # @private - attr_reader :experiment_service_stub - - ## - # Configure the ExperimentService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::ExperimentService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ExperimentService clients - # ::Google::Ads::GoogleAds::V12::Services::ExperimentService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ExperimentService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::ExperimentService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ExperimentService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ExperimentService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ExperimentService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ExperimentService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/experiment_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - end - - @experiment_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::ExperimentService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Ads::GoogleAds::V12::Services::ExperimentService::Operations] - # - attr_reader :operations_client - - # Service calls - - ## - # Creates, updates, or removes experiments. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_experiments(request, options = nil) - # Pass arguments to `mutate_experiments` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateExperimentsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateExperimentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_experiments(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_experiments` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose experiments are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::ExperimentOperation, ::Hash>] - # Required. The list of operations to perform on individual experiments. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateExperimentsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateExperimentsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ExperimentService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateExperimentsRequest.new - # - # # Call the mutate_experiments method. - # result = client.mutate_experiments request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateExperimentsResponse. - # p result - # - def mutate_experiments request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateExperimentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_experiments.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_experiments.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_experiments.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @experiment_service_stub.call_rpc :mutate_experiments, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Immediately ends an experiment, changing the experiment's scheduled - # end date and without waiting for end of day. End date is updated to be the - # time of the request. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload end_experiment(request, options = nil) - # Pass arguments to `end_experiment` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::EndExperimentRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::EndExperimentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload end_experiment(experiment: nil, validate_only: nil) - # Pass arguments to `end_experiment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param experiment [::String] - # Required. The resource name of the campaign experiment to end. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ExperimentService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::EndExperimentRequest.new - # - # # Call the end_experiment method. - # result = client.end_experiment request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def end_experiment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::EndExperimentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.end_experiment.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.experiment - header_params["experiment"] = request.experiment - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.end_experiment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.end_experiment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @experiment_service_stub.call_rpc :end_experiment, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns all errors that occurred during the last Experiment update (either - # scheduling or promotion). - # Supports standard list paging. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_experiment_async_errors(request, options = nil) - # Pass arguments to `list_experiment_async_errors` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::ListExperimentAsyncErrorsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::ListExperimentAsyncErrorsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_experiment_async_errors(resource_name: nil, page_token: nil, page_size: nil) - # Pass arguments to `list_experiment_async_errors` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The name of the experiment from which to retrieve the async - # errors. - # @param page_token [::String] - # Token of the page to retrieve. If not specified, the first - # page of results will be returned. Use the value obtained from - # `next_page_token` in the previous response in order to request - # the next page of results. - # @param page_size [::Integer] - # Number of elements to retrieve in a single page. - # When a page request is too large, the server may decide to - # further limit the number of returned resources. - # The maximum page size is 1000. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Rpc::Status>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Rpc::Status>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ExperimentService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::ListExperimentAsyncErrorsRequest.new - # - # # Call the list_experiment_async_errors method. - # result = client.list_experiment_async_errors request - # - # # The returned object is of type Gapic::PagedEnumerable. You can - # # iterate over all elements by calling #each, and the enumerable - # # will lazily make API calls to fetch subsequent pages. Other - # # methods are also available for managing paging directly. - # result.each do |response| - # # Each element is of type ::Google::Rpc::Status. - # p response - # end - # - def list_experiment_async_errors request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::ListExperimentAsyncErrorsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_experiment_async_errors.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_experiment_async_errors.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_experiment_async_errors.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @experiment_service_stub.call_rpc :list_experiment_async_errors, request, - options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @experiment_service_stub, :list_experiment_async_errors, - request, response, operation, options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Graduates an experiment to a full campaign. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload graduate_experiment(request, options = nil) - # Pass arguments to `graduate_experiment` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::GraduateExperimentRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::GraduateExperimentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload graduate_experiment(experiment: nil, campaign_budget_mappings: nil, validate_only: nil) - # Pass arguments to `graduate_experiment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param experiment [::String] - # Required. The experiment to be graduated. - # @param campaign_budget_mappings [::Array<::Google::Ads::GoogleAds::V12::Services::CampaignBudgetMapping, ::Hash>] - # Required. List of campaign budget mappings for graduation. Each campaign that - # appears here will graduate, and will be assigned a new budget that is - # paired with it in the mapping. The maximum size is one. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ExperimentService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::GraduateExperimentRequest.new - # - # # Call the graduate_experiment method. - # result = client.graduate_experiment request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def graduate_experiment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::GraduateExperimentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.graduate_experiment.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.experiment - header_params["experiment"] = request.experiment - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.graduate_experiment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.graduate_experiment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @experiment_service_stub.call_rpc :graduate_experiment, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Schedule an experiment. The in design campaign - # will be converted into a real campaign (called the experiment campaign) - # that will begin serving ads if successfully created. - # - # The experiment is scheduled immediately with status INITIALIZING. - # This method returns a long running operation that tracks the forking of the - # in design campaign. If the forking fails, a list of errors can be retrieved - # using the ListExperimentAsyncErrors method. The operation's - # metadata will be a string containing the resource name of the created - # experiment. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentError]() - # [DatabaseError]() - # [DateError]() - # [DateRangeError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # - # @overload schedule_experiment(request, options = nil) - # Pass arguments to `schedule_experiment` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::ScheduleExperimentRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::ScheduleExperimentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload schedule_experiment(resource_name: nil, validate_only: nil) - # Pass arguments to `schedule_experiment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The scheduled experiment. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ExperimentService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::ScheduleExperimentRequest.new - # - # # Call the schedule_experiment method. - # result = client.schedule_experiment request - # - # # The returned object is of type Gapic::Operation. You can use this - # # object to check the status of an operation, cancel it, or wait - # # for results. Here is how to block until completion: - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "Error!" - # end - # - def schedule_experiment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::ScheduleExperimentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.schedule_experiment.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.schedule_experiment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.schedule_experiment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @experiment_service_stub.call_rpc :schedule_experiment, request, - options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Promotes the trial campaign thus applying changes in the trial campaign - # to the base campaign. - # This method returns a long running operation that tracks the promotion of - # the experiment campaign. If it fails, a list of errors can be retrieved - # using the ListExperimentAsyncErrors method. The operation's - # metadata will be a string containing the resource name of the created - # experiment. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload promote_experiment(request, options = nil) - # Pass arguments to `promote_experiment` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::PromoteExperimentRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::PromoteExperimentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload promote_experiment(resource_name: nil, validate_only: nil) - # Pass arguments to `promote_experiment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the experiment to promote. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ExperimentService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::PromoteExperimentRequest.new - # - # # Call the promote_experiment method. - # result = client.promote_experiment request - # - # # The returned object is of type Gapic::Operation. You can use this - # # object to check the status of an operation, cancel it, or wait - # # for results. Here is how to block until completion: - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "Error!" - # end - # - def promote_experiment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::PromoteExperimentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.promote_experiment.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.promote_experiment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.promote_experiment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @experiment_service_stub.call_rpc :promote_experiment, request, - options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ExperimentService API. - # - # This class represents the configuration for ExperimentService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::ExperimentService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_experiments to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::ExperimentService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_experiments.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::ExperimentService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_experiments.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the ExperimentService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_experiments` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_experiments - ## - # RPC-specific configuration for `end_experiment` - # @return [::Gapic::Config::Method] - # - attr_reader :end_experiment - ## - # RPC-specific configuration for `list_experiment_async_errors` - # @return [::Gapic::Config::Method] - # - attr_reader :list_experiment_async_errors - ## - # RPC-specific configuration for `graduate_experiment` - # @return [::Gapic::Config::Method] - # - attr_reader :graduate_experiment - ## - # RPC-specific configuration for `schedule_experiment` - # @return [::Gapic::Config::Method] - # - attr_reader :schedule_experiment - ## - # RPC-specific configuration for `promote_experiment` - # @return [::Gapic::Config::Method] - # - attr_reader :promote_experiment - - # @private - def initialize parent_rpcs = nil - mutate_experiments_config = parent_rpcs.mutate_experiments if parent_rpcs.respond_to? :mutate_experiments - @mutate_experiments = ::Gapic::Config::Method.new mutate_experiments_config - end_experiment_config = parent_rpcs.end_experiment if parent_rpcs.respond_to? :end_experiment - @end_experiment = ::Gapic::Config::Method.new end_experiment_config - list_experiment_async_errors_config = parent_rpcs.list_experiment_async_errors if parent_rpcs.respond_to? :list_experiment_async_errors - @list_experiment_async_errors = ::Gapic::Config::Method.new list_experiment_async_errors_config - graduate_experiment_config = parent_rpcs.graduate_experiment if parent_rpcs.respond_to? :graduate_experiment - @graduate_experiment = ::Gapic::Config::Method.new graduate_experiment_config - schedule_experiment_config = parent_rpcs.schedule_experiment if parent_rpcs.respond_to? :schedule_experiment - @schedule_experiment = ::Gapic::Config::Method.new schedule_experiment_config - promote_experiment_config = parent_rpcs.promote_experiment if parent_rpcs.respond_to? :promote_experiment - @promote_experiment = ::Gapic::Config::Method.new promote_experiment_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/experiment_service/credentials.rb b/lib/google/ads/google_ads/v12/services/experiment_service/credentials.rb deleted file mode 100644 index 5c2a60433..000000000 --- a/lib/google/ads/google_ads/v12/services/experiment_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ExperimentService - # Credentials for the ExperimentService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/experiment_service/operations.rb b/lib/google/ads/google_ads/v12/services/experiment_service/operations.rb deleted file mode 100644 index 404b1a1c4..000000000 --- a/lib/google/ads/google_ads/v12/services/experiment_service/operations.rb +++ /dev/null @@ -1,774 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ExperimentService - # Service that implements Longrunning Operations API. - class Operations - # @private - attr_reader :operations_stub - - ## - # Configuration for the ExperimentService Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the ExperimentService Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/{name=users/*}/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can - # # iterate over all elements by calling #each, and the enumerable - # # will lazily make API calls to fetch subsequent pages. Other - # # methods are also available for managing paging directly. - # result.each do |response| - # # Each element is of type ::Google::Longrunning::Operation. - # p response - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, - operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use this - # # object to check the status of an operation, cancel it, or wait - # # for results. Here is how to block until completion: - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "Error!" - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1, - # corresponding to `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use this - # # object to check the status of an operation, cancel it, or wait - # # for results. Here is how to block until completion: - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "Error!" - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/experiment_service/paths.rb b/lib/google/ads/google_ads/v12/services/experiment_service/paths.rb deleted file mode 100644 index 3f9095b0b..000000000 --- a/lib/google/ads/google_ads/v12/services/experiment_service/paths.rb +++ /dev/null @@ -1,86 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ExperimentService - # Path helper methods for the ExperimentService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignBudget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` - # - # @param customer_id [String] - # @param campaign_budget_id [String] - # - # @return [::String] - def campaign_budget_path customer_id:, campaign_budget_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" - end - - ## - # Create a fully-qualified Experiment resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/experiments/{trial_id}` - # - # @param customer_id [String] - # @param trial_id [String] - # - # @return [::String] - def experiment_path customer_id:, trial_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/experiments/#{trial_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/experiment_service_pb.rb b/lib/google/ads/google_ads/v12/services/experiment_service_pb.rb deleted file mode 100644 index c51ab5cdc..000000000 --- a/lib/google/ads/google_ads/v12/services/experiment_service_pb.rb +++ /dev/null @@ -1,100 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/experiment_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/experiment_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/experiment_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateExperimentsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.ExperimentOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.ExperimentOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.Experiment" - optional :update, :message, 2, "google.ads.googleads.v12.resources.Experiment" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateExperimentsResponse" do - optional :partial_failure_error, :message, 1, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateExperimentResult" - end - add_message "google.ads.googleads.v12.services.MutateExperimentResult" do - optional :resource_name, :string, 1 - end - add_message "google.ads.googleads.v12.services.EndExperimentRequest" do - optional :experiment, :string, 1 - optional :validate_only, :bool, 2 - end - add_message "google.ads.googleads.v12.services.ListExperimentAsyncErrorsRequest" do - optional :resource_name, :string, 1 - optional :page_token, :string, 2 - optional :page_size, :int32, 3 - end - add_message "google.ads.googleads.v12.services.ListExperimentAsyncErrorsResponse" do - repeated :errors, :message, 1, "google.rpc.Status" - optional :next_page_token, :string, 2 - end - add_message "google.ads.googleads.v12.services.GraduateExperimentRequest" do - optional :experiment, :string, 1 - repeated :campaign_budget_mappings, :message, 2, "google.ads.googleads.v12.services.CampaignBudgetMapping" - optional :validate_only, :bool, 3 - end - add_message "google.ads.googleads.v12.services.CampaignBudgetMapping" do - optional :experiment_campaign, :string, 1 - optional :campaign_budget, :string, 2 - end - add_message "google.ads.googleads.v12.services.ScheduleExperimentRequest" do - optional :resource_name, :string, 1 - optional :validate_only, :bool, 2 - end - add_message "google.ads.googleads.v12.services.ScheduleExperimentMetadata" do - optional :experiment, :string, 1 - end - add_message "google.ads.googleads.v12.services.PromoteExperimentRequest" do - optional :resource_name, :string, 1 - optional :validate_only, :bool, 2 - end - add_message "google.ads.googleads.v12.services.PromoteExperimentMetadata" do - optional :experiment, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateExperimentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateExperimentsRequest").msgclass - ExperimentOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ExperimentOperation").msgclass - MutateExperimentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateExperimentsResponse").msgclass - MutateExperimentResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateExperimentResult").msgclass - EndExperimentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.EndExperimentRequest").msgclass - ListExperimentAsyncErrorsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListExperimentAsyncErrorsRequest").msgclass - ListExperimentAsyncErrorsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListExperimentAsyncErrorsResponse").msgclass - GraduateExperimentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GraduateExperimentRequest").msgclass - CampaignBudgetMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CampaignBudgetMapping").msgclass - ScheduleExperimentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ScheduleExperimentRequest").msgclass - ScheduleExperimentMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ScheduleExperimentMetadata").msgclass - PromoteExperimentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.PromoteExperimentRequest").msgclass - PromoteExperimentMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.PromoteExperimentMetadata").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/experiment_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/experiment_service_services_pb.rb deleted file mode 100644 index 389f3fc5e..000000000 --- a/lib/google/ads/google_ads/v12/services/experiment_service_services_pb.rb +++ /dev/null @@ -1,137 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/experiment_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/experiment_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ExperimentService - # Proto file describing the Experiment service. - # - # Service to manage experiments. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.ExperimentService' - - # Creates, updates, or removes experiments. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateExperiments, ::Google::Ads::GoogleAds::V12::Services::MutateExperimentsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateExperimentsResponse - # Immediately ends an experiment, changing the experiment's scheduled - # end date and without waiting for end of day. End date is updated to be the - # time of the request. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :EndExperiment, ::Google::Ads::GoogleAds::V12::Services::EndExperimentRequest, ::Google::Protobuf::Empty - # Returns all errors that occurred during the last Experiment update (either - # scheduling or promotion). - # Supports standard list paging. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :ListExperimentAsyncErrors, ::Google::Ads::GoogleAds::V12::Services::ListExperimentAsyncErrorsRequest, ::Google::Ads::GoogleAds::V12::Services::ListExperimentAsyncErrorsResponse - # Graduates an experiment to a full campaign. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - rpc :GraduateExperiment, ::Google::Ads::GoogleAds::V12::Services::GraduateExperimentRequest, ::Google::Protobuf::Empty - # Schedule an experiment. The in design campaign - # will be converted into a real campaign (called the experiment campaign) - # that will begin serving ads if successfully created. - # - # The experiment is scheduled immediately with status INITIALIZING. - # This method returns a long running operation that tracks the forking of the - # in design campaign. If the forking fails, a list of errors can be retrieved - # using the ListExperimentAsyncErrors method. The operation's - # metadata will be a string containing the resource name of the created - # experiment. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentError]() - # [DatabaseError]() - # [DateError]() - # [DateRangeError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - rpc :ScheduleExperiment, ::Google::Ads::GoogleAds::V12::Services::ScheduleExperimentRequest, ::Google::Longrunning::Operation - # Promotes the trial campaign thus applying changes in the trial campaign - # to the base campaign. - # This method returns a long running operation that tracks the promotion of - # the experiment campaign. If it fails, a list of errors can be retrieved - # using the ListExperimentAsyncErrors method. The operation's - # metadata will be a string containing the resource name of the created - # experiment. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :PromoteExperiment, ::Google::Ads::GoogleAds::V12::Services::PromoteExperimentRequest, ::Google::Longrunning::Operation - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/extension_feed_item_service.rb b/lib/google/ads/google_ads/v12/services/extension_feed_item_service.rb deleted file mode 100644 index dbbecef2d..000000000 --- a/lib/google/ads/google_ads/v12/services/extension_feed_item_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/extension_feed_item_service/credentials" -require "google/ads/google_ads/v12/services/extension_feed_item_service/paths" -require "google/ads/google_ads/v12/services/extension_feed_item_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage extension feed items. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/extension_feed_item_service" - # client = ::Google::Ads::GoogleAds::V12::Services::ExtensionFeedItemService::Client.new - # - module ExtensionFeedItemService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "extension_feed_item_service", "helpers.rb" -require "google/ads/google_ads/v12/services/extension_feed_item_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/extension_feed_item_service/client.rb b/lib/google/ads/google_ads/v12/services/extension_feed_item_service/client.rb deleted file mode 100644 index 707542000..000000000 --- a/lib/google/ads/google_ads/v12/services/extension_feed_item_service/client.rb +++ /dev/null @@ -1,430 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/extension_feed_item_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ExtensionFeedItemService - ## - # Client for the ExtensionFeedItemService service. - # - # Service to manage extension feed items. - # - class Client - include Paths - - # @private - attr_reader :extension_feed_item_service_stub - - ## - # Configure the ExtensionFeedItemService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::ExtensionFeedItemService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ExtensionFeedItemService clients - # ::Google::Ads::GoogleAds::V12::Services::ExtensionFeedItemService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ExtensionFeedItemService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::ExtensionFeedItemService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ExtensionFeedItemService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ExtensionFeedItemService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ExtensionFeedItemService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ExtensionFeedItemService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/extension_feed_item_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @extension_feed_item_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::ExtensionFeedItemService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes extension feed items. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CountryCodeError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [ExtensionFeedItemError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [ImageError]() - # [InternalError]() - # [LanguageCodeError]() - # [MutateError]() - # [NewResourceCreationError]() - # [OperationAccessDeniedError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_extension_feed_items(request, options = nil) - # Pass arguments to `mutate_extension_feed_items` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateExtensionFeedItemsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateExtensionFeedItemsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_extension_feed_items(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_extension_feed_items` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose extension feed items are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::ExtensionFeedItemOperation, ::Hash>] - # Required. The list of operations to perform on individual extension feed items. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateExtensionFeedItemsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateExtensionFeedItemsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ExtensionFeedItemService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateExtensionFeedItemsRequest.new - # - # # Call the mutate_extension_feed_items method. - # result = client.mutate_extension_feed_items request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateExtensionFeedItemsResponse. - # p result - # - def mutate_extension_feed_items request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateExtensionFeedItemsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_extension_feed_items.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_extension_feed_items.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_extension_feed_items.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @extension_feed_item_service_stub.call_rpc :mutate_extension_feed_items, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ExtensionFeedItemService API. - # - # This class represents the configuration for ExtensionFeedItemService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::ExtensionFeedItemService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_extension_feed_items to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::ExtensionFeedItemService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_extension_feed_items.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::ExtensionFeedItemService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_extension_feed_items.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the ExtensionFeedItemService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_extension_feed_items` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_extension_feed_items - - # @private - def initialize parent_rpcs = nil - mutate_extension_feed_items_config = parent_rpcs.mutate_extension_feed_items if parent_rpcs.respond_to? :mutate_extension_feed_items - @mutate_extension_feed_items = ::Gapic::Config::Method.new mutate_extension_feed_items_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/extension_feed_item_service/credentials.rb b/lib/google/ads/google_ads/v12/services/extension_feed_item_service/credentials.rb deleted file mode 100644 index 71eeff517..000000000 --- a/lib/google/ads/google_ads/v12/services/extension_feed_item_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ExtensionFeedItemService - # Credentials for the ExtensionFeedItemService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/extension_feed_item_service/paths.rb b/lib/google/ads/google_ads/v12/services/extension_feed_item_service/paths.rb deleted file mode 100644 index cead7360c..000000000 --- a/lib/google/ads/google_ads/v12/services/extension_feed_item_service/paths.rb +++ /dev/null @@ -1,117 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ExtensionFeedItemService - # Path helper methods for the ExtensionFeedItemService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified ExtensionFeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - # - # @param customer_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def extension_feed_item_path customer_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" - end - - ## - # Create a fully-qualified GeoTargetConstant resource string. - # - # The resource will be in the following format: - # - # `geoTargetConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def geo_target_constant_path criterion_id: - "geoTargetConstants/#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/extension_feed_item_service_pb.rb b/lib/google/ads/google_ads/v12/services/extension_feed_item_service_pb.rb deleted file mode 100644 index 2674e53b6..000000000 --- a/lib/google/ads/google_ads/v12/services/extension_feed_item_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/extension_feed_item_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/extension_feed_item_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/extension_feed_item_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateExtensionFeedItemsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.ExtensionFeedItemOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.ExtensionFeedItemOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.ExtensionFeedItem" - optional :update, :message, 2, "google.ads.googleads.v12.resources.ExtensionFeedItem" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateExtensionFeedItemsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateExtensionFeedItemResult" - end - add_message "google.ads.googleads.v12.services.MutateExtensionFeedItemResult" do - optional :resource_name, :string, 1 - optional :extension_feed_item, :message, 2, "google.ads.googleads.v12.resources.ExtensionFeedItem" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateExtensionFeedItemsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateExtensionFeedItemsRequest").msgclass - ExtensionFeedItemOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ExtensionFeedItemOperation").msgclass - MutateExtensionFeedItemsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateExtensionFeedItemsResponse").msgclass - MutateExtensionFeedItemResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateExtensionFeedItemResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/extension_feed_item_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/extension_feed_item_service_services_pb.rb deleted file mode 100644 index 04db58a80..000000000 --- a/lib/google/ads/google_ads/v12/services/extension_feed_item_service_services_pb.rb +++ /dev/null @@ -1,75 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/extension_feed_item_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/extension_feed_item_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ExtensionFeedItemService - # Proto file describing the ExtensionFeedItem service. - # - # Service to manage extension feed items. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.ExtensionFeedItemService' - - # Creates, updates, or removes extension feed items. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CountryCodeError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [ExtensionFeedItemError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [ImageError]() - # [InternalError]() - # [LanguageCodeError]() - # [MutateError]() - # [NewResourceCreationError]() - # [OperationAccessDeniedError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringLengthError]() - # [UrlFieldError]() - rpc :MutateExtensionFeedItems, ::Google::Ads::GoogleAds::V12::Services::MutateExtensionFeedItemsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateExtensionFeedItemsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_service.rb b/lib/google/ads/google_ads/v12/services/feed_item_service.rb deleted file mode 100644 index 63ff92890..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/feed_item_service/credentials" -require "google/ads/google_ads/v12/services/feed_item_service/paths" -require "google/ads/google_ads/v12/services/feed_item_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage feed items. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/feed_item_service" - # client = ::Google::Ads::GoogleAds::V12::Services::FeedItemService::Client.new - # - module FeedItemService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "feed_item_service", "helpers.rb" -require "google/ads/google_ads/v12/services/feed_item_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/feed_item_service/client.rb b/lib/google/ads/google_ads/v12/services/feed_item_service/client.rb deleted file mode 100644 index ee65c02af..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_service/client.rb +++ /dev/null @@ -1,430 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/feed_item_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedItemService - ## - # Client for the FeedItemService service. - # - # Service to manage feed items. - # - class Client - include Paths - - # @private - attr_reader :feed_item_service_stub - - ## - # Configure the FeedItemService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::FeedItemService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all FeedItemService clients - # ::Google::Ads::GoogleAds::V12::Services::FeedItemService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the FeedItemService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::FeedItemService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new FeedItemService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::FeedItemService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::FeedItemService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the FeedItemService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/feed_item_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @feed_item_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::FeedItemService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes feed items. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FeedItemError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_feed_items(request, options = nil) - # Pass arguments to `mutate_feed_items` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateFeedItemsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateFeedItemsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_feed_items(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_feed_items` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose feed items are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::FeedItemOperation, ::Hash>] - # Required. The list of operations to perform on individual feed items. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateFeedItemsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateFeedItemsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::FeedItemService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateFeedItemsRequest.new - # - # # Call the mutate_feed_items method. - # result = client.mutate_feed_items request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateFeedItemsResponse. - # p result - # - def mutate_feed_items request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateFeedItemsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_feed_items.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_feed_items.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_feed_items.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @feed_item_service_stub.call_rpc :mutate_feed_items, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the FeedItemService API. - # - # This class represents the configuration for FeedItemService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::FeedItemService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_feed_items to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::FeedItemService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_items.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::FeedItemService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_items.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the FeedItemService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_feed_items` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_feed_items - - # @private - def initialize parent_rpcs = nil - mutate_feed_items_config = parent_rpcs.mutate_feed_items if parent_rpcs.respond_to? :mutate_feed_items - @mutate_feed_items = ::Gapic::Config::Method.new mutate_feed_items_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_service/credentials.rb b/lib/google/ads/google_ads/v12/services/feed_item_service/credentials.rb deleted file mode 100644 index 1bb5c690b..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedItemService - # Credentials for the FeedItemService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_service/paths.rb b/lib/google/ads/google_ads/v12/services/feed_item_service/paths.rb deleted file mode 100644 index 431937094..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedItemService - # Path helper methods for the FeedItemService API. - module Paths - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - ## - # Create a fully-qualified FeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def feed_item_path customer_id:, feed_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItems/#{feed_id}~#{feed_item_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_service_pb.rb b/lib/google/ads/google_ads/v12/services/feed_item_service_pb.rb deleted file mode 100644 index 0063f2081..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/feed_item_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/feed_item_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/feed_item_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateFeedItemsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.FeedItemOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.FeedItemOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.FeedItem" - optional :update, :message, 2, "google.ads.googleads.v12.resources.FeedItem" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateFeedItemsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateFeedItemResult" - end - add_message "google.ads.googleads.v12.services.MutateFeedItemResult" do - optional :resource_name, :string, 1 - optional :feed_item, :message, 2, "google.ads.googleads.v12.resources.FeedItem" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateFeedItemsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedItemsRequest").msgclass - FeedItemOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.FeedItemOperation").msgclass - MutateFeedItemsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedItemsResponse").msgclass - MutateFeedItemResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedItemResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/feed_item_service_services_pb.rb deleted file mode 100644 index ada24a9e5..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_service_services_pb.rb +++ /dev/null @@ -1,77 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/feed_item_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/feed_item_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedItemService - # Proto file describing the FeedItem service. - # - # Service to manage feed items. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.FeedItemService' - - # Creates, updates, or removes feed items. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FeedItemError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - rpc :MutateFeedItems, ::Google::Ads::GoogleAds::V12::Services::MutateFeedItemsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateFeedItemsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_set_link_service.rb b/lib/google/ads/google_ads/v12/services/feed_item_set_link_service.rb deleted file mode 100644 index a40323d75..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_set_link_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/feed_item_set_link_service/credentials" -require "google/ads/google_ads/v12/services/feed_item_set_link_service/paths" -require "google/ads/google_ads/v12/services/feed_item_set_link_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage feed item set links. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/feed_item_set_link_service" - # client = ::Google::Ads::GoogleAds::V12::Services::FeedItemSetLinkService::Client.new - # - module FeedItemSetLinkService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "feed_item_set_link_service", "helpers.rb" -require "google/ads/google_ads/v12/services/feed_item_set_link_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/feed_item_set_link_service/client.rb b/lib/google/ads/google_ads/v12/services/feed_item_set_link_service/client.rb deleted file mode 100644 index 0d74ce64f..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_set_link_service/client.rb +++ /dev/null @@ -1,408 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/feed_item_set_link_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedItemSetLinkService - ## - # Client for the FeedItemSetLinkService service. - # - # Service to manage feed item set links. - # - class Client - include Paths - - # @private - attr_reader :feed_item_set_link_service_stub - - ## - # Configure the FeedItemSetLinkService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::FeedItemSetLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all FeedItemSetLinkService clients - # ::Google::Ads::GoogleAds::V12::Services::FeedItemSetLinkService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the FeedItemSetLinkService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::FeedItemSetLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new FeedItemSetLinkService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::FeedItemSetLinkService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::FeedItemSetLinkService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the FeedItemSetLinkService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/feed_item_set_link_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @feed_item_set_link_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::FeedItemSetLinkService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes feed item set links. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_feed_item_set_links(request, options = nil) - # Pass arguments to `mutate_feed_item_set_links` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetLinksRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetLinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_feed_item_set_links(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_feed_item_set_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose feed item set links are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::FeedItemSetLinkOperation, ::Hash>] - # Required. The list of operations to perform on individual feed item set links. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetLinksResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetLinksResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::FeedItemSetLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetLinksRequest.new - # - # # Call the mutate_feed_item_set_links method. - # result = client.mutate_feed_item_set_links request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetLinksResponse. - # p result - # - def mutate_feed_item_set_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetLinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_feed_item_set_links.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_feed_item_set_links.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_feed_item_set_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @feed_item_set_link_service_stub.call_rpc :mutate_feed_item_set_links, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the FeedItemSetLinkService API. - # - # This class represents the configuration for FeedItemSetLinkService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::FeedItemSetLinkService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_feed_item_set_links to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::FeedItemSetLinkService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_item_set_links.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::FeedItemSetLinkService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_item_set_links.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the FeedItemSetLinkService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_feed_item_set_links` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_feed_item_set_links - - # @private - def initialize parent_rpcs = nil - mutate_feed_item_set_links_config = parent_rpcs.mutate_feed_item_set_links if parent_rpcs.respond_to? :mutate_feed_item_set_links - @mutate_feed_item_set_links = ::Gapic::Config::Method.new mutate_feed_item_set_links_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_set_link_service/credentials.rb b/lib/google/ads/google_ads/v12/services/feed_item_set_link_service/credentials.rb deleted file mode 100644 index e3f72d939..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_set_link_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedItemSetLinkService - # Credentials for the FeedItemSetLinkService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_set_link_service/paths.rb b/lib/google/ads/google_ads/v12/services/feed_item_set_link_service/paths.rb deleted file mode 100644 index 69bd8fa82..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_set_link_service/paths.rb +++ /dev/null @@ -1,94 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedItemSetLinkService - # Path helper methods for the FeedItemSetLinkService API. - module Paths - ## - # Create a fully-qualified FeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def feed_item_path customer_id:, feed_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItems/#{feed_id}~#{feed_item_id}" - end - - ## - # Create a fully-qualified FeedItemSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_set_id [String] - # - # @return [::String] - def feed_item_set_path customer_id:, feed_id:, feed_item_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItemSets/#{feed_id}~#{feed_item_set_id}" - end - - ## - # Create a fully-qualified FeedItemSetLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_set_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def feed_item_set_link_path customer_id:, feed_id:, feed_item_set_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - raise ::ArgumentError, "feed_item_set_id cannot contain /" if feed_item_set_id.to_s.include? "/" - - "customers/#{customer_id}/feedItemSetLinks/#{feed_id}~#{feed_item_set_id}~#{feed_item_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_set_link_service_pb.rb b/lib/google/ads/google_ads/v12/services/feed_item_set_link_service_pb.rb deleted file mode 100644 index 65f2dadb5..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_set_link_service_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/feed_item_set_link_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/feed_item_set_link_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/feed_item_set_link_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateFeedItemSetLinksRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.FeedItemSetLinkOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.FeedItemSetLinkOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.FeedItemSetLink" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateFeedItemSetLinksResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateFeedItemSetLinkResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateFeedItemSetLinkResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateFeedItemSetLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedItemSetLinksRequest").msgclass - FeedItemSetLinkOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.FeedItemSetLinkOperation").msgclass - MutateFeedItemSetLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedItemSetLinksResponse").msgclass - MutateFeedItemSetLinkResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedItemSetLinkResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_set_link_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/feed_item_set_link_service_services_pb.rb deleted file mode 100644 index 806723a12..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_set_link_service_services_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/feed_item_set_link_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/feed_item_set_link_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedItemSetLinkService - # Proto file describing the FeedItemSetLink service. - # - # Service to manage feed item set links. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.FeedItemSetLinkService' - - # Creates, updates, or removes feed item set links. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateFeedItemSetLinks, ::Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetLinksRequest, ::Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetLinksResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_set_service.rb b/lib/google/ads/google_ads/v12/services/feed_item_set_service.rb deleted file mode 100644 index d7dd39d57..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_set_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/feed_item_set_service/credentials" -require "google/ads/google_ads/v12/services/feed_item_set_service/paths" -require "google/ads/google_ads/v12/services/feed_item_set_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage feed Item Set - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/feed_item_set_service" - # client = ::Google::Ads::GoogleAds::V12::Services::FeedItemSetService::Client.new - # - module FeedItemSetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "feed_item_set_service", "helpers.rb" -require "google/ads/google_ads/v12/services/feed_item_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/feed_item_set_service/client.rb b/lib/google/ads/google_ads/v12/services/feed_item_set_service/client.rb deleted file mode 100644 index 28f7100f4..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_set_service/client.rb +++ /dev/null @@ -1,410 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/feed_item_set_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedItemSetService - ## - # Client for the FeedItemSetService service. - # - # Service to manage feed Item Set - # - class Client - include Paths - - # @private - attr_reader :feed_item_set_service_stub - - ## - # Configure the FeedItemSetService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::FeedItemSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all FeedItemSetService clients - # ::Google::Ads::GoogleAds::V12::Services::FeedItemSetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the FeedItemSetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::FeedItemSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new FeedItemSetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::FeedItemSetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::FeedItemSetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the FeedItemSetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/feed_item_set_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @feed_item_set_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::FeedItemSetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates or removes feed item sets. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_feed_item_sets(request, options = nil) - # Pass arguments to `mutate_feed_item_sets` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_feed_item_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_feed_item_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose feed item sets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::FeedItemSetOperation, ::Hash>] - # Required. The list of operations to perform on individual feed item sets. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::FeedItemSetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetsRequest.new - # - # # Call the mutate_feed_item_sets method. - # result = client.mutate_feed_item_sets request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetsResponse. - # p result - # - def mutate_feed_item_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_feed_item_sets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_feed_item_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_feed_item_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @feed_item_set_service_stub.call_rpc :mutate_feed_item_sets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the FeedItemSetService API. - # - # This class represents the configuration for FeedItemSetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::FeedItemSetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_feed_item_sets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::FeedItemSetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_item_sets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::FeedItemSetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_item_sets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the FeedItemSetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_feed_item_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_feed_item_sets - - # @private - def initialize parent_rpcs = nil - mutate_feed_item_sets_config = parent_rpcs.mutate_feed_item_sets if parent_rpcs.respond_to? :mutate_feed_item_sets - @mutate_feed_item_sets = ::Gapic::Config::Method.new mutate_feed_item_sets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_set_service/credentials.rb b/lib/google/ads/google_ads/v12/services/feed_item_set_service/credentials.rb deleted file mode 100644 index 26bd5caaa..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_set_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedItemSetService - # Credentials for the FeedItemSetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_set_service/paths.rb b/lib/google/ads/google_ads/v12/services/feed_item_set_service/paths.rb deleted file mode 100644 index a091982ff..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_set_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedItemSetService - # Path helper methods for the FeedItemSetService API. - module Paths - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - ## - # Create a fully-qualified FeedItemSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_set_id [String] - # - # @return [::String] - def feed_item_set_path customer_id:, feed_id:, feed_item_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItemSets/#{feed_id}~#{feed_item_set_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_set_service_pb.rb b/lib/google/ads/google_ads/v12/services/feed_item_set_service_pb.rb deleted file mode 100644 index a6235d2e3..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_set_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/feed_item_set_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/feed_item_set_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/feed_item_set_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateFeedItemSetsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.FeedItemSetOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.FeedItemSetOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.FeedItemSet" - optional :update, :message, 2, "google.ads.googleads.v12.resources.FeedItemSet" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateFeedItemSetsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.MutateFeedItemSetResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.MutateFeedItemSetResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateFeedItemSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedItemSetsRequest").msgclass - FeedItemSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.FeedItemSetOperation").msgclass - MutateFeedItemSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedItemSetsResponse").msgclass - MutateFeedItemSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedItemSetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_set_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/feed_item_set_service_services_pb.rb deleted file mode 100644 index 9250f5d53..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_set_service_services_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/feed_item_set_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/feed_item_set_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedItemSetService - # Proto file describing the FeedItemSet service. - # - # Service to manage feed Item Set - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.FeedItemSetService' - - # Creates, updates or removes feed item sets. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateFeedItemSets, ::Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateFeedItemSetsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_target_service.rb b/lib/google/ads/google_ads/v12/services/feed_item_target_service.rb deleted file mode 100644 index 1e93d78a5..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_target_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/feed_item_target_service/credentials" -require "google/ads/google_ads/v12/services/feed_item_target_service/paths" -require "google/ads/google_ads/v12/services/feed_item_target_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage feed item targets. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/feed_item_target_service" - # client = ::Google::Ads::GoogleAds::V12::Services::FeedItemTargetService::Client.new - # - module FeedItemTargetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "feed_item_target_service", "helpers.rb" -require "google/ads/google_ads/v12/services/feed_item_target_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/feed_item_target_service/client.rb b/lib/google/ads/google_ads/v12/services/feed_item_target_service/client.rb deleted file mode 100644 index 551337938..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_target_service/client.rb +++ /dev/null @@ -1,424 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/feed_item_target_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedItemTargetService - ## - # Client for the FeedItemTargetService service. - # - # Service to manage feed item targets. - # - class Client - include Paths - - # @private - attr_reader :feed_item_target_service_stub - - ## - # Configure the FeedItemTargetService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::FeedItemTargetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all FeedItemTargetService clients - # ::Google::Ads::GoogleAds::V12::Services::FeedItemTargetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the FeedItemTargetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::FeedItemTargetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new FeedItemTargetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::FeedItemTargetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::FeedItemTargetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the FeedItemTargetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/feed_item_target_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @feed_item_target_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::FeedItemTargetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates or removes feed item targets. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CriterionError]() - # [DatabaseError]() - # [DistinctError]() - # [FeedItemTargetError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_feed_item_targets(request, options = nil) - # Pass arguments to `mutate_feed_item_targets` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateFeedItemTargetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateFeedItemTargetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_feed_item_targets(customer_id: nil, operations: nil, partial_failure: nil, response_content_type: nil, validate_only: nil) - # Pass arguments to `mutate_feed_item_targets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose feed item targets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::FeedItemTargetOperation, ::Hash>] - # Required. The list of operations to perform on individual feed item targets. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateFeedItemTargetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateFeedItemTargetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::FeedItemTargetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateFeedItemTargetsRequest.new - # - # # Call the mutate_feed_item_targets method. - # result = client.mutate_feed_item_targets request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateFeedItemTargetsResponse. - # p result - # - def mutate_feed_item_targets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateFeedItemTargetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_feed_item_targets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_feed_item_targets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_feed_item_targets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @feed_item_target_service_stub.call_rpc :mutate_feed_item_targets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the FeedItemTargetService API. - # - # This class represents the configuration for FeedItemTargetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::FeedItemTargetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_feed_item_targets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::FeedItemTargetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_item_targets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::FeedItemTargetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_item_targets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the FeedItemTargetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_feed_item_targets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_feed_item_targets - - # @private - def initialize parent_rpcs = nil - mutate_feed_item_targets_config = parent_rpcs.mutate_feed_item_targets if parent_rpcs.respond_to? :mutate_feed_item_targets - @mutate_feed_item_targets = ::Gapic::Config::Method.new mutate_feed_item_targets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_target_service/credentials.rb b/lib/google/ads/google_ads/v12/services/feed_item_target_service/credentials.rb deleted file mode 100644 index 722e5b129..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_target_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedItemTargetService - # Credentials for the FeedItemTargetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_target_service/paths.rb b/lib/google/ads/google_ads/v12/services/feed_item_target_service/paths.rb deleted file mode 100644 index 4fef485f7..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_target_service/paths.rb +++ /dev/null @@ -1,127 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedItemTargetService - # Path helper methods for the FeedItemTargetService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified FeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def feed_item_path customer_id:, feed_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItems/#{feed_id}~#{feed_item_id}" - end - - ## - # Create a fully-qualified FeedItemTarget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_id [String] - # @param feed_item_target_type [String] - # @param feed_item_target_id [String] - # - # @return [::String] - def feed_item_target_path customer_id:, feed_id:, feed_item_id:, feed_item_target_type:, - feed_item_target_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - raise ::ArgumentError, "feed_item_id cannot contain /" if feed_item_id.to_s.include? "/" - raise ::ArgumentError, - "feed_item_target_type cannot contain /" if feed_item_target_type.to_s.include? "/" - - "customers/#{customer_id}/feedItemTargets/#{feed_id}~#{feed_item_id}~#{feed_item_target_type}~#{feed_item_target_id}" - end - - ## - # Create a fully-qualified GeoTargetConstant resource string. - # - # The resource will be in the following format: - # - # `geoTargetConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def geo_target_constant_path criterion_id: - "geoTargetConstants/#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_target_service_pb.rb b/lib/google/ads/google_ads/v12/services/feed_item_target_service_pb.rb deleted file mode 100644 index 786187817..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_target_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/feed_item_target_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/feed_item_target_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/feed_item_target_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateFeedItemTargetsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.FeedItemTargetOperation" - optional :partial_failure, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - optional :validate_only, :bool, 3 - end - add_message "google.ads.googleads.v12.services.FeedItemTargetOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.FeedItemTarget" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateFeedItemTargetsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateFeedItemTargetResult" - end - add_message "google.ads.googleads.v12.services.MutateFeedItemTargetResult" do - optional :resource_name, :string, 1 - optional :feed_item_target, :message, 2, "google.ads.googleads.v12.resources.FeedItemTarget" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateFeedItemTargetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedItemTargetsRequest").msgclass - FeedItemTargetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.FeedItemTargetOperation").msgclass - MutateFeedItemTargetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedItemTargetsResponse").msgclass - MutateFeedItemTargetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedItemTargetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_item_target_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/feed_item_target_service_services_pb.rb deleted file mode 100644 index b5cf7b760..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_item_target_service_services_pb.rb +++ /dev/null @@ -1,70 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/feed_item_target_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/feed_item_target_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedItemTargetService - # Proto file describing the FeedItemTarget service. - # - # Service to manage feed item targets. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.FeedItemTargetService' - - # Creates or removes feed item targets. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CriterionError]() - # [DatabaseError]() - # [DistinctError]() - # [FeedItemTargetError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - rpc :MutateFeedItemTargets, ::Google::Ads::GoogleAds::V12::Services::MutateFeedItemTargetsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateFeedItemTargetsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_mapping_service.rb b/lib/google/ads/google_ads/v12/services/feed_mapping_service.rb deleted file mode 100644 index 1cef7cb3e..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_mapping_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/feed_mapping_service/credentials" -require "google/ads/google_ads/v12/services/feed_mapping_service/paths" -require "google/ads/google_ads/v12/services/feed_mapping_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage feed mappings. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/feed_mapping_service" - # client = ::Google::Ads::GoogleAds::V12::Services::FeedMappingService::Client.new - # - module FeedMappingService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "feed_mapping_service", "helpers.rb" -require "google/ads/google_ads/v12/services/feed_mapping_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/feed_mapping_service/client.rb b/lib/google/ads/google_ads/v12/services/feed_mapping_service/client.rb deleted file mode 100644 index b648e578e..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_mapping_service/client.rb +++ /dev/null @@ -1,425 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/feed_mapping_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedMappingService - ## - # Client for the FeedMappingService service. - # - # Service to manage feed mappings. - # - class Client - include Paths - - # @private - attr_reader :feed_mapping_service_stub - - ## - # Configure the FeedMappingService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::FeedMappingService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all FeedMappingService clients - # ::Google::Ads::GoogleAds::V12::Services::FeedMappingService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the FeedMappingService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::FeedMappingService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new FeedMappingService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::FeedMappingService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::FeedMappingService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the FeedMappingService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/feed_mapping_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @feed_mapping_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::FeedMappingService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates or removes feed mappings. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [DistinctError]() - # [FeedMappingError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_feed_mappings(request, options = nil) - # Pass arguments to `mutate_feed_mappings` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateFeedMappingsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateFeedMappingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_feed_mappings(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_feed_mappings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose feed mappings are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::FeedMappingOperation, ::Hash>] - # Required. The list of operations to perform on individual feed mappings. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateFeedMappingsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateFeedMappingsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::FeedMappingService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateFeedMappingsRequest.new - # - # # Call the mutate_feed_mappings method. - # result = client.mutate_feed_mappings request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateFeedMappingsResponse. - # p result - # - def mutate_feed_mappings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateFeedMappingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_feed_mappings.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_feed_mappings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_feed_mappings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @feed_mapping_service_stub.call_rpc :mutate_feed_mappings, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the FeedMappingService API. - # - # This class represents the configuration for FeedMappingService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::FeedMappingService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_feed_mappings to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::FeedMappingService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_mappings.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::FeedMappingService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_mappings.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the FeedMappingService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_feed_mappings` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_feed_mappings - - # @private - def initialize parent_rpcs = nil - mutate_feed_mappings_config = parent_rpcs.mutate_feed_mappings if parent_rpcs.respond_to? :mutate_feed_mappings - @mutate_feed_mappings = ::Gapic::Config::Method.new mutate_feed_mappings_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_mapping_service/credentials.rb b/lib/google/ads/google_ads/v12/services/feed_mapping_service/credentials.rb deleted file mode 100644 index 559fafdb1..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_mapping_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedMappingService - # Credentials for the FeedMappingService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_mapping_service/paths.rb b/lib/google/ads/google_ads/v12/services/feed_mapping_service/paths.rb deleted file mode 100644 index e0c8ea2f9..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_mapping_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedMappingService - # Path helper methods for the FeedMappingService API. - module Paths - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - ## - # Create a fully-qualified FeedMapping resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_mapping_id [String] - # - # @return [::String] - def feed_mapping_path customer_id:, feed_id:, feed_mapping_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedMappings/#{feed_id}~#{feed_mapping_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_mapping_service_pb.rb b/lib/google/ads/google_ads/v12/services/feed_mapping_service_pb.rb deleted file mode 100644 index a900ce914..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_mapping_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/feed_mapping_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/feed_mapping_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/feed_mapping_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateFeedMappingsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.FeedMappingOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.FeedMappingOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.FeedMapping" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateFeedMappingsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateFeedMappingResult" - end - add_message "google.ads.googleads.v12.services.MutateFeedMappingResult" do - optional :resource_name, :string, 1 - optional :feed_mapping, :message, 2, "google.ads.googleads.v12.resources.FeedMapping" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateFeedMappingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedMappingsRequest").msgclass - FeedMappingOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.FeedMappingOperation").msgclass - MutateFeedMappingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedMappingsResponse").msgclass - MutateFeedMappingResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedMappingResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_mapping_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/feed_mapping_service_services_pb.rb deleted file mode 100644 index 77fff7672..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_mapping_service_services_pb.rb +++ /dev/null @@ -1,71 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/feed_mapping_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/feed_mapping_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedMappingService - # Proto file describing the FeedMapping service. - # - # Service to manage feed mappings. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.FeedMappingService' - - # Creates or removes feed mappings. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [DistinctError]() - # [FeedMappingError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - rpc :MutateFeedMappings, ::Google::Ads::GoogleAds::V12::Services::MutateFeedMappingsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateFeedMappingsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_service.rb b/lib/google/ads/google_ads/v12/services/feed_service.rb deleted file mode 100644 index 979481731..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/feed_service/credentials" -require "google/ads/google_ads/v12/services/feed_service/paths" -require "google/ads/google_ads/v12/services/feed_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage feeds. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/feed_service" - # client = ::Google::Ads::GoogleAds::V12::Services::FeedService::Client.new - # - module FeedService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "feed_service", "helpers.rb" -require "google/ads/google_ads/v12/services/feed_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/feed_service/client.rb b/lib/google/ads/google_ads/v12/services/feed_service/client.rb deleted file mode 100644 index d3a591efe..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_service/client.rb +++ /dev/null @@ -1,429 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/feed_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedService - ## - # Client for the FeedService service. - # - # Service to manage feeds. - # - class Client - include Paths - - # @private - attr_reader :feed_service_stub - - ## - # Configure the FeedService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::FeedService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all FeedService clients - # ::Google::Ads::GoogleAds::V12::Services::FeedService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the FeedService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::FeedService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new FeedService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::FeedService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::FeedService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the FeedService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/feed_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @feed_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::FeedService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes feeds. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [DatabaseError]() - # [DistinctError]() - # [FeedError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_feeds(request, options = nil) - # Pass arguments to `mutate_feeds` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateFeedsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateFeedsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_feeds(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_feeds` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose feeds are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::FeedOperation, ::Hash>] - # Required. The list of operations to perform on individual feeds. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateFeedsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateFeedsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::FeedService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateFeedsRequest.new - # - # # Call the mutate_feeds method. - # result = client.mutate_feeds request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateFeedsResponse. - # p result - # - def mutate_feeds request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateFeedsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_feeds.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_feeds.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_feeds.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @feed_service_stub.call_rpc :mutate_feeds, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the FeedService API. - # - # This class represents the configuration for FeedService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::FeedService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_feeds to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::FeedService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feeds.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::FeedService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feeds.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the FeedService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_feeds` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_feeds - - # @private - def initialize parent_rpcs = nil - mutate_feeds_config = parent_rpcs.mutate_feeds if parent_rpcs.respond_to? :mutate_feeds - @mutate_feeds = ::Gapic::Config::Method.new mutate_feeds_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_service/credentials.rb b/lib/google/ads/google_ads/v12/services/feed_service/credentials.rb deleted file mode 100644 index f448a266d..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedService - # Credentials for the FeedService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_service/paths.rb b/lib/google/ads/google_ads/v12/services/feed_service/paths.rb deleted file mode 100644 index de74371fe..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedService - # Path helper methods for the FeedService API. - module Paths - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_service_pb.rb b/lib/google/ads/google_ads/v12/services/feed_service_pb.rb deleted file mode 100644 index bdc7c4404..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/feed_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/feed_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/feed_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateFeedsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.FeedOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.FeedOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.Feed" - optional :update, :message, 2, "google.ads.googleads.v12.resources.Feed" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateFeedsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateFeedResult" - end - add_message "google.ads.googleads.v12.services.MutateFeedResult" do - optional :resource_name, :string, 1 - optional :feed, :message, 2, "google.ads.googleads.v12.resources.Feed" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateFeedsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedsRequest").msgclass - FeedOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.FeedOperation").msgclass - MutateFeedsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedsResponse").msgclass - MutateFeedResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateFeedResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/feed_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/feed_service_services_pb.rb deleted file mode 100644 index 22855ef43..000000000 --- a/lib/google/ads/google_ads/v12/services/feed_service_services_pb.rb +++ /dev/null @@ -1,76 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/feed_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/feed_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module FeedService - # Proto file describing the Feed service. - # - # Service to manage feeds. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.FeedService' - - # Creates, updates, or removes feeds. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [DatabaseError]() - # [DistinctError]() - # [FeedError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - rpc :MutateFeeds, ::Google::Ads::GoogleAds::V12::Services::MutateFeedsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateFeedsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/geo_target_constant_service.rb b/lib/google/ads/google_ads/v12/services/geo_target_constant_service.rb deleted file mode 100644 index d14e009e1..000000000 --- a/lib/google/ads/google_ads/v12/services/geo_target_constant_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/geo_target_constant_service/credentials" -require "google/ads/google_ads/v12/services/geo_target_constant_service/paths" -require "google/ads/google_ads/v12/services/geo_target_constant_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to fetch geo target constants. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/geo_target_constant_service" - # client = ::Google::Ads::GoogleAds::V12::Services::GeoTargetConstantService::Client.new - # - module GeoTargetConstantService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "geo_target_constant_service", "helpers.rb" -require "google/ads/google_ads/v12/services/geo_target_constant_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/geo_target_constant_service/client.rb b/lib/google/ads/google_ads/v12/services/geo_target_constant_service/client.rb deleted file mode 100644 index 72eb5c736..000000000 --- a/lib/google/ads/google_ads/v12/services/geo_target_constant_service/client.rb +++ /dev/null @@ -1,399 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/geo_target_constant_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module GeoTargetConstantService - ## - # Client for the GeoTargetConstantService service. - # - # Service to fetch geo target constants. - # - class Client - include Paths - - # @private - attr_reader :geo_target_constant_service_stub - - ## - # Configure the GeoTargetConstantService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::GeoTargetConstantService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all GeoTargetConstantService clients - # ::Google::Ads::GoogleAds::V12::Services::GeoTargetConstantService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the GeoTargetConstantService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::GeoTargetConstantService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new GeoTargetConstantService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::GeoTargetConstantService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::GeoTargetConstantService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the GeoTargetConstantService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/geo_target_constant_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @geo_target_constant_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::GeoTargetConstantService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Returns GeoTargetConstant suggestions by location name or by resource name. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [GeoTargetConstantSuggestionError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload suggest_geo_target_constants(request, options = nil) - # Pass arguments to `suggest_geo_target_constants` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::SuggestGeoTargetConstantsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::SuggestGeoTargetConstantsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload suggest_geo_target_constants(locale: nil, country_code: nil, location_names: nil, geo_targets: nil) - # Pass arguments to `suggest_geo_target_constants` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param locale [::String] - # If possible, returned geo targets are translated using this locale. If not, - # en is used by default. This is also used as a hint for returned geo - # targets. - # @param country_code [::String] - # Returned geo targets are restricted to this country code. - # @param location_names [::Google::Ads::GoogleAds::V12::Services::SuggestGeoTargetConstantsRequest::LocationNames, ::Hash] - # The location names to search by. At most 25 names can be set. - # @param geo_targets [::Google::Ads::GoogleAds::V12::Services::SuggestGeoTargetConstantsRequest::GeoTargets, ::Hash] - # The geo target constant resource names to filter by. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::SuggestGeoTargetConstantsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::SuggestGeoTargetConstantsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::GeoTargetConstantService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::SuggestGeoTargetConstantsRequest.new - # - # # Call the suggest_geo_target_constants method. - # result = client.suggest_geo_target_constants request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::SuggestGeoTargetConstantsResponse. - # p result - # - def suggest_geo_target_constants request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::SuggestGeoTargetConstantsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.suggest_geo_target_constants.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.suggest_geo_target_constants.timeout, - metadata: metadata, - retry_policy: @config.rpcs.suggest_geo_target_constants.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @geo_target_constant_service_stub.call_rpc :suggest_geo_target_constants, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the GeoTargetConstantService API. - # - # This class represents the configuration for GeoTargetConstantService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::GeoTargetConstantService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # suggest_geo_target_constants to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::GeoTargetConstantService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.suggest_geo_target_constants.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::GeoTargetConstantService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.suggest_geo_target_constants.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the GeoTargetConstantService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `suggest_geo_target_constants` - # @return [::Gapic::Config::Method] - # - attr_reader :suggest_geo_target_constants - - # @private - def initialize parent_rpcs = nil - suggest_geo_target_constants_config = parent_rpcs.suggest_geo_target_constants if parent_rpcs.respond_to? :suggest_geo_target_constants - @suggest_geo_target_constants = ::Gapic::Config::Method.new suggest_geo_target_constants_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/geo_target_constant_service/credentials.rb b/lib/google/ads/google_ads/v12/services/geo_target_constant_service/credentials.rb deleted file mode 100644 index 2e8243660..000000000 --- a/lib/google/ads/google_ads/v12/services/geo_target_constant_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module GeoTargetConstantService - # Credentials for the GeoTargetConstantService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/geo_target_constant_service/paths.rb b/lib/google/ads/google_ads/v12/services/geo_target_constant_service/paths.rb deleted file mode 100644 index 2a5255006..000000000 --- a/lib/google/ads/google_ads/v12/services/geo_target_constant_service/paths.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module GeoTargetConstantService - # Path helper methods for the GeoTargetConstantService API. - module Paths - ## - # Create a fully-qualified GeoTargetConstant resource string. - # - # The resource will be in the following format: - # - # `geoTargetConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def geo_target_constant_path criterion_id: - "geoTargetConstants/#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/geo_target_constant_service_pb.rb b/lib/google/ads/google_ads/v12/services/geo_target_constant_service_pb.rb deleted file mode 100644 index 0de7e640f..000000000 --- a/lib/google/ads/google_ads/v12/services/geo_target_constant_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/geo_target_constant_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/geo_target_constant_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/geo_target_constant_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.SuggestGeoTargetConstantsRequest" do - proto3_optional :locale, :string, 6 - proto3_optional :country_code, :string, 7 - oneof :query do - optional :location_names, :message, 1, "google.ads.googleads.v12.services.SuggestGeoTargetConstantsRequest.LocationNames" - optional :geo_targets, :message, 2, "google.ads.googleads.v12.services.SuggestGeoTargetConstantsRequest.GeoTargets" - end - end - add_message "google.ads.googleads.v12.services.SuggestGeoTargetConstantsRequest.LocationNames" do - repeated :names, :string, 2 - end - add_message "google.ads.googleads.v12.services.SuggestGeoTargetConstantsRequest.GeoTargets" do - repeated :geo_target_constants, :string, 2 - end - add_message "google.ads.googleads.v12.services.SuggestGeoTargetConstantsResponse" do - repeated :geo_target_constant_suggestions, :message, 1, "google.ads.googleads.v12.services.GeoTargetConstantSuggestion" - end - add_message "google.ads.googleads.v12.services.GeoTargetConstantSuggestion" do - proto3_optional :locale, :string, 6 - proto3_optional :reach, :int64, 7 - proto3_optional :search_term, :string, 8 - optional :geo_target_constant, :message, 4, "google.ads.googleads.v12.resources.GeoTargetConstant" - repeated :geo_target_constant_parents, :message, 5, "google.ads.googleads.v12.resources.GeoTargetConstant" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - SuggestGeoTargetConstantsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SuggestGeoTargetConstantsRequest").msgclass - SuggestGeoTargetConstantsRequest::LocationNames = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SuggestGeoTargetConstantsRequest.LocationNames").msgclass - SuggestGeoTargetConstantsRequest::GeoTargets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SuggestGeoTargetConstantsRequest.GeoTargets").msgclass - SuggestGeoTargetConstantsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SuggestGeoTargetConstantsResponse").msgclass - GeoTargetConstantSuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GeoTargetConstantSuggestion").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/geo_target_constant_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/geo_target_constant_service_services_pb.rb deleted file mode 100644 index bd33d9a52..000000000 --- a/lib/google/ads/google_ads/v12/services/geo_target_constant_service_services_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/geo_target_constant_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/geo_target_constant_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module GeoTargetConstantService - # Proto file describing the Geo target constant service. - # - # Service to fetch geo target constants. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.GeoTargetConstantService' - - # Returns GeoTargetConstant suggestions by location name or by resource name. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [GeoTargetConstantSuggestionError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :SuggestGeoTargetConstants, ::Google::Ads::GoogleAds::V12::Services::SuggestGeoTargetConstantsRequest, ::Google::Ads::GoogleAds::V12::Services::SuggestGeoTargetConstantsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/google_ads_field_service.rb b/lib/google/ads/google_ads/v12/services/google_ads_field_service.rb deleted file mode 100644 index b180e94ee..000000000 --- a/lib/google/ads/google_ads/v12/services/google_ads_field_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/google_ads_field_service/credentials" -require "google/ads/google_ads/v12/services/google_ads_field_service/paths" -require "google/ads/google_ads/v12/services/google_ads_field_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to fetch Google Ads API fields. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/google_ads_field_service" - # client = ::Google::Ads::GoogleAds::V12::Services::GoogleAdsFieldService::Client.new - # - module GoogleAdsFieldService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "google_ads_field_service", "helpers.rb" -require "google/ads/google_ads/v12/services/google_ads_field_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/google_ads_field_service/client.rb b/lib/google/ads/google_ads/v12/services/google_ads_field_service/client.rb deleted file mode 100644 index 1ac77cdeb..000000000 --- a/lib/google/ads/google_ads/v12/services/google_ads_field_service/client.rb +++ /dev/null @@ -1,509 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/google_ads_field_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module GoogleAdsFieldService - ## - # Client for the GoogleAdsFieldService service. - # - # Service to fetch Google Ads API fields. - # - class Client - include Paths - - # @private - attr_reader :google_ads_field_service_stub - - ## - # Configure the GoogleAdsFieldService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::GoogleAdsFieldService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all GoogleAdsFieldService clients - # ::Google::Ads::GoogleAds::V12::Services::GoogleAdsFieldService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the GoogleAdsFieldService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::GoogleAdsFieldService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new GoogleAdsFieldService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::GoogleAdsFieldService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::GoogleAdsFieldService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the GoogleAdsFieldService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/google_ads_field_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @google_ads_field_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::GoogleAdsFieldService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Returns just the requested field. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload get_google_ads_field(request, options = nil) - # Pass arguments to `get_google_ads_field` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::GetGoogleAdsFieldRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::GetGoogleAdsFieldRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_google_ads_field(resource_name: nil) - # Pass arguments to `get_google_ads_field` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the field to get. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Resources::GoogleAdsField] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Resources::GoogleAdsField] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::GoogleAdsFieldService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::GetGoogleAdsFieldRequest.new - # - # # Call the get_google_ads_field method. - # result = client.get_google_ads_field request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Resources::GoogleAdsField. - # p result - # - def get_google_ads_field request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::GetGoogleAdsFieldRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_google_ads_field.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_google_ads_field.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_google_ads_field.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @google_ads_field_service_stub.call_rpc :get_google_ads_field, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns all fields that match the search query. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QueryError]() - # [QuotaError]() - # [RequestError]() - # - # @overload search_google_ads_fields(request, options = nil) - # Pass arguments to `search_google_ads_fields` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsFieldsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsFieldsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload search_google_ads_fields(query: nil, page_token: nil, page_size: nil) - # Pass arguments to `search_google_ads_fields` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param query [::String] - # Required. The query string. - # @param page_token [::String] - # Token of the page to retrieve. If not specified, the first page of - # results will be returned. Use the value obtained from `next_page_token` - # in the previous response in order to request the next page of results. - # @param page_size [::Integer] - # Number of elements to retrieve in a single page. - # When too large a page is requested, the server may decide to further - # limit the number of returned resources. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V12::Resources::GoogleAdsField>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V12::Resources::GoogleAdsField>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::GoogleAdsFieldService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsFieldsRequest.new - # - # # Call the search_google_ads_fields method. - # result = client.search_google_ads_fields request - # - # # The returned object is of type Gapic::PagedEnumerable. You can - # # iterate over all elements by calling #each, and the enumerable - # # will lazily make API calls to fetch subsequent pages. Other - # # methods are also available for managing paging directly. - # result.each do |response| - # # Each element is of type ::Google::Ads::GoogleAds::V12::Resources::GoogleAdsField. - # p response - # end - # - def search_google_ads_fields request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsFieldsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.search_google_ads_fields.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.search_google_ads_fields.timeout, - metadata: metadata, - retry_policy: @config.rpcs.search_google_ads_fields.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @google_ads_field_service_stub.call_rpc :search_google_ads_fields, request, - options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @google_ads_field_service_stub, :search_google_ads_fields, - request, response, operation, options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the GoogleAdsFieldService API. - # - # This class represents the configuration for GoogleAdsFieldService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::GoogleAdsFieldService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_google_ads_field to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::GoogleAdsFieldService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_google_ads_field.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::GoogleAdsFieldService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_google_ads_field.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the GoogleAdsFieldService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_google_ads_field` - # @return [::Gapic::Config::Method] - # - attr_reader :get_google_ads_field - ## - # RPC-specific configuration for `search_google_ads_fields` - # @return [::Gapic::Config::Method] - # - attr_reader :search_google_ads_fields - - # @private - def initialize parent_rpcs = nil - get_google_ads_field_config = parent_rpcs.get_google_ads_field if parent_rpcs.respond_to? :get_google_ads_field - @get_google_ads_field = ::Gapic::Config::Method.new get_google_ads_field_config - search_google_ads_fields_config = parent_rpcs.search_google_ads_fields if parent_rpcs.respond_to? :search_google_ads_fields - @search_google_ads_fields = ::Gapic::Config::Method.new search_google_ads_fields_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/google_ads_field_service/credentials.rb b/lib/google/ads/google_ads/v12/services/google_ads_field_service/credentials.rb deleted file mode 100644 index 2a8ad3820..000000000 --- a/lib/google/ads/google_ads/v12/services/google_ads_field_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module GoogleAdsFieldService - # Credentials for the GoogleAdsFieldService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/google_ads_field_service/paths.rb b/lib/google/ads/google_ads/v12/services/google_ads_field_service/paths.rb deleted file mode 100644 index 8a6f74841..000000000 --- a/lib/google/ads/google_ads/v12/services/google_ads_field_service/paths.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module GoogleAdsFieldService - # Path helper methods for the GoogleAdsFieldService API. - module Paths - ## - # Create a fully-qualified GoogleAdsField resource string. - # - # The resource will be in the following format: - # - # `googleAdsFields/{google_ads_field}` - # - # @param google_ads_field [String] - # - # @return [::String] - def google_ads_field_path google_ads_field: - "googleAdsFields/#{google_ads_field}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/google_ads_field_service_pb.rb b/lib/google/ads/google_ads/v12/services/google_ads_field_service_pb.rb deleted file mode 100644 index 48420ef8d..000000000 --- a/lib/google/ads/google_ads/v12/services/google_ads_field_service_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/google_ads_field_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/google_ads_field_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/google_ads_field_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.GetGoogleAdsFieldRequest" do - optional :resource_name, :string, 1 - end - add_message "google.ads.googleads.v12.services.SearchGoogleAdsFieldsRequest" do - optional :query, :string, 1 - optional :page_token, :string, 2 - optional :page_size, :int32, 3 - end - add_message "google.ads.googleads.v12.services.SearchGoogleAdsFieldsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.resources.GoogleAdsField" - optional :next_page_token, :string, 2 - optional :total_results_count, :int64, 3 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - GetGoogleAdsFieldRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GetGoogleAdsFieldRequest").msgclass - SearchGoogleAdsFieldsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SearchGoogleAdsFieldsRequest").msgclass - SearchGoogleAdsFieldsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SearchGoogleAdsFieldsResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/google_ads_field_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/google_ads_field_service_services_pb.rb deleted file mode 100644 index d0aa70e6b..000000000 --- a/lib/google/ads/google_ads/v12/services/google_ads_field_service_services_pb.rb +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/google_ads_field_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/google_ads_field_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module GoogleAdsFieldService - # Proto file describing the GoogleAdsFieldService. - # - # Service to fetch Google Ads API fields. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.GoogleAdsFieldService' - - # Returns just the requested field. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :GetGoogleAdsField, ::Google::Ads::GoogleAds::V12::Services::GetGoogleAdsFieldRequest, ::Google::Ads::GoogleAds::V12::Resources::GoogleAdsField - # Returns all fields that match the search query. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QueryError]() - # [QuotaError]() - # [RequestError]() - rpc :SearchGoogleAdsFields, ::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsFieldsRequest, ::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsFieldsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/google_ads_service.rb b/lib/google/ads/google_ads/v12/services/google_ads_service.rb deleted file mode 100644 index 4bcd3b41a..000000000 --- a/lib/google/ads/google_ads/v12/services/google_ads_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/google_ads_service/credentials" -require "google/ads/google_ads/v12/services/google_ads_service/paths" -require "google/ads/google_ads/v12/services/google_ads_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to fetch data and metrics across resources. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/google_ads_service" - # client = ::Google::Ads::GoogleAds::V12::Services::GoogleAdsService::Client.new - # - module GoogleAdsService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "google_ads_service", "helpers.rb" -require "google/ads/google_ads/v12/services/google_ads_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/google_ads_service/client.rb b/lib/google/ads/google_ads/v12/services/google_ads_service/client.rb deleted file mode 100644 index 4c1e28b3f..000000000 --- a/lib/google/ads/google_ads/v12/services/google_ads_service/client.rb +++ /dev/null @@ -1,763 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/google_ads_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module GoogleAdsService - ## - # Client for the GoogleAdsService service. - # - # Service to fetch data and metrics across resources. - # - class Client - include Paths - - # @private - attr_reader :google_ads_service_stub - - ## - # Configure the GoogleAdsService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::GoogleAdsService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all GoogleAdsService clients - # ::Google::Ads::GoogleAds::V12::Services::GoogleAdsService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the GoogleAdsService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::GoogleAdsService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new GoogleAdsService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::GoogleAdsService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::GoogleAdsService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the GoogleAdsService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/google_ads_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @google_ads_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::GoogleAdsService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Returns all rows that match the search query. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ChangeEventError]() - # [ChangeStatusError]() - # [ClickViewError]() - # [HeaderError]() - # [InternalError]() - # [QueryError]() - # [QuotaError]() - # [RequestError]() - # - # @overload search(request, options = nil) - # Pass arguments to `search` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload search(customer_id: nil, query: nil, page_token: nil, page_size: nil, validate_only: nil, return_total_results_count: nil, summary_row_setting: nil) - # Pass arguments to `search` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer being queried. - # @param query [::String] - # Required. The query string. - # @param page_token [::String] - # Token of the page to retrieve. If not specified, the first - # page of results will be returned. Use the value obtained from - # `next_page_token` in the previous response in order to request - # the next page of results. - # @param page_size [::Integer] - # Number of elements to retrieve in a single page. - # When too large a page is requested, the server may decide to - # further limit the number of returned resources. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. - # @param return_total_results_count [::Boolean] - # If true, the total number of results that match the query ignoring the - # LIMIT clause will be included in the response. - # Default is false. - # @param summary_row_setting [::Google::Ads::GoogleAds::V12::Enums::SummaryRowSettingEnum::SummaryRowSetting] - # Determines whether a summary row will be returned. By default, summary row - # is not returned. If requested, the summary row will be sent in a response - # by itself after all other query results are returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V12::Services::GoogleAdsRow>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V12::Services::GoogleAdsRow>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::GoogleAdsService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsRequest.new - # - # # Call the search method. - # result = client.search request - # - # # The returned object is of type Gapic::PagedEnumerable. You can - # # iterate over all elements by calling #each, and the enumerable - # # will lazily make API calls to fetch subsequent pages. Other - # # methods are also available for managing paging directly. - # result.each do |response| - # # Each element is of type ::Google::Ads::GoogleAds::V12::Services::GoogleAdsRow. - # p response - # end - # - def search request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.search.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.search.timeout, - metadata: metadata, - retry_policy: @config.rpcs.search.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @google_ads_service_stub.call_rpc :search, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @google_ads_service_stub, :search, request, response, - operation, options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns all rows that match the search stream query. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ChangeEventError]() - # [ChangeStatusError]() - # [ClickViewError]() - # [HeaderError]() - # [InternalError]() - # [QueryError]() - # [QuotaError]() - # [RequestError]() - # - # @overload search_stream(request, options = nil) - # Pass arguments to `search_stream` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsStreamRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsStreamRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload search_stream(customer_id: nil, query: nil, summary_row_setting: nil) - # Pass arguments to `search_stream` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer being queried. - # @param query [::String] - # Required. The query string. - # @param summary_row_setting [::Google::Ads::GoogleAds::V12::Enums::SummaryRowSettingEnum::SummaryRowSetting] - # Determines whether a summary row will be returned. By default, summary row - # is not returned. If requested, the summary row will be sent in a response - # by itself after all other query results are returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Enumerable<::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsStreamResponse>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Enumerable<::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsStreamResponse>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::GoogleAdsService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsStreamRequest.new - # - # # Call the search_stream method. - # result = client.search_stream request - # - # # The returned object is a streamed enumerable yielding elements of - # # type ::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsStreamResponse. - # result.each do |response| - # p response - # end - # - def search_stream request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsStreamRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.search_stream.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.search_stream.timeout, - metadata: metadata, - retry_policy: @config.rpcs.search_stream.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @google_ads_service_stub.call_rpc :search_stream, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Creates, updates, or removes resources. This method supports atomic - # transactions with multiple types of resources. For example, you can - # atomically create a campaign and a campaign budget, or perform up to - # thousands of mutates atomically. - # - # This method is essentially a wrapper around a series of mutate methods. The - # only features it offers over calling those methods directly are: - # - # - Atomic transactions - # - Temp resource names (described below) - # - Somewhat reduced latency over making a series of mutate calls - # - # Note: Only resources that support atomic transactions are included, so this - # method can't replace all calls to individual services. - # - # ## Atomic Transaction Benefits - # - # Atomicity makes error handling much easier. If you're making a series of - # changes and one fails, it can leave your account in an inconsistent state. - # With atomicity, you either reach the chosen state directly, or the request - # fails and you can retry. - # - # ## Temp Resource Names - # - # Temp resource names are a special type of resource name used to create a - # resource and reference that resource in the same request. For example, if a - # campaign budget is created with `resource_name` equal to - # `customers/123/campaignBudgets/-1`, that resource name can be reused in - # the `Campaign.budget` field in the same request. That way, the two - # resources are created and linked atomically. - # - # To create a temp resource name, put a negative number in the part of the - # name that the server would normally allocate. - # - # Note: - # - # - Resources must be created with a temp name before the name can be reused. - # For example, the previous CampaignBudget+Campaign example would fail if - # the mutate order was reversed. - # - Temp names are not remembered across requests. - # - There's no limit to the number of temp names in a request. - # - Each temp name must use a unique negative number, even if the resource - # types differ. - # - # ## Latency - # - # It's important to group mutates by resource type or the request may time - # out and fail. Latency is roughly equal to a series of calls to individual - # mutate methods, where each change in resource type is a new call. For - # example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - # mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - # - # List of thrown errors: - # [AdCustomizerError]() - # [AdError]() - # [AdGroupAdError]() - # [AdGroupCriterionError]() - # [AdGroupError]() - # [AssetError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [BiddingError]() - # [CampaignBudgetError]() - # [CampaignCriterionError]() - # [CampaignError]() - # [CampaignExperimentError]() - # [CampaignSharedSetError]() - # [CollectionSizeError]() - # [ContextError]() - # [ConversionActionError]() - # [CriterionError]() - # [CustomerFeedError]() - # [DatabaseError]() - # [DateError]() - # [DateRangeError]() - # [DistinctError]() - # [ExtensionFeedItemError]() - # [ExtensionSettingError]() - # [FeedAttributeReferenceError]() - # [FeedError]() - # [FeedItemError]() - # [FeedItemSetError]() - # [FieldError]() - # [FieldMaskError]() - # [FunctionParsingError]() - # [HeaderError]() - # [ImageError]() - # [InternalError]() - # [KeywordPlanAdGroupKeywordError]() - # [KeywordPlanCampaignError]() - # [KeywordPlanError]() - # [LabelError]() - # [ListOperationError]() - # [MediaUploadError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [PolicyFindingError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SettingError]() - # [SharedSetError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # [UserListError]() - # [YoutubeVideoRegistrationError]() - # - # @overload mutate(request, options = nil) - # Pass arguments to `mutate` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateGoogleAdsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateGoogleAdsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate(customer_id: nil, mutate_operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose resources are being modified. - # @param mutate_operations [::Array<::Google::Ads::GoogleAds::V12::Services::MutateOperation, ::Hash>] - # Required. The list of operations to perform on individual resources. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. The mutable - # resource will only be returned if the resource has the appropriate response - # field. For example, MutateCampaignResult.campaign. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateGoogleAdsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateGoogleAdsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::GoogleAdsService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateGoogleAdsRequest.new - # - # # Call the mutate method. - # result = client.mutate request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateGoogleAdsResponse. - # p result - # - def mutate request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateGoogleAdsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @google_ads_service_stub.call_rpc :mutate, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the GoogleAdsService API. - # - # This class represents the configuration for GoogleAdsService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::GoogleAdsService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # search to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::GoogleAdsService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.search.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::GoogleAdsService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.search.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the GoogleAdsService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `search` - # @return [::Gapic::Config::Method] - # - attr_reader :search - ## - # RPC-specific configuration for `search_stream` - # @return [::Gapic::Config::Method] - # - attr_reader :search_stream - ## - # RPC-specific configuration for `mutate` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate - - # @private - def initialize parent_rpcs = nil - search_config = parent_rpcs.search if parent_rpcs.respond_to? :search - @search = ::Gapic::Config::Method.new search_config - search_stream_config = parent_rpcs.search_stream if parent_rpcs.respond_to? :search_stream - @search_stream = ::Gapic::Config::Method.new search_stream_config - mutate_config = parent_rpcs.mutate if parent_rpcs.respond_to? :mutate - @mutate = ::Gapic::Config::Method.new mutate_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/google_ads_service/credentials.rb b/lib/google/ads/google_ads/v12/services/google_ads_service/credentials.rb deleted file mode 100644 index 842fcb2bd..000000000 --- a/lib/google/ads/google_ads/v12/services/google_ads_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module GoogleAdsService - # Credentials for the GoogleAdsService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/google_ads_service/paths.rb b/lib/google/ads/google_ads/v12/services/google_ads_service/paths.rb deleted file mode 100644 index 6109edecc..000000000 --- a/lib/google/ads/google_ads/v12/services/google_ads_service/paths.rb +++ /dev/null @@ -1,2894 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module GoogleAdsService - # Path helper methods for the GoogleAdsService API. - module Paths - ## - # Create a fully-qualified AccessibleBiddingStrategy resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}` - # - # @param customer_id [String] - # @param bidding_strategy_id [String] - # - # @return [::String] - def accessible_bidding_strategy_path customer_id:, bidding_strategy_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accessibleBiddingStrategies/#{bidding_strategy_id}" - end - - ## - # Create a fully-qualified AccountBudget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accountBudgets/{account_budget_id}` - # - # @param customer_id [String] - # @param account_budget_id [String] - # - # @return [::String] - def account_budget_path customer_id:, account_budget_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accountBudgets/#{account_budget_id}" - end - - ## - # Create a fully-qualified AccountBudgetProposal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` - # - # @param customer_id [String] - # @param account_budget_proposal_id [String] - # - # @return [::String] - def account_budget_proposal_path customer_id:, account_budget_proposal_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accountBudgetProposals/#{account_budget_proposal_id}" - end - - ## - # Create a fully-qualified AccountLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accountLinks/{account_link_id}` - # - # @param customer_id [String] - # @param account_link_id [String] - # - # @return [::String] - def account_link_path customer_id:, account_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accountLinks/#{account_link_id}" - end - - ## - # Create a fully-qualified Ad resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/ads/{ad_id}` - # - # @param customer_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_path customer_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/ads/#{ad_id}" - end - - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupAd resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_group_ad_path customer_id:, ad_group_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAds/#{ad_group_id}~#{ad_id}" - end - - ## - # Create a fully-qualified AdGroupAdAssetCombinationView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # @param asset_combination_id_low [String] - # @param asset_combination_id_high [String] - # - # @return [::String] - def ad_group_ad_asset_combination_view_path customer_id:, ad_group_id:, ad_id:, - asset_combination_id_low:, asset_combination_id_high: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" - raise ::ArgumentError, - "asset_combination_id_low cannot contain /" if asset_combination_id_low.to_s.include? "/" - - "customers/#{customer_id}/adGroupAdAssetCombinationViews/#{ad_group_id}~#{ad_id}~#{asset_combination_id_low}~#{asset_combination_id_high}" - end - - ## - # Create a fully-qualified AdGroupAdAssetView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def ad_group_ad_asset_view_path customer_id:, ad_group_id:, ad_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAdAssetViews/#{ad_group_id}~#{ad_id}~#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified AdGroupAdLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_ad_label_path customer_id:, ad_group_id:, ad_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAdLabels/#{ad_group_id}~#{ad_id}~#{label_id}" - end - - ## - # Create a fully-qualified AdGroupAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def ad_group_asset_path customer_id:, ad_group_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAssets/#{ad_group_id}~#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified AdGroupAssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def ad_group_asset_set_path customer_id:, ad_group_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAssetSets/#{ad_group_id}~#{asset_set_id}" - end - - ## - # Create a fully-qualified AdGroupAudienceView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_audience_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAudienceViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdGroupBidModifier resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_bid_modifier_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupBidModifiers/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdGroupCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdGroupCriterionCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def ad_group_criterion_customizer_path customer_id:, ad_group_id:, criterion_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriterionCustomizers/#{ad_group_id}~#{criterion_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified AdGroupCriterionLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_criterion_label_path customer_id:, ad_group_id:, criterion_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriterionLabels/#{ad_group_id}~#{criterion_id}~#{label_id}" - end - - ## - # Create a fully-qualified AdGroupCriterionSimulation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param type [String] - # @param modification_method [String] - # @param start_date [String] - # @param end_date [String] - # - # @return [::String] - def ad_group_criterion_simulation_path customer_id:, ad_group_id:, criterion_id:, type:, - modification_method:, start_date:, end_date: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - raise ::ArgumentError, "type cannot contain /" if type.to_s.include? "/" - raise ::ArgumentError, "modification_method cannot contain /" if modification_method.to_s.include? "/" - raise ::ArgumentError, "start_date cannot contain /" if start_date.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriterionSimulations/#{ad_group_id}~#{criterion_id}~#{type}~#{modification_method}~#{start_date}~#{end_date}" - end - - ## - # Create a fully-qualified AdGroupCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def ad_group_customizer_path customer_id:, ad_group_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCustomizers/#{ad_group_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified AdGroupExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param extension_type [String] - # - # @return [::String] - def ad_group_extension_setting_path customer_id:, ad_group_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupExtensionSettings/#{ad_group_id}~#{extension_type}" - end - - ## - # Create a fully-qualified AdGroupFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param feed_id [String] - # - # @return [::String] - def ad_group_feed_path customer_id:, ad_group_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupFeeds/#{ad_group_id}~#{feed_id}" - end - - ## - # Create a fully-qualified AdGroupLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_label_path customer_id:, ad_group_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupLabels/#{ad_group_id}~#{label_id}" - end - - ## - # Create a fully-qualified AdGroupSimulation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param type [String] - # @param modification_method [String] - # @param start_date [String] - # @param end_date [String] - # - # @return [::String] - def ad_group_simulation_path customer_id:, ad_group_id:, type:, modification_method:, start_date:, - end_date: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "type cannot contain /" if type.to_s.include? "/" - raise ::ArgumentError, "modification_method cannot contain /" if modification_method.to_s.include? "/" - raise ::ArgumentError, "start_date cannot contain /" if start_date.to_s.include? "/" - - "customers/#{customer_id}/adGroupSimulations/#{ad_group_id}~#{type}~#{modification_method}~#{start_date}~#{end_date}" - end - - ## - # Create a fully-qualified AdParameter resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param parameter_index [String] - # - # @return [::String] - def ad_parameter_path customer_id:, ad_group_id:, criterion_id:, parameter_index: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adParameters/#{ad_group_id}~#{criterion_id}~#{parameter_index}" - end - - ## - # Create a fully-qualified AdScheduleView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_schedule_view_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/adScheduleViews/#{campaign_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AgeRangeView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def age_range_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/ageRangeViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified AssetFieldTypeView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetFieldTypeViews/{field_type}` - # - # @param customer_id [String] - # @param field_type [String] - # - # @return [::String] - def asset_field_type_view_path customer_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetFieldTypeViews/#{field_type}" - end - - ## - # Create a fully-qualified AssetGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroups/{asset_group_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # - # @return [::String] - def asset_group_path customer_id:, asset_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroups/#{asset_group_id}" - end - - ## - # Create a fully-qualified AssetGroupAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def asset_group_asset_path customer_id:, asset_group_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupAssets/#{asset_group_id}~#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified AssetGroupListingGroupFilter resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param listing_group_filter_id [String] - # - # @return [::String] - def asset_group_listing_group_filter_path customer_id:, asset_group_id:, listing_group_filter_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupListingGroupFilters/#{asset_group_id}~#{listing_group_filter_id}" - end - - ## - # Create a fully-qualified AssetGroupProductGroupView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param listing_group_filter_id [String] - # - # @return [::String] - def asset_group_product_group_view_path customer_id:, asset_group_id:, listing_group_filter_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupProductGroupViews/#{asset_group_id}~#{listing_group_filter_id}" - end - - ## - # Create a fully-qualified AssetGroupSignal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def asset_group_signal_path customer_id:, asset_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupSignals/#{asset_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSets/#{asset_set_id}" - end - - ## - # Create a fully-qualified AssetSetAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_set_asset_path customer_id:, asset_set_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_set_id cannot contain /" if asset_set_id.to_s.include? "/" - - "customers/#{customer_id}/assetSetAssets/#{asset_set_id}~#{asset_id}" - end - - ## - # Create a fully-qualified AssetSetTypeView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSetTypeViews/{asset_set_type}` - # - # @param customer_id [String] - # @param asset_set_type [String] - # - # @return [::String] - def asset_set_type_view_path customer_id:, asset_set_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSetTypeViews/#{asset_set_type}" - end - - ## - # Create a fully-qualified Audience resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/audiences/{audience_id}` - # - # @param customer_id [String] - # @param audience_id [String] - # - # @return [::String] - def audience_path customer_id:, audience_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/audiences/#{audience_id}" - end - - ## - # Create a fully-qualified BatchJob resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/batchJobs/{batch_job_id}` - # - # @param customer_id [String] - # @param batch_job_id [String] - # - # @return [::String] - def batch_job_path customer_id:, batch_job_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/batchJobs/#{batch_job_id}" - end - - ## - # Create a fully-qualified BiddingDataExclusion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}` - # - # @param customer_id [String] - # @param seasonality_event_id [String] - # - # @return [::String] - def bidding_data_exclusion_path customer_id:, seasonality_event_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingDataExclusions/#{seasonality_event_id}" - end - - ## - # Create a fully-qualified BiddingSeasonalityAdjustment resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}` - # - # @param customer_id [String] - # @param seasonality_event_id [String] - # - # @return [::String] - def bidding_seasonality_adjustment_path customer_id:, seasonality_event_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingSeasonalityAdjustments/#{seasonality_event_id}" - end - - ## - # Create a fully-qualified BiddingStrategy resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` - # - # @param customer_id [String] - # @param bidding_strategy_id [String] - # - # @return [::String] - def bidding_strategy_path customer_id:, bidding_strategy_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingStrategies/#{bidding_strategy_id}" - end - - ## - # Create a fully-qualified BiddingStrategySimulation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date}` - # - # @param customer_id [String] - # @param bidding_strategy_id [String] - # @param type [String] - # @param modification_method [String] - # @param start_date [String] - # @param end_date [String] - # - # @return [::String] - def bidding_strategy_simulation_path customer_id:, bidding_strategy_id:, type:, modification_method:, - start_date:, end_date: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "bidding_strategy_id cannot contain /" if bidding_strategy_id.to_s.include? "/" - raise ::ArgumentError, "type cannot contain /" if type.to_s.include? "/" - raise ::ArgumentError, "modification_method cannot contain /" if modification_method.to_s.include? "/" - raise ::ArgumentError, "start_date cannot contain /" if start_date.to_s.include? "/" - - "customers/#{customer_id}/biddingStrategySimulations/#{bidding_strategy_id}~#{type}~#{modification_method}~#{start_date}~#{end_date}" - end - - ## - # Create a fully-qualified BillingSetup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/billingSetups/{billing_setup_id}` - # - # @param customer_id [String] - # @param billing_setup_id [String] - # - # @return [::String] - def billing_setup_path customer_id:, billing_setup_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/billingSetups/#{billing_setup_id}" - end - - ## - # Create a fully-qualified CallView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/callViews/{call_detail_id}` - # - # @param customer_id [String] - # @param call_detail_id [String] - # - # @return [::String] - def call_view_path customer_id:, call_detail_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/callViews/#{call_detail_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def campaign_asset_path customer_id:, campaign_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/campaignAssets/#{campaign_id}~#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified CampaignAssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def campaign_asset_set_path customer_id:, campaign_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignAssetSets/#{campaign_id}~#{asset_set_id}" - end - - ## - # Create a fully-qualified CampaignAudienceView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def campaign_audience_view_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignAudienceViews/#{campaign_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified CampaignBidModifier resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def campaign_bid_modifier_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignBidModifiers/#{campaign_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified CampaignBudget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` - # - # @param customer_id [String] - # @param campaign_budget_id [String] - # - # @return [::String] - def campaign_budget_path customer_id:, campaign_budget_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" - end - - ## - # Create a fully-qualified CampaignConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param category [String] - # @param source [String] - # - # @return [::String] - def campaign_conversion_goal_path customer_id:, campaign_id:, category:, source: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" - - "customers/#{customer_id}/campaignConversionGoals/#{campaign_id}~#{category}~#{source}" - end - - ## - # Create a fully-qualified CampaignCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def campaign_criterion_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignCriteria/#{campaign_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified CampaignCriterionSimulation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # @param type [String] - # @param modification_method [String] - # @param start_date [String] - # @param end_date [String] - # - # @return [::String] - def campaign_criterion_simulation_path customer_id:, campaign_id:, criterion_id:, type:, - modification_method:, start_date:, end_date: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - raise ::ArgumentError, "type cannot contain /" if type.to_s.include? "/" - raise ::ArgumentError, "modification_method cannot contain /" if modification_method.to_s.include? "/" - raise ::ArgumentError, "start_date cannot contain /" if start_date.to_s.include? "/" - - "customers/#{customer_id}/campaignCriterionSimulations/#{campaign_id}~#{criterion_id}~#{type}~#{modification_method}~#{start_date}~#{end_date}" - end - - ## - # Create a fully-qualified CampaignCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def campaign_customizer_path customer_id:, campaign_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignCustomizers/#{campaign_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified CampaignDraft resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` - # - # @param customer_id [String] - # @param base_campaign_id [String] - # @param draft_id [String] - # - # @return [::String] - def campaign_draft_path customer_id:, base_campaign_id:, draft_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "base_campaign_id cannot contain /" if base_campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignDrafts/#{base_campaign_id}~#{draft_id}" - end - - ## - # Create a fully-qualified CampaignExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param extension_type [String] - # - # @return [::String] - def campaign_extension_setting_path customer_id:, campaign_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignExtensionSettings/#{campaign_id}~#{extension_type}" - end - - ## - # Create a fully-qualified CampaignFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param feed_id [String] - # - # @return [::String] - def campaign_feed_path customer_id:, campaign_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignFeeds/#{campaign_id}~#{feed_id}" - end - - ## - # Create a fully-qualified CampaignGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignGroups/{campaign_group_id}` - # - # @param customer_id [String] - # @param campaign_group_id [String] - # - # @return [::String] - def campaign_group_path customer_id:, campaign_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignGroups/#{campaign_group_id}" - end - - ## - # Create a fully-qualified CampaignLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param label_id [String] - # - # @return [::String] - def campaign_label_path customer_id:, campaign_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignLabels/#{campaign_id}~#{label_id}" - end - - ## - # Create a fully-qualified CampaignSharedSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param shared_set_id [String] - # - # @return [::String] - def campaign_shared_set_path customer_id:, campaign_id:, shared_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignSharedSets/#{campaign_id}~#{shared_set_id}" - end - - ## - # Create a fully-qualified CampaignSimulation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param type [String] - # @param modification_method [String] - # @param start_date [String] - # @param end_date [String] - # - # @return [::String] - def campaign_simulation_path customer_id:, campaign_id:, type:, modification_method:, start_date:, - end_date: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "type cannot contain /" if type.to_s.include? "/" - raise ::ArgumentError, "modification_method cannot contain /" if modification_method.to_s.include? "/" - raise ::ArgumentError, "start_date cannot contain /" if start_date.to_s.include? "/" - - "customers/#{customer_id}/campaignSimulations/#{campaign_id}~#{type}~#{modification_method}~#{start_date}~#{end_date}" - end - - ## - # Create a fully-qualified CarrierConstant resource string. - # - # The resource will be in the following format: - # - # `carrierConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def carrier_constant_path criterion_id: - "carrierConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified ChangeEvent resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index}` - # - # @param customer_id [String] - # @param timestamp_micros [String] - # @param command_index [String] - # @param mutate_index [String] - # - # @return [::String] - def change_event_path customer_id:, timestamp_micros:, command_index:, mutate_index: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "timestamp_micros cannot contain /" if timestamp_micros.to_s.include? "/" - raise ::ArgumentError, "command_index cannot contain /" if command_index.to_s.include? "/" - - "customers/#{customer_id}/changeEvents/#{timestamp_micros}~#{command_index}~#{mutate_index}" - end - - ## - # Create a fully-qualified ChangeStatus resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/changeStatus/{change_status_id}` - # - # @param customer_id [String] - # @param change_status_id [String] - # - # @return [::String] - def change_status_path customer_id:, change_status_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/changeStatus/#{change_status_id}" - end - - ## - # Create a fully-qualified ClickView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/clickViews/{date}~{gclid}` - # - # @param customer_id [String] - # @param date [String] - # @param gclid [String] - # - # @return [::String] - def click_view_path customer_id:, date:, gclid: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "date cannot contain /" if date.to_s.include? "/" - - "customers/#{customer_id}/clickViews/#{date}~#{gclid}" - end - - ## - # Create a fully-qualified CombinedAudience resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/combinedAudiences/{combined_audience_id}` - # - # @param customer_id [String] - # @param combined_audience_id [String] - # - # @return [::String] - def combined_audience_path customer_id:, combined_audience_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/combinedAudiences/#{combined_audience_id}" - end - - ## - # Create a fully-qualified ConversionAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionActions/{conversion_action_id}` - # - # @param customer_id [String] - # @param conversion_action_id [String] - # - # @return [::String] - def conversion_action_path customer_id:, conversion_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionActions/#{conversion_action_id}" - end - - ## - # Create a fully-qualified ConversionCustomVariable resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}` - # - # @param customer_id [String] - # @param conversion_custom_variable_id [String] - # - # @return [::String] - def conversion_custom_variable_path customer_id:, conversion_custom_variable_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionCustomVariables/#{conversion_custom_variable_id}" - end - - ## - # Create a fully-qualified ConversionGoalCampaignConfig resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def conversion_goal_campaign_config_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionGoalCampaignConfigs/#{campaign_id}" - end - - ## - # Create a fully-qualified ConversionValueRule resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}` - # - # @param customer_id [String] - # @param conversion_value_rule_id [String] - # - # @return [::String] - def conversion_value_rule_path customer_id:, conversion_value_rule_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionValueRules/#{conversion_value_rule_id}" - end - - ## - # Create a fully-qualified ConversionValueRuleSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}` - # - # @param customer_id [String] - # @param conversion_value_rule_set_id [String] - # - # @return [::String] - def conversion_value_rule_set_path customer_id:, conversion_value_rule_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionValueRuleSets/#{conversion_value_rule_set_id}" - end - - ## - # Create a fully-qualified CurrencyConstant resource string. - # - # The resource will be in the following format: - # - # `currencyConstants/{code}` - # - # @param code [String] - # - # @return [::String] - def currency_constant_path code: - "currencyConstants/#{code}" - end - - ## - # Create a fully-qualified CustomAudience resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customAudiences/{custom_audience_id}` - # - # @param customer_id [String] - # @param custom_audience_id [String] - # - # @return [::String] - def custom_audience_path customer_id:, custom_audience_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customAudiences/#{custom_audience_id}" - end - - ## - # Create a fully-qualified CustomConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customConversionGoals/{goal_id}` - # - # @param customer_id [String] - # @param goal_id [String] - # - # @return [::String] - def custom_conversion_goal_path customer_id:, goal_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customConversionGoals/#{goal_id}" - end - - ## - # Create a fully-qualified CustomInterest resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customInterests/{custom_interest_id}` - # - # @param customer_id [String] - # @param custom_interest_id [String] - # - # @return [::String] - def custom_interest_path customer_id:, custom_interest_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customInterests/#{custom_interest_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified CustomerAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerAssets/{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def customer_asset_path customer_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/customerAssets/#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified CustomerAssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerAssetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def customer_asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerAssetSets/#{asset_set_id}" - end - - ## - # Create a fully-qualified CustomerClient resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerClients/{client_customer_id}` - # - # @param customer_id [String] - # @param client_customer_id [String] - # - # @return [::String] - def customer_client_path customer_id:, client_customer_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerClients/#{client_customer_id}" - end - - ## - # Create a fully-qualified CustomerClientLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}` - # - # @param customer_id [String] - # @param client_customer_id [String] - # @param manager_link_id [String] - # - # @return [::String] - def customer_client_link_path customer_id:, client_customer_id:, manager_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "client_customer_id cannot contain /" if client_customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerClientLinks/#{client_customer_id}~#{manager_link_id}" - end - - ## - # Create a fully-qualified CustomerConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerConversionGoals/{category}~{source}` - # - # @param customer_id [String] - # @param category [String] - # @param source [String] - # - # @return [::String] - def customer_conversion_goal_path customer_id:, category:, source: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" - - "customers/#{customer_id}/customerConversionGoals/#{category}~#{source}" - end - - ## - # Create a fully-qualified CustomerCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customer_customizer_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerCustomizers/#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified CustomerExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerExtensionSettings/{extension_type}` - # - # @param customer_id [String] - # @param extension_type [String] - # - # @return [::String] - def customer_extension_setting_path customer_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerExtensionSettings/#{extension_type}" - end - - ## - # Create a fully-qualified CustomerFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerFeeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def customer_feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerFeeds/#{feed_id}" - end - - ## - # Create a fully-qualified CustomerLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerLabels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def customer_label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerLabels/#{label_id}" - end - - ## - # Create a fully-qualified CustomerManagerLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` - # - # @param customer_id [String] - # @param manager_customer_id [String] - # @param manager_link_id [String] - # - # @return [::String] - def customer_manager_link_path customer_id:, manager_customer_id:, manager_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "manager_customer_id cannot contain /" if manager_customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerManagerLinks/#{manager_customer_id}~#{manager_link_id}" - end - - ## - # Create a fully-qualified CustomerNegativeCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` - # - # @param customer_id [String] - # @param criterion_id [String] - # - # @return [::String] - def customer_negative_criterion_path customer_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerNegativeCriteria/#{criterion_id}" - end - - ## - # Create a fully-qualified CustomerUserAccess resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerUserAccesses/{user_id}` - # - # @param customer_id [String] - # @param user_id [String] - # - # @return [::String] - def customer_user_access_path customer_id:, user_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerUserAccesses/#{user_id}" - end - - ## - # Create a fully-qualified CustomerUserAccessInvitation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerUserAccessInvitations/{invitation_id}` - # - # @param customer_id [String] - # @param invitation_id [String] - # - # @return [::String] - def customer_user_access_invitation_path customer_id:, invitation_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerUserAccessInvitations/#{invitation_id}" - end - - ## - # Create a fully-qualified CustomizerAttribute resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customizer_attribute_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified DetailPlacementView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param base64_placement [String] - # - # @return [::String] - def detail_placement_view_path customer_id:, ad_group_id:, base64_placement: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/detailPlacementViews/#{ad_group_id}~#{base64_placement}" - end - - ## - # Create a fully-qualified DetailedDemographic resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/detailedDemographics/{detailed_demographic_id}` - # - # @param customer_id [String] - # @param detailed_demographic_id [String] - # - # @return [::String] - def detailed_demographic_path customer_id:, detailed_demographic_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/detailedDemographics/#{detailed_demographic_id}" - end - - ## - # Create a fully-qualified DisplayKeywordView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def display_keyword_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/displayKeywordViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified DistanceView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket}` - # - # @param customer_id [String] - # @param placeholder_chain_id [String] - # @param distance_bucket [String] - # - # @return [::String] - def distance_view_path customer_id:, placeholder_chain_id:, distance_bucket: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "placeholder_chain_id cannot contain /" if placeholder_chain_id.to_s.include? "/" - - "customers/#{customer_id}/distanceViews/#{placeholder_chain_id}~#{distance_bucket}" - end - - ## - # Create a fully-qualified DomainCategory resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param base64_category [String] - # @param language_code [String] - # - # @return [::String] - def domain_category_path customer_id:, campaign_id:, base64_category:, language_code: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "base64_category cannot contain /" if base64_category.to_s.include? "/" - - "customers/#{customer_id}/domainCategories/#{campaign_id}~#{base64_category}~#{language_code}" - end - - ## - # Create a fully-qualified DynamicSearchAdsSearchTermView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param search_term_fingerprint [String] - # @param headline_fingerprint [String] - # @param landing_page_fingerprint [String] - # @param page_url_fingerprint [String] - # - # @return [::String] - def dynamic_search_ads_search_term_view_path customer_id:, ad_group_id:, search_term_fingerprint:, - headline_fingerprint:, landing_page_fingerprint:, page_url_fingerprint: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, - "search_term_fingerprint cannot contain /" if search_term_fingerprint.to_s.include? "/" - raise ::ArgumentError, "headline_fingerprint cannot contain /" if headline_fingerprint.to_s.include? "/" - raise ::ArgumentError, - "landing_page_fingerprint cannot contain /" if landing_page_fingerprint.to_s.include? "/" - - "customers/#{customer_id}/dynamicSearchAdsSearchTermViews/#{ad_group_id}~#{search_term_fingerprint}~#{headline_fingerprint}~#{landing_page_fingerprint}~#{page_url_fingerprint}" - end - - ## - # Create a fully-qualified ExpandedLandingPageView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}` - # - # @param customer_id [String] - # @param expanded_final_url_fingerprint [String] - # - # @return [::String] - def expanded_landing_page_view_path customer_id:, expanded_final_url_fingerprint: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/expandedLandingPageViews/#{expanded_final_url_fingerprint}" - end - - ## - # Create a fully-qualified Experiment resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/experiments/{trial_id}` - # - # @param customer_id [String] - # @param trial_id [String] - # - # @return [::String] - def experiment_path customer_id:, trial_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/experiments/#{trial_id}" - end - - ## - # Create a fully-qualified ExperimentArm resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}` - # - # @param customer_id [String] - # @param trial_id [String] - # @param trial_arm_id [String] - # - # @return [::String] - def experiment_arm_path customer_id:, trial_id:, trial_arm_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "trial_id cannot contain /" if trial_id.to_s.include? "/" - - "customers/#{customer_id}/experimentArms/#{trial_id}~#{trial_arm_id}" - end - - ## - # Create a fully-qualified ExtensionFeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - # - # @param customer_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def extension_feed_item_path customer_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" - end - - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - ## - # Create a fully-qualified FeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def feed_item_path customer_id:, feed_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItems/#{feed_id}~#{feed_item_id}" - end - - ## - # Create a fully-qualified FeedItemSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_set_id [String] - # - # @return [::String] - def feed_item_set_path customer_id:, feed_id:, feed_item_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItemSets/#{feed_id}~#{feed_item_set_id}" - end - - ## - # Create a fully-qualified FeedItemSetLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_set_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def feed_item_set_link_path customer_id:, feed_id:, feed_item_set_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - raise ::ArgumentError, "feed_item_set_id cannot contain /" if feed_item_set_id.to_s.include? "/" - - "customers/#{customer_id}/feedItemSetLinks/#{feed_id}~#{feed_item_set_id}~#{feed_item_id}" - end - - ## - # Create a fully-qualified FeedItemTarget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_id [String] - # @param feed_item_target_type [String] - # @param feed_item_target_id [String] - # - # @return [::String] - def feed_item_target_path customer_id:, feed_id:, feed_item_id:, feed_item_target_type:, - feed_item_target_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - raise ::ArgumentError, "feed_item_id cannot contain /" if feed_item_id.to_s.include? "/" - raise ::ArgumentError, - "feed_item_target_type cannot contain /" if feed_item_target_type.to_s.include? "/" - - "customers/#{customer_id}/feedItemTargets/#{feed_id}~#{feed_item_id}~#{feed_item_target_type}~#{feed_item_target_id}" - end - - ## - # Create a fully-qualified FeedMapping resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_mapping_id [String] - # - # @return [::String] - def feed_mapping_path customer_id:, feed_id:, feed_mapping_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedMappings/#{feed_id}~#{feed_mapping_id}" - end - - ## - # Create a fully-qualified FeedPlaceholderView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedPlaceholderViews/{placeholder_type}` - # - # @param customer_id [String] - # @param placeholder_type [String] - # - # @return [::String] - def feed_placeholder_view_path customer_id:, placeholder_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feedPlaceholderViews/#{placeholder_type}" - end - - ## - # Create a fully-qualified GenderView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def gender_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/genderViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified GeoTargetConstant resource string. - # - # The resource will be in the following format: - # - # `geoTargetConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def geo_target_constant_path criterion_id: - "geoTargetConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified GeographicView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}` - # - # @param customer_id [String] - # @param country_criterion_id [String] - # @param location_type [String] - # - # @return [::String] - def geographic_view_path customer_id:, country_criterion_id:, location_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "country_criterion_id cannot contain /" if country_criterion_id.to_s.include? "/" - - "customers/#{customer_id}/geographicViews/#{country_criterion_id}~#{location_type}" - end - - ## - # Create a fully-qualified GroupPlacementView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param base64_placement [String] - # - # @return [::String] - def group_placement_view_path customer_id:, ad_group_id:, base64_placement: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/groupPlacementViews/#{ad_group_id}~#{base64_placement}" - end - - ## - # Create a fully-qualified HotelGroupView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def hotel_group_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/hotelGroupViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified HotelPerformanceView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/hotelPerformanceView` - # - # @param customer_id [String] - # - # @return [::String] - def hotel_performance_view_path customer_id: - "customers/#{customer_id}/hotelPerformanceView" - end - - ## - # Create a fully-qualified HotelReconciliation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/hotelReconciliations/{commission_id}` - # - # @param customer_id [String] - # @param commission_id [String] - # - # @return [::String] - def hotel_reconciliation_path customer_id:, commission_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/hotelReconciliations/#{commission_id}" - end - - ## - # Create a fully-qualified IncomeRangeView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def income_range_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/incomeRangeViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified KeywordPlan resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlans/{keyword_plan_id}` - # - # @param customer_id [String] - # @param keyword_plan_id [String] - # - # @return [::String] - def keyword_plan_path customer_id:, keyword_plan_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlans/#{keyword_plan_id}" - end - - ## - # Create a fully-qualified KeywordPlanAdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}` - # - # @param customer_id [String] - # @param keyword_plan_ad_group_id [String] - # - # @return [::String] - def keyword_plan_ad_group_path customer_id:, keyword_plan_ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanAdGroups/#{keyword_plan_ad_group_id}" - end - - ## - # Create a fully-qualified KeywordPlanAdGroupKeyword resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}` - # - # @param customer_id [String] - # @param keyword_plan_ad_group_keyword_id [String] - # - # @return [::String] - def keyword_plan_ad_group_keyword_path customer_id:, keyword_plan_ad_group_keyword_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanAdGroupKeywords/#{keyword_plan_ad_group_keyword_id}" - end - - ## - # Create a fully-qualified KeywordPlanCampaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` - # - # @param customer_id [String] - # @param keyword_plan_campaign_id [String] - # - # @return [::String] - def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}" - end - - ## - # Create a fully-qualified KeywordPlanCampaignKeyword resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}` - # - # @param customer_id [String] - # @param keyword_plan_campaign_keyword_id [String] - # - # @return [::String] - def keyword_plan_campaign_keyword_path customer_id:, keyword_plan_campaign_keyword_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanCampaignKeywords/#{keyword_plan_campaign_keyword_id}" - end - - ## - # Create a fully-qualified KeywordThemeConstant resource string. - # - # The resource will be in the following format: - # - # `keywordThemeConstants/{express_category_id}~{express_sub_category_id}` - # - # @param express_category_id [String] - # @param express_sub_category_id [String] - # - # @return [::String] - def keyword_theme_constant_path express_category_id:, express_sub_category_id: - raise ::ArgumentError, "express_category_id cannot contain /" if express_category_id.to_s.include? "/" - - "keywordThemeConstants/#{express_category_id}~#{express_sub_category_id}" - end - - ## - # Create a fully-qualified KeywordView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def keyword_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/keywordViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified Label resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/labels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/labels/#{label_id}" - end - - ## - # Create a fully-qualified LandingPageView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/landingPageViews/{unexpanded_final_url_fingerprint}` - # - # @param customer_id [String] - # @param unexpanded_final_url_fingerprint [String] - # - # @return [::String] - def landing_page_view_path customer_id:, unexpanded_final_url_fingerprint: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/landingPageViews/#{unexpanded_final_url_fingerprint}" - end - - ## - # Create a fully-qualified LanguageConstant resource string. - # - # The resource will be in the following format: - # - # `languageConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def language_constant_path criterion_id: - "languageConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified LeadFormSubmissionData resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/leadFormSubmissionData/{lead_form_user_submission_id}` - # - # @param customer_id [String] - # @param lead_form_user_submission_id [String] - # - # @return [::String] - def lead_form_submission_data_path customer_id:, lead_form_user_submission_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/leadFormSubmissionData/#{lead_form_user_submission_id}" - end - - ## - # Create a fully-qualified LifeEvent resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/lifeEvents/{life_event_id}` - # - # @param customer_id [String] - # @param life_event_id [String] - # - # @return [::String] - def life_event_path customer_id:, life_event_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/lifeEvents/#{life_event_id}" - end - - ## - # Create a fully-qualified LocationView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/locationViews/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def location_view_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/locationViews/#{campaign_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified ManagedPlacementView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/managedPlacementViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def managed_placement_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/managedPlacementViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified MediaFile resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/mediaFiles/{media_file_id}` - # - # @param customer_id [String] - # @param media_file_id [String] - # - # @return [::String] - def media_file_path customer_id:, media_file_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/mediaFiles/#{media_file_id}" - end - - ## - # Create a fully-qualified MobileAppCategoryConstant resource string. - # - # The resource will be in the following format: - # - # `mobileAppCategoryConstants/{mobile_app_category_id}` - # - # @param mobile_app_category_id [String] - # - # @return [::String] - def mobile_app_category_constant_path mobile_app_category_id: - "mobileAppCategoryConstants/#{mobile_app_category_id}" - end - - ## - # Create a fully-qualified MobileDeviceConstant resource string. - # - # The resource will be in the following format: - # - # `mobileDeviceConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def mobile_device_constant_path criterion_id: - "mobileDeviceConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified OfflineUserDataJob resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/offlineUserDataJobs/{offline_user_data_update_id}` - # - # @param customer_id [String] - # @param offline_user_data_update_id [String] - # - # @return [::String] - def offline_user_data_job_path customer_id:, offline_user_data_update_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/offlineUserDataJobs/#{offline_user_data_update_id}" - end - - ## - # Create a fully-qualified OperatingSystemVersionConstant resource string. - # - # The resource will be in the following format: - # - # `operatingSystemVersionConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def operating_system_version_constant_path criterion_id: - "operatingSystemVersionConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified PaidOrganicSearchTermView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/paidOrganicSearchTermViews/{campaign_id}~{ad_group_id}~{base64_search_term}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param ad_group_id [String] - # @param base64_search_term [String] - # - # @return [::String] - def paid_organic_search_term_view_path customer_id:, campaign_id:, ad_group_id:, base64_search_term: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/paidOrganicSearchTermViews/#{campaign_id}~#{ad_group_id}~#{base64_search_term}" - end - - ## - # Create a fully-qualified ParentalStatusView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/parentalStatusViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def parental_status_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/parentalStatusViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified PaymentsAccount resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/paymentsAccounts/{payments_account_id}` - # - # @param customer_id [String] - # @param payments_account_id [String] - # - # @return [::String] - def payments_account_path customer_id:, payments_account_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/paymentsAccounts/#{payments_account_id}" - end - - ## - # Create a fully-qualified PerStoreView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/perStoreViews/{place_id}` - # - # @param customer_id [String] - # @param place_id [String] - # - # @return [::String] - def per_store_view_path customer_id:, place_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/perStoreViews/#{place_id}" - end - - ## - # Create a fully-qualified ProductBiddingCategoryConstant resource string. - # - # The resource will be in the following format: - # - # `productBiddingCategoryConstants/{country_code}~{level}~{id}` - # - # @param country_code [String] - # @param level [String] - # @param id [String] - # - # @return [::String] - def product_bidding_category_constant_path country_code:, level:, id: - raise ::ArgumentError, "country_code cannot contain /" if country_code.to_s.include? "/" - raise ::ArgumentError, "level cannot contain /" if level.to_s.include? "/" - - "productBiddingCategoryConstants/#{country_code}~#{level}~#{id}" - end - - ## - # Create a fully-qualified ProductGroupView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/productGroupViews/{adgroup_id}~{criterion_id}` - # - # @param customer_id [String] - # @param adgroup_id [String] - # @param criterion_id [String] - # - # @return [::String] - def product_group_view_path customer_id:, adgroup_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "adgroup_id cannot contain /" if adgroup_id.to_s.include? "/" - - "customers/#{customer_id}/productGroupViews/#{adgroup_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified Recommendation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/recommendations/{recommendation_id}` - # - # @param customer_id [String] - # @param recommendation_id [String] - # - # @return [::String] - def recommendation_path customer_id:, recommendation_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/recommendations/#{recommendation_id}" - end - - ## - # Create a fully-qualified RemarketingAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/remarketingActions/{remarketing_action_id}` - # - # @param customer_id [String] - # @param remarketing_action_id [String] - # - # @return [::String] - def remarketing_action_path customer_id:, remarketing_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/remarketingActions/#{remarketing_action_id}" - end - - ## - # Create a fully-qualified SearchTermView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/searchTermViews/{campaign_id}~{ad_group_id}~{query}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param ad_group_id [String] - # @param query [String] - # - # @return [::String] - def search_term_view_path customer_id:, campaign_id:, ad_group_id:, query: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/searchTermViews/#{campaign_id}~#{ad_group_id}~#{query}" - end - - ## - # Create a fully-qualified SharedCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}` - # - # @param customer_id [String] - # @param shared_set_id [String] - # @param criterion_id [String] - # - # @return [::String] - def shared_criterion_path customer_id:, shared_set_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "shared_set_id cannot contain /" if shared_set_id.to_s.include? "/" - - "customers/#{customer_id}/sharedCriteria/#{shared_set_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified SharedSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/sharedSets/{shared_set_id}` - # - # @param customer_id [String] - # @param shared_set_id [String] - # - # @return [::String] - def shared_set_path customer_id:, shared_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/sharedSets/#{shared_set_id}" - end - - ## - # Create a fully-qualified ShoppingPerformanceView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/shoppingPerformanceView` - # - # @param customer_id [String] - # - # @return [::String] - def shopping_performance_view_path customer_id: - "customers/#{customer_id}/shoppingPerformanceView" - end - - ## - # Create a fully-qualified SmartCampaignSearchTermView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param query [String] - # - # @return [::String] - def smart_campaign_search_term_view_path customer_id:, campaign_id:, query: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/smartCampaignSearchTermViews/#{campaign_id}~#{query}" - end - - ## - # Create a fully-qualified SmartCampaignSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/smartCampaignSettings/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def smart_campaign_setting_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/smartCampaignSettings/#{campaign_id}" - end - - ## - # Create a fully-qualified ThirdPartyAppAnalyticsLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/thirdPartyAppAnalyticsLinks/{customer_link_id}` - # - # @param customer_id [String] - # @param customer_link_id [String] - # - # @return [::String] - def third_party_app_analytics_link_path customer_id:, customer_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/thirdPartyAppAnalyticsLinks/#{customer_link_id}" - end - - ## - # Create a fully-qualified TopicConstant resource string. - # - # The resource will be in the following format: - # - # `topicConstants/{topic_id}` - # - # @param topic_id [String] - # - # @return [::String] - def topic_constant_path topic_id: - "topicConstants/#{topic_id}" - end - - ## - # Create a fully-qualified TopicView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/topicViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def topic_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/topicViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified UserInterest resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userInterests/{user_interest_id}` - # - # @param customer_id [String] - # @param user_interest_id [String] - # - # @return [::String] - def user_interest_path customer_id:, user_interest_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/userInterests/#{user_interest_id}" - end - - ## - # Create a fully-qualified UserList resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userLists/{user_list_id}` - # - # @param customer_id [String] - # @param user_list_id [String] - # - # @return [::String] - def user_list_path customer_id:, user_list_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/userLists/#{user_list_id}" - end - - ## - # Create a fully-qualified UserLocationView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userLocationViews/{country_criterion_id}~{is_targeting_location}` - # - # @param customer_id [String] - # @param country_criterion_id [String] - # @param is_targeting_location [String] - # - # @return [::String] - def user_location_view_path customer_id:, country_criterion_id:, is_targeting_location: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "country_criterion_id cannot contain /" if country_criterion_id.to_s.include? "/" - - "customers/#{customer_id}/userLocationViews/#{country_criterion_id}~#{is_targeting_location}" - end - - ## - # Create a fully-qualified Video resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/videos/{video_id}` - # - # @param customer_id [String] - # @param video_id [String] - # - # @return [::String] - def video_path customer_id:, video_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/videos/#{video_id}" - end - - ## - # Create a fully-qualified WebpageView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/webpageViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def webpage_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/webpageViews/#{ad_group_id}~#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/google_ads_service_pb.rb b/lib/google/ads/google_ads/v12/services/google_ads_service_pb.rb deleted file mode 100644 index fc1b14cfa..000000000 --- a/lib/google/ads/google_ads/v12/services/google_ads_service_pb.rb +++ /dev/null @@ -1,622 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/google_ads_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/metrics_pb' -require 'google/ads/google_ads/v12/common/segments_pb' -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/enums/summary_row_setting_pb' -require 'google/ads/google_ads/v12/resources/accessible_bidding_strategy_pb' -require 'google/ads/google_ads/v12/resources/account_budget_pb' -require 'google/ads/google_ads/v12/resources/account_budget_proposal_pb' -require 'google/ads/google_ads/v12/resources/account_link_pb' -require 'google/ads/google_ads/v12/resources/ad_group_pb' -require 'google/ads/google_ads/v12/resources/ad_group_ad_pb' -require 'google/ads/google_ads/v12/resources/ad_group_ad_asset_combination_view_pb' -require 'google/ads/google_ads/v12/resources/ad_group_ad_asset_view_pb' -require 'google/ads/google_ads/v12/resources/ad_group_ad_label_pb' -require 'google/ads/google_ads/v12/resources/ad_group_asset_pb' -require 'google/ads/google_ads/v12/resources/ad_group_asset_set_pb' -require 'google/ads/google_ads/v12/resources/ad_group_audience_view_pb' -require 'google/ads/google_ads/v12/resources/ad_group_bid_modifier_pb' -require 'google/ads/google_ads/v12/resources/ad_group_criterion_pb' -require 'google/ads/google_ads/v12/resources/ad_group_criterion_customizer_pb' -require 'google/ads/google_ads/v12/resources/ad_group_criterion_label_pb' -require 'google/ads/google_ads/v12/resources/ad_group_criterion_simulation_pb' -require 'google/ads/google_ads/v12/resources/ad_group_customizer_pb' -require 'google/ads/google_ads/v12/resources/ad_group_extension_setting_pb' -require 'google/ads/google_ads/v12/resources/ad_group_feed_pb' -require 'google/ads/google_ads/v12/resources/ad_group_label_pb' -require 'google/ads/google_ads/v12/resources/ad_group_simulation_pb' -require 'google/ads/google_ads/v12/resources/ad_parameter_pb' -require 'google/ads/google_ads/v12/resources/ad_schedule_view_pb' -require 'google/ads/google_ads/v12/resources/age_range_view_pb' -require 'google/ads/google_ads/v12/resources/asset_pb' -require 'google/ads/google_ads/v12/resources/asset_field_type_view_pb' -require 'google/ads/google_ads/v12/resources/asset_group_pb' -require 'google/ads/google_ads/v12/resources/asset_group_asset_pb' -require 'google/ads/google_ads/v12/resources/asset_group_listing_group_filter_pb' -require 'google/ads/google_ads/v12/resources/asset_group_product_group_view_pb' -require 'google/ads/google_ads/v12/resources/asset_group_signal_pb' -require 'google/ads/google_ads/v12/resources/asset_set_pb' -require 'google/ads/google_ads/v12/resources/asset_set_asset_pb' -require 'google/ads/google_ads/v12/resources/asset_set_type_view_pb' -require 'google/ads/google_ads/v12/resources/audience_pb' -require 'google/ads/google_ads/v12/resources/batch_job_pb' -require 'google/ads/google_ads/v12/resources/bidding_data_exclusion_pb' -require 'google/ads/google_ads/v12/resources/bidding_seasonality_adjustment_pb' -require 'google/ads/google_ads/v12/resources/bidding_strategy_pb' -require 'google/ads/google_ads/v12/resources/bidding_strategy_simulation_pb' -require 'google/ads/google_ads/v12/resources/billing_setup_pb' -require 'google/ads/google_ads/v12/resources/call_view_pb' -require 'google/ads/google_ads/v12/resources/campaign_pb' -require 'google/ads/google_ads/v12/resources/campaign_asset_pb' -require 'google/ads/google_ads/v12/resources/campaign_asset_set_pb' -require 'google/ads/google_ads/v12/resources/campaign_audience_view_pb' -require 'google/ads/google_ads/v12/resources/campaign_bid_modifier_pb' -require 'google/ads/google_ads/v12/resources/campaign_budget_pb' -require 'google/ads/google_ads/v12/resources/campaign_conversion_goal_pb' -require 'google/ads/google_ads/v12/resources/campaign_criterion_pb' -require 'google/ads/google_ads/v12/resources/campaign_criterion_simulation_pb' -require 'google/ads/google_ads/v12/resources/campaign_customizer_pb' -require 'google/ads/google_ads/v12/resources/campaign_draft_pb' -require 'google/ads/google_ads/v12/resources/campaign_extension_setting_pb' -require 'google/ads/google_ads/v12/resources/campaign_feed_pb' -require 'google/ads/google_ads/v12/resources/campaign_group_pb' -require 'google/ads/google_ads/v12/resources/campaign_label_pb' -require 'google/ads/google_ads/v12/resources/campaign_shared_set_pb' -require 'google/ads/google_ads/v12/resources/campaign_simulation_pb' -require 'google/ads/google_ads/v12/resources/carrier_constant_pb' -require 'google/ads/google_ads/v12/resources/change_event_pb' -require 'google/ads/google_ads/v12/resources/change_status_pb' -require 'google/ads/google_ads/v12/resources/click_view_pb' -require 'google/ads/google_ads/v12/resources/combined_audience_pb' -require 'google/ads/google_ads/v12/resources/conversion_action_pb' -require 'google/ads/google_ads/v12/resources/conversion_custom_variable_pb' -require 'google/ads/google_ads/v12/resources/conversion_goal_campaign_config_pb' -require 'google/ads/google_ads/v12/resources/conversion_value_rule_pb' -require 'google/ads/google_ads/v12/resources/conversion_value_rule_set_pb' -require 'google/ads/google_ads/v12/resources/currency_constant_pb' -require 'google/ads/google_ads/v12/resources/custom_audience_pb' -require 'google/ads/google_ads/v12/resources/custom_conversion_goal_pb' -require 'google/ads/google_ads/v12/resources/custom_interest_pb' -require 'google/ads/google_ads/v12/resources/customer_pb' -require 'google/ads/google_ads/v12/resources/customer_asset_pb' -require 'google/ads/google_ads/v12/resources/customer_asset_set_pb' -require 'google/ads/google_ads/v12/resources/customer_client_pb' -require 'google/ads/google_ads/v12/resources/customer_client_link_pb' -require 'google/ads/google_ads/v12/resources/customer_conversion_goal_pb' -require 'google/ads/google_ads/v12/resources/customer_customizer_pb' -require 'google/ads/google_ads/v12/resources/customer_extension_setting_pb' -require 'google/ads/google_ads/v12/resources/customer_feed_pb' -require 'google/ads/google_ads/v12/resources/customer_label_pb' -require 'google/ads/google_ads/v12/resources/customer_manager_link_pb' -require 'google/ads/google_ads/v12/resources/customer_negative_criterion_pb' -require 'google/ads/google_ads/v12/resources/customer_user_access_pb' -require 'google/ads/google_ads/v12/resources/customer_user_access_invitation_pb' -require 'google/ads/google_ads/v12/resources/customizer_attribute_pb' -require 'google/ads/google_ads/v12/resources/detail_placement_view_pb' -require 'google/ads/google_ads/v12/resources/detailed_demographic_pb' -require 'google/ads/google_ads/v12/resources/display_keyword_view_pb' -require 'google/ads/google_ads/v12/resources/distance_view_pb' -require 'google/ads/google_ads/v12/resources/domain_category_pb' -require 'google/ads/google_ads/v12/resources/dynamic_search_ads_search_term_view_pb' -require 'google/ads/google_ads/v12/resources/expanded_landing_page_view_pb' -require 'google/ads/google_ads/v12/resources/experiment_pb' -require 'google/ads/google_ads/v12/resources/experiment_arm_pb' -require 'google/ads/google_ads/v12/resources/extension_feed_item_pb' -require 'google/ads/google_ads/v12/resources/feed_pb' -require 'google/ads/google_ads/v12/resources/feed_item_pb' -require 'google/ads/google_ads/v12/resources/feed_item_set_pb' -require 'google/ads/google_ads/v12/resources/feed_item_set_link_pb' -require 'google/ads/google_ads/v12/resources/feed_item_target_pb' -require 'google/ads/google_ads/v12/resources/feed_mapping_pb' -require 'google/ads/google_ads/v12/resources/feed_placeholder_view_pb' -require 'google/ads/google_ads/v12/resources/gender_view_pb' -require 'google/ads/google_ads/v12/resources/geo_target_constant_pb' -require 'google/ads/google_ads/v12/resources/geographic_view_pb' -require 'google/ads/google_ads/v12/resources/group_placement_view_pb' -require 'google/ads/google_ads/v12/resources/hotel_group_view_pb' -require 'google/ads/google_ads/v12/resources/hotel_performance_view_pb' -require 'google/ads/google_ads/v12/resources/hotel_reconciliation_pb' -require 'google/ads/google_ads/v12/resources/income_range_view_pb' -require 'google/ads/google_ads/v12/resources/keyword_plan_pb' -require 'google/ads/google_ads/v12/resources/keyword_plan_ad_group_pb' -require 'google/ads/google_ads/v12/resources/keyword_plan_ad_group_keyword_pb' -require 'google/ads/google_ads/v12/resources/keyword_plan_campaign_pb' -require 'google/ads/google_ads/v12/resources/keyword_plan_campaign_keyword_pb' -require 'google/ads/google_ads/v12/resources/keyword_theme_constant_pb' -require 'google/ads/google_ads/v12/resources/keyword_view_pb' -require 'google/ads/google_ads/v12/resources/label_pb' -require 'google/ads/google_ads/v12/resources/landing_page_view_pb' -require 'google/ads/google_ads/v12/resources/language_constant_pb' -require 'google/ads/google_ads/v12/resources/lead_form_submission_data_pb' -require 'google/ads/google_ads/v12/resources/life_event_pb' -require 'google/ads/google_ads/v12/resources/location_view_pb' -require 'google/ads/google_ads/v12/resources/managed_placement_view_pb' -require 'google/ads/google_ads/v12/resources/media_file_pb' -require 'google/ads/google_ads/v12/resources/mobile_app_category_constant_pb' -require 'google/ads/google_ads/v12/resources/mobile_device_constant_pb' -require 'google/ads/google_ads/v12/resources/offline_user_data_job_pb' -require 'google/ads/google_ads/v12/resources/operating_system_version_constant_pb' -require 'google/ads/google_ads/v12/resources/paid_organic_search_term_view_pb' -require 'google/ads/google_ads/v12/resources/parental_status_view_pb' -require 'google/ads/google_ads/v12/resources/per_store_view_pb' -require 'google/ads/google_ads/v12/resources/product_bidding_category_constant_pb' -require 'google/ads/google_ads/v12/resources/product_group_view_pb' -require 'google/ads/google_ads/v12/resources/recommendation_pb' -require 'google/ads/google_ads/v12/resources/remarketing_action_pb' -require 'google/ads/google_ads/v12/resources/search_term_view_pb' -require 'google/ads/google_ads/v12/resources/shared_criterion_pb' -require 'google/ads/google_ads/v12/resources/shared_set_pb' -require 'google/ads/google_ads/v12/resources/shopping_performance_view_pb' -require 'google/ads/google_ads/v12/resources/smart_campaign_search_term_view_pb' -require 'google/ads/google_ads/v12/resources/smart_campaign_setting_pb' -require 'google/ads/google_ads/v12/resources/third_party_app_analytics_link_pb' -require 'google/ads/google_ads/v12/resources/topic_constant_pb' -require 'google/ads/google_ads/v12/resources/topic_view_pb' -require 'google/ads/google_ads/v12/resources/user_interest_pb' -require 'google/ads/google_ads/v12/resources/user_list_pb' -require 'google/ads/google_ads/v12/resources/user_location_view_pb' -require 'google/ads/google_ads/v12/resources/video_pb' -require 'google/ads/google_ads/v12/resources/webpage_view_pb' -require 'google/ads/google_ads/v12/services/ad_group_ad_label_service_pb' -require 'google/ads/google_ads/v12/services/ad_group_ad_service_pb' -require 'google/ads/google_ads/v12/services/ad_group_asset_service_pb' -require 'google/ads/google_ads/v12/services/ad_group_bid_modifier_service_pb' -require 'google/ads/google_ads/v12/services/ad_group_criterion_customizer_service_pb' -require 'google/ads/google_ads/v12/services/ad_group_criterion_label_service_pb' -require 'google/ads/google_ads/v12/services/ad_group_criterion_service_pb' -require 'google/ads/google_ads/v12/services/ad_group_customizer_service_pb' -require 'google/ads/google_ads/v12/services/ad_group_extension_setting_service_pb' -require 'google/ads/google_ads/v12/services/ad_group_feed_service_pb' -require 'google/ads/google_ads/v12/services/ad_group_label_service_pb' -require 'google/ads/google_ads/v12/services/ad_group_service_pb' -require 'google/ads/google_ads/v12/services/ad_parameter_service_pb' -require 'google/ads/google_ads/v12/services/ad_service_pb' -require 'google/ads/google_ads/v12/services/asset_group_asset_service_pb' -require 'google/ads/google_ads/v12/services/asset_group_listing_group_filter_service_pb' -require 'google/ads/google_ads/v12/services/asset_group_service_pb' -require 'google/ads/google_ads/v12/services/asset_group_signal_service_pb' -require 'google/ads/google_ads/v12/services/asset_service_pb' -require 'google/ads/google_ads/v12/services/asset_set_asset_service_pb' -require 'google/ads/google_ads/v12/services/asset_set_service_pb' -require 'google/ads/google_ads/v12/services/audience_service_pb' -require 'google/ads/google_ads/v12/services/bidding_data_exclusion_service_pb' -require 'google/ads/google_ads/v12/services/bidding_seasonality_adjustment_service_pb' -require 'google/ads/google_ads/v12/services/bidding_strategy_service_pb' -require 'google/ads/google_ads/v12/services/campaign_asset_service_pb' -require 'google/ads/google_ads/v12/services/campaign_asset_set_service_pb' -require 'google/ads/google_ads/v12/services/campaign_bid_modifier_service_pb' -require 'google/ads/google_ads/v12/services/campaign_budget_service_pb' -require 'google/ads/google_ads/v12/services/campaign_conversion_goal_service_pb' -require 'google/ads/google_ads/v12/services/campaign_criterion_service_pb' -require 'google/ads/google_ads/v12/services/campaign_customizer_service_pb' -require 'google/ads/google_ads/v12/services/campaign_draft_service_pb' -require 'google/ads/google_ads/v12/services/campaign_extension_setting_service_pb' -require 'google/ads/google_ads/v12/services/campaign_feed_service_pb' -require 'google/ads/google_ads/v12/services/campaign_group_service_pb' -require 'google/ads/google_ads/v12/services/campaign_label_service_pb' -require 'google/ads/google_ads/v12/services/campaign_service_pb' -require 'google/ads/google_ads/v12/services/campaign_shared_set_service_pb' -require 'google/ads/google_ads/v12/services/conversion_action_service_pb' -require 'google/ads/google_ads/v12/services/conversion_custom_variable_service_pb' -require 'google/ads/google_ads/v12/services/conversion_goal_campaign_config_service_pb' -require 'google/ads/google_ads/v12/services/conversion_value_rule_service_pb' -require 'google/ads/google_ads/v12/services/conversion_value_rule_set_service_pb' -require 'google/ads/google_ads/v12/services/custom_conversion_goal_service_pb' -require 'google/ads/google_ads/v12/services/customer_asset_service_pb' -require 'google/ads/google_ads/v12/services/customer_conversion_goal_service_pb' -require 'google/ads/google_ads/v12/services/customer_customizer_service_pb' -require 'google/ads/google_ads/v12/services/customer_extension_setting_service_pb' -require 'google/ads/google_ads/v12/services/customer_feed_service_pb' -require 'google/ads/google_ads/v12/services/customer_label_service_pb' -require 'google/ads/google_ads/v12/services/customer_negative_criterion_service_pb' -require 'google/ads/google_ads/v12/services/customer_service_pb' -require 'google/ads/google_ads/v12/services/customizer_attribute_service_pb' -require 'google/ads/google_ads/v12/services/experiment_arm_service_pb' -require 'google/ads/google_ads/v12/services/experiment_service_pb' -require 'google/ads/google_ads/v12/services/extension_feed_item_service_pb' -require 'google/ads/google_ads/v12/services/feed_item_service_pb' -require 'google/ads/google_ads/v12/services/feed_item_set_link_service_pb' -require 'google/ads/google_ads/v12/services/feed_item_set_service_pb' -require 'google/ads/google_ads/v12/services/feed_item_target_service_pb' -require 'google/ads/google_ads/v12/services/feed_mapping_service_pb' -require 'google/ads/google_ads/v12/services/feed_service_pb' -require 'google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service_pb' -require 'google/ads/google_ads/v12/services/keyword_plan_ad_group_service_pb' -require 'google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service_pb' -require 'google/ads/google_ads/v12/services/keyword_plan_campaign_service_pb' -require 'google/ads/google_ads/v12/services/keyword_plan_service_pb' -require 'google/ads/google_ads/v12/services/label_service_pb' -require 'google/ads/google_ads/v12/services/media_file_service_pb' -require 'google/ads/google_ads/v12/services/remarketing_action_service_pb' -require 'google/ads/google_ads/v12/services/shared_criterion_service_pb' -require 'google/ads/google_ads/v12/services/shared_set_service_pb' -require 'google/ads/google_ads/v12/services/smart_campaign_setting_service_pb' -require 'google/ads/google_ads/v12/services/user_list_service_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/google_ads_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.SearchGoogleAdsRequest" do - optional :customer_id, :string, 1 - optional :query, :string, 2 - optional :page_token, :string, 3 - optional :page_size, :int32, 4 - optional :validate_only, :bool, 5 - optional :return_total_results_count, :bool, 7 - optional :summary_row_setting, :enum, 8, "google.ads.googleads.v12.enums.SummaryRowSettingEnum.SummaryRowSetting" - end - add_message "google.ads.googleads.v12.services.SearchGoogleAdsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.GoogleAdsRow" - optional :next_page_token, :string, 2 - optional :total_results_count, :int64, 3 - optional :field_mask, :message, 5, "google.protobuf.FieldMask" - optional :summary_row, :message, 6, "google.ads.googleads.v12.services.GoogleAdsRow" - end - add_message "google.ads.googleads.v12.services.SearchGoogleAdsStreamRequest" do - optional :customer_id, :string, 1 - optional :query, :string, 2 - optional :summary_row_setting, :enum, 3, "google.ads.googleads.v12.enums.SummaryRowSettingEnum.SummaryRowSetting" - end - add_message "google.ads.googleads.v12.services.SearchGoogleAdsStreamResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.GoogleAdsRow" - optional :field_mask, :message, 2, "google.protobuf.FieldMask" - optional :summary_row, :message, 3, "google.ads.googleads.v12.services.GoogleAdsRow" - optional :request_id, :string, 4 - end - add_message "google.ads.googleads.v12.services.GoogleAdsRow" do - optional :account_budget, :message, 42, "google.ads.googleads.v12.resources.AccountBudget" - optional :account_budget_proposal, :message, 43, "google.ads.googleads.v12.resources.AccountBudgetProposal" - optional :account_link, :message, 143, "google.ads.googleads.v12.resources.AccountLink" - optional :ad_group, :message, 3, "google.ads.googleads.v12.resources.AdGroup" - optional :ad_group_ad, :message, 16, "google.ads.googleads.v12.resources.AdGroupAd" - optional :ad_group_ad_asset_combination_view, :message, 193, "google.ads.googleads.v12.resources.AdGroupAdAssetCombinationView" - optional :ad_group_ad_asset_view, :message, 131, "google.ads.googleads.v12.resources.AdGroupAdAssetView" - optional :ad_group_ad_label, :message, 120, "google.ads.googleads.v12.resources.AdGroupAdLabel" - optional :ad_group_asset, :message, 154, "google.ads.googleads.v12.resources.AdGroupAsset" - optional :ad_group_asset_set, :message, 196, "google.ads.googleads.v12.resources.AdGroupAssetSet" - optional :ad_group_audience_view, :message, 57, "google.ads.googleads.v12.resources.AdGroupAudienceView" - optional :ad_group_bid_modifier, :message, 24, "google.ads.googleads.v12.resources.AdGroupBidModifier" - optional :ad_group_criterion, :message, 17, "google.ads.googleads.v12.resources.AdGroupCriterion" - optional :ad_group_criterion_customizer, :message, 187, "google.ads.googleads.v12.resources.AdGroupCriterionCustomizer" - optional :ad_group_criterion_label, :message, 121, "google.ads.googleads.v12.resources.AdGroupCriterionLabel" - optional :ad_group_criterion_simulation, :message, 110, "google.ads.googleads.v12.resources.AdGroupCriterionSimulation" - optional :ad_group_customizer, :message, 185, "google.ads.googleads.v12.resources.AdGroupCustomizer" - optional :ad_group_extension_setting, :message, 112, "google.ads.googleads.v12.resources.AdGroupExtensionSetting" - optional :ad_group_feed, :message, 67, "google.ads.googleads.v12.resources.AdGroupFeed" - optional :ad_group_label, :message, 115, "google.ads.googleads.v12.resources.AdGroupLabel" - optional :ad_group_simulation, :message, 107, "google.ads.googleads.v12.resources.AdGroupSimulation" - optional :ad_parameter, :message, 130, "google.ads.googleads.v12.resources.AdParameter" - optional :age_range_view, :message, 48, "google.ads.googleads.v12.resources.AgeRangeView" - optional :ad_schedule_view, :message, 89, "google.ads.googleads.v12.resources.AdScheduleView" - optional :domain_category, :message, 91, "google.ads.googleads.v12.resources.DomainCategory" - optional :asset, :message, 105, "google.ads.googleads.v12.resources.Asset" - optional :asset_field_type_view, :message, 168, "google.ads.googleads.v12.resources.AssetFieldTypeView" - optional :asset_group_asset, :message, 173, "google.ads.googleads.v12.resources.AssetGroupAsset" - optional :asset_group_signal, :message, 191, "google.ads.googleads.v12.resources.AssetGroupSignal" - optional :asset_group_listing_group_filter, :message, 182, "google.ads.googleads.v12.resources.AssetGroupListingGroupFilter" - optional :asset_group_product_group_view, :message, 189, "google.ads.googleads.v12.resources.AssetGroupProductGroupView" - optional :asset_group, :message, 172, "google.ads.googleads.v12.resources.AssetGroup" - optional :asset_set_asset, :message, 180, "google.ads.googleads.v12.resources.AssetSetAsset" - optional :asset_set, :message, 179, "google.ads.googleads.v12.resources.AssetSet" - optional :asset_set_type_view, :message, 197, "google.ads.googleads.v12.resources.AssetSetTypeView" - optional :batch_job, :message, 139, "google.ads.googleads.v12.resources.BatchJob" - optional :bidding_data_exclusion, :message, 159, "google.ads.googleads.v12.resources.BiddingDataExclusion" - optional :bidding_seasonality_adjustment, :message, 160, "google.ads.googleads.v12.resources.BiddingSeasonalityAdjustment" - optional :bidding_strategy, :message, 18, "google.ads.googleads.v12.resources.BiddingStrategy" - optional :bidding_strategy_simulation, :message, 158, "google.ads.googleads.v12.resources.BiddingStrategySimulation" - optional :billing_setup, :message, 41, "google.ads.googleads.v12.resources.BillingSetup" - optional :call_view, :message, 152, "google.ads.googleads.v12.resources.CallView" - optional :campaign_budget, :message, 19, "google.ads.googleads.v12.resources.CampaignBudget" - optional :campaign, :message, 2, "google.ads.googleads.v12.resources.Campaign" - optional :campaign_asset, :message, 142, "google.ads.googleads.v12.resources.CampaignAsset" - optional :campaign_asset_set, :message, 181, "google.ads.googleads.v12.resources.CampaignAssetSet" - optional :campaign_audience_view, :message, 69, "google.ads.googleads.v12.resources.CampaignAudienceView" - optional :campaign_bid_modifier, :message, 26, "google.ads.googleads.v12.resources.CampaignBidModifier" - optional :campaign_conversion_goal, :message, 175, "google.ads.googleads.v12.resources.CampaignConversionGoal" - optional :campaign_criterion, :message, 20, "google.ads.googleads.v12.resources.CampaignCriterion" - optional :campaign_criterion_simulation, :message, 111, "google.ads.googleads.v12.resources.CampaignCriterionSimulation" - optional :campaign_customizer, :message, 186, "google.ads.googleads.v12.resources.CampaignCustomizer" - optional :campaign_draft, :message, 49, "google.ads.googleads.v12.resources.CampaignDraft" - optional :campaign_extension_setting, :message, 113, "google.ads.googleads.v12.resources.CampaignExtensionSetting" - optional :campaign_feed, :message, 63, "google.ads.googleads.v12.resources.CampaignFeed" - optional :campaign_group, :message, 25, "google.ads.googleads.v12.resources.CampaignGroup" - optional :campaign_label, :message, 108, "google.ads.googleads.v12.resources.CampaignLabel" - optional :campaign_shared_set, :message, 30, "google.ads.googleads.v12.resources.CampaignSharedSet" - optional :campaign_simulation, :message, 157, "google.ads.googleads.v12.resources.CampaignSimulation" - optional :carrier_constant, :message, 66, "google.ads.googleads.v12.resources.CarrierConstant" - optional :change_event, :message, 145, "google.ads.googleads.v12.resources.ChangeEvent" - optional :change_status, :message, 37, "google.ads.googleads.v12.resources.ChangeStatus" - optional :combined_audience, :message, 148, "google.ads.googleads.v12.resources.CombinedAudience" - optional :audience, :message, 190, "google.ads.googleads.v12.resources.Audience" - optional :conversion_action, :message, 103, "google.ads.googleads.v12.resources.ConversionAction" - optional :conversion_custom_variable, :message, 153, "google.ads.googleads.v12.resources.ConversionCustomVariable" - optional :conversion_goal_campaign_config, :message, 177, "google.ads.googleads.v12.resources.ConversionGoalCampaignConfig" - optional :conversion_value_rule, :message, 164, "google.ads.googleads.v12.resources.ConversionValueRule" - optional :conversion_value_rule_set, :message, 165, "google.ads.googleads.v12.resources.ConversionValueRuleSet" - optional :click_view, :message, 122, "google.ads.googleads.v12.resources.ClickView" - optional :currency_constant, :message, 134, "google.ads.googleads.v12.resources.CurrencyConstant" - optional :custom_audience, :message, 147, "google.ads.googleads.v12.resources.CustomAudience" - optional :custom_conversion_goal, :message, 176, "google.ads.googleads.v12.resources.CustomConversionGoal" - optional :custom_interest, :message, 104, "google.ads.googleads.v12.resources.CustomInterest" - optional :customer, :message, 1, "google.ads.googleads.v12.resources.Customer" - optional :customer_asset, :message, 155, "google.ads.googleads.v12.resources.CustomerAsset" - optional :customer_asset_set, :message, 195, "google.ads.googleads.v12.resources.CustomerAssetSet" - optional :accessible_bidding_strategy, :message, 169, "google.ads.googleads.v12.resources.AccessibleBiddingStrategy" - optional :customer_customizer, :message, 184, "google.ads.googleads.v12.resources.CustomerCustomizer" - optional :customer_manager_link, :message, 61, "google.ads.googleads.v12.resources.CustomerManagerLink" - optional :customer_client_link, :message, 62, "google.ads.googleads.v12.resources.CustomerClientLink" - optional :customer_client, :message, 70, "google.ads.googleads.v12.resources.CustomerClient" - optional :customer_conversion_goal, :message, 174, "google.ads.googleads.v12.resources.CustomerConversionGoal" - optional :customer_extension_setting, :message, 114, "google.ads.googleads.v12.resources.CustomerExtensionSetting" - optional :customer_feed, :message, 64, "google.ads.googleads.v12.resources.CustomerFeed" - optional :customer_label, :message, 124, "google.ads.googleads.v12.resources.CustomerLabel" - optional :customer_negative_criterion, :message, 88, "google.ads.googleads.v12.resources.CustomerNegativeCriterion" - optional :customer_user_access, :message, 146, "google.ads.googleads.v12.resources.CustomerUserAccess" - optional :customer_user_access_invitation, :message, 150, "google.ads.googleads.v12.resources.CustomerUserAccessInvitation" - optional :customizer_attribute, :message, 178, "google.ads.googleads.v12.resources.CustomizerAttribute" - optional :detail_placement_view, :message, 118, "google.ads.googleads.v12.resources.DetailPlacementView" - optional :detailed_demographic, :message, 166, "google.ads.googleads.v12.resources.DetailedDemographic" - optional :display_keyword_view, :message, 47, "google.ads.googleads.v12.resources.DisplayKeywordView" - optional :distance_view, :message, 132, "google.ads.googleads.v12.resources.DistanceView" - optional :dynamic_search_ads_search_term_view, :message, 106, "google.ads.googleads.v12.resources.DynamicSearchAdsSearchTermView" - optional :expanded_landing_page_view, :message, 128, "google.ads.googleads.v12.resources.ExpandedLandingPageView" - optional :extension_feed_item, :message, 85, "google.ads.googleads.v12.resources.ExtensionFeedItem" - optional :feed, :message, 46, "google.ads.googleads.v12.resources.Feed" - optional :feed_item, :message, 50, "google.ads.googleads.v12.resources.FeedItem" - optional :feed_item_set, :message, 149, "google.ads.googleads.v12.resources.FeedItemSet" - optional :feed_item_set_link, :message, 151, "google.ads.googleads.v12.resources.FeedItemSetLink" - optional :feed_item_target, :message, 116, "google.ads.googleads.v12.resources.FeedItemTarget" - optional :feed_mapping, :message, 58, "google.ads.googleads.v12.resources.FeedMapping" - optional :feed_placeholder_view, :message, 97, "google.ads.googleads.v12.resources.FeedPlaceholderView" - optional :gender_view, :message, 40, "google.ads.googleads.v12.resources.GenderView" - optional :geo_target_constant, :message, 23, "google.ads.googleads.v12.resources.GeoTargetConstant" - optional :geographic_view, :message, 125, "google.ads.googleads.v12.resources.GeographicView" - optional :group_placement_view, :message, 119, "google.ads.googleads.v12.resources.GroupPlacementView" - optional :hotel_group_view, :message, 51, "google.ads.googleads.v12.resources.HotelGroupView" - optional :hotel_performance_view, :message, 71, "google.ads.googleads.v12.resources.HotelPerformanceView" - optional :hotel_reconciliation, :message, 188, "google.ads.googleads.v12.resources.HotelReconciliation" - optional :income_range_view, :message, 138, "google.ads.googleads.v12.resources.IncomeRangeView" - optional :keyword_view, :message, 21, "google.ads.googleads.v12.resources.KeywordView" - optional :keyword_plan, :message, 32, "google.ads.googleads.v12.resources.KeywordPlan" - optional :keyword_plan_campaign, :message, 33, "google.ads.googleads.v12.resources.KeywordPlanCampaign" - optional :keyword_plan_campaign_keyword, :message, 140, "google.ads.googleads.v12.resources.KeywordPlanCampaignKeyword" - optional :keyword_plan_ad_group, :message, 35, "google.ads.googleads.v12.resources.KeywordPlanAdGroup" - optional :keyword_plan_ad_group_keyword, :message, 141, "google.ads.googleads.v12.resources.KeywordPlanAdGroupKeyword" - optional :keyword_theme_constant, :message, 163, "google.ads.googleads.v12.resources.KeywordThemeConstant" - optional :label, :message, 52, "google.ads.googleads.v12.resources.Label" - optional :landing_page_view, :message, 126, "google.ads.googleads.v12.resources.LandingPageView" - optional :language_constant, :message, 55, "google.ads.googleads.v12.resources.LanguageConstant" - optional :location_view, :message, 123, "google.ads.googleads.v12.resources.LocationView" - optional :managed_placement_view, :message, 53, "google.ads.googleads.v12.resources.ManagedPlacementView" - optional :media_file, :message, 90, "google.ads.googleads.v12.resources.MediaFile" - optional :mobile_app_category_constant, :message, 87, "google.ads.googleads.v12.resources.MobileAppCategoryConstant" - optional :mobile_device_constant, :message, 98, "google.ads.googleads.v12.resources.MobileDeviceConstant" - optional :offline_user_data_job, :message, 137, "google.ads.googleads.v12.resources.OfflineUserDataJob" - optional :operating_system_version_constant, :message, 86, "google.ads.googleads.v12.resources.OperatingSystemVersionConstant" - optional :paid_organic_search_term_view, :message, 129, "google.ads.googleads.v12.resources.PaidOrganicSearchTermView" - optional :parental_status_view, :message, 45, "google.ads.googleads.v12.resources.ParentalStatusView" - optional :per_store_view, :message, 198, "google.ads.googleads.v12.resources.PerStoreView" - optional :product_bidding_category_constant, :message, 109, "google.ads.googleads.v12.resources.ProductBiddingCategoryConstant" - optional :product_group_view, :message, 54, "google.ads.googleads.v12.resources.ProductGroupView" - optional :recommendation, :message, 22, "google.ads.googleads.v12.resources.Recommendation" - optional :search_term_view, :message, 68, "google.ads.googleads.v12.resources.SearchTermView" - optional :shared_criterion, :message, 29, "google.ads.googleads.v12.resources.SharedCriterion" - optional :shared_set, :message, 27, "google.ads.googleads.v12.resources.SharedSet" - optional :smart_campaign_setting, :message, 167, "google.ads.googleads.v12.resources.SmartCampaignSetting" - optional :shopping_performance_view, :message, 117, "google.ads.googleads.v12.resources.ShoppingPerformanceView" - optional :smart_campaign_search_term_view, :message, 170, "google.ads.googleads.v12.resources.SmartCampaignSearchTermView" - optional :third_party_app_analytics_link, :message, 144, "google.ads.googleads.v12.resources.ThirdPartyAppAnalyticsLink" - optional :topic_view, :message, 44, "google.ads.googleads.v12.resources.TopicView" - optional :experiment, :message, 133, "google.ads.googleads.v12.resources.Experiment" - optional :experiment_arm, :message, 183, "google.ads.googleads.v12.resources.ExperimentArm" - optional :user_interest, :message, 59, "google.ads.googleads.v12.resources.UserInterest" - optional :life_event, :message, 161, "google.ads.googleads.v12.resources.LifeEvent" - optional :user_list, :message, 38, "google.ads.googleads.v12.resources.UserList" - optional :user_location_view, :message, 135, "google.ads.googleads.v12.resources.UserLocationView" - optional :remarketing_action, :message, 60, "google.ads.googleads.v12.resources.RemarketingAction" - optional :topic_constant, :message, 31, "google.ads.googleads.v12.resources.TopicConstant" - optional :video, :message, 39, "google.ads.googleads.v12.resources.Video" - optional :webpage_view, :message, 162, "google.ads.googleads.v12.resources.WebpageView" - optional :lead_form_submission_data, :message, 192, "google.ads.googleads.v12.resources.LeadFormSubmissionData" - optional :metrics, :message, 4, "google.ads.googleads.v12.common.Metrics" - optional :segments, :message, 102, "google.ads.googleads.v12.common.Segments" - end - add_message "google.ads.googleads.v12.services.MutateGoogleAdsRequest" do - optional :customer_id, :string, 1 - repeated :mutate_operations, :message, 2, "google.ads.googleads.v12.services.MutateOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.MutateGoogleAdsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :mutate_operation_responses, :message, 1, "google.ads.googleads.v12.services.MutateOperationResponse" - end - add_message "google.ads.googleads.v12.services.MutateOperation" do - oneof :operation do - optional :ad_group_ad_label_operation, :message, 17, "google.ads.googleads.v12.services.AdGroupAdLabelOperation" - optional :ad_group_ad_operation, :message, 1, "google.ads.googleads.v12.services.AdGroupAdOperation" - optional :ad_group_asset_operation, :message, 56, "google.ads.googleads.v12.services.AdGroupAssetOperation" - optional :ad_group_bid_modifier_operation, :message, 2, "google.ads.googleads.v12.services.AdGroupBidModifierOperation" - optional :ad_group_criterion_customizer_operation, :message, 77, "google.ads.googleads.v12.services.AdGroupCriterionCustomizerOperation" - optional :ad_group_criterion_label_operation, :message, 18, "google.ads.googleads.v12.services.AdGroupCriterionLabelOperation" - optional :ad_group_criterion_operation, :message, 3, "google.ads.googleads.v12.services.AdGroupCriterionOperation" - optional :ad_group_customizer_operation, :message, 75, "google.ads.googleads.v12.services.AdGroupCustomizerOperation" - optional :ad_group_extension_setting_operation, :message, 19, "google.ads.googleads.v12.services.AdGroupExtensionSettingOperation" - optional :ad_group_feed_operation, :message, 20, "google.ads.googleads.v12.services.AdGroupFeedOperation" - optional :ad_group_label_operation, :message, 21, "google.ads.googleads.v12.services.AdGroupLabelOperation" - optional :ad_group_operation, :message, 5, "google.ads.googleads.v12.services.AdGroupOperation" - optional :ad_operation, :message, 49, "google.ads.googleads.v12.services.AdOperation" - optional :ad_parameter_operation, :message, 22, "google.ads.googleads.v12.services.AdParameterOperation" - optional :asset_operation, :message, 23, "google.ads.googleads.v12.services.AssetOperation" - optional :asset_group_asset_operation, :message, 65, "google.ads.googleads.v12.services.AssetGroupAssetOperation" - optional :asset_group_listing_group_filter_operation, :message, 78, "google.ads.googleads.v12.services.AssetGroupListingGroupFilterOperation" - optional :asset_group_signal_operation, :message, 80, "google.ads.googleads.v12.services.AssetGroupSignalOperation" - optional :asset_group_operation, :message, 62, "google.ads.googleads.v12.services.AssetGroupOperation" - optional :asset_set_asset_operation, :message, 71, "google.ads.googleads.v12.services.AssetSetAssetOperation" - optional :asset_set_operation, :message, 72, "google.ads.googleads.v12.services.AssetSetOperation" - optional :audience_operation, :message, 81, "google.ads.googleads.v12.services.AudienceOperation" - optional :bidding_data_exclusion_operation, :message, 58, "google.ads.googleads.v12.services.BiddingDataExclusionOperation" - optional :bidding_seasonality_adjustment_operation, :message, 59, "google.ads.googleads.v12.services.BiddingSeasonalityAdjustmentOperation" - optional :bidding_strategy_operation, :message, 6, "google.ads.googleads.v12.services.BiddingStrategyOperation" - optional :campaign_asset_operation, :message, 52, "google.ads.googleads.v12.services.CampaignAssetOperation" - optional :campaign_asset_set_operation, :message, 73, "google.ads.googleads.v12.services.CampaignAssetSetOperation" - optional :campaign_bid_modifier_operation, :message, 7, "google.ads.googleads.v12.services.CampaignBidModifierOperation" - optional :campaign_budget_operation, :message, 8, "google.ads.googleads.v12.services.CampaignBudgetOperation" - optional :campaign_conversion_goal_operation, :message, 67, "google.ads.googleads.v12.services.CampaignConversionGoalOperation" - optional :campaign_criterion_operation, :message, 13, "google.ads.googleads.v12.services.CampaignCriterionOperation" - optional :campaign_customizer_operation, :message, 76, "google.ads.googleads.v12.services.CampaignCustomizerOperation" - optional :campaign_draft_operation, :message, 24, "google.ads.googleads.v12.services.CampaignDraftOperation" - optional :campaign_extension_setting_operation, :message, 26, "google.ads.googleads.v12.services.CampaignExtensionSettingOperation" - optional :campaign_feed_operation, :message, 27, "google.ads.googleads.v12.services.CampaignFeedOperation" - optional :campaign_group_operation, :message, 9, "google.ads.googleads.v12.services.CampaignGroupOperation" - optional :campaign_label_operation, :message, 28, "google.ads.googleads.v12.services.CampaignLabelOperation" - optional :campaign_operation, :message, 10, "google.ads.googleads.v12.services.CampaignOperation" - optional :campaign_shared_set_operation, :message, 11, "google.ads.googleads.v12.services.CampaignSharedSetOperation" - optional :conversion_action_operation, :message, 12, "google.ads.googleads.v12.services.ConversionActionOperation" - optional :conversion_custom_variable_operation, :message, 55, "google.ads.googleads.v12.services.ConversionCustomVariableOperation" - optional :conversion_goal_campaign_config_operation, :message, 69, "google.ads.googleads.v12.services.ConversionGoalCampaignConfigOperation" - optional :conversion_value_rule_operation, :message, 63, "google.ads.googleads.v12.services.ConversionValueRuleOperation" - optional :conversion_value_rule_set_operation, :message, 64, "google.ads.googleads.v12.services.ConversionValueRuleSetOperation" - optional :custom_conversion_goal_operation, :message, 68, "google.ads.googleads.v12.services.CustomConversionGoalOperation" - optional :customer_asset_operation, :message, 57, "google.ads.googleads.v12.services.CustomerAssetOperation" - optional :customer_conversion_goal_operation, :message, 66, "google.ads.googleads.v12.services.CustomerConversionGoalOperation" - optional :customer_customizer_operation, :message, 79, "google.ads.googleads.v12.services.CustomerCustomizerOperation" - optional :customer_extension_setting_operation, :message, 30, "google.ads.googleads.v12.services.CustomerExtensionSettingOperation" - optional :customer_feed_operation, :message, 31, "google.ads.googleads.v12.services.CustomerFeedOperation" - optional :customer_label_operation, :message, 32, "google.ads.googleads.v12.services.CustomerLabelOperation" - optional :customer_negative_criterion_operation, :message, 34, "google.ads.googleads.v12.services.CustomerNegativeCriterionOperation" - optional :customer_operation, :message, 35, "google.ads.googleads.v12.services.CustomerOperation" - optional :customizer_attribute_operation, :message, 70, "google.ads.googleads.v12.services.CustomizerAttributeOperation" - optional :experiment_operation, :message, 82, "google.ads.googleads.v12.services.ExperimentOperation" - optional :experiment_arm_operation, :message, 83, "google.ads.googleads.v12.services.ExperimentArmOperation" - optional :extension_feed_item_operation, :message, 36, "google.ads.googleads.v12.services.ExtensionFeedItemOperation" - optional :feed_item_operation, :message, 37, "google.ads.googleads.v12.services.FeedItemOperation" - optional :feed_item_set_operation, :message, 53, "google.ads.googleads.v12.services.FeedItemSetOperation" - optional :feed_item_set_link_operation, :message, 54, "google.ads.googleads.v12.services.FeedItemSetLinkOperation" - optional :feed_item_target_operation, :message, 38, "google.ads.googleads.v12.services.FeedItemTargetOperation" - optional :feed_mapping_operation, :message, 39, "google.ads.googleads.v12.services.FeedMappingOperation" - optional :feed_operation, :message, 40, "google.ads.googleads.v12.services.FeedOperation" - optional :keyword_plan_ad_group_operation, :message, 44, "google.ads.googleads.v12.services.KeywordPlanAdGroupOperation" - optional :keyword_plan_ad_group_keyword_operation, :message, 50, "google.ads.googleads.v12.services.KeywordPlanAdGroupKeywordOperation" - optional :keyword_plan_campaign_keyword_operation, :message, 51, "google.ads.googleads.v12.services.KeywordPlanCampaignKeywordOperation" - optional :keyword_plan_campaign_operation, :message, 45, "google.ads.googleads.v12.services.KeywordPlanCampaignOperation" - optional :keyword_plan_operation, :message, 48, "google.ads.googleads.v12.services.KeywordPlanOperation" - optional :label_operation, :message, 41, "google.ads.googleads.v12.services.LabelOperation" - optional :media_file_operation, :message, 42, "google.ads.googleads.v12.services.MediaFileOperation" - optional :remarketing_action_operation, :message, 43, "google.ads.googleads.v12.services.RemarketingActionOperation" - optional :shared_criterion_operation, :message, 14, "google.ads.googleads.v12.services.SharedCriterionOperation" - optional :shared_set_operation, :message, 15, "google.ads.googleads.v12.services.SharedSetOperation" - optional :smart_campaign_setting_operation, :message, 61, "google.ads.googleads.v12.services.SmartCampaignSettingOperation" - optional :user_list_operation, :message, 16, "google.ads.googleads.v12.services.UserListOperation" - end - end - add_message "google.ads.googleads.v12.services.MutateOperationResponse" do - oneof :response do - optional :ad_group_ad_label_result, :message, 17, "google.ads.googleads.v12.services.MutateAdGroupAdLabelResult" - optional :ad_group_ad_result, :message, 1, "google.ads.googleads.v12.services.MutateAdGroupAdResult" - optional :ad_group_asset_result, :message, 56, "google.ads.googleads.v12.services.MutateAdGroupAssetResult" - optional :ad_group_bid_modifier_result, :message, 2, "google.ads.googleads.v12.services.MutateAdGroupBidModifierResult" - optional :ad_group_criterion_customizer_result, :message, 77, "google.ads.googleads.v12.services.MutateAdGroupCriterionCustomizerResult" - optional :ad_group_criterion_label_result, :message, 18, "google.ads.googleads.v12.services.MutateAdGroupCriterionLabelResult" - optional :ad_group_criterion_result, :message, 3, "google.ads.googleads.v12.services.MutateAdGroupCriterionResult" - optional :ad_group_customizer_result, :message, 75, "google.ads.googleads.v12.services.MutateAdGroupCustomizerResult" - optional :ad_group_extension_setting_result, :message, 19, "google.ads.googleads.v12.services.MutateAdGroupExtensionSettingResult" - optional :ad_group_feed_result, :message, 20, "google.ads.googleads.v12.services.MutateAdGroupFeedResult" - optional :ad_group_label_result, :message, 21, "google.ads.googleads.v12.services.MutateAdGroupLabelResult" - optional :ad_group_result, :message, 5, "google.ads.googleads.v12.services.MutateAdGroupResult" - optional :ad_parameter_result, :message, 22, "google.ads.googleads.v12.services.MutateAdParameterResult" - optional :ad_result, :message, 49, "google.ads.googleads.v12.services.MutateAdResult" - optional :asset_result, :message, 23, "google.ads.googleads.v12.services.MutateAssetResult" - optional :asset_group_asset_result, :message, 65, "google.ads.googleads.v12.services.MutateAssetGroupAssetResult" - optional :asset_group_listing_group_filter_result, :message, 78, "google.ads.googleads.v12.services.MutateAssetGroupListingGroupFilterResult" - optional :asset_group_signal_result, :message, 79, "google.ads.googleads.v12.services.MutateAssetGroupSignalResult" - optional :asset_group_result, :message, 62, "google.ads.googleads.v12.services.MutateAssetGroupResult" - optional :asset_set_asset_result, :message, 71, "google.ads.googleads.v12.services.MutateAssetSetAssetResult" - optional :asset_set_result, :message, 72, "google.ads.googleads.v12.services.MutateAssetSetResult" - optional :audience_result, :message, 80, "google.ads.googleads.v12.services.MutateAudienceResult" - optional :bidding_data_exclusion_result, :message, 58, "google.ads.googleads.v12.services.MutateBiddingDataExclusionsResult" - optional :bidding_seasonality_adjustment_result, :message, 59, "google.ads.googleads.v12.services.MutateBiddingSeasonalityAdjustmentsResult" - optional :bidding_strategy_result, :message, 6, "google.ads.googleads.v12.services.MutateBiddingStrategyResult" - optional :campaign_asset_result, :message, 52, "google.ads.googleads.v12.services.MutateCampaignAssetResult" - optional :campaign_asset_set_result, :message, 73, "google.ads.googleads.v12.services.MutateCampaignAssetSetResult" - optional :campaign_bid_modifier_result, :message, 7, "google.ads.googleads.v12.services.MutateCampaignBidModifierResult" - optional :campaign_budget_result, :message, 8, "google.ads.googleads.v12.services.MutateCampaignBudgetResult" - optional :campaign_conversion_goal_result, :message, 67, "google.ads.googleads.v12.services.MutateCampaignConversionGoalResult" - optional :campaign_criterion_result, :message, 13, "google.ads.googleads.v12.services.MutateCampaignCriterionResult" - optional :campaign_customizer_result, :message, 76, "google.ads.googleads.v12.services.MutateCampaignCustomizerResult" - optional :campaign_draft_result, :message, 24, "google.ads.googleads.v12.services.MutateCampaignDraftResult" - optional :campaign_extension_setting_result, :message, 26, "google.ads.googleads.v12.services.MutateCampaignExtensionSettingResult" - optional :campaign_feed_result, :message, 27, "google.ads.googleads.v12.services.MutateCampaignFeedResult" - optional :campaign_group_result, :message, 9, "google.ads.googleads.v12.services.MutateCampaignGroupResult" - optional :campaign_label_result, :message, 28, "google.ads.googleads.v12.services.MutateCampaignLabelResult" - optional :campaign_result, :message, 10, "google.ads.googleads.v12.services.MutateCampaignResult" - optional :campaign_shared_set_result, :message, 11, "google.ads.googleads.v12.services.MutateCampaignSharedSetResult" - optional :conversion_action_result, :message, 12, "google.ads.googleads.v12.services.MutateConversionActionResult" - optional :conversion_custom_variable_result, :message, 55, "google.ads.googleads.v12.services.MutateConversionCustomVariableResult" - optional :conversion_goal_campaign_config_result, :message, 69, "google.ads.googleads.v12.services.MutateConversionGoalCampaignConfigResult" - optional :conversion_value_rule_result, :message, 63, "google.ads.googleads.v12.services.MutateConversionValueRuleResult" - optional :conversion_value_rule_set_result, :message, 64, "google.ads.googleads.v12.services.MutateConversionValueRuleSetResult" - optional :custom_conversion_goal_result, :message, 68, "google.ads.googleads.v12.services.MutateCustomConversionGoalResult" - optional :customer_asset_result, :message, 57, "google.ads.googleads.v12.services.MutateCustomerAssetResult" - optional :customer_conversion_goal_result, :message, 66, "google.ads.googleads.v12.services.MutateCustomerConversionGoalResult" - optional :customer_customizer_result, :message, 74, "google.ads.googleads.v12.services.MutateCustomerCustomizerResult" - optional :customer_extension_setting_result, :message, 30, "google.ads.googleads.v12.services.MutateCustomerExtensionSettingResult" - optional :customer_feed_result, :message, 31, "google.ads.googleads.v12.services.MutateCustomerFeedResult" - optional :customer_label_result, :message, 32, "google.ads.googleads.v12.services.MutateCustomerLabelResult" - optional :customer_negative_criterion_result, :message, 34, "google.ads.googleads.v12.services.MutateCustomerNegativeCriteriaResult" - optional :customer_result, :message, 35, "google.ads.googleads.v12.services.MutateCustomerResult" - optional :customizer_attribute_result, :message, 70, "google.ads.googleads.v12.services.MutateCustomizerAttributeResult" - optional :experiment_result, :message, 81, "google.ads.googleads.v12.services.MutateExperimentResult" - optional :experiment_arm_result, :message, 82, "google.ads.googleads.v12.services.MutateExperimentArmResult" - optional :extension_feed_item_result, :message, 36, "google.ads.googleads.v12.services.MutateExtensionFeedItemResult" - optional :feed_item_result, :message, 37, "google.ads.googleads.v12.services.MutateFeedItemResult" - optional :feed_item_set_result, :message, 53, "google.ads.googleads.v12.services.MutateFeedItemSetResult" - optional :feed_item_set_link_result, :message, 54, "google.ads.googleads.v12.services.MutateFeedItemSetLinkResult" - optional :feed_item_target_result, :message, 38, "google.ads.googleads.v12.services.MutateFeedItemTargetResult" - optional :feed_mapping_result, :message, 39, "google.ads.googleads.v12.services.MutateFeedMappingResult" - optional :feed_result, :message, 40, "google.ads.googleads.v12.services.MutateFeedResult" - optional :keyword_plan_ad_group_result, :message, 44, "google.ads.googleads.v12.services.MutateKeywordPlanAdGroupResult" - optional :keyword_plan_campaign_result, :message, 45, "google.ads.googleads.v12.services.MutateKeywordPlanCampaignResult" - optional :keyword_plan_ad_group_keyword_result, :message, 50, "google.ads.googleads.v12.services.MutateKeywordPlanAdGroupKeywordResult" - optional :keyword_plan_campaign_keyword_result, :message, 51, "google.ads.googleads.v12.services.MutateKeywordPlanCampaignKeywordResult" - optional :keyword_plan_result, :message, 48, "google.ads.googleads.v12.services.MutateKeywordPlansResult" - optional :label_result, :message, 41, "google.ads.googleads.v12.services.MutateLabelResult" - optional :media_file_result, :message, 42, "google.ads.googleads.v12.services.MutateMediaFileResult" - optional :remarketing_action_result, :message, 43, "google.ads.googleads.v12.services.MutateRemarketingActionResult" - optional :shared_criterion_result, :message, 14, "google.ads.googleads.v12.services.MutateSharedCriterionResult" - optional :shared_set_result, :message, 15, "google.ads.googleads.v12.services.MutateSharedSetResult" - optional :smart_campaign_setting_result, :message, 61, "google.ads.googleads.v12.services.MutateSmartCampaignSettingResult" - optional :user_list_result, :message, 16, "google.ads.googleads.v12.services.MutateUserListResult" - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - SearchGoogleAdsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SearchGoogleAdsRequest").msgclass - SearchGoogleAdsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SearchGoogleAdsResponse").msgclass - SearchGoogleAdsStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SearchGoogleAdsStreamRequest").msgclass - SearchGoogleAdsStreamResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SearchGoogleAdsStreamResponse").msgclass - GoogleAdsRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GoogleAdsRow").msgclass - MutateGoogleAdsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateGoogleAdsRequest").msgclass - MutateGoogleAdsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateGoogleAdsResponse").msgclass - MutateOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateOperation").msgclass - MutateOperationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateOperationResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/google_ads_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/google_ads_service_services_pb.rb deleted file mode 100644 index 3c5ab5b3f..000000000 --- a/lib/google/ads/google_ads/v12/services/google_ads_service_services_pb.rb +++ /dev/null @@ -1,188 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/google_ads_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/google_ads_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module GoogleAdsService - # Proto file describing the GoogleAdsService. - # - # Service to fetch data and metrics across resources. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.GoogleAdsService' - - # Returns all rows that match the search query. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ChangeEventError]() - # [ChangeStatusError]() - # [ClickViewError]() - # [HeaderError]() - # [InternalError]() - # [QueryError]() - # [QuotaError]() - # [RequestError]() - rpc :Search, ::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsRequest, ::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsResponse - # Returns all rows that match the search stream query. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ChangeEventError]() - # [ChangeStatusError]() - # [ClickViewError]() - # [HeaderError]() - # [InternalError]() - # [QueryError]() - # [QuotaError]() - # [RequestError]() - rpc :SearchStream, ::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsStreamRequest, stream(::Google::Ads::GoogleAds::V12::Services::SearchGoogleAdsStreamResponse) - # Creates, updates, or removes resources. This method supports atomic - # transactions with multiple types of resources. For example, you can - # atomically create a campaign and a campaign budget, or perform up to - # thousands of mutates atomically. - # - # This method is essentially a wrapper around a series of mutate methods. The - # only features it offers over calling those methods directly are: - # - # - Atomic transactions - # - Temp resource names (described below) - # - Somewhat reduced latency over making a series of mutate calls - # - # Note: Only resources that support atomic transactions are included, so this - # method can't replace all calls to individual services. - # - # ## Atomic Transaction Benefits - # - # Atomicity makes error handling much easier. If you're making a series of - # changes and one fails, it can leave your account in an inconsistent state. - # With atomicity, you either reach the chosen state directly, or the request - # fails and you can retry. - # - # ## Temp Resource Names - # - # Temp resource names are a special type of resource name used to create a - # resource and reference that resource in the same request. For example, if a - # campaign budget is created with `resource_name` equal to - # `customers/123/campaignBudgets/-1`, that resource name can be reused in - # the `Campaign.budget` field in the same request. That way, the two - # resources are created and linked atomically. - # - # To create a temp resource name, put a negative number in the part of the - # name that the server would normally allocate. - # - # Note: - # - # - Resources must be created with a temp name before the name can be reused. - # For example, the previous CampaignBudget+Campaign example would fail if - # the mutate order was reversed. - # - Temp names are not remembered across requests. - # - There's no limit to the number of temp names in a request. - # - Each temp name must use a unique negative number, even if the resource - # types differ. - # - # ## Latency - # - # It's important to group mutates by resource type or the request may time - # out and fail. Latency is roughly equal to a series of calls to individual - # mutate methods, where each change in resource type is a new call. For - # example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - # mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - # - # List of thrown errors: - # [AdCustomizerError]() - # [AdError]() - # [AdGroupAdError]() - # [AdGroupCriterionError]() - # [AdGroupError]() - # [AssetError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [BiddingError]() - # [CampaignBudgetError]() - # [CampaignCriterionError]() - # [CampaignError]() - # [CampaignExperimentError]() - # [CampaignSharedSetError]() - # [CollectionSizeError]() - # [ContextError]() - # [ConversionActionError]() - # [CriterionError]() - # [CustomerFeedError]() - # [DatabaseError]() - # [DateError]() - # [DateRangeError]() - # [DistinctError]() - # [ExtensionFeedItemError]() - # [ExtensionSettingError]() - # [FeedAttributeReferenceError]() - # [FeedError]() - # [FeedItemError]() - # [FeedItemSetError]() - # [FieldError]() - # [FieldMaskError]() - # [FunctionParsingError]() - # [HeaderError]() - # [ImageError]() - # [InternalError]() - # [KeywordPlanAdGroupKeywordError]() - # [KeywordPlanCampaignError]() - # [KeywordPlanError]() - # [LabelError]() - # [ListOperationError]() - # [MediaUploadError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [PolicyFindingError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SettingError]() - # [SharedSetError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # [UserListError]() - # [YoutubeVideoRegistrationError]() - rpc :Mutate, ::Google::Ads::GoogleAds::V12::Services::MutateGoogleAdsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateGoogleAdsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/invoice_service.rb b/lib/google/ads/google_ads/v12/services/invoice_service.rb deleted file mode 100644 index 8ff329fb6..000000000 --- a/lib/google/ads/google_ads/v12/services/invoice_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/invoice_service/credentials" -require "google/ads/google_ads/v12/services/invoice_service/paths" -require "google/ads/google_ads/v12/services/invoice_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # A service to fetch invoices issued for a billing setup during a given month. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/invoice_service" - # client = ::Google::Ads::GoogleAds::V12::Services::InvoiceService::Client.new - # - module InvoiceService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "invoice_service", "helpers.rb" -require "google/ads/google_ads/v12/services/invoice_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/invoice_service/client.rb b/lib/google/ads/google_ads/v12/services/invoice_service/client.rb deleted file mode 100644 index 9896d5f0a..000000000 --- a/lib/google/ads/google_ads/v12/services/invoice_service/client.rb +++ /dev/null @@ -1,408 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/invoice_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module InvoiceService - ## - # Client for the InvoiceService service. - # - # A service to fetch invoices issued for a billing setup during a given month. - # - class Client - include Paths - - # @private - attr_reader :invoice_service_stub - - ## - # Configure the InvoiceService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::InvoiceService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all InvoiceService clients - # ::Google::Ads::GoogleAds::V12::Services::InvoiceService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the InvoiceService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::InvoiceService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new InvoiceService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::InvoiceService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::InvoiceService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the InvoiceService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/invoice_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @invoice_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::InvoiceService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Returns all invoices associated with a billing setup, for a given month. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [InvoiceError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_invoices(request, options = nil) - # Pass arguments to `list_invoices` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::ListInvoicesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::ListInvoicesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_invoices(customer_id: nil, billing_setup: nil, issue_year: nil, issue_month: nil) - # Pass arguments to `list_invoices` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer to fetch invoices for. - # @param billing_setup [::String] - # Required. The billing setup resource name of the requested invoices. - # - # `customers/{customer_id}/billingSetups/{billing_setup_id}` - # @param issue_year [::String] - # Required. The issue year to retrieve invoices, in yyyy format. Only - # invoices issued in 2019 or later can be retrieved. - # @param issue_month [::Google::Ads::GoogleAds::V12::Enums::MonthOfYearEnum::MonthOfYear] - # Required. The issue month to retrieve invoices. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::ListInvoicesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::ListInvoicesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::InvoiceService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::ListInvoicesRequest.new - # - # # Call the list_invoices method. - # result = client.list_invoices request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::ListInvoicesResponse. - # p result - # - def list_invoices request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::ListInvoicesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_invoices.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_invoices.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_invoices.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @invoice_service_stub.call_rpc :list_invoices, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the InvoiceService API. - # - # This class represents the configuration for InvoiceService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::InvoiceService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_invoices to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::InvoiceService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_invoices.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::InvoiceService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_invoices.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the InvoiceService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_invoices` - # @return [::Gapic::Config::Method] - # - attr_reader :list_invoices - - # @private - def initialize parent_rpcs = nil - list_invoices_config = parent_rpcs.list_invoices if parent_rpcs.respond_to? :list_invoices - @list_invoices = ::Gapic::Config::Method.new list_invoices_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/invoice_service/credentials.rb b/lib/google/ads/google_ads/v12/services/invoice_service/credentials.rb deleted file mode 100644 index 079f4a758..000000000 --- a/lib/google/ads/google_ads/v12/services/invoice_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module InvoiceService - # Credentials for the InvoiceService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/invoice_service/paths.rb b/lib/google/ads/google_ads/v12/services/invoice_service/paths.rb deleted file mode 100644 index da09f24c6..000000000 --- a/lib/google/ads/google_ads/v12/services/invoice_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module InvoiceService - # Path helper methods for the InvoiceService API. - module Paths - ## - # Create a fully-qualified Invoice resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/invoices/{invoice_id}` - # - # @param customer_id [String] - # @param invoice_id [String] - # - # @return [::String] - def invoice_path customer_id:, invoice_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/invoices/#{invoice_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/invoice_service_pb.rb b/lib/google/ads/google_ads/v12/services/invoice_service_pb.rb deleted file mode 100644 index ece43139a..000000000 --- a/lib/google/ads/google_ads/v12/services/invoice_service_pb.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/invoice_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/month_of_year_pb' -require 'google/ads/google_ads/v12/resources/invoice_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/invoice_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.ListInvoicesRequest" do - optional :customer_id, :string, 1 - optional :billing_setup, :string, 2 - optional :issue_year, :string, 3 - optional :issue_month, :enum, 4, "google.ads.googleads.v12.enums.MonthOfYearEnum.MonthOfYear" - end - add_message "google.ads.googleads.v12.services.ListInvoicesResponse" do - repeated :invoices, :message, 1, "google.ads.googleads.v12.resources.Invoice" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - ListInvoicesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListInvoicesRequest").msgclass - ListInvoicesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListInvoicesResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/invoice_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/invoice_service_services_pb.rb deleted file mode 100644 index b9249c44c..000000000 --- a/lib/google/ads/google_ads/v12/services/invoice_service_services_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/invoice_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/invoice_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module InvoiceService - # Proto file describing the Invoice service. - # - # A service to fetch invoices issued for a billing setup during a given month. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.InvoiceService' - - # Returns all invoices associated with a billing setup, for a given month. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [InvoiceError]() - # [QuotaError]() - # [RequestError]() - rpc :ListInvoices, ::Google::Ads::GoogleAds::V12::Services::ListInvoicesRequest, ::Google::Ads::GoogleAds::V12::Services::ListInvoicesResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service.rb deleted file mode 100644 index 7141730d4..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service.rb +++ /dev/null @@ -1,55 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service/credentials" -require "google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service/paths" -require "google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage Keyword Plan ad group keywords. KeywordPlanAdGroup is - # required to add ad group keywords. Positive and negative keywords are - # supported. A maximum of 10,000 positive keywords are allowed per keyword - # plan. A maximum of 1,000 negative keywords are allower per keyword plan. This - # includes campaign negative keywords and ad group negative keywords. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service" - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupKeywordService::Client.new - # - module KeywordPlanAdGroupKeywordService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "keyword_plan_ad_group_keyword_service", "helpers.rb" -require "google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service/client.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service/client.rb deleted file mode 100644 index 768f2446b..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service/client.rb +++ /dev/null @@ -1,421 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanAdGroupKeywordService - ## - # Client for the KeywordPlanAdGroupKeywordService service. - # - # Service to manage Keyword Plan ad group keywords. KeywordPlanAdGroup is - # required to add ad group keywords. Positive and negative keywords are - # supported. A maximum of 10,000 positive keywords are allowed per keyword - # plan. A maximum of 1,000 negative keywords are allower per keyword plan. This - # includes campaign negative keywords and ad group negative keywords. - # - class Client - include Paths - - # @private - attr_reader :keyword_plan_ad_group_keyword_service_stub - - ## - # Configure the KeywordPlanAdGroupKeywordService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupKeywordService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all KeywordPlanAdGroupKeywordService clients - # ::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupKeywordService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the KeywordPlanAdGroupKeywordService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupKeywordService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new KeywordPlanAdGroupKeywordService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupKeywordService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupKeywordService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the KeywordPlanAdGroupKeywordService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @keyword_plan_ad_group_keyword_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupKeywordService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes Keyword Plan ad group keywords. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanAdGroupKeywordError]() - # [KeywordPlanError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # - # @overload mutate_keyword_plan_ad_group_keywords(request, options = nil) - # Pass arguments to `mutate_keyword_plan_ad_group_keywords` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupKeywordsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupKeywordsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_keyword_plan_ad_group_keywords(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_keyword_plan_ad_group_keywords` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose Keyword Plan ad group keywords are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupKeywordOperation, ::Hash>] - # Required. The list of operations to perform on individual Keyword Plan ad group - # keywords. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupKeywordsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupKeywordsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupKeywordService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupKeywordsRequest.new - # - # # Call the mutate_keyword_plan_ad_group_keywords method. - # result = client.mutate_keyword_plan_ad_group_keywords request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupKeywordsResponse. - # p result - # - def mutate_keyword_plan_ad_group_keywords request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupKeywordsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_keyword_plan_ad_group_keywords.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_keyword_plan_ad_group_keywords.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_keyword_plan_ad_group_keywords.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_ad_group_keyword_service_stub.call_rpc :mutate_keyword_plan_ad_group_keywords, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the KeywordPlanAdGroupKeywordService API. - # - # This class represents the configuration for KeywordPlanAdGroupKeywordService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupKeywordService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_keyword_plan_ad_group_keywords to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupKeywordService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plan_ad_group_keywords.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupKeywordService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plan_ad_group_keywords.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the KeywordPlanAdGroupKeywordService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_keyword_plan_ad_group_keywords` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_keyword_plan_ad_group_keywords - - # @private - def initialize parent_rpcs = nil - mutate_keyword_plan_ad_group_keywords_config = parent_rpcs.mutate_keyword_plan_ad_group_keywords if parent_rpcs.respond_to? :mutate_keyword_plan_ad_group_keywords - @mutate_keyword_plan_ad_group_keywords = ::Gapic::Config::Method.new mutate_keyword_plan_ad_group_keywords_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service/credentials.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service/credentials.rb deleted file mode 100644 index 136e36f25..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanAdGroupKeywordService - # Credentials for the KeywordPlanAdGroupKeywordService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service/paths.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service/paths.rb deleted file mode 100644 index a7147f95a..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanAdGroupKeywordService - # Path helper methods for the KeywordPlanAdGroupKeywordService API. - module Paths - ## - # Create a fully-qualified KeywordPlanAdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}` - # - # @param customer_id [String] - # @param keyword_plan_ad_group_id [String] - # - # @return [::String] - def keyword_plan_ad_group_path customer_id:, keyword_plan_ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanAdGroups/#{keyword_plan_ad_group_id}" - end - - ## - # Create a fully-qualified KeywordPlanAdGroupKeyword resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}` - # - # @param customer_id [String] - # @param keyword_plan_ad_group_keyword_id [String] - # - # @return [::String] - def keyword_plan_ad_group_keyword_path customer_id:, keyword_plan_ad_group_keyword_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanAdGroupKeywords/#{keyword_plan_ad_group_keyword_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service_pb.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service_pb.rb deleted file mode 100644 index 5cd4f7a5f..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/keyword_plan_ad_group_keyword_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/keyword_plan_ad_group_keyword_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/keyword_plan_ad_group_keyword_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateKeywordPlanAdGroupKeywordsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.KeywordPlanAdGroupKeywordOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.KeywordPlanAdGroupKeywordOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.KeywordPlanAdGroupKeyword" - optional :update, :message, 2, "google.ads.googleads.v12.resources.KeywordPlanAdGroupKeyword" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateKeywordPlanAdGroupKeywordsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateKeywordPlanAdGroupKeywordResult" - end - add_message "google.ads.googleads.v12.services.MutateKeywordPlanAdGroupKeywordResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateKeywordPlanAdGroupKeywordsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateKeywordPlanAdGroupKeywordsRequest").msgclass - KeywordPlanAdGroupKeywordOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.KeywordPlanAdGroupKeywordOperation").msgclass - MutateKeywordPlanAdGroupKeywordsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateKeywordPlanAdGroupKeywordsResponse").msgclass - MutateKeywordPlanAdGroupKeywordResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateKeywordPlanAdGroupKeywordResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service_services_pb.rb deleted file mode 100644 index 5b34bbe43..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service_services_pb.rb +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/keyword_plan_ad_group_keyword_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/keyword_plan_ad_group_keyword_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanAdGroupKeywordService - # Proto file describing the keyword plan ad group keyword service. - # - # Service to manage Keyword Plan ad group keywords. KeywordPlanAdGroup is - # required to add ad group keywords. Positive and negative keywords are - # supported. A maximum of 10,000 positive keywords are allowed per keyword - # plan. A maximum of 1,000 negative keywords are allower per keyword plan. This - # includes campaign negative keywords and ad group negative keywords. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.KeywordPlanAdGroupKeywordService' - - # Creates, updates, or removes Keyword Plan ad group keywords. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanAdGroupKeywordError]() - # [KeywordPlanError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - rpc :MutateKeywordPlanAdGroupKeywords, ::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupKeywordsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupKeywordsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service.rb deleted file mode 100644 index 4954ebaaa..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/keyword_plan_ad_group_service/credentials" -require "google/ads/google_ads/v12/services/keyword_plan_ad_group_service/paths" -require "google/ads/google_ads/v12/services/keyword_plan_ad_group_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage Keyword Plan ad groups. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/keyword_plan_ad_group_service" - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupService::Client.new - # - module KeywordPlanAdGroupService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "keyword_plan_ad_group_service", "helpers.rb" -require "google/ads/google_ads/v12/services/keyword_plan_ad_group_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service/client.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service/client.rb deleted file mode 100644 index dcea57029..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service/client.rb +++ /dev/null @@ -1,417 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/keyword_plan_ad_group_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanAdGroupService - ## - # Client for the KeywordPlanAdGroupService service. - # - # Service to manage Keyword Plan ad groups. - # - class Client - include Paths - - # @private - attr_reader :keyword_plan_ad_group_service_stub - - ## - # Configure the KeywordPlanAdGroupService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all KeywordPlanAdGroupService clients - # ::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the KeywordPlanAdGroupService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new KeywordPlanAdGroupService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the KeywordPlanAdGroupService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/keyword_plan_ad_group_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @keyword_plan_ad_group_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanAdGroupError]() - # [KeywordPlanError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # - # @overload mutate_keyword_plan_ad_groups(request, options = nil) - # Pass arguments to `mutate_keyword_plan_ad_groups` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_keyword_plan_ad_groups(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_keyword_plan_ad_groups` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose Keyword Plan ad groups are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupOperation, ::Hash>] - # Required. The list of operations to perform on individual Keyword Plan ad groups. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupsRequest.new - # - # # Call the mutate_keyword_plan_ad_groups method. - # result = client.mutate_keyword_plan_ad_groups request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupsResponse. - # p result - # - def mutate_keyword_plan_ad_groups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_keyword_plan_ad_groups.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_keyword_plan_ad_groups.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_keyword_plan_ad_groups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_ad_group_service_stub.call_rpc :mutate_keyword_plan_ad_groups, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the KeywordPlanAdGroupService API. - # - # This class represents the configuration for KeywordPlanAdGroupService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_keyword_plan_ad_groups to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plan_ad_groups.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanAdGroupService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plan_ad_groups.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the KeywordPlanAdGroupService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_keyword_plan_ad_groups` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_keyword_plan_ad_groups - - # @private - def initialize parent_rpcs = nil - mutate_keyword_plan_ad_groups_config = parent_rpcs.mutate_keyword_plan_ad_groups if parent_rpcs.respond_to? :mutate_keyword_plan_ad_groups - @mutate_keyword_plan_ad_groups = ::Gapic::Config::Method.new mutate_keyword_plan_ad_groups_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service/credentials.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service/credentials.rb deleted file mode 100644 index 828ef6138..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanAdGroupService - # Credentials for the KeywordPlanAdGroupService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service/paths.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service/paths.rb deleted file mode 100644 index 94ed0e115..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanAdGroupService - # Path helper methods for the KeywordPlanAdGroupService API. - module Paths - ## - # Create a fully-qualified KeywordPlanAdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}` - # - # @param customer_id [String] - # @param keyword_plan_ad_group_id [String] - # - # @return [::String] - def keyword_plan_ad_group_path customer_id:, keyword_plan_ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanAdGroups/#{keyword_plan_ad_group_id}" - end - - ## - # Create a fully-qualified KeywordPlanCampaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` - # - # @param customer_id [String] - # @param keyword_plan_campaign_id [String] - # - # @return [::String] - def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service_pb.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service_pb.rb deleted file mode 100644 index a234781f7..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/keyword_plan_ad_group_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/keyword_plan_ad_group_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/keyword_plan_ad_group_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateKeywordPlanAdGroupsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.KeywordPlanAdGroupOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.KeywordPlanAdGroupOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.KeywordPlanAdGroup" - optional :update, :message, 2, "google.ads.googleads.v12.resources.KeywordPlanAdGroup" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateKeywordPlanAdGroupsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateKeywordPlanAdGroupResult" - end - add_message "google.ads.googleads.v12.services.MutateKeywordPlanAdGroupResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateKeywordPlanAdGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateKeywordPlanAdGroupsRequest").msgclass - KeywordPlanAdGroupOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.KeywordPlanAdGroupOperation").msgclass - MutateKeywordPlanAdGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateKeywordPlanAdGroupsResponse").msgclass - MutateKeywordPlanAdGroupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateKeywordPlanAdGroupResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service_services_pb.rb deleted file mode 100644 index 8c0aa9811..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_ad_group_service_services_pb.rb +++ /dev/null @@ -1,66 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/keyword_plan_ad_group_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/keyword_plan_ad_group_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanAdGroupService - # Proto file describing the keyword plan ad group service. - # - # Service to manage Keyword Plan ad groups. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.KeywordPlanAdGroupService' - - # Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanAdGroupError]() - # [KeywordPlanError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - rpc :MutateKeywordPlanAdGroups, ::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanAdGroupsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service.rb deleted file mode 100644 index 126b00d3f..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service/credentials" -require "google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service/paths" -require "google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage Keyword Plan campaign keywords. KeywordPlanCampaign is - # required to add the campaign keywords. Only negative keywords are supported. - # A maximum of 1000 negative keywords are allowed per plan. This includes both - # campaign negative keywords and ad group negative keywords. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service" - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignKeywordService::Client.new - # - module KeywordPlanCampaignKeywordService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "keyword_plan_campaign_keyword_service", "helpers.rb" -require "google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service/client.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service/client.rb deleted file mode 100644 index 64b878434..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service/client.rb +++ /dev/null @@ -1,418 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanCampaignKeywordService - ## - # Client for the KeywordPlanCampaignKeywordService service. - # - # Service to manage Keyword Plan campaign keywords. KeywordPlanCampaign is - # required to add the campaign keywords. Only negative keywords are supported. - # A maximum of 1000 negative keywords are allowed per plan. This includes both - # campaign negative keywords and ad group negative keywords. - # - class Client - include Paths - - # @private - attr_reader :keyword_plan_campaign_keyword_service_stub - - ## - # Configure the KeywordPlanCampaignKeywordService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignKeywordService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all KeywordPlanCampaignKeywordService clients - # ::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignKeywordService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the KeywordPlanCampaignKeywordService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignKeywordService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new KeywordPlanCampaignKeywordService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignKeywordService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignKeywordService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the KeywordPlanCampaignKeywordService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @keyword_plan_campaign_keyword_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignKeywordService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes Keyword Plan campaign keywords. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanAdGroupKeywordError]() - # [KeywordPlanCampaignKeywordError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # - # @overload mutate_keyword_plan_campaign_keywords(request, options = nil) - # Pass arguments to `mutate_keyword_plan_campaign_keywords` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignKeywordsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignKeywordsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_keyword_plan_campaign_keywords(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_keyword_plan_campaign_keywords` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign keywords are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignKeywordOperation, ::Hash>] - # Required. The list of operations to perform on individual Keyword Plan campaign - # keywords. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignKeywordsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignKeywordsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignKeywordService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignKeywordsRequest.new - # - # # Call the mutate_keyword_plan_campaign_keywords method. - # result = client.mutate_keyword_plan_campaign_keywords request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignKeywordsResponse. - # p result - # - def mutate_keyword_plan_campaign_keywords request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignKeywordsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_keyword_plan_campaign_keywords.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_keyword_plan_campaign_keywords.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_keyword_plan_campaign_keywords.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_campaign_keyword_service_stub.call_rpc :mutate_keyword_plan_campaign_keywords, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the KeywordPlanCampaignKeywordService API. - # - # This class represents the configuration for KeywordPlanCampaignKeywordService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignKeywordService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_keyword_plan_campaign_keywords to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignKeywordService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plan_campaign_keywords.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignKeywordService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plan_campaign_keywords.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the KeywordPlanCampaignKeywordService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_keyword_plan_campaign_keywords` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_keyword_plan_campaign_keywords - - # @private - def initialize parent_rpcs = nil - mutate_keyword_plan_campaign_keywords_config = parent_rpcs.mutate_keyword_plan_campaign_keywords if parent_rpcs.respond_to? :mutate_keyword_plan_campaign_keywords - @mutate_keyword_plan_campaign_keywords = ::Gapic::Config::Method.new mutate_keyword_plan_campaign_keywords_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service/credentials.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service/credentials.rb deleted file mode 100644 index 065f40413..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanCampaignKeywordService - # Credentials for the KeywordPlanCampaignKeywordService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service/paths.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service/paths.rb deleted file mode 100644 index 5fd1b329b..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanCampaignKeywordService - # Path helper methods for the KeywordPlanCampaignKeywordService API. - module Paths - ## - # Create a fully-qualified KeywordPlanCampaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` - # - # @param customer_id [String] - # @param keyword_plan_campaign_id [String] - # - # @return [::String] - def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}" - end - - ## - # Create a fully-qualified KeywordPlanCampaignKeyword resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}` - # - # @param customer_id [String] - # @param keyword_plan_campaign_keyword_id [String] - # - # @return [::String] - def keyword_plan_campaign_keyword_path customer_id:, keyword_plan_campaign_keyword_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanCampaignKeywords/#{keyword_plan_campaign_keyword_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service_pb.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service_pb.rb deleted file mode 100644 index e209693cf..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/keyword_plan_campaign_keyword_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/keyword_plan_campaign_keyword_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/keyword_plan_campaign_keyword_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateKeywordPlanCampaignKeywordsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.KeywordPlanCampaignKeywordOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.KeywordPlanCampaignKeywordOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.KeywordPlanCampaignKeyword" - optional :update, :message, 2, "google.ads.googleads.v12.resources.KeywordPlanCampaignKeyword" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateKeywordPlanCampaignKeywordsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateKeywordPlanCampaignKeywordResult" - end - add_message "google.ads.googleads.v12.services.MutateKeywordPlanCampaignKeywordResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateKeywordPlanCampaignKeywordsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateKeywordPlanCampaignKeywordsRequest").msgclass - KeywordPlanCampaignKeywordOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.KeywordPlanCampaignKeywordOperation").msgclass - MutateKeywordPlanCampaignKeywordsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateKeywordPlanCampaignKeywordsResponse").msgclass - MutateKeywordPlanCampaignKeywordResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateKeywordPlanCampaignKeywordResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service_services_pb.rb deleted file mode 100644 index 9402353f1..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service_services_pb.rb +++ /dev/null @@ -1,66 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/keyword_plan_campaign_keyword_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/keyword_plan_campaign_keyword_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanCampaignKeywordService - # Proto file describing the keyword plan campaign keyword service. - # - # Service to manage Keyword Plan campaign keywords. KeywordPlanCampaign is - # required to add the campaign keywords. Only negative keywords are supported. - # A maximum of 1000 negative keywords are allowed per plan. This includes both - # campaign negative keywords and ad group negative keywords. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.KeywordPlanCampaignKeywordService' - - # Creates, updates, or removes Keyword Plan campaign keywords. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanAdGroupKeywordError]() - # [KeywordPlanCampaignKeywordError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - rpc :MutateKeywordPlanCampaignKeywords, ::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignKeywordsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignKeywordsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service.rb deleted file mode 100644 index c755515ca..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/keyword_plan_campaign_service/credentials" -require "google/ads/google_ads/v12/services/keyword_plan_campaign_service/paths" -require "google/ads/google_ads/v12/services/keyword_plan_campaign_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage Keyword Plan campaigns. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/keyword_plan_campaign_service" - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignService::Client.new - # - module KeywordPlanCampaignService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "keyword_plan_campaign_service", "helpers.rb" -require "google/ads/google_ads/v12/services/keyword_plan_campaign_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service/client.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service/client.rb deleted file mode 100644 index f8844dc25..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service/client.rb +++ /dev/null @@ -1,418 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/keyword_plan_campaign_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanCampaignService - ## - # Client for the KeywordPlanCampaignService service. - # - # Service to manage Keyword Plan campaigns. - # - class Client - include Paths - - # @private - attr_reader :keyword_plan_campaign_service_stub - - ## - # Configure the KeywordPlanCampaignService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all KeywordPlanCampaignService clients - # ::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the KeywordPlanCampaignService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new KeywordPlanCampaignService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the KeywordPlanCampaignService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/keyword_plan_campaign_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @keyword_plan_campaign_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanCampaignError]() - # [KeywordPlanError]() - # [ListOperationError]() - # [MutateError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # - # @overload mutate_keyword_plan_campaigns(request, options = nil) - # Pass arguments to `mutate_keyword_plan_campaigns` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_keyword_plan_campaigns(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_keyword_plan_campaigns` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose Keyword Plan campaigns are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignOperation, ::Hash>] - # Required. The list of operations to perform on individual Keyword Plan campaigns. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignsRequest.new - # - # # Call the mutate_keyword_plan_campaigns method. - # result = client.mutate_keyword_plan_campaigns request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignsResponse. - # p result - # - def mutate_keyword_plan_campaigns request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_keyword_plan_campaigns.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_keyword_plan_campaigns.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_keyword_plan_campaigns.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_campaign_service_stub.call_rpc :mutate_keyword_plan_campaigns, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the KeywordPlanCampaignService API. - # - # This class represents the configuration for KeywordPlanCampaignService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_keyword_plan_campaigns to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plan_campaigns.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanCampaignService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plan_campaigns.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the KeywordPlanCampaignService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_keyword_plan_campaigns` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_keyword_plan_campaigns - - # @private - def initialize parent_rpcs = nil - mutate_keyword_plan_campaigns_config = parent_rpcs.mutate_keyword_plan_campaigns if parent_rpcs.respond_to? :mutate_keyword_plan_campaigns - @mutate_keyword_plan_campaigns = ::Gapic::Config::Method.new mutate_keyword_plan_campaigns_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service/credentials.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service/credentials.rb deleted file mode 100644 index c54285a4f..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanCampaignService - # Credentials for the KeywordPlanCampaignService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service/paths.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service/paths.rb deleted file mode 100644 index 95014ad22..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service/paths.rb +++ /dev/null @@ -1,97 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanCampaignService - # Path helper methods for the KeywordPlanCampaignService API. - module Paths - ## - # Create a fully-qualified GeoTargetConstant resource string. - # - # The resource will be in the following format: - # - # `geoTargetConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def geo_target_constant_path criterion_id: - "geoTargetConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified KeywordPlan resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlans/{keyword_plan_id}` - # - # @param customer_id [String] - # @param keyword_plan_id [String] - # - # @return [::String] - def keyword_plan_path customer_id:, keyword_plan_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlans/#{keyword_plan_id}" - end - - ## - # Create a fully-qualified KeywordPlanCampaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` - # - # @param customer_id [String] - # @param keyword_plan_campaign_id [String] - # - # @return [::String] - def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}" - end - - ## - # Create a fully-qualified LanguageConstant resource string. - # - # The resource will be in the following format: - # - # `languageConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def language_constant_path criterion_id: - "languageConstants/#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service_pb.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service_pb.rb deleted file mode 100644 index 592589d7a..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/keyword_plan_campaign_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/keyword_plan_campaign_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/keyword_plan_campaign_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateKeywordPlanCampaignsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.KeywordPlanCampaignOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.KeywordPlanCampaignOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.KeywordPlanCampaign" - optional :update, :message, 2, "google.ads.googleads.v12.resources.KeywordPlanCampaign" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateKeywordPlanCampaignsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateKeywordPlanCampaignResult" - end - add_message "google.ads.googleads.v12.services.MutateKeywordPlanCampaignResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateKeywordPlanCampaignsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateKeywordPlanCampaignsRequest").msgclass - KeywordPlanCampaignOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.KeywordPlanCampaignOperation").msgclass - MutateKeywordPlanCampaignsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateKeywordPlanCampaignsResponse").msgclass - MutateKeywordPlanCampaignResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateKeywordPlanCampaignResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service_services_pb.rb deleted file mode 100644 index 58aa52f51..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_campaign_service_services_pb.rb +++ /dev/null @@ -1,67 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/keyword_plan_campaign_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/keyword_plan_campaign_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanCampaignService - # Proto file describing the keyword plan campaign service. - # - # Service to manage Keyword Plan campaigns. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.KeywordPlanCampaignService' - - # Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanCampaignError]() - # [KeywordPlanError]() - # [ListOperationError]() - # [MutateError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - rpc :MutateKeywordPlanCampaigns, ::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlanCampaignsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_idea_service.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_idea_service.rb deleted file mode 100644 index faac25bcd..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_idea_service.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/keyword_plan_idea_service/credentials" -require "google/ads/google_ads/v12/services/keyword_plan_idea_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to generate keyword ideas. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/keyword_plan_idea_service" - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanIdeaService::Client.new - # - module KeywordPlanIdeaService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "keyword_plan_idea_service", "helpers.rb" -require "google/ads/google_ads/v12/services/keyword_plan_idea_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_idea_service/client.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_idea_service/client.rb deleted file mode 100644 index 0586a96ea..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_idea_service/client.rb +++ /dev/null @@ -1,684 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/keyword_plan_idea_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanIdeaService - ## - # Client for the KeywordPlanIdeaService service. - # - # Service to generate keyword ideas. - # - class Client - # @private - attr_reader :keyword_plan_idea_service_stub - - ## - # Configure the KeywordPlanIdeaService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::KeywordPlanIdeaService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all KeywordPlanIdeaService clients - # ::Google::Ads::GoogleAds::V12::Services::KeywordPlanIdeaService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the KeywordPlanIdeaService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::KeywordPlanIdeaService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new KeywordPlanIdeaService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanIdeaService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanIdeaService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the KeywordPlanIdeaService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/keyword_plan_idea_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @keyword_plan_idea_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::KeywordPlanIdeaService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Returns a list of keyword ideas. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanIdeaError]() - # [QuotaError]() - # [RequestError]() - # - # @overload generate_keyword_ideas(request, options = nil) - # Pass arguments to `generate_keyword_ideas` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::GenerateKeywordIdeasRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::GenerateKeywordIdeasRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_keyword_ideas(customer_id: nil, language: nil, geo_target_constants: nil, include_adult_keywords: nil, page_token: nil, page_size: nil, keyword_plan_network: nil, keyword_annotation: nil, aggregate_metrics: nil, historical_metrics_options: nil, keyword_and_url_seed: nil, keyword_seed: nil, url_seed: nil, site_seed: nil) - # Pass arguments to `generate_keyword_ideas` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # The ID of the customer with the recommendation. - # @param language [::String] - # The resource name of the language to target. - # Each keyword belongs to some set of languages; a keyword is included if - # language is one of its languages. - # If not set, all keywords will be included. - # @param geo_target_constants [::Array<::String>] - # The resource names of the location to target. Maximum is 10. - # An empty list MAY be used to specify all targeting geos. - # @param include_adult_keywords [::Boolean] - # If true, adult keywords will be included in response. - # The default value is false. - # @param page_token [::String] - # Token of the page to retrieve. If not specified, the first - # page of results will be returned. To request next page of results use the - # value obtained from `next_page_token` in the previous response. - # The request fields must match across pages. - # @param page_size [::Integer] - # Number of results to retrieve in a single page. - # A maximum of 10,000 results may be returned, if the page_size - # exceeds this, it is ignored. - # If unspecified, at most 10,000 results will be returned. - # The server may decide to further limit the number of returned resources. - # If the response contains fewer than 10,000 results it may not be assumed - # as last page of results. - # @param keyword_plan_network [::Google::Ads::GoogleAds::V12::Enums::KeywordPlanNetworkEnum::KeywordPlanNetwork] - # Targeting network. - # If not set, Google Search And Partners Network will be used. - # @param keyword_annotation [::Array<::Google::Ads::GoogleAds::V12::Enums::KeywordPlanKeywordAnnotationEnum::KeywordPlanKeywordAnnotation>] - # The keyword annotations to include in response. - # @param aggregate_metrics [::Google::Ads::GoogleAds::V12::Common::KeywordPlanAggregateMetrics, ::Hash] - # The aggregate fields to include in response. - # @param historical_metrics_options [::Google::Ads::GoogleAds::V12::Common::HistoricalMetricsOptions, ::Hash] - # The options for historical metrics data. - # @param keyword_and_url_seed [::Google::Ads::GoogleAds::V12::Services::KeywordAndUrlSeed, ::Hash] - # A Keyword and a specific Url to generate ideas from - # for example, cars, www.example.com/cars. - # @param keyword_seed [::Google::Ads::GoogleAds::V12::Services::KeywordSeed, ::Hash] - # A Keyword or phrase to generate ideas from, for example, cars. - # @param url_seed [::Google::Ads::GoogleAds::V12::Services::UrlSeed, ::Hash] - # A specific url to generate ideas from, for example, www.example.com/cars. - # @param site_seed [::Google::Ads::GoogleAds::V12::Services::SiteSeed, ::Hash] - # The site to generate ideas from, for example, www.example.com. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V12::Services::GenerateKeywordIdeaResult>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V12::Services::GenerateKeywordIdeaResult>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::KeywordPlanIdeaService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::GenerateKeywordIdeasRequest.new - # - # # Call the generate_keyword_ideas method. - # result = client.generate_keyword_ideas request - # - # # The returned object is of type Gapic::PagedEnumerable. You can - # # iterate over all elements by calling #each, and the enumerable - # # will lazily make API calls to fetch subsequent pages. Other - # # methods are also available for managing paging directly. - # result.each do |response| - # # Each element is of type ::Google::Ads::GoogleAds::V12::Services::GenerateKeywordIdeaResult. - # p response - # end - # - def generate_keyword_ideas request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::GenerateKeywordIdeasRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_keyword_ideas.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_keyword_ideas.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_keyword_ideas.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_idea_service_stub.call_rpc :generate_keyword_ideas, request, - options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @keyword_plan_idea_service_stub, :generate_keyword_ideas, - request, response, operation, options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns a list of keyword historical metrics. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload generate_keyword_historical_metrics(request, options = nil) - # Pass arguments to `generate_keyword_historical_metrics` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::GenerateKeywordHistoricalMetricsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::GenerateKeywordHistoricalMetricsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_keyword_historical_metrics(customer_id: nil, keywords: nil, language: nil, include_adult_keywords: nil, geo_target_constants: nil, keyword_plan_network: nil, aggregate_metrics: nil, historical_metrics_options: nil) - # Pass arguments to `generate_keyword_historical_metrics` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # The ID of the customer with the recommendation. - # @param keywords [::Array<::String>] - # A list of keywords to get historical metrics. - # Not all inputs will be returned as a result of near-exact deduplication. - # For example, if stats for "car" and "cars" are requested, only "car" will - # be returned. - # A maximum of 10,000 keywords can be used. - # @param language [::String] - # The resource name of the language to target. - # Each keyword belongs to some set of languages; a keyword is included if - # language is one of its languages. - # If not set, all keywords will be included. - # @param include_adult_keywords [::Boolean] - # If true, adult keywords will be included in response. - # The default value is false. - # @param geo_target_constants [::Array<::String>] - # The resource names of the location to target. Maximum is 10. - # An empty list MAY be used to specify all targeting geos. - # @param keyword_plan_network [::Google::Ads::GoogleAds::V12::Enums::KeywordPlanNetworkEnum::KeywordPlanNetwork] - # Targeting network. - # If not set, Google Search And Partners Network will be used. - # @param aggregate_metrics [::Google::Ads::GoogleAds::V12::Common::KeywordPlanAggregateMetrics, ::Hash] - # The aggregate fields to include in response. - # @param historical_metrics_options [::Google::Ads::GoogleAds::V12::Common::HistoricalMetricsOptions, ::Hash] - # The options for historical metrics data. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::GenerateKeywordHistoricalMetricsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::GenerateKeywordHistoricalMetricsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::KeywordPlanIdeaService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::GenerateKeywordHistoricalMetricsRequest.new - # - # # Call the generate_keyword_historical_metrics method. - # result = client.generate_keyword_historical_metrics request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::GenerateKeywordHistoricalMetricsResponse. - # p result - # - def generate_keyword_historical_metrics request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::GenerateKeywordHistoricalMetricsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_keyword_historical_metrics.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_keyword_historical_metrics.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_keyword_historical_metrics.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_idea_service_stub.call_rpc :generate_keyword_historical_metrics, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns a list of suggested AdGroups and suggested modifications - # (text, match type) for the given keywords. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload generate_ad_group_themes(request, options = nil) - # Pass arguments to `generate_ad_group_themes` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::GenerateAdGroupThemesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::GenerateAdGroupThemesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_ad_group_themes(customer_id: nil, keywords: nil, ad_groups: nil) - # Pass arguments to `generate_ad_group_themes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param keywords [::Array<::String>] - # Required. A list of keywords to group into the provided AdGroups. - # @param ad_groups [::Array<::String>] - # Required. A list of resource names of AdGroups to group keywords into. - # Resource name format: `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::GenerateAdGroupThemesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::GenerateAdGroupThemesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::KeywordPlanIdeaService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::GenerateAdGroupThemesRequest.new - # - # # Call the generate_ad_group_themes method. - # result = client.generate_ad_group_themes request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::GenerateAdGroupThemesResponse. - # p result - # - def generate_ad_group_themes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::GenerateAdGroupThemesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_ad_group_themes.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_ad_group_themes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_ad_group_themes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_idea_service_stub.call_rpc :generate_ad_group_themes, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the KeywordPlanIdeaService API. - # - # This class represents the configuration for KeywordPlanIdeaService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::KeywordPlanIdeaService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # generate_keyword_ideas to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::KeywordPlanIdeaService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.generate_keyword_ideas.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanIdeaService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.generate_keyword_ideas.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the KeywordPlanIdeaService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `generate_keyword_ideas` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_keyword_ideas - ## - # RPC-specific configuration for `generate_keyword_historical_metrics` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_keyword_historical_metrics - ## - # RPC-specific configuration for `generate_ad_group_themes` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_ad_group_themes - - # @private - def initialize parent_rpcs = nil - generate_keyword_ideas_config = parent_rpcs.generate_keyword_ideas if parent_rpcs.respond_to? :generate_keyword_ideas - @generate_keyword_ideas = ::Gapic::Config::Method.new generate_keyword_ideas_config - generate_keyword_historical_metrics_config = parent_rpcs.generate_keyword_historical_metrics if parent_rpcs.respond_to? :generate_keyword_historical_metrics - @generate_keyword_historical_metrics = ::Gapic::Config::Method.new generate_keyword_historical_metrics_config - generate_ad_group_themes_config = parent_rpcs.generate_ad_group_themes if parent_rpcs.respond_to? :generate_ad_group_themes - @generate_ad_group_themes = ::Gapic::Config::Method.new generate_ad_group_themes_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_idea_service/credentials.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_idea_service/credentials.rb deleted file mode 100644 index 4e2a0e2f7..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_idea_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanIdeaService - # Credentials for the KeywordPlanIdeaService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_idea_service_pb.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_idea_service_pb.rb deleted file mode 100644 index 7c97c7ec0..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_idea_service_pb.rb +++ /dev/null @@ -1,124 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/keyword_plan_idea_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/keyword_plan_common_pb' -require 'google/ads/google_ads/v12/enums/keyword_match_type_pb' -require 'google/ads/google_ads/v12/enums/keyword_plan_keyword_annotation_pb' -require 'google/ads/google_ads/v12/enums/keyword_plan_network_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/keyword_plan_idea_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.GenerateKeywordIdeasRequest" do - optional :customer_id, :string, 1 - proto3_optional :language, :string, 14 - repeated :geo_target_constants, :string, 15 - optional :include_adult_keywords, :bool, 10 - optional :page_token, :string, 12 - optional :page_size, :int32, 13 - optional :keyword_plan_network, :enum, 9, "google.ads.googleads.v12.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork" - repeated :keyword_annotation, :enum, 17, "google.ads.googleads.v12.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation" - optional :aggregate_metrics, :message, 16, "google.ads.googleads.v12.common.KeywordPlanAggregateMetrics" - optional :historical_metrics_options, :message, 18, "google.ads.googleads.v12.common.HistoricalMetricsOptions" - oneof :seed do - optional :keyword_and_url_seed, :message, 2, "google.ads.googleads.v12.services.KeywordAndUrlSeed" - optional :keyword_seed, :message, 3, "google.ads.googleads.v12.services.KeywordSeed" - optional :url_seed, :message, 5, "google.ads.googleads.v12.services.UrlSeed" - optional :site_seed, :message, 11, "google.ads.googleads.v12.services.SiteSeed" - end - end - add_message "google.ads.googleads.v12.services.KeywordAndUrlSeed" do - proto3_optional :url, :string, 3 - repeated :keywords, :string, 4 - end - add_message "google.ads.googleads.v12.services.KeywordSeed" do - repeated :keywords, :string, 2 - end - add_message "google.ads.googleads.v12.services.SiteSeed" do - proto3_optional :site, :string, 2 - end - add_message "google.ads.googleads.v12.services.UrlSeed" do - proto3_optional :url, :string, 2 - end - add_message "google.ads.googleads.v12.services.GenerateKeywordIdeaResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.GenerateKeywordIdeaResult" - optional :aggregate_metric_results, :message, 4, "google.ads.googleads.v12.common.KeywordPlanAggregateMetricResults" - optional :next_page_token, :string, 2 - optional :total_size, :int64, 3 - end - add_message "google.ads.googleads.v12.services.GenerateKeywordIdeaResult" do - proto3_optional :text, :string, 5 - optional :keyword_idea_metrics, :message, 3, "google.ads.googleads.v12.common.KeywordPlanHistoricalMetrics" - optional :keyword_annotations, :message, 6, "google.ads.googleads.v12.common.KeywordAnnotations" - repeated :close_variants, :string, 7 - end - add_message "google.ads.googleads.v12.services.GenerateKeywordHistoricalMetricsRequest" do - optional :customer_id, :string, 1 - repeated :keywords, :string, 2 - proto3_optional :language, :string, 4 - optional :include_adult_keywords, :bool, 5 - repeated :geo_target_constants, :string, 6 - optional :keyword_plan_network, :enum, 7, "google.ads.googleads.v12.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork" - optional :aggregate_metrics, :message, 8, "google.ads.googleads.v12.common.KeywordPlanAggregateMetrics" - optional :historical_metrics_options, :message, 3, "google.ads.googleads.v12.common.HistoricalMetricsOptions" - end - add_message "google.ads.googleads.v12.services.GenerateKeywordHistoricalMetricsResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.GenerateKeywordHistoricalMetricsResult" - optional :aggregate_metric_results, :message, 2, "google.ads.googleads.v12.common.KeywordPlanAggregateMetricResults" - end - add_message "google.ads.googleads.v12.services.GenerateKeywordHistoricalMetricsResult" do - proto3_optional :text, :string, 1 - repeated :close_variants, :string, 3 - optional :keyword_metrics, :message, 2, "google.ads.googleads.v12.common.KeywordPlanHistoricalMetrics" - end - add_message "google.ads.googleads.v12.services.GenerateAdGroupThemesRequest" do - optional :customer_id, :string, 1 - repeated :keywords, :string, 2 - repeated :ad_groups, :string, 3 - end - add_message "google.ads.googleads.v12.services.GenerateAdGroupThemesResponse" do - repeated :ad_group_keyword_suggestions, :message, 1, "google.ads.googleads.v12.services.AdGroupKeywordSuggestion" - repeated :unusable_ad_groups, :message, 2, "google.ads.googleads.v12.services.UnusableAdGroup" - end - add_message "google.ads.googleads.v12.services.AdGroupKeywordSuggestion" do - optional :keyword_text, :string, 1 - optional :suggested_keyword_text, :string, 2 - optional :suggested_match_type, :enum, 3, "google.ads.googleads.v12.enums.KeywordMatchTypeEnum.KeywordMatchType" - optional :suggested_ad_group, :string, 4 - optional :suggested_campaign, :string, 5 - end - add_message "google.ads.googleads.v12.services.UnusableAdGroup" do - optional :ad_group, :string, 1 - optional :campaign, :string, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - GenerateKeywordIdeasRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateKeywordIdeasRequest").msgclass - KeywordAndUrlSeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.KeywordAndUrlSeed").msgclass - KeywordSeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.KeywordSeed").msgclass - SiteSeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SiteSeed").msgclass - UrlSeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.UrlSeed").msgclass - GenerateKeywordIdeaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateKeywordIdeaResponse").msgclass - GenerateKeywordIdeaResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateKeywordIdeaResult").msgclass - GenerateKeywordHistoricalMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateKeywordHistoricalMetricsRequest").msgclass - GenerateKeywordHistoricalMetricsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateKeywordHistoricalMetricsResponse").msgclass - GenerateKeywordHistoricalMetricsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateKeywordHistoricalMetricsResult").msgclass - GenerateAdGroupThemesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateAdGroupThemesRequest").msgclass - GenerateAdGroupThemesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateAdGroupThemesResponse").msgclass - AdGroupKeywordSuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdGroupKeywordSuggestion").msgclass - UnusableAdGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.UnusableAdGroup").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_idea_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_idea_service_services_pb.rb deleted file mode 100644 index 4986ccc10..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_idea_service_services_pb.rb +++ /dev/null @@ -1,82 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/keyword_plan_idea_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/keyword_plan_idea_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanIdeaService - # Proto file describing the keyword plan idea service. - # - # Service to generate keyword ideas. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.KeywordPlanIdeaService' - - # Returns a list of keyword ideas. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanIdeaError]() - # [QuotaError]() - # [RequestError]() - rpc :GenerateKeywordIdeas, ::Google::Ads::GoogleAds::V12::Services::GenerateKeywordIdeasRequest, ::Google::Ads::GoogleAds::V12::Services::GenerateKeywordIdeaResponse - # Returns a list of keyword historical metrics. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :GenerateKeywordHistoricalMetrics, ::Google::Ads::GoogleAds::V12::Services::GenerateKeywordHistoricalMetricsRequest, ::Google::Ads::GoogleAds::V12::Services::GenerateKeywordHistoricalMetricsResponse - # Returns a list of suggested AdGroups and suggested modifications - # (text, match type) for the given keywords. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :GenerateAdGroupThemes, ::Google::Ads::GoogleAds::V12::Services::GenerateAdGroupThemesRequest, ::Google::Ads::GoogleAds::V12::Services::GenerateAdGroupThemesResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_service.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_service.rb deleted file mode 100644 index 17caf6176..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/keyword_plan_service/credentials" -require "google/ads/google_ads/v12/services/keyword_plan_service/paths" -require "google/ads/google_ads/v12/services/keyword_plan_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage keyword plans. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/keyword_plan_service" - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanService::Client.new - # - module KeywordPlanService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "keyword_plan_service", "helpers.rb" -require "google/ads/google_ads/v12/services/keyword_plan_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_service/client.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_service/client.rb deleted file mode 100644 index 31215d5ce..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_service/client.rb +++ /dev/null @@ -1,844 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/keyword_plan_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanService - ## - # Client for the KeywordPlanService service. - # - # Service to manage keyword plans. - # - class Client - include Paths - - # @private - attr_reader :keyword_plan_service_stub - - ## - # Configure the KeywordPlanService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::KeywordPlanService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all KeywordPlanService clients - # ::Google::Ads::GoogleAds::V12::Services::KeywordPlanService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the KeywordPlanService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::KeywordPlanService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new KeywordPlanService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the KeywordPlanService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/keyword_plan_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @keyword_plan_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::KeywordPlanService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes keyword plans. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [StringLengthError]() - # - # @overload mutate_keyword_plans(request, options = nil) - # Pass arguments to `mutate_keyword_plans` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlansRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlansRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_keyword_plans(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_keyword_plans` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose keyword plans are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::KeywordPlanOperation, ::Hash>] - # Required. The list of operations to perform on individual keyword plans. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlansResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlansResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::KeywordPlanService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateKeywordPlansRequest.new - # - # # Call the mutate_keyword_plans method. - # result = client.mutate_keyword_plans request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateKeywordPlansResponse. - # p result - # - def mutate_keyword_plans request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlansRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_keyword_plans.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_keyword_plans.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_keyword_plans.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_service_stub.call_rpc :mutate_keyword_plans, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns the requested Keyword Plan forecast curve. - # Only the bidding strategy is considered for generating forecast curve. - # The bidding strategy value specified in the plan is ignored. - # - # To generate a forecast at a value specified in the plan, use - # KeywordPlanService.GenerateForecastMetrics. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanError]() - # [QuotaError]() - # [RequestError]() - # - # @overload generate_forecast_curve(request, options = nil) - # Pass arguments to `generate_forecast_curve` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::GenerateForecastCurveRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::GenerateForecastCurveRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_forecast_curve(keyword_plan: nil) - # Pass arguments to `generate_forecast_curve` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param keyword_plan [::String] - # Required. The resource name of the keyword plan to be forecasted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::GenerateForecastCurveResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::GenerateForecastCurveResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::KeywordPlanService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::GenerateForecastCurveRequest.new - # - # # Call the generate_forecast_curve method. - # result = client.generate_forecast_curve request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::GenerateForecastCurveResponse. - # p result - # - def generate_forecast_curve request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::GenerateForecastCurveRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_forecast_curve.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.keyword_plan - header_params["keyword_plan"] = request.keyword_plan - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_forecast_curve.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_forecast_curve.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_service_stub.call_rpc :generate_forecast_curve, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns a forecast in the form of a time series for the Keyword Plan over - # the next 52 weeks. - # (1) Forecasts closer to the current date are generally more accurate than - # further out. - # - # (2) The forecast reflects seasonal trends using current and - # prior traffic patterns. The forecast period of the plan is ignored. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanError]() - # [QuotaError]() - # [RequestError]() - # - # @overload generate_forecast_time_series(request, options = nil) - # Pass arguments to `generate_forecast_time_series` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::GenerateForecastTimeSeriesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::GenerateForecastTimeSeriesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_forecast_time_series(keyword_plan: nil) - # Pass arguments to `generate_forecast_time_series` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param keyword_plan [::String] - # Required. The resource name of the keyword plan to be forecasted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::GenerateForecastTimeSeriesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::GenerateForecastTimeSeriesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::KeywordPlanService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::GenerateForecastTimeSeriesRequest.new - # - # # Call the generate_forecast_time_series method. - # result = client.generate_forecast_time_series request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::GenerateForecastTimeSeriesResponse. - # p result - # - def generate_forecast_time_series request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::GenerateForecastTimeSeriesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_forecast_time_series.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.keyword_plan - header_params["keyword_plan"] = request.keyword_plan - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_forecast_time_series.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_forecast_time_series.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_service_stub.call_rpc :generate_forecast_time_series, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns the requested Keyword Plan forecasts. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanError]() - # [QuotaError]() - # [RequestError]() - # - # @overload generate_forecast_metrics(request, options = nil) - # Pass arguments to `generate_forecast_metrics` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::GenerateForecastMetricsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::GenerateForecastMetricsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_forecast_metrics(keyword_plan: nil) - # Pass arguments to `generate_forecast_metrics` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param keyword_plan [::String] - # Required. The resource name of the keyword plan to be forecasted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::GenerateForecastMetricsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::GenerateForecastMetricsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::KeywordPlanService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::GenerateForecastMetricsRequest.new - # - # # Call the generate_forecast_metrics method. - # result = client.generate_forecast_metrics request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::GenerateForecastMetricsResponse. - # p result - # - def generate_forecast_metrics request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::GenerateForecastMetricsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_forecast_metrics.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.keyword_plan - header_params["keyword_plan"] = request.keyword_plan - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_forecast_metrics.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_forecast_metrics.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_service_stub.call_rpc :generate_forecast_metrics, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns the requested Keyword Plan historical metrics. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanError]() - # [QuotaError]() - # [RequestError]() - # - # @overload generate_historical_metrics(request, options = nil) - # Pass arguments to `generate_historical_metrics` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::GenerateHistoricalMetricsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::GenerateHistoricalMetricsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_historical_metrics(keyword_plan: nil, aggregate_metrics: nil, historical_metrics_options: nil) - # Pass arguments to `generate_historical_metrics` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param keyword_plan [::String] - # Required. The resource name of the keyword plan of which historical metrics are - # requested. - # @param aggregate_metrics [::Google::Ads::GoogleAds::V12::Common::KeywordPlanAggregateMetrics, ::Hash] - # The aggregate fields to include in response. - # @param historical_metrics_options [::Google::Ads::GoogleAds::V12::Common::HistoricalMetricsOptions, ::Hash] - # The options for historical metrics data. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::GenerateHistoricalMetricsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::GenerateHistoricalMetricsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::KeywordPlanService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::GenerateHistoricalMetricsRequest.new - # - # # Call the generate_historical_metrics method. - # result = client.generate_historical_metrics request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::GenerateHistoricalMetricsResponse. - # p result - # - def generate_historical_metrics request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::GenerateHistoricalMetricsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_historical_metrics.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.keyword_plan - header_params["keyword_plan"] = request.keyword_plan - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_historical_metrics.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_historical_metrics.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_service_stub.call_rpc :generate_historical_metrics, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the KeywordPlanService API. - # - # This class represents the configuration for KeywordPlanService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::KeywordPlanService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_keyword_plans to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::KeywordPlanService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plans.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordPlanService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plans.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the KeywordPlanService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_keyword_plans` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_keyword_plans - ## - # RPC-specific configuration for `generate_forecast_curve` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_forecast_curve - ## - # RPC-specific configuration for `generate_forecast_time_series` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_forecast_time_series - ## - # RPC-specific configuration for `generate_forecast_metrics` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_forecast_metrics - ## - # RPC-specific configuration for `generate_historical_metrics` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_historical_metrics - - # @private - def initialize parent_rpcs = nil - mutate_keyword_plans_config = parent_rpcs.mutate_keyword_plans if parent_rpcs.respond_to? :mutate_keyword_plans - @mutate_keyword_plans = ::Gapic::Config::Method.new mutate_keyword_plans_config - generate_forecast_curve_config = parent_rpcs.generate_forecast_curve if parent_rpcs.respond_to? :generate_forecast_curve - @generate_forecast_curve = ::Gapic::Config::Method.new generate_forecast_curve_config - generate_forecast_time_series_config = parent_rpcs.generate_forecast_time_series if parent_rpcs.respond_to? :generate_forecast_time_series - @generate_forecast_time_series = ::Gapic::Config::Method.new generate_forecast_time_series_config - generate_forecast_metrics_config = parent_rpcs.generate_forecast_metrics if parent_rpcs.respond_to? :generate_forecast_metrics - @generate_forecast_metrics = ::Gapic::Config::Method.new generate_forecast_metrics_config - generate_historical_metrics_config = parent_rpcs.generate_historical_metrics if parent_rpcs.respond_to? :generate_historical_metrics - @generate_historical_metrics = ::Gapic::Config::Method.new generate_historical_metrics_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_service/credentials.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_service/credentials.rb deleted file mode 100644 index 3359592c8..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanService - # Credentials for the KeywordPlanService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_service/paths.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_service/paths.rb deleted file mode 100644 index 6c8f52569..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanService - # Path helper methods for the KeywordPlanService API. - module Paths - ## - # Create a fully-qualified KeywordPlan resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlans/{keyword_plan_id}` - # - # @param customer_id [String] - # @param keyword_plan_id [String] - # - # @return [::String] - def keyword_plan_path customer_id:, keyword_plan_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlans/#{keyword_plan_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_service_pb.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_service_pb.rb deleted file mode 100644 index d82690be1..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_service_pb.rb +++ /dev/null @@ -1,144 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/keyword_plan_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/keyword_plan_common_pb' -require 'google/ads/google_ads/v12/resources/keyword_plan_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/keyword_plan_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateKeywordPlansRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.KeywordPlanOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.KeywordPlanOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.KeywordPlan" - optional :update, :message, 2, "google.ads.googleads.v12.resources.KeywordPlan" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateKeywordPlansResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateKeywordPlansResult" - end - add_message "google.ads.googleads.v12.services.MutateKeywordPlansResult" do - optional :resource_name, :string, 1 - end - add_message "google.ads.googleads.v12.services.GenerateForecastCurveRequest" do - optional :keyword_plan, :string, 1 - end - add_message "google.ads.googleads.v12.services.GenerateForecastCurveResponse" do - repeated :campaign_forecast_curves, :message, 1, "google.ads.googleads.v12.services.KeywordPlanCampaignForecastCurve" - end - add_message "google.ads.googleads.v12.services.GenerateForecastTimeSeriesRequest" do - optional :keyword_plan, :string, 1 - end - add_message "google.ads.googleads.v12.services.GenerateForecastTimeSeriesResponse" do - repeated :weekly_time_series_forecasts, :message, 1, "google.ads.googleads.v12.services.KeywordPlanWeeklyTimeSeriesForecast" - end - add_message "google.ads.googleads.v12.services.GenerateForecastMetricsRequest" do - optional :keyword_plan, :string, 1 - end - add_message "google.ads.googleads.v12.services.GenerateForecastMetricsResponse" do - repeated :campaign_forecasts, :message, 1, "google.ads.googleads.v12.services.KeywordPlanCampaignForecast" - repeated :ad_group_forecasts, :message, 2, "google.ads.googleads.v12.services.KeywordPlanAdGroupForecast" - repeated :keyword_forecasts, :message, 3, "google.ads.googleads.v12.services.KeywordPlanKeywordForecast" - end - add_message "google.ads.googleads.v12.services.KeywordPlanCampaignForecast" do - proto3_optional :keyword_plan_campaign, :string, 3 - optional :campaign_forecast, :message, 2, "google.ads.googleads.v12.services.ForecastMetrics" - end - add_message "google.ads.googleads.v12.services.KeywordPlanAdGroupForecast" do - proto3_optional :keyword_plan_ad_group, :string, 3 - optional :ad_group_forecast, :message, 2, "google.ads.googleads.v12.services.ForecastMetrics" - end - add_message "google.ads.googleads.v12.services.KeywordPlanKeywordForecast" do - proto3_optional :keyword_plan_ad_group_keyword, :string, 3 - optional :keyword_forecast, :message, 2, "google.ads.googleads.v12.services.ForecastMetrics" - end - add_message "google.ads.googleads.v12.services.KeywordPlanCampaignForecastCurve" do - proto3_optional :keyword_plan_campaign, :string, 3 - optional :max_cpc_bid_forecast_curve, :message, 2, "google.ads.googleads.v12.services.KeywordPlanMaxCpcBidForecastCurve" - end - add_message "google.ads.googleads.v12.services.KeywordPlanMaxCpcBidForecastCurve" do - repeated :max_cpc_bid_forecasts, :message, 1, "google.ads.googleads.v12.services.KeywordPlanMaxCpcBidForecast" - end - add_message "google.ads.googleads.v12.services.KeywordPlanMaxCpcBidForecast" do - proto3_optional :max_cpc_bid_micros, :int64, 3 - optional :max_cpc_bid_forecast, :message, 2, "google.ads.googleads.v12.services.ForecastMetrics" - end - add_message "google.ads.googleads.v12.services.KeywordPlanWeeklyTimeSeriesForecast" do - proto3_optional :keyword_plan_campaign, :string, 1 - repeated :weekly_forecasts, :message, 2, "google.ads.googleads.v12.services.KeywordPlanWeeklyForecast" - end - add_message "google.ads.googleads.v12.services.KeywordPlanWeeklyForecast" do - proto3_optional :start_date, :string, 1 - optional :forecast, :message, 2, "google.ads.googleads.v12.services.ForecastMetrics" - end - add_message "google.ads.googleads.v12.services.ForecastMetrics" do - proto3_optional :impressions, :double, 7 - proto3_optional :ctr, :double, 8 - proto3_optional :average_cpc, :int64, 9 - proto3_optional :clicks, :double, 10 - proto3_optional :cost_micros, :int64, 11 - end - add_message "google.ads.googleads.v12.services.GenerateHistoricalMetricsRequest" do - optional :keyword_plan, :string, 1 - optional :aggregate_metrics, :message, 2, "google.ads.googleads.v12.common.KeywordPlanAggregateMetrics" - optional :historical_metrics_options, :message, 3, "google.ads.googleads.v12.common.HistoricalMetricsOptions" - end - add_message "google.ads.googleads.v12.services.GenerateHistoricalMetricsResponse" do - repeated :metrics, :message, 1, "google.ads.googleads.v12.services.KeywordPlanKeywordHistoricalMetrics" - optional :aggregate_metric_results, :message, 2, "google.ads.googleads.v12.common.KeywordPlanAggregateMetricResults" - end - add_message "google.ads.googleads.v12.services.KeywordPlanKeywordHistoricalMetrics" do - proto3_optional :search_query, :string, 4 - repeated :close_variants, :string, 3 - optional :keyword_metrics, :message, 2, "google.ads.googleads.v12.common.KeywordPlanHistoricalMetrics" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateKeywordPlansRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateKeywordPlansRequest").msgclass - KeywordPlanOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.KeywordPlanOperation").msgclass - MutateKeywordPlansResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateKeywordPlansResponse").msgclass - MutateKeywordPlansResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateKeywordPlansResult").msgclass - GenerateForecastCurveRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateForecastCurveRequest").msgclass - GenerateForecastCurveResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateForecastCurveResponse").msgclass - GenerateForecastTimeSeriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateForecastTimeSeriesRequest").msgclass - GenerateForecastTimeSeriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateForecastTimeSeriesResponse").msgclass - GenerateForecastMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateForecastMetricsRequest").msgclass - GenerateForecastMetricsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateForecastMetricsResponse").msgclass - KeywordPlanCampaignForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.KeywordPlanCampaignForecast").msgclass - KeywordPlanAdGroupForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.KeywordPlanAdGroupForecast").msgclass - KeywordPlanKeywordForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.KeywordPlanKeywordForecast").msgclass - KeywordPlanCampaignForecastCurve = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.KeywordPlanCampaignForecastCurve").msgclass - KeywordPlanMaxCpcBidForecastCurve = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.KeywordPlanMaxCpcBidForecastCurve").msgclass - KeywordPlanMaxCpcBidForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.KeywordPlanMaxCpcBidForecast").msgclass - KeywordPlanWeeklyTimeSeriesForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.KeywordPlanWeeklyTimeSeriesForecast").msgclass - KeywordPlanWeeklyForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.KeywordPlanWeeklyForecast").msgclass - ForecastMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ForecastMetrics").msgclass - GenerateHistoricalMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateHistoricalMetricsRequest").msgclass - GenerateHistoricalMetricsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateHistoricalMetricsResponse").msgclass - KeywordPlanKeywordHistoricalMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.KeywordPlanKeywordHistoricalMetrics").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_plan_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/keyword_plan_service_services_pb.rb deleted file mode 100644 index 8c435c56c..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_plan_service_services_pb.rb +++ /dev/null @@ -1,120 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/keyword_plan_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/keyword_plan_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordPlanService - # Proto file describing the keyword plan service. - # - # Service to manage keyword plans. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.KeywordPlanService' - - # Creates, updates, or removes keyword plans. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [StringLengthError]() - rpc :MutateKeywordPlans, ::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlansRequest, ::Google::Ads::GoogleAds::V12::Services::MutateKeywordPlansResponse - # Returns the requested Keyword Plan forecast curve. - # Only the bidding strategy is considered for generating forecast curve. - # The bidding strategy value specified in the plan is ignored. - # - # To generate a forecast at a value specified in the plan, use - # KeywordPlanService.GenerateForecastMetrics. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanError]() - # [QuotaError]() - # [RequestError]() - rpc :GenerateForecastCurve, ::Google::Ads::GoogleAds::V12::Services::GenerateForecastCurveRequest, ::Google::Ads::GoogleAds::V12::Services::GenerateForecastCurveResponse - # Returns a forecast in the form of a time series for the Keyword Plan over - # the next 52 weeks. - # (1) Forecasts closer to the current date are generally more accurate than - # further out. - # - # (2) The forecast reflects seasonal trends using current and - # prior traffic patterns. The forecast period of the plan is ignored. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanError]() - # [QuotaError]() - # [RequestError]() - rpc :GenerateForecastTimeSeries, ::Google::Ads::GoogleAds::V12::Services::GenerateForecastTimeSeriesRequest, ::Google::Ads::GoogleAds::V12::Services::GenerateForecastTimeSeriesResponse - # Returns the requested Keyword Plan forecasts. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanError]() - # [QuotaError]() - # [RequestError]() - rpc :GenerateForecastMetrics, ::Google::Ads::GoogleAds::V12::Services::GenerateForecastMetricsRequest, ::Google::Ads::GoogleAds::V12::Services::GenerateForecastMetricsResponse - # Returns the requested Keyword Plan historical metrics. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanError]() - # [QuotaError]() - # [RequestError]() - rpc :GenerateHistoricalMetrics, ::Google::Ads::GoogleAds::V12::Services::GenerateHistoricalMetricsRequest, ::Google::Ads::GoogleAds::V12::Services::GenerateHistoricalMetricsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service.rb b/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service.rb deleted file mode 100644 index 079bb9203..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/keyword_theme_constant_service/credentials" -require "google/ads/google_ads/v12/services/keyword_theme_constant_service/paths" -require "google/ads/google_ads/v12/services/keyword_theme_constant_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to fetch Smart Campaign keyword themes. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/keyword_theme_constant_service" - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordThemeConstantService::Client.new - # - module KeywordThemeConstantService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "keyword_theme_constant_service", "helpers.rb" -require "google/ads/google_ads/v12/services/keyword_theme_constant_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service/client.rb b/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service/client.rb deleted file mode 100644 index 0de278d0e..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service/client.rb +++ /dev/null @@ -1,397 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/keyword_theme_constant_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordThemeConstantService - ## - # Client for the KeywordThemeConstantService service. - # - # Service to fetch Smart Campaign keyword themes. - # - class Client - include Paths - - # @private - attr_reader :keyword_theme_constant_service_stub - - ## - # Configure the KeywordThemeConstantService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::KeywordThemeConstantService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all KeywordThemeConstantService clients - # ::Google::Ads::GoogleAds::V12::Services::KeywordThemeConstantService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the KeywordThemeConstantService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::KeywordThemeConstantService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new KeywordThemeConstantService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordThemeConstantService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordThemeConstantService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the KeywordThemeConstantService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/keyword_theme_constant_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @keyword_theme_constant_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::KeywordThemeConstantService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Returns KeywordThemeConstant suggestions by keyword themes. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload suggest_keyword_theme_constants(request, options = nil) - # Pass arguments to `suggest_keyword_theme_constants` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemeConstantsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemeConstantsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload suggest_keyword_theme_constants(query_text: nil, country_code: nil, language_code: nil) - # Pass arguments to `suggest_keyword_theme_constants` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param query_text [::String] - # The query text of a keyword theme that will be used to map to similar - # keyword themes. For example, "plumber" or "roofer". - # @param country_code [::String] - # Upper-case, two-letter country code as defined by ISO-3166. This for - # refining the scope of the query, default to 'US' if not set. - # @param language_code [::String] - # The two letter language code for get corresponding keyword theme for - # refining the scope of the query, default to 'en' if not set. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemeConstantsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemeConstantsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::KeywordThemeConstantService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemeConstantsRequest.new - # - # # Call the suggest_keyword_theme_constants method. - # result = client.suggest_keyword_theme_constants request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemeConstantsResponse. - # p result - # - def suggest_keyword_theme_constants request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemeConstantsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.suggest_keyword_theme_constants.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.suggest_keyword_theme_constants.timeout, - metadata: metadata, - retry_policy: @config.rpcs.suggest_keyword_theme_constants.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_theme_constant_service_stub.call_rpc :suggest_keyword_theme_constants, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the KeywordThemeConstantService API. - # - # This class represents the configuration for KeywordThemeConstantService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::KeywordThemeConstantService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # suggest_keyword_theme_constants to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::KeywordThemeConstantService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.suggest_keyword_theme_constants.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::KeywordThemeConstantService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.suggest_keyword_theme_constants.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the KeywordThemeConstantService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `suggest_keyword_theme_constants` - # @return [::Gapic::Config::Method] - # - attr_reader :suggest_keyword_theme_constants - - # @private - def initialize parent_rpcs = nil - suggest_keyword_theme_constants_config = parent_rpcs.suggest_keyword_theme_constants if parent_rpcs.respond_to? :suggest_keyword_theme_constants - @suggest_keyword_theme_constants = ::Gapic::Config::Method.new suggest_keyword_theme_constants_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service/credentials.rb b/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service/credentials.rb deleted file mode 100644 index 889479a26..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordThemeConstantService - # Credentials for the KeywordThemeConstantService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service/paths.rb b/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service/paths.rb deleted file mode 100644 index 8a081a81a..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordThemeConstantService - # Path helper methods for the KeywordThemeConstantService API. - module Paths - ## - # Create a fully-qualified KeywordThemeConstant resource string. - # - # The resource will be in the following format: - # - # `keywordThemeConstants/{express_category_id}~{express_sub_category_id}` - # - # @param express_category_id [String] - # @param express_sub_category_id [String] - # - # @return [::String] - def keyword_theme_constant_path express_category_id:, express_sub_category_id: - raise ::ArgumentError, "express_category_id cannot contain /" if express_category_id.to_s.include? "/" - - "keywordThemeConstants/#{express_category_id}~#{express_sub_category_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service_pb.rb b/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service_pb.rb deleted file mode 100644 index 7056d627d..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/keyword_theme_constant_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/keyword_theme_constant_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/keyword_theme_constant_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.SuggestKeywordThemeConstantsRequest" do - optional :query_text, :string, 1 - optional :country_code, :string, 2 - optional :language_code, :string, 3 - end - add_message "google.ads.googleads.v12.services.SuggestKeywordThemeConstantsResponse" do - repeated :keyword_theme_constants, :message, 1, "google.ads.googleads.v12.resources.KeywordThemeConstant" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - SuggestKeywordThemeConstantsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SuggestKeywordThemeConstantsRequest").msgclass - SuggestKeywordThemeConstantsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SuggestKeywordThemeConstantsResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service_services_pb.rb deleted file mode 100644 index 13a1de3a4..000000000 --- a/lib/google/ads/google_ads/v12/services/keyword_theme_constant_service_services_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/keyword_theme_constant_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/keyword_theme_constant_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module KeywordThemeConstantService - # Proto file describing the Smart Campaign keyword theme constant service. - # - # Service to fetch Smart Campaign keyword themes. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.KeywordThemeConstantService' - - # Returns KeywordThemeConstant suggestions by keyword themes. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :SuggestKeywordThemeConstants, ::Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemeConstantsRequest, ::Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemeConstantsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/label_service.rb b/lib/google/ads/google_ads/v12/services/label_service.rb deleted file mode 100644 index 48073cb11..000000000 --- a/lib/google/ads/google_ads/v12/services/label_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/label_service/credentials" -require "google/ads/google_ads/v12/services/label_service/paths" -require "google/ads/google_ads/v12/services/label_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage labels. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/label_service" - # client = ::Google::Ads::GoogleAds::V12::Services::LabelService::Client.new - # - module LabelService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "label_service", "helpers.rb" -require "google/ads/google_ads/v12/services/label_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/label_service/client.rb b/lib/google/ads/google_ads/v12/services/label_service/client.rb deleted file mode 100644 index 716ea417a..000000000 --- a/lib/google/ads/google_ads/v12/services/label_service/client.rb +++ /dev/null @@ -1,427 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/label_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module LabelService - ## - # Client for the LabelService service. - # - # Service to manage labels. - # - class Client - include Paths - - # @private - attr_reader :label_service_stub - - ## - # Configure the LabelService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::LabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all LabelService clients - # ::Google::Ads::GoogleAds::V12::Services::LabelService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the LabelService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::LabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new LabelService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::LabelService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::LabelService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the LabelService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/label_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @label_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::LabelService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes labels. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [LabelError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_labels(request, options = nil) - # Pass arguments to `mutate_labels` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateLabelsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateLabelsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_labels` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose labels are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::LabelOperation, ::Hash>] - # Required. The list of operations to perform on labels. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateLabelsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateLabelsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::LabelService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateLabelsRequest.new - # - # # Call the mutate_labels method. - # result = client.mutate_labels request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateLabelsResponse. - # p result - # - def mutate_labels request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateLabelsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_labels.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_labels.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_labels.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @label_service_stub.call_rpc :mutate_labels, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the LabelService API. - # - # This class represents the configuration for LabelService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::LabelService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_labels to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::LabelService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_labels.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::LabelService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_labels.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the LabelService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_labels` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_labels - - # @private - def initialize parent_rpcs = nil - mutate_labels_config = parent_rpcs.mutate_labels if parent_rpcs.respond_to? :mutate_labels - @mutate_labels = ::Gapic::Config::Method.new mutate_labels_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/label_service/credentials.rb b/lib/google/ads/google_ads/v12/services/label_service/credentials.rb deleted file mode 100644 index abe97c89d..000000000 --- a/lib/google/ads/google_ads/v12/services/label_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module LabelService - # Credentials for the LabelService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/label_service/paths.rb b/lib/google/ads/google_ads/v12/services/label_service/paths.rb deleted file mode 100644 index ada25e70e..000000000 --- a/lib/google/ads/google_ads/v12/services/label_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module LabelService - # Path helper methods for the LabelService API. - module Paths - ## - # Create a fully-qualified Label resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/labels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/labels/#{label_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/label_service_pb.rb b/lib/google/ads/google_ads/v12/services/label_service_pb.rb deleted file mode 100644 index 94e48698d..000000000 --- a/lib/google/ads/google_ads/v12/services/label_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/label_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/label_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/label_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateLabelsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.LabelOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.LabelOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.Label" - optional :update, :message, 2, "google.ads.googleads.v12.resources.Label" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateLabelsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateLabelResult" - end - add_message "google.ads.googleads.v12.services.MutateLabelResult" do - optional :resource_name, :string, 1 - optional :label, :message, 2, "google.ads.googleads.v12.resources.Label" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateLabelsRequest").msgclass - LabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.LabelOperation").msgclass - MutateLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateLabelsResponse").msgclass - MutateLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateLabelResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/label_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/label_service_services_pb.rb deleted file mode 100644 index d26e97849..000000000 --- a/lib/google/ads/google_ads/v12/services/label_service_services_pb.rb +++ /dev/null @@ -1,72 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/label_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/label_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module LabelService - # Service to manage labels. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.LabelService' - - # Creates, updates, or removes labels. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [LabelError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - rpc :MutateLabels, ::Google::Ads::GoogleAds::V12::Services::MutateLabelsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateLabelsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/media_file_service.rb b/lib/google/ads/google_ads/v12/services/media_file_service.rb deleted file mode 100644 index c2b69c3ff..000000000 --- a/lib/google/ads/google_ads/v12/services/media_file_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/media_file_service/credentials" -require "google/ads/google_ads/v12/services/media_file_service/paths" -require "google/ads/google_ads/v12/services/media_file_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage media files. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/media_file_service" - # client = ::Google::Ads::GoogleAds::V12::Services::MediaFileService::Client.new - # - module MediaFileService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "media_file_service", "helpers.rb" -require "google/ads/google_ads/v12/services/media_file_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/media_file_service/client.rb b/lib/google/ads/google_ads/v12/services/media_file_service/client.rb deleted file mode 100644 index 83c57debd..000000000 --- a/lib/google/ads/google_ads/v12/services/media_file_service/client.rb +++ /dev/null @@ -1,426 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/media_file_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module MediaFileService - ## - # Client for the MediaFileService service. - # - # Service to manage media files. - # - class Client - include Paths - - # @private - attr_reader :media_file_service_stub - - ## - # Configure the MediaFileService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::MediaFileService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all MediaFileService clients - # ::Google::Ads::GoogleAds::V12::Services::MediaFileService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the MediaFileService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::MediaFileService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new MediaFileService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::MediaFileService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::MediaFileService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the MediaFileService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/media_file_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @media_file_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::MediaFileService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates media files. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [ImageError]() - # [InternalError]() - # [MediaBundleError]() - # [MediaFileError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_media_files(request, options = nil) - # Pass arguments to `mutate_media_files` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateMediaFilesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateMediaFilesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_media_files(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_media_files` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose media files are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::MediaFileOperation, ::Hash>] - # Required. The list of operations to perform on individual media file. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateMediaFilesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateMediaFilesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::MediaFileService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateMediaFilesRequest.new - # - # # Call the mutate_media_files method. - # result = client.mutate_media_files request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateMediaFilesResponse. - # p result - # - def mutate_media_files request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateMediaFilesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_media_files.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_media_files.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_media_files.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @media_file_service_stub.call_rpc :mutate_media_files, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the MediaFileService API. - # - # This class represents the configuration for MediaFileService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::MediaFileService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_media_files to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::MediaFileService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_media_files.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::MediaFileService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_media_files.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the MediaFileService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_media_files` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_media_files - - # @private - def initialize parent_rpcs = nil - mutate_media_files_config = parent_rpcs.mutate_media_files if parent_rpcs.respond_to? :mutate_media_files - @mutate_media_files = ::Gapic::Config::Method.new mutate_media_files_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/media_file_service/credentials.rb b/lib/google/ads/google_ads/v12/services/media_file_service/credentials.rb deleted file mode 100644 index 9a21273e4..000000000 --- a/lib/google/ads/google_ads/v12/services/media_file_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module MediaFileService - # Credentials for the MediaFileService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/media_file_service/paths.rb b/lib/google/ads/google_ads/v12/services/media_file_service/paths.rb deleted file mode 100644 index 150295cb7..000000000 --- a/lib/google/ads/google_ads/v12/services/media_file_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module MediaFileService - # Path helper methods for the MediaFileService API. - module Paths - ## - # Create a fully-qualified MediaFile resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/mediaFiles/{media_file_id}` - # - # @param customer_id [String] - # @param media_file_id [String] - # - # @return [::String] - def media_file_path customer_id:, media_file_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/mediaFiles/#{media_file_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/media_file_service_pb.rb b/lib/google/ads/google_ads/v12/services/media_file_service_pb.rb deleted file mode 100644 index 2bb34478f..000000000 --- a/lib/google/ads/google_ads/v12/services/media_file_service_pb.rb +++ /dev/null @@ -1,52 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/media_file_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/media_file_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/media_file_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateMediaFilesRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.MediaFileOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.MediaFileOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.MediaFile" - end - end - add_message "google.ads.googleads.v12.services.MutateMediaFilesResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateMediaFileResult" - end - add_message "google.ads.googleads.v12.services.MutateMediaFileResult" do - optional :resource_name, :string, 1 - optional :media_file, :message, 2, "google.ads.googleads.v12.resources.MediaFile" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateMediaFilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateMediaFilesRequest").msgclass - MediaFileOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MediaFileOperation").msgclass - MutateMediaFilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateMediaFilesResponse").msgclass - MutateMediaFileResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateMediaFileResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/media_file_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/media_file_service_services_pb.rb deleted file mode 100644 index 8e7e1ba2b..000000000 --- a/lib/google/ads/google_ads/v12/services/media_file_service_services_pb.rb +++ /dev/null @@ -1,72 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/media_file_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/media_file_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module MediaFileService - # Proto file describing the Media File service. - # - # Service to manage media files. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.MediaFileService' - - # Creates media files. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [ImageError]() - # [InternalError]() - # [MediaBundleError]() - # [MediaFileError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - rpc :MutateMediaFiles, ::Google::Ads::GoogleAds::V12::Services::MutateMediaFilesRequest, ::Google::Ads::GoogleAds::V12::Services::MutateMediaFilesResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/merchant_center_link_service.rb b/lib/google/ads/google_ads/v12/services/merchant_center_link_service.rb deleted file mode 100644 index f1cf88b09..000000000 --- a/lib/google/ads/google_ads/v12/services/merchant_center_link_service.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/merchant_center_link_service/credentials" -require "google/ads/google_ads/v12/services/merchant_center_link_service/paths" -require "google/ads/google_ads/v12/services/merchant_center_link_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # This service allows management of links between Google Ads and Google - # Merchant Center. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/merchant_center_link_service" - # client = ::Google::Ads::GoogleAds::V12::Services::MerchantCenterLinkService::Client.new - # - module MerchantCenterLinkService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "merchant_center_link_service", "helpers.rb" -require "google/ads/google_ads/v12/services/merchant_center_link_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/merchant_center_link_service/client.rb b/lib/google/ads/google_ads/v12/services/merchant_center_link_service/client.rb deleted file mode 100644 index dfdb3fee4..000000000 --- a/lib/google/ads/google_ads/v12/services/merchant_center_link_service/client.rb +++ /dev/null @@ -1,610 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/merchant_center_link_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module MerchantCenterLinkService - ## - # Client for the MerchantCenterLinkService service. - # - # This service allows management of links between Google Ads and Google - # Merchant Center. - # - class Client - include Paths - - # @private - attr_reader :merchant_center_link_service_stub - - ## - # Configure the MerchantCenterLinkService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::MerchantCenterLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all MerchantCenterLinkService clients - # ::Google::Ads::GoogleAds::V12::Services::MerchantCenterLinkService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the MerchantCenterLinkService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::MerchantCenterLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new MerchantCenterLinkService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::MerchantCenterLinkService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::MerchantCenterLinkService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the MerchantCenterLinkService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/merchant_center_link_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @merchant_center_link_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::MerchantCenterLinkService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Returns Merchant Center links available for this customer. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_merchant_center_links(request, options = nil) - # Pass arguments to `list_merchant_center_links` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::ListMerchantCenterLinksRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::ListMerchantCenterLinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_merchant_center_links(customer_id: nil) - # Pass arguments to `list_merchant_center_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer onto which to apply the Merchant Center link list - # operation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::ListMerchantCenterLinksResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::ListMerchantCenterLinksResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::MerchantCenterLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::ListMerchantCenterLinksRequest.new - # - # # Call the list_merchant_center_links method. - # result = client.list_merchant_center_links request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::ListMerchantCenterLinksResponse. - # p result - # - def list_merchant_center_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::ListMerchantCenterLinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_merchant_center_links.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_merchant_center_links.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_merchant_center_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @merchant_center_link_service_stub.call_rpc :list_merchant_center_links, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns the Merchant Center link in full detail. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload get_merchant_center_link(request, options = nil) - # Pass arguments to `get_merchant_center_link` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::GetMerchantCenterLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::GetMerchantCenterLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_merchant_center_link(resource_name: nil) - # Pass arguments to `get_merchant_center_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. Resource name of the Merchant Center link. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Resources::MerchantCenterLink] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Resources::MerchantCenterLink] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::MerchantCenterLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::GetMerchantCenterLinkRequest.new - # - # # Call the get_merchant_center_link method. - # result = client.get_merchant_center_link request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Resources::MerchantCenterLink. - # p result - # - def get_merchant_center_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::GetMerchantCenterLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_merchant_center_link.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_merchant_center_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_merchant_center_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @merchant_center_link_service_stub.call_rpc :get_merchant_center_link, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Updates status or removes a Merchant Center link. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_merchant_center_link(request, options = nil) - # Pass arguments to `mutate_merchant_center_link` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateMerchantCenterLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateMerchantCenterLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_merchant_center_link(customer_id: nil, operation: nil, validate_only: nil) - # Pass arguments to `mutate_merchant_center_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer being modified. - # @param operation [::Google::Ads::GoogleAds::V12::Services::MerchantCenterLinkOperation, ::Hash] - # Required. The operation to perform on the link - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateMerchantCenterLinkResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateMerchantCenterLinkResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::MerchantCenterLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateMerchantCenterLinkRequest.new - # - # # Call the mutate_merchant_center_link method. - # result = client.mutate_merchant_center_link request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateMerchantCenterLinkResponse. - # p result - # - def mutate_merchant_center_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateMerchantCenterLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_merchant_center_link.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_merchant_center_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_merchant_center_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @merchant_center_link_service_stub.call_rpc :mutate_merchant_center_link, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the MerchantCenterLinkService API. - # - # This class represents the configuration for MerchantCenterLinkService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::MerchantCenterLinkService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_merchant_center_links to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::MerchantCenterLinkService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_merchant_center_links.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::MerchantCenterLinkService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_merchant_center_links.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the MerchantCenterLinkService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_merchant_center_links` - # @return [::Gapic::Config::Method] - # - attr_reader :list_merchant_center_links - ## - # RPC-specific configuration for `get_merchant_center_link` - # @return [::Gapic::Config::Method] - # - attr_reader :get_merchant_center_link - ## - # RPC-specific configuration for `mutate_merchant_center_link` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_merchant_center_link - - # @private - def initialize parent_rpcs = nil - list_merchant_center_links_config = parent_rpcs.list_merchant_center_links if parent_rpcs.respond_to? :list_merchant_center_links - @list_merchant_center_links = ::Gapic::Config::Method.new list_merchant_center_links_config - get_merchant_center_link_config = parent_rpcs.get_merchant_center_link if parent_rpcs.respond_to? :get_merchant_center_link - @get_merchant_center_link = ::Gapic::Config::Method.new get_merchant_center_link_config - mutate_merchant_center_link_config = parent_rpcs.mutate_merchant_center_link if parent_rpcs.respond_to? :mutate_merchant_center_link - @mutate_merchant_center_link = ::Gapic::Config::Method.new mutate_merchant_center_link_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/merchant_center_link_service/credentials.rb b/lib/google/ads/google_ads/v12/services/merchant_center_link_service/credentials.rb deleted file mode 100644 index 289471a1f..000000000 --- a/lib/google/ads/google_ads/v12/services/merchant_center_link_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module MerchantCenterLinkService - # Credentials for the MerchantCenterLinkService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/merchant_center_link_service/paths.rb b/lib/google/ads/google_ads/v12/services/merchant_center_link_service/paths.rb deleted file mode 100644 index b5422b547..000000000 --- a/lib/google/ads/google_ads/v12/services/merchant_center_link_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module MerchantCenterLinkService - # Path helper methods for the MerchantCenterLinkService API. - module Paths - ## - # Create a fully-qualified MerchantCenterLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/merchantCenterLinks/{merchant_center_id}` - # - # @param customer_id [String] - # @param merchant_center_id [String] - # - # @return [::String] - def merchant_center_link_path customer_id:, merchant_center_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/merchantCenterLinks/#{merchant_center_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/merchant_center_link_service_pb.rb b/lib/google/ads/google_ads/v12/services/merchant_center_link_service_pb.rb deleted file mode 100644 index 12baa72a8..000000000 --- a/lib/google/ads/google_ads/v12/services/merchant_center_link_service_pb.rb +++ /dev/null @@ -1,61 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/merchant_center_link_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/merchant_center_link_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/merchant_center_link_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.ListMerchantCenterLinksRequest" do - optional :customer_id, :string, 1 - end - add_message "google.ads.googleads.v12.services.ListMerchantCenterLinksResponse" do - repeated :merchant_center_links, :message, 1, "google.ads.googleads.v12.resources.MerchantCenterLink" - end - add_message "google.ads.googleads.v12.services.GetMerchantCenterLinkRequest" do - optional :resource_name, :string, 1 - end - add_message "google.ads.googleads.v12.services.MutateMerchantCenterLinkRequest" do - optional :customer_id, :string, 1 - optional :operation, :message, 2, "google.ads.googleads.v12.services.MerchantCenterLinkOperation" - optional :validate_only, :bool, 3 - end - add_message "google.ads.googleads.v12.services.MerchantCenterLinkOperation" do - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - oneof :operation do - optional :update, :message, 1, "google.ads.googleads.v12.resources.MerchantCenterLink" - optional :remove, :string, 2 - end - end - add_message "google.ads.googleads.v12.services.MutateMerchantCenterLinkResponse" do - optional :result, :message, 2, "google.ads.googleads.v12.services.MutateMerchantCenterLinkResult" - end - add_message "google.ads.googleads.v12.services.MutateMerchantCenterLinkResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - ListMerchantCenterLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListMerchantCenterLinksRequest").msgclass - ListMerchantCenterLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListMerchantCenterLinksResponse").msgclass - GetMerchantCenterLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GetMerchantCenterLinkRequest").msgclass - MutateMerchantCenterLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateMerchantCenterLinkRequest").msgclass - MerchantCenterLinkOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MerchantCenterLinkOperation").msgclass - MutateMerchantCenterLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateMerchantCenterLinkResponse").msgclass - MutateMerchantCenterLinkResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateMerchantCenterLinkResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/merchant_center_link_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/merchant_center_link_service_services_pb.rb deleted file mode 100644 index 635d3a12c..000000000 --- a/lib/google/ads/google_ads/v12/services/merchant_center_link_service_services_pb.rb +++ /dev/null @@ -1,79 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/merchant_center_link_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/merchant_center_link_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module MerchantCenterLinkService - # Proto file describing the MerchantCenterLink service. - # - # This service allows management of links between Google Ads and Google - # Merchant Center. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.MerchantCenterLinkService' - - # Returns Merchant Center links available for this customer. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :ListMerchantCenterLinks, ::Google::Ads::GoogleAds::V12::Services::ListMerchantCenterLinksRequest, ::Google::Ads::GoogleAds::V12::Services::ListMerchantCenterLinksResponse - # Returns the Merchant Center link in full detail. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :GetMerchantCenterLink, ::Google::Ads::GoogleAds::V12::Services::GetMerchantCenterLinkRequest, ::Google::Ads::GoogleAds::V12::Resources::MerchantCenterLink - # Updates status or removes a Merchant Center link. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateMerchantCenterLink, ::Google::Ads::GoogleAds::V12::Services::MutateMerchantCenterLinkRequest, ::Google::Ads::GoogleAds::V12::Services::MutateMerchantCenterLinkResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/offline_user_data_job_service.rb b/lib/google/ads/google_ads/v12/services/offline_user_data_job_service.rb deleted file mode 100644 index ec4f1edd3..000000000 --- a/lib/google/ads/google_ads/v12/services/offline_user_data_job_service.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/offline_user_data_job_service/credentials" -require "google/ads/google_ads/v12/services/offline_user_data_job_service/paths" -require "google/ads/google_ads/v12/services/offline_user_data_job_service/operations" -require "google/ads/google_ads/v12/services/offline_user_data_job_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage offline user data jobs. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/offline_user_data_job_service" - # client = ::Google::Ads::GoogleAds::V12::Services::OfflineUserDataJobService::Client.new - # - module OfflineUserDataJobService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "offline_user_data_job_service", "helpers.rb" -require "google/ads/google_ads/v12/services/offline_user_data_job_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/offline_user_data_job_service/client.rb b/lib/google/ads/google_ads/v12/services/offline_user_data_job_service/client.rb deleted file mode 100644 index 3cf8b626a..000000000 --- a/lib/google/ads/google_ads/v12/services/offline_user_data_job_service/client.rb +++ /dev/null @@ -1,658 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/offline_user_data_job_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module OfflineUserDataJobService - ## - # Client for the OfflineUserDataJobService service. - # - # Service to manage offline user data jobs. - # - class Client - include Paths - - # @private - attr_reader :offline_user_data_job_service_stub - - ## - # Configure the OfflineUserDataJobService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::OfflineUserDataJobService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all OfflineUserDataJobService clients - # ::Google::Ads::GoogleAds::V12::Services::OfflineUserDataJobService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the OfflineUserDataJobService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::OfflineUserDataJobService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new OfflineUserDataJobService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::OfflineUserDataJobService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::OfflineUserDataJobService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the OfflineUserDataJobService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/offline_user_data_job_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - end - - @offline_user_data_job_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::OfflineUserDataJobService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Ads::GoogleAds::V12::Services::OfflineUserDataJobService::Operations] - # - attr_reader :operations_client - - # Service calls - - ## - # Creates an offline user data job. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [NotAllowlistedError]() - # [OfflineUserDataJobError]() - # [QuotaError]() - # [RequestError]() - # - # @overload create_offline_user_data_job(request, options = nil) - # Pass arguments to `create_offline_user_data_job` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::CreateOfflineUserDataJobRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::CreateOfflineUserDataJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_offline_user_data_job(customer_id: nil, job: nil, validate_only: nil, enable_match_rate_range_preview: nil) - # Pass arguments to `create_offline_user_data_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer for which to create an offline user data job. - # @param job [::Google::Ads::GoogleAds::V12::Resources::OfflineUserDataJob, ::Hash] - # Required. The offline user data job to be created. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param enable_match_rate_range_preview [::Boolean] - # If true, match rate range for the offline user data job is calculated and - # made available in the resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::CreateOfflineUserDataJobResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::CreateOfflineUserDataJobResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::OfflineUserDataJobService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::CreateOfflineUserDataJobRequest.new - # - # # Call the create_offline_user_data_job method. - # result = client.create_offline_user_data_job request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::CreateOfflineUserDataJobResponse. - # p result - # - def create_offline_user_data_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::CreateOfflineUserDataJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_offline_user_data_job.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_offline_user_data_job.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_offline_user_data_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @offline_user_data_job_service_stub.call_rpc :create_offline_user_data_job, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Adds operations to the offline user data job. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [OfflineUserDataJobError]() - # [QuotaError]() - # [RequestError]() - # - # @overload add_offline_user_data_job_operations(request, options = nil) - # Pass arguments to `add_offline_user_data_job_operations` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::AddOfflineUserDataJobOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::AddOfflineUserDataJobOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload add_offline_user_data_job_operations(resource_name: nil, enable_partial_failure: nil, enable_warnings: nil, operations: nil, validate_only: nil) - # Pass arguments to `add_offline_user_data_job_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the OfflineUserDataJob. - # @param enable_partial_failure [::Boolean] - # True to enable partial failure for the offline user data job. - # @param enable_warnings [::Boolean] - # True to enable warnings for the offline user data job. When enabled, a - # warning will not block the OfflineUserDataJobOperation, and will also - # return warning messages about malformed field values. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::OfflineUserDataJobOperation, ::Hash>] - # Required. The list of operations to be done. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::AddOfflineUserDataJobOperationsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::AddOfflineUserDataJobOperationsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::OfflineUserDataJobService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::AddOfflineUserDataJobOperationsRequest.new - # - # # Call the add_offline_user_data_job_operations method. - # result = client.add_offline_user_data_job_operations request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::AddOfflineUserDataJobOperationsResponse. - # p result - # - def add_offline_user_data_job_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::AddOfflineUserDataJobOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.add_offline_user_data_job_operations.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.add_offline_user_data_job_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.add_offline_user_data_job_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @offline_user_data_job_service_stub.call_rpc :add_offline_user_data_job_operations, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Runs the offline user data job. - # - # When finished, the long running operation will contain the processing - # result or failure information, if any. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [HeaderError]() - # [InternalError]() - # [OfflineUserDataJobError]() - # [QuotaError]() - # [RequestError]() - # - # @overload run_offline_user_data_job(request, options = nil) - # Pass arguments to `run_offline_user_data_job` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::RunOfflineUserDataJobRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::RunOfflineUserDataJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload run_offline_user_data_job(resource_name: nil, validate_only: nil) - # Pass arguments to `run_offline_user_data_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the OfflineUserDataJob to run. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::OfflineUserDataJobService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::RunOfflineUserDataJobRequest.new - # - # # Call the run_offline_user_data_job method. - # result = client.run_offline_user_data_job request - # - # # The returned object is of type Gapic::Operation. You can use this - # # object to check the status of an operation, cancel it, or wait - # # for results. Here is how to block until completion: - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "Error!" - # end - # - def run_offline_user_data_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::RunOfflineUserDataJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.run_offline_user_data_job.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.run_offline_user_data_job.timeout, - metadata: metadata, - retry_policy: @config.rpcs.run_offline_user_data_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @offline_user_data_job_service_stub.call_rpc :run_offline_user_data_job, request, - options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the OfflineUserDataJobService API. - # - # This class represents the configuration for OfflineUserDataJobService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::OfflineUserDataJobService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_offline_user_data_job to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::OfflineUserDataJobService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_offline_user_data_job.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::OfflineUserDataJobService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_offline_user_data_job.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the OfflineUserDataJobService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_offline_user_data_job` - # @return [::Gapic::Config::Method] - # - attr_reader :create_offline_user_data_job - ## - # RPC-specific configuration for `add_offline_user_data_job_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :add_offline_user_data_job_operations - ## - # RPC-specific configuration for `run_offline_user_data_job` - # @return [::Gapic::Config::Method] - # - attr_reader :run_offline_user_data_job - - # @private - def initialize parent_rpcs = nil - create_offline_user_data_job_config = parent_rpcs.create_offline_user_data_job if parent_rpcs.respond_to? :create_offline_user_data_job - @create_offline_user_data_job = ::Gapic::Config::Method.new create_offline_user_data_job_config - add_offline_user_data_job_operations_config = parent_rpcs.add_offline_user_data_job_operations if parent_rpcs.respond_to? :add_offline_user_data_job_operations - @add_offline_user_data_job_operations = ::Gapic::Config::Method.new add_offline_user_data_job_operations_config - run_offline_user_data_job_config = parent_rpcs.run_offline_user_data_job if parent_rpcs.respond_to? :run_offline_user_data_job - @run_offline_user_data_job = ::Gapic::Config::Method.new run_offline_user_data_job_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/offline_user_data_job_service/credentials.rb b/lib/google/ads/google_ads/v12/services/offline_user_data_job_service/credentials.rb deleted file mode 100644 index 6ba9e22a3..000000000 --- a/lib/google/ads/google_ads/v12/services/offline_user_data_job_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module OfflineUserDataJobService - # Credentials for the OfflineUserDataJobService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/offline_user_data_job_service/operations.rb b/lib/google/ads/google_ads/v12/services/offline_user_data_job_service/operations.rb deleted file mode 100644 index f8a84be3c..000000000 --- a/lib/google/ads/google_ads/v12/services/offline_user_data_job_service/operations.rb +++ /dev/null @@ -1,774 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module OfflineUserDataJobService - # Service that implements Longrunning Operations API. - class Operations - # @private - attr_reader :operations_stub - - ## - # Configuration for the OfflineUserDataJobService Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the OfflineUserDataJobService Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/{name=users/*}/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can - # # iterate over all elements by calling #each, and the enumerable - # # will lazily make API calls to fetch subsequent pages. Other - # # methods are also available for managing paging directly. - # result.each do |response| - # # Each element is of type ::Google::Longrunning::Operation. - # p response - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, - operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use this - # # object to check the status of an operation, cancel it, or wait - # # for results. Here is how to block until completion: - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "Error!" - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1, - # corresponding to `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use this - # # object to check the status of an operation, cancel it, or wait - # # for results. Here is how to block until completion: - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "Error!" - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/offline_user_data_job_service/paths.rb b/lib/google/ads/google_ads/v12/services/offline_user_data_job_service/paths.rb deleted file mode 100644 index 71a50d225..000000000 --- a/lib/google/ads/google_ads/v12/services/offline_user_data_job_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module OfflineUserDataJobService - # Path helper methods for the OfflineUserDataJobService API. - module Paths - ## - # Create a fully-qualified OfflineUserDataJob resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/offlineUserDataJobs/{offline_user_data_update_id}` - # - # @param customer_id [String] - # @param offline_user_data_update_id [String] - # - # @return [::String] - def offline_user_data_job_path customer_id:, offline_user_data_update_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/offlineUserDataJobs/#{offline_user_data_update_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/offline_user_data_job_service_pb.rb b/lib/google/ads/google_ads/v12/services/offline_user_data_job_service_pb.rb deleted file mode 100644 index 0ce6cdb65..000000000 --- a/lib/google/ads/google_ads/v12/services/offline_user_data_job_service_pb.rb +++ /dev/null @@ -1,66 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/offline_user_data_job_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/offline_user_data_pb' -require 'google/ads/google_ads/v12/resources/offline_user_data_job_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/longrunning/operations_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/offline_user_data_job_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.CreateOfflineUserDataJobRequest" do - optional :customer_id, :string, 1 - optional :job, :message, 2, "google.ads.googleads.v12.resources.OfflineUserDataJob" - optional :validate_only, :bool, 3 - optional :enable_match_rate_range_preview, :bool, 5 - end - add_message "google.ads.googleads.v12.services.CreateOfflineUserDataJobResponse" do - optional :resource_name, :string, 1 - end - add_message "google.ads.googleads.v12.services.RunOfflineUserDataJobRequest" do - optional :resource_name, :string, 1 - optional :validate_only, :bool, 2 - end - add_message "google.ads.googleads.v12.services.AddOfflineUserDataJobOperationsRequest" do - optional :resource_name, :string, 1 - proto3_optional :enable_partial_failure, :bool, 4 - proto3_optional :enable_warnings, :bool, 6 - repeated :operations, :message, 3, "google.ads.googleads.v12.services.OfflineUserDataJobOperation" - optional :validate_only, :bool, 5 - end - add_message "google.ads.googleads.v12.services.OfflineUserDataJobOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.common.UserData" - optional :remove, :message, 2, "google.ads.googleads.v12.common.UserData" - optional :remove_all, :bool, 3 - end - end - add_message "google.ads.googleads.v12.services.AddOfflineUserDataJobOperationsResponse" do - optional :partial_failure_error, :message, 1, "google.rpc.Status" - optional :warning, :message, 2, "google.rpc.Status" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - CreateOfflineUserDataJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CreateOfflineUserDataJobRequest").msgclass - CreateOfflineUserDataJobResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CreateOfflineUserDataJobResponse").msgclass - RunOfflineUserDataJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.RunOfflineUserDataJobRequest").msgclass - AddOfflineUserDataJobOperationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AddOfflineUserDataJobOperationsRequest").msgclass - OfflineUserDataJobOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.OfflineUserDataJobOperation").msgclass - AddOfflineUserDataJobOperationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AddOfflineUserDataJobOperationsResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/offline_user_data_job_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/offline_user_data_job_service_services_pb.rb deleted file mode 100644 index 4c6baf632..000000000 --- a/lib/google/ads/google_ads/v12/services/offline_user_data_job_service_services_pb.rb +++ /dev/null @@ -1,90 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/offline_user_data_job_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/offline_user_data_job_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module OfflineUserDataJobService - # Proto file describing the OfflineUserDataJobService. - # - # Service to manage offline user data jobs. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.OfflineUserDataJobService' - - # Creates an offline user data job. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [NotAllowlistedError]() - # [OfflineUserDataJobError]() - # [QuotaError]() - # [RequestError]() - rpc :CreateOfflineUserDataJob, ::Google::Ads::GoogleAds::V12::Services::CreateOfflineUserDataJobRequest, ::Google::Ads::GoogleAds::V12::Services::CreateOfflineUserDataJobResponse - # Adds operations to the offline user data job. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [OfflineUserDataJobError]() - # [QuotaError]() - # [RequestError]() - rpc :AddOfflineUserDataJobOperations, ::Google::Ads::GoogleAds::V12::Services::AddOfflineUserDataJobOperationsRequest, ::Google::Ads::GoogleAds::V12::Services::AddOfflineUserDataJobOperationsResponse - # Runs the offline user data job. - # - # When finished, the long running operation will contain the processing - # result or failure information, if any. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [HeaderError]() - # [InternalError]() - # [OfflineUserDataJobError]() - # [QuotaError]() - # [RequestError]() - rpc :RunOfflineUserDataJob, ::Google::Ads::GoogleAds::V12::Services::RunOfflineUserDataJobRequest, ::Google::Longrunning::Operation - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/payments_account_service.rb b/lib/google/ads/google_ads/v12/services/payments_account_service.rb deleted file mode 100644 index 809bb4086..000000000 --- a/lib/google/ads/google_ads/v12/services/payments_account_service.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/payments_account_service/credentials" -require "google/ads/google_ads/v12/services/payments_account_service/paths" -require "google/ads/google_ads/v12/services/payments_account_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to provide payments accounts that can be used to set up consolidated - # billing. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/payments_account_service" - # client = ::Google::Ads::GoogleAds::V12::Services::PaymentsAccountService::Client.new - # - module PaymentsAccountService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "payments_account_service", "helpers.rb" -require "google/ads/google_ads/v12/services/payments_account_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/payments_account_service/client.rb b/lib/google/ads/google_ads/v12/services/payments_account_service/client.rb deleted file mode 100644 index 245f94c1c..000000000 --- a/lib/google/ads/google_ads/v12/services/payments_account_service/client.rb +++ /dev/null @@ -1,402 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/payments_account_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module PaymentsAccountService - ## - # Client for the PaymentsAccountService service. - # - # Service to provide payments accounts that can be used to set up consolidated - # billing. - # - class Client - include Paths - - # @private - attr_reader :payments_account_service_stub - - ## - # Configure the PaymentsAccountService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::PaymentsAccountService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all PaymentsAccountService clients - # ::Google::Ads::GoogleAds::V12::Services::PaymentsAccountService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the PaymentsAccountService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::PaymentsAccountService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new PaymentsAccountService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::PaymentsAccountService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::PaymentsAccountService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the PaymentsAccountService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/payments_account_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @payments_account_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::PaymentsAccountService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Returns all payments accounts associated with all managers - # between the login customer ID and specified serving customer in the - # hierarchy, inclusive. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [PaymentsAccountError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_payments_accounts(request, options = nil) - # Pass arguments to `list_payments_accounts` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::ListPaymentsAccountsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::ListPaymentsAccountsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_payments_accounts(customer_id: nil) - # Pass arguments to `list_payments_accounts` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer to apply the PaymentsAccount list operation to. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::ListPaymentsAccountsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::ListPaymentsAccountsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::PaymentsAccountService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::ListPaymentsAccountsRequest.new - # - # # Call the list_payments_accounts method. - # result = client.list_payments_accounts request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::ListPaymentsAccountsResponse. - # p result - # - def list_payments_accounts request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::ListPaymentsAccountsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_payments_accounts.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_payments_accounts.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_payments_accounts.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @payments_account_service_stub.call_rpc :list_payments_accounts, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the PaymentsAccountService API. - # - # This class represents the configuration for PaymentsAccountService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::PaymentsAccountService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_payments_accounts to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::PaymentsAccountService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_payments_accounts.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::PaymentsAccountService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_payments_accounts.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the PaymentsAccountService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_payments_accounts` - # @return [::Gapic::Config::Method] - # - attr_reader :list_payments_accounts - - # @private - def initialize parent_rpcs = nil - list_payments_accounts_config = parent_rpcs.list_payments_accounts if parent_rpcs.respond_to? :list_payments_accounts - @list_payments_accounts = ::Gapic::Config::Method.new list_payments_accounts_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/payments_account_service/credentials.rb b/lib/google/ads/google_ads/v12/services/payments_account_service/credentials.rb deleted file mode 100644 index 2f1e25ee5..000000000 --- a/lib/google/ads/google_ads/v12/services/payments_account_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module PaymentsAccountService - # Credentials for the PaymentsAccountService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/payments_account_service/paths.rb b/lib/google/ads/google_ads/v12/services/payments_account_service/paths.rb deleted file mode 100644 index 41f3e2a0a..000000000 --- a/lib/google/ads/google_ads/v12/services/payments_account_service/paths.rb +++ /dev/null @@ -1,66 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module PaymentsAccountService - # Path helper methods for the PaymentsAccountService API. - module Paths - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified PaymentsAccount resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/paymentsAccounts/{payments_account_id}` - # - # @param customer_id [String] - # @param payments_account_id [String] - # - # @return [::String] - def payments_account_path customer_id:, payments_account_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/paymentsAccounts/#{payments_account_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/payments_account_service_pb.rb b/lib/google/ads/google_ads/v12/services/payments_account_service_pb.rb deleted file mode 100644 index fa8e1119e..000000000 --- a/lib/google/ads/google_ads/v12/services/payments_account_service_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/payments_account_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/payments_account_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/payments_account_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.ListPaymentsAccountsRequest" do - optional :customer_id, :string, 1 - end - add_message "google.ads.googleads.v12.services.ListPaymentsAccountsResponse" do - repeated :payments_accounts, :message, 1, "google.ads.googleads.v12.resources.PaymentsAccount" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - ListPaymentsAccountsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListPaymentsAccountsRequest").msgclass - ListPaymentsAccountsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListPaymentsAccountsResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/payments_account_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/payments_account_service_services_pb.rb deleted file mode 100644 index 53b03772f..000000000 --- a/lib/google/ads/google_ads/v12/services/payments_account_service_services_pb.rb +++ /dev/null @@ -1,61 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/payments_account_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/payments_account_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module PaymentsAccountService - # Proto file describing the payments account service. - # - # Service to provide payments accounts that can be used to set up consolidated - # billing. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.PaymentsAccountService' - - # Returns all payments accounts associated with all managers - # between the login customer ID and specified serving customer in the - # hierarchy, inclusive. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [PaymentsAccountError]() - # [QuotaError]() - # [RequestError]() - rpc :ListPaymentsAccounts, ::Google::Ads::GoogleAds::V12::Services::ListPaymentsAccountsRequest, ::Google::Ads::GoogleAds::V12::Services::ListPaymentsAccountsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/reach_plan_service.rb b/lib/google/ads/google_ads/v12/services/reach_plan_service.rb deleted file mode 100644 index 155168c96..000000000 --- a/lib/google/ads/google_ads/v12/services/reach_plan_service.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/reach_plan_service/credentials" -require "google/ads/google_ads/v12/services/reach_plan_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Reach Plan Service gives users information about audience size that can - # be reached through advertisement on YouTube. In particular, - # GenerateReachForecast provides estimated number of people of specified - # demographics that can be reached by an ad in a given market by a campaign of - # certain duration with a defined budget. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/reach_plan_service" - # client = ::Google::Ads::GoogleAds::V12::Services::ReachPlanService::Client.new - # - module ReachPlanService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "reach_plan_service", "helpers.rb" -require "google/ads/google_ads/v12/services/reach_plan_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/reach_plan_service/client.rb b/lib/google/ads/google_ads/v12/services/reach_plan_service/client.rb deleted file mode 100644 index 001ffbc51..000000000 --- a/lib/google/ads/google_ads/v12/services/reach_plan_service/client.rb +++ /dev/null @@ -1,640 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/reach_plan_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ReachPlanService - ## - # Client for the ReachPlanService service. - # - # Reach Plan Service gives users information about audience size that can - # be reached through advertisement on YouTube. In particular, - # GenerateReachForecast provides estimated number of people of specified - # demographics that can be reached by an ad in a given market by a campaign of - # certain duration with a defined budget. - # - class Client - # @private - attr_reader :reach_plan_service_stub - - ## - # Configure the ReachPlanService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::ReachPlanService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ReachPlanService clients - # ::Google::Ads::GoogleAds::V12::Services::ReachPlanService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ReachPlanService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::ReachPlanService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ReachPlanService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ReachPlanService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ReachPlanService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ReachPlanService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/reach_plan_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @reach_plan_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::ReachPlanService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Returns the list of plannable locations (for example, countries). - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_plannable_locations(request, options = nil) - # Pass arguments to `list_plannable_locations` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::ListPlannableLocationsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::ListPlannableLocationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::ListPlannableLocationsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::ListPlannableLocationsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ReachPlanService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::ListPlannableLocationsRequest.new - # - # # Call the list_plannable_locations method. - # result = client.list_plannable_locations request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::ListPlannableLocationsResponse. - # p result - # - def list_plannable_locations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::ListPlannableLocationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_plannable_locations.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_plannable_locations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_plannable_locations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @reach_plan_service_stub.call_rpc :list_plannable_locations, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns the list of per-location plannable YouTube ad formats with allowed - # targeting. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_plannable_products(request, options = nil) - # Pass arguments to `list_plannable_products` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::ListPlannableProductsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::ListPlannableProductsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_plannable_products(plannable_location_id: nil) - # Pass arguments to `list_plannable_products` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param plannable_location_id [::String] - # Required. The ID of the selected location for planning. To list the available - # plannable location IDs use {::Google::Ads::GoogleAds::V12::Services::ReachPlanService::Client#list_plannable_locations ReachPlanService.ListPlannableLocations}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::ListPlannableProductsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::ListPlannableProductsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ReachPlanService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::ListPlannableProductsRequest.new - # - # # Call the list_plannable_products method. - # result = client.list_plannable_products request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::ListPlannableProductsResponse. - # p result - # - def list_plannable_products request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::ListPlannableProductsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_plannable_products.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_plannable_products.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_plannable_products.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @reach_plan_service_stub.call_rpc :list_plannable_products, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Generates a reach forecast for a given targeting / product mix. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [ReachPlanError]() - # [RequestError]() - # - # @overload generate_reach_forecast(request, options = nil) - # Pass arguments to `generate_reach_forecast` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::GenerateReachForecastRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::GenerateReachForecastRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_reach_forecast(customer_id: nil, currency_code: nil, campaign_duration: nil, cookie_frequency_cap: nil, cookie_frequency_cap_setting: nil, min_effective_frequency: nil, effective_frequency_limit: nil, targeting: nil, planned_products: nil, forecast_metric_options: nil, customer_reach_group: nil) - # Pass arguments to `generate_reach_forecast` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param currency_code [::String] - # The currency code. - # Three-character ISO 4217 currency code. - # @param campaign_duration [::Google::Ads::GoogleAds::V12::Services::CampaignDuration, ::Hash] - # Required. Campaign duration. - # @param cookie_frequency_cap [::Integer] - # Chosen cookie frequency cap to be applied to each planned product. - # This is equivalent to the frequency cap exposed in Google Ads when creating - # a campaign, it represents the maximum number of times an ad can be shown to - # the same user. - # If not specified, no cap is applied. - # - # This field is deprecated in v4 and will eventually be removed. - # Use cookie_frequency_cap_setting instead. - # @param cookie_frequency_cap_setting [::Google::Ads::GoogleAds::V12::Services::FrequencyCap, ::Hash] - # Chosen cookie frequency cap to be applied to each planned product. - # This is equivalent to the frequency cap exposed in Google Ads when creating - # a campaign, it represents the maximum number of times an ad can be shown to - # the same user during a specified time interval. - # If not specified, a default of 0 (no cap) is applied. - # - # This field replaces the deprecated cookie_frequency_cap field. - # @param min_effective_frequency [::Integer] - # Chosen minimum effective frequency (the number of times a person was - # exposed to the ad) for the reported reach metrics [1-10]. - # This won't affect the targeting, but just the reporting. - # If not specified, a default of 1 is applied. - # - # This field cannot be combined with the effective_frequency_limit field. - # @param effective_frequency_limit [::Google::Ads::GoogleAds::V12::Services::EffectiveFrequencyLimit, ::Hash] - # The highest minimum effective frequency (the number of times a person was - # exposed to the ad) value [1-10] to include in - # Forecast.effective_frequency_breakdowns. - # If not specified, Forecast.effective_frequency_breakdowns will not be - # provided. - # - # The effective frequency value provided here will also be used as the - # minimum effective frequency for the reported reach metrics. - # - # This field cannot be combined with the min_effective_frequency field. - # @param targeting [::Google::Ads::GoogleAds::V12::Services::Targeting, ::Hash] - # The targeting to be applied to all products selected in the product mix. - # - # This is planned targeting: execution details might vary based on the - # advertising product, consult an implementation specialist. - # - # See specific metrics for details on how targeting affects them. - # @param planned_products [::Array<::Google::Ads::GoogleAds::V12::Services::PlannedProduct, ::Hash>] - # Required. The products to be forecast. - # The max number of allowed planned products is 15. - # @param forecast_metric_options [::Google::Ads::GoogleAds::V12::Services::ForecastMetricOptions, ::Hash] - # Controls the forecast metrics returned in the response. - # @param customer_reach_group [::String] - # The name of the customer being planned for. This is a user-defined value. - # Required if targeting.audience_targeting is set. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::GenerateReachForecastResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::GenerateReachForecastResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ReachPlanService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::GenerateReachForecastRequest.new - # - # # Call the generate_reach_forecast method. - # result = client.generate_reach_forecast request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::GenerateReachForecastResponse. - # p result - # - def generate_reach_forecast request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::GenerateReachForecastRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_reach_forecast.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_reach_forecast.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_reach_forecast.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @reach_plan_service_stub.call_rpc :generate_reach_forecast, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ReachPlanService API. - # - # This class represents the configuration for ReachPlanService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::ReachPlanService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_plannable_locations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::ReachPlanService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_plannable_locations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::ReachPlanService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_plannable_locations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the ReachPlanService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_plannable_locations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_plannable_locations - ## - # RPC-specific configuration for `list_plannable_products` - # @return [::Gapic::Config::Method] - # - attr_reader :list_plannable_products - ## - # RPC-specific configuration for `generate_reach_forecast` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_reach_forecast - - # @private - def initialize parent_rpcs = nil - list_plannable_locations_config = parent_rpcs.list_plannable_locations if parent_rpcs.respond_to? :list_plannable_locations - @list_plannable_locations = ::Gapic::Config::Method.new list_plannable_locations_config - list_plannable_products_config = parent_rpcs.list_plannable_products if parent_rpcs.respond_to? :list_plannable_products - @list_plannable_products = ::Gapic::Config::Method.new list_plannable_products_config - generate_reach_forecast_config = parent_rpcs.generate_reach_forecast if parent_rpcs.respond_to? :generate_reach_forecast - @generate_reach_forecast = ::Gapic::Config::Method.new generate_reach_forecast_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/reach_plan_service/credentials.rb b/lib/google/ads/google_ads/v12/services/reach_plan_service/credentials.rb deleted file mode 100644 index d9d774858..000000000 --- a/lib/google/ads/google_ads/v12/services/reach_plan_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ReachPlanService - # Credentials for the ReachPlanService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/reach_plan_service_pb.rb b/lib/google/ads/google_ads/v12/services/reach_plan_service_pb.rb deleted file mode 100644 index 7d6305706..000000000 --- a/lib/google/ads/google_ads/v12/services/reach_plan_service_pb.rb +++ /dev/null @@ -1,192 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/reach_plan_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/criteria_pb' -require 'google/ads/google_ads/v12/common/dates_pb' -require 'google/ads/google_ads/v12/enums/frequency_cap_time_unit_pb' -require 'google/ads/google_ads/v12/enums/reach_plan_age_range_pb' -require 'google/ads/google_ads/v12/enums/reach_plan_network_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/reach_plan_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.ListPlannableLocationsRequest" do - end - add_message "google.ads.googleads.v12.services.ListPlannableLocationsResponse" do - repeated :plannable_locations, :message, 1, "google.ads.googleads.v12.services.PlannableLocation" - end - add_message "google.ads.googleads.v12.services.PlannableLocation" do - proto3_optional :id, :string, 4 - proto3_optional :name, :string, 5 - proto3_optional :parent_country_id, :int64, 6 - proto3_optional :country_code, :string, 7 - proto3_optional :location_type, :string, 8 - end - add_message "google.ads.googleads.v12.services.ListPlannableProductsRequest" do - optional :plannable_location_id, :string, 2 - end - add_message "google.ads.googleads.v12.services.ListPlannableProductsResponse" do - repeated :product_metadata, :message, 1, "google.ads.googleads.v12.services.ProductMetadata" - end - add_message "google.ads.googleads.v12.services.ProductMetadata" do - proto3_optional :plannable_product_code, :string, 4 - optional :plannable_product_name, :string, 3 - optional :plannable_targeting, :message, 2, "google.ads.googleads.v12.services.PlannableTargeting" - end - add_message "google.ads.googleads.v12.services.PlannableTargeting" do - repeated :age_ranges, :enum, 1, "google.ads.googleads.v12.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange" - repeated :genders, :message, 2, "google.ads.googleads.v12.common.GenderInfo" - repeated :devices, :message, 3, "google.ads.googleads.v12.common.DeviceInfo" - repeated :networks, :enum, 4, "google.ads.googleads.v12.enums.ReachPlanNetworkEnum.ReachPlanNetwork" - repeated :youtube_select_lineups, :message, 5, "google.ads.googleads.v12.services.YouTubeSelectLineUp" - end - add_message "google.ads.googleads.v12.services.GenerateReachForecastRequest" do - optional :customer_id, :string, 1 - proto3_optional :currency_code, :string, 9 - optional :campaign_duration, :message, 3, "google.ads.googleads.v12.services.CampaignDuration" - proto3_optional :cookie_frequency_cap, :int32, 10 - optional :cookie_frequency_cap_setting, :message, 8, "google.ads.googleads.v12.services.FrequencyCap" - proto3_optional :min_effective_frequency, :int32, 11 - proto3_optional :effective_frequency_limit, :message, 12, "google.ads.googleads.v12.services.EffectiveFrequencyLimit" - optional :targeting, :message, 6, "google.ads.googleads.v12.services.Targeting" - repeated :planned_products, :message, 7, "google.ads.googleads.v12.services.PlannedProduct" - optional :forecast_metric_options, :message, 13, "google.ads.googleads.v12.services.ForecastMetricOptions" - proto3_optional :customer_reach_group, :string, 14 - end - add_message "google.ads.googleads.v12.services.EffectiveFrequencyLimit" do - optional :effective_frequency_breakdown_limit, :int32, 1 - end - add_message "google.ads.googleads.v12.services.FrequencyCap" do - optional :impressions, :int32, 3 - optional :time_unit, :enum, 2, "google.ads.googleads.v12.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit" - end - add_message "google.ads.googleads.v12.services.Targeting" do - proto3_optional :plannable_location_id, :string, 6 - repeated :plannable_location_ids, :string, 8 - optional :age_range, :enum, 2, "google.ads.googleads.v12.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange" - repeated :genders, :message, 3, "google.ads.googleads.v12.common.GenderInfo" - repeated :devices, :message, 4, "google.ads.googleads.v12.common.DeviceInfo" - optional :network, :enum, 5, "google.ads.googleads.v12.enums.ReachPlanNetworkEnum.ReachPlanNetwork" - optional :audience_targeting, :message, 7, "google.ads.googleads.v12.services.AudienceTargeting" - end - add_message "google.ads.googleads.v12.services.CampaignDuration" do - proto3_optional :duration_in_days, :int32, 2 - optional :date_range, :message, 3, "google.ads.googleads.v12.common.DateRange" - end - add_message "google.ads.googleads.v12.services.PlannedProduct" do - proto3_optional :plannable_product_code, :string, 3 - proto3_optional :budget_micros, :int64, 4 - optional :advanced_product_targeting, :message, 5, "google.ads.googleads.v12.services.AdvancedProductTargeting" - end - add_message "google.ads.googleads.v12.services.GenerateReachForecastResponse" do - optional :on_target_audience_metrics, :message, 1, "google.ads.googleads.v12.services.OnTargetAudienceMetrics" - optional :reach_curve, :message, 2, "google.ads.googleads.v12.services.ReachCurve" - end - add_message "google.ads.googleads.v12.services.ReachCurve" do - repeated :reach_forecasts, :message, 1, "google.ads.googleads.v12.services.ReachForecast" - end - add_message "google.ads.googleads.v12.services.ReachForecast" do - optional :cost_micros, :int64, 5 - optional :forecast, :message, 2, "google.ads.googleads.v12.services.Forecast" - repeated :planned_product_reach_forecasts, :message, 4, "google.ads.googleads.v12.services.PlannedProductReachForecast" - end - add_message "google.ads.googleads.v12.services.Forecast" do - proto3_optional :on_target_reach, :int64, 5 - proto3_optional :total_reach, :int64, 6 - proto3_optional :on_target_impressions, :int64, 7 - proto3_optional :total_impressions, :int64, 8 - proto3_optional :viewable_impressions, :int64, 9 - repeated :effective_frequency_breakdowns, :message, 10, "google.ads.googleads.v12.services.EffectiveFrequencyBreakdown" - proto3_optional :on_target_coview_reach, :int64, 11 - proto3_optional :total_coview_reach, :int64, 12 - proto3_optional :on_target_coview_impressions, :int64, 13 - proto3_optional :total_coview_impressions, :int64, 14 - end - add_message "google.ads.googleads.v12.services.PlannedProductReachForecast" do - optional :plannable_product_code, :string, 1 - optional :cost_micros, :int64, 2 - optional :planned_product_forecast, :message, 3, "google.ads.googleads.v12.services.PlannedProductForecast" - end - add_message "google.ads.googleads.v12.services.PlannedProductForecast" do - optional :on_target_reach, :int64, 1 - optional :total_reach, :int64, 2 - optional :on_target_impressions, :int64, 3 - optional :total_impressions, :int64, 4 - proto3_optional :viewable_impressions, :int64, 5 - proto3_optional :on_target_coview_reach, :int64, 6 - proto3_optional :total_coview_reach, :int64, 7 - proto3_optional :on_target_coview_impressions, :int64, 8 - proto3_optional :total_coview_impressions, :int64, 9 - end - add_message "google.ads.googleads.v12.services.OnTargetAudienceMetrics" do - proto3_optional :youtube_audience_size, :int64, 3 - proto3_optional :census_audience_size, :int64, 4 - end - add_message "google.ads.googleads.v12.services.EffectiveFrequencyBreakdown" do - optional :effective_frequency, :int32, 1 - optional :on_target_reach, :int64, 2 - optional :total_reach, :int64, 3 - proto3_optional :effective_coview_reach, :int64, 4 - proto3_optional :on_target_effective_coview_reach, :int64, 5 - end - add_message "google.ads.googleads.v12.services.ForecastMetricOptions" do - optional :include_coview, :bool, 1 - end - add_message "google.ads.googleads.v12.services.AudienceTargeting" do - repeated :user_interest, :message, 1, "google.ads.googleads.v12.common.UserInterestInfo" - end - add_message "google.ads.googleads.v12.services.AdvancedProductTargeting" do - oneof :advanced_targeting do - optional :youtube_select_settings, :message, 1, "google.ads.googleads.v12.services.YouTubeSelectSettings" - end - end - add_message "google.ads.googleads.v12.services.YouTubeSelectSettings" do - optional :lineup_id, :int64, 1 - end - add_message "google.ads.googleads.v12.services.YouTubeSelectLineUp" do - optional :lineup_id, :int64, 1 - optional :lineup_name, :string, 2 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - ListPlannableLocationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListPlannableLocationsRequest").msgclass - ListPlannableLocationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListPlannableLocationsResponse").msgclass - PlannableLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.PlannableLocation").msgclass - ListPlannableProductsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListPlannableProductsRequest").msgclass - ListPlannableProductsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ListPlannableProductsResponse").msgclass - ProductMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ProductMetadata").msgclass - PlannableTargeting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.PlannableTargeting").msgclass - GenerateReachForecastRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateReachForecastRequest").msgclass - EffectiveFrequencyLimit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.EffectiveFrequencyLimit").msgclass - FrequencyCap = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.FrequencyCap").msgclass - Targeting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.Targeting").msgclass - CampaignDuration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.CampaignDuration").msgclass - PlannedProduct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.PlannedProduct").msgclass - GenerateReachForecastResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.GenerateReachForecastResponse").msgclass - ReachCurve = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ReachCurve").msgclass - ReachForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ReachForecast").msgclass - Forecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.Forecast").msgclass - PlannedProductReachForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.PlannedProductReachForecast").msgclass - PlannedProductForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.PlannedProductForecast").msgclass - OnTargetAudienceMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.OnTargetAudienceMetrics").msgclass - EffectiveFrequencyBreakdown = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.EffectiveFrequencyBreakdown").msgclass - ForecastMetricOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ForecastMetricOptions").msgclass - AudienceTargeting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AudienceTargeting").msgclass - AdvancedProductTargeting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.AdvancedProductTargeting").msgclass - YouTubeSelectSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.YouTubeSelectSettings").msgclass - YouTubeSelectLineUp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.YouTubeSelectLineUp").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/reach_plan_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/reach_plan_service_services_pb.rb deleted file mode 100644 index e66f1a510..000000000 --- a/lib/google/ads/google_ads/v12/services/reach_plan_service_services_pb.rb +++ /dev/null @@ -1,85 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/reach_plan_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/reach_plan_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ReachPlanService - # Proto file describing the reach plan service. - # - # Reach Plan Service gives users information about audience size that can - # be reached through advertisement on YouTube. In particular, - # GenerateReachForecast provides estimated number of people of specified - # demographics that can be reached by an ad in a given market by a campaign of - # certain duration with a defined budget. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.ReachPlanService' - - # Returns the list of plannable locations (for example, countries). - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :ListPlannableLocations, ::Google::Ads::GoogleAds::V12::Services::ListPlannableLocationsRequest, ::Google::Ads::GoogleAds::V12::Services::ListPlannableLocationsResponse - # Returns the list of per-location plannable YouTube ad formats with allowed - # targeting. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :ListPlannableProducts, ::Google::Ads::GoogleAds::V12::Services::ListPlannableProductsRequest, ::Google::Ads::GoogleAds::V12::Services::ListPlannableProductsResponse - # Generates a reach forecast for a given targeting / product mix. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [ReachPlanError]() - # [RequestError]() - rpc :GenerateReachForecast, ::Google::Ads::GoogleAds::V12::Services::GenerateReachForecastRequest, ::Google::Ads::GoogleAds::V12::Services::GenerateReachForecastResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/recommendation_service.rb b/lib/google/ads/google_ads/v12/services/recommendation_service.rb deleted file mode 100644 index 3a21399ef..000000000 --- a/lib/google/ads/google_ads/v12/services/recommendation_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/recommendation_service/credentials" -require "google/ads/google_ads/v12/services/recommendation_service/paths" -require "google/ads/google_ads/v12/services/recommendation_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage recommendations. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/recommendation_service" - # client = ::Google::Ads::GoogleAds::V12::Services::RecommendationService::Client.new - # - module RecommendationService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "recommendation_service", "helpers.rb" -require "google/ads/google_ads/v12/services/recommendation_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/recommendation_service/client.rb b/lib/google/ads/google_ads/v12/services/recommendation_service/client.rb deleted file mode 100644 index 7e190a75f..000000000 --- a/lib/google/ads/google_ads/v12/services/recommendation_service/client.rb +++ /dev/null @@ -1,524 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/recommendation_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module RecommendationService - ## - # Client for the RecommendationService service. - # - # Service to manage recommendations. - # - class Client - include Paths - - # @private - attr_reader :recommendation_service_stub - - ## - # Configure the RecommendationService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::RecommendationService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all RecommendationService clients - # ::Google::Ads::GoogleAds::V12::Services::RecommendationService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the RecommendationService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::RecommendationService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new RecommendationService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::RecommendationService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::RecommendationService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the RecommendationService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/recommendation_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @recommendation_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::RecommendationService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Applies given recommendations with corresponding apply parameters. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RecommendationError]() - # [RequestError]() - # [UrlFieldError]() - # - # @overload apply_recommendation(request, options = nil) - # Pass arguments to `apply_recommendation` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::ApplyRecommendationRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::ApplyRecommendationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload apply_recommendation(customer_id: nil, operations: nil, partial_failure: nil) - # Pass arguments to `apply_recommendation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer with the recommendation. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::ApplyRecommendationOperation, ::Hash>] - # Required. The list of operations to apply recommendations. - # If partial_failure=false all recommendations should be of the same type - # There is a limit of 100 operations per request. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, operations will be carried - # out as a transaction if and only if they are all valid. - # Default is false. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::ApplyRecommendationResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::ApplyRecommendationResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::RecommendationService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::ApplyRecommendationRequest.new - # - # # Call the apply_recommendation method. - # result = client.apply_recommendation request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::ApplyRecommendationResponse. - # p result - # - def apply_recommendation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::ApplyRecommendationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.apply_recommendation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.apply_recommendation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.apply_recommendation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @recommendation_service_stub.call_rpc :apply_recommendation, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Dismisses given recommendations. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RecommendationError]() - # [RequestError]() - # - # @overload dismiss_recommendation(request, options = nil) - # Pass arguments to `dismiss_recommendation` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::DismissRecommendationRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::DismissRecommendationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload dismiss_recommendation(customer_id: nil, operations: nil, partial_failure: nil) - # Pass arguments to `dismiss_recommendation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer with the recommendation. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::DismissRecommendationRequest::DismissRecommendationOperation, ::Hash>] - # Required. The list of operations to dismiss recommendations. - # If partial_failure=false all recommendations should be of the same type - # There is a limit of 100 operations per request. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, operations will be carried in a - # single transaction if and only if they are all valid. - # Default is false. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::DismissRecommendationResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::DismissRecommendationResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::RecommendationService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::DismissRecommendationRequest.new - # - # # Call the dismiss_recommendation method. - # result = client.dismiss_recommendation request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::DismissRecommendationResponse. - # p result - # - def dismiss_recommendation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::DismissRecommendationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.dismiss_recommendation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.dismiss_recommendation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.dismiss_recommendation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @recommendation_service_stub.call_rpc :dismiss_recommendation, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the RecommendationService API. - # - # This class represents the configuration for RecommendationService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::RecommendationService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # apply_recommendation to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::RecommendationService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.apply_recommendation.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::RecommendationService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.apply_recommendation.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the RecommendationService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `apply_recommendation` - # @return [::Gapic::Config::Method] - # - attr_reader :apply_recommendation - ## - # RPC-specific configuration for `dismiss_recommendation` - # @return [::Gapic::Config::Method] - # - attr_reader :dismiss_recommendation - - # @private - def initialize parent_rpcs = nil - apply_recommendation_config = parent_rpcs.apply_recommendation if parent_rpcs.respond_to? :apply_recommendation - @apply_recommendation = ::Gapic::Config::Method.new apply_recommendation_config - dismiss_recommendation_config = parent_rpcs.dismiss_recommendation if parent_rpcs.respond_to? :dismiss_recommendation - @dismiss_recommendation = ::Gapic::Config::Method.new dismiss_recommendation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/recommendation_service/credentials.rb b/lib/google/ads/google_ads/v12/services/recommendation_service/credentials.rb deleted file mode 100644 index 1c8c651bd..000000000 --- a/lib/google/ads/google_ads/v12/services/recommendation_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module RecommendationService - # Credentials for the RecommendationService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/recommendation_service/paths.rb b/lib/google/ads/google_ads/v12/services/recommendation_service/paths.rb deleted file mode 100644 index 2fec89a75..000000000 --- a/lib/google/ads/google_ads/v12/services/recommendation_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module RecommendationService - # Path helper methods for the RecommendationService API. - module Paths - ## - # Create a fully-qualified Ad resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/ads/{ad_id}` - # - # @param customer_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_path customer_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/ads/#{ad_id}" - end - - ## - # Create a fully-qualified Recommendation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/recommendations/{recommendation_id}` - # - # @param customer_id [String] - # @param recommendation_id [String] - # - # @return [::String] - def recommendation_path customer_id:, recommendation_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/recommendations/#{recommendation_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/recommendation_service_pb.rb b/lib/google/ads/google_ads/v12/services/recommendation_service_pb.rb deleted file mode 100644 index 09bd6a013..000000000 --- a/lib/google/ads/google_ads/v12/services/recommendation_service_pb.rb +++ /dev/null @@ -1,149 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/recommendation_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/extensions_pb' -require 'google/ads/google_ads/v12/enums/keyword_match_type_pb' -require 'google/ads/google_ads/v12/resources/ad_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/recommendation_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.ApplyRecommendationRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.ApplyRecommendationOperation" - optional :partial_failure, :bool, 3 - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationOperation" do - optional :resource_name, :string, 1 - oneof :apply_parameters do - optional :campaign_budget, :message, 2, "google.ads.googleads.v12.services.ApplyRecommendationOperation.CampaignBudgetParameters" - optional :text_ad, :message, 3, "google.ads.googleads.v12.services.ApplyRecommendationOperation.TextAdParameters" - optional :keyword, :message, 4, "google.ads.googleads.v12.services.ApplyRecommendationOperation.KeywordParameters" - optional :target_cpa_opt_in, :message, 5, "google.ads.googleads.v12.services.ApplyRecommendationOperation.TargetCpaOptInParameters" - optional :target_roas_opt_in, :message, 10, "google.ads.googleads.v12.services.ApplyRecommendationOperation.TargetRoasOptInParameters" - optional :callout_extension, :message, 6, "google.ads.googleads.v12.services.ApplyRecommendationOperation.CalloutExtensionParameters" - optional :call_extension, :message, 7, "google.ads.googleads.v12.services.ApplyRecommendationOperation.CallExtensionParameters" - optional :sitelink_extension, :message, 8, "google.ads.googleads.v12.services.ApplyRecommendationOperation.SitelinkExtensionParameters" - optional :move_unused_budget, :message, 9, "google.ads.googleads.v12.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters" - optional :responsive_search_ad, :message, 11, "google.ads.googleads.v12.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters" - optional :use_broad_match_keyword, :message, 12, "google.ads.googleads.v12.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters" - optional :responsive_search_ad_asset, :message, 13, "google.ads.googleads.v12.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters" - optional :responsive_search_ad_improve_ad_strength, :message, 14, "google.ads.googleads.v12.services.ApplyRecommendationOperation.ResponsiveSearchAdImproveAdStrengthParameters" - optional :raise_target_cpa_bid_too_low, :message, 15, "google.ads.googleads.v12.services.ApplyRecommendationOperation.RaiseTargetCpaBidTooLowParameters" - optional :forecasting_set_target_roas, :message, 16, "google.ads.googleads.v12.services.ApplyRecommendationOperation.ForecastingSetTargetRoasParameters" - end - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationOperation.CampaignBudgetParameters" do - proto3_optional :new_budget_amount_micros, :int64, 2 - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationOperation.ForecastingSetTargetRoasParameters" do - proto3_optional :target_roas, :double, 1 - proto3_optional :campaign_budget_amount_micros, :int64, 2 - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationOperation.TextAdParameters" do - optional :ad, :message, 1, "google.ads.googleads.v12.resources.Ad" - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationOperation.KeywordParameters" do - proto3_optional :ad_group, :string, 4 - optional :match_type, :enum, 2, "google.ads.googleads.v12.enums.KeywordMatchTypeEnum.KeywordMatchType" - proto3_optional :cpc_bid_micros, :int64, 5 - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationOperation.TargetCpaOptInParameters" do - proto3_optional :target_cpa_micros, :int64, 3 - proto3_optional :new_campaign_budget_amount_micros, :int64, 4 - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationOperation.TargetRoasOptInParameters" do - proto3_optional :target_roas, :double, 1 - proto3_optional :new_campaign_budget_amount_micros, :int64, 2 - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationOperation.CalloutExtensionParameters" do - repeated :callout_extensions, :message, 1, "google.ads.googleads.v12.common.CalloutFeedItem" - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationOperation.CallExtensionParameters" do - repeated :call_extensions, :message, 1, "google.ads.googleads.v12.common.CallFeedItem" - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationOperation.SitelinkExtensionParameters" do - repeated :sitelink_extensions, :message, 1, "google.ads.googleads.v12.common.SitelinkFeedItem" - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters" do - proto3_optional :budget_micros_to_move, :int64, 2 - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters" do - optional :updated_ad, :message, 1, "google.ads.googleads.v12.resources.Ad" - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationOperation.ResponsiveSearchAdImproveAdStrengthParameters" do - optional :updated_ad, :message, 1, "google.ads.googleads.v12.resources.Ad" - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters" do - optional :ad, :message, 1, "google.ads.googleads.v12.resources.Ad" - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationOperation.RaiseTargetCpaBidTooLowParameters" do - optional :target_multiplier, :double, 1 - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters" do - proto3_optional :new_budget_amount_micros, :int64, 1 - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.ApplyRecommendationResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.ApplyRecommendationResult" do - optional :resource_name, :string, 1 - end - add_message "google.ads.googleads.v12.services.DismissRecommendationRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 3, "google.ads.googleads.v12.services.DismissRecommendationRequest.DismissRecommendationOperation" - optional :partial_failure, :bool, 2 - end - add_message "google.ads.googleads.v12.services.DismissRecommendationRequest.DismissRecommendationOperation" do - optional :resource_name, :string, 1 - end - add_message "google.ads.googleads.v12.services.DismissRecommendationResponse" do - repeated :results, :message, 1, "google.ads.googleads.v12.services.DismissRecommendationResponse.DismissRecommendationResult" - optional :partial_failure_error, :message, 2, "google.rpc.Status" - end - add_message "google.ads.googleads.v12.services.DismissRecommendationResponse.DismissRecommendationResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - ApplyRecommendationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationRequest").msgclass - ApplyRecommendationOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationOperation").msgclass - ApplyRecommendationOperation::CampaignBudgetParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationOperation.CampaignBudgetParameters").msgclass - ApplyRecommendationOperation::ForecastingSetTargetRoasParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationOperation.ForecastingSetTargetRoasParameters").msgclass - ApplyRecommendationOperation::TextAdParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationOperation.TextAdParameters").msgclass - ApplyRecommendationOperation::KeywordParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationOperation.KeywordParameters").msgclass - ApplyRecommendationOperation::TargetCpaOptInParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationOperation.TargetCpaOptInParameters").msgclass - ApplyRecommendationOperation::TargetRoasOptInParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationOperation.TargetRoasOptInParameters").msgclass - ApplyRecommendationOperation::CalloutExtensionParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationOperation.CalloutExtensionParameters").msgclass - ApplyRecommendationOperation::CallExtensionParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationOperation.CallExtensionParameters").msgclass - ApplyRecommendationOperation::SitelinkExtensionParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationOperation.SitelinkExtensionParameters").msgclass - ApplyRecommendationOperation::MoveUnusedBudgetParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters").msgclass - ApplyRecommendationOperation::ResponsiveSearchAdAssetParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters").msgclass - ApplyRecommendationOperation::ResponsiveSearchAdImproveAdStrengthParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationOperation.ResponsiveSearchAdImproveAdStrengthParameters").msgclass - ApplyRecommendationOperation::ResponsiveSearchAdParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters").msgclass - ApplyRecommendationOperation::RaiseTargetCpaBidTooLowParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationOperation.RaiseTargetCpaBidTooLowParameters").msgclass - ApplyRecommendationOperation::UseBroadMatchKeywordParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters").msgclass - ApplyRecommendationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationResponse").msgclass - ApplyRecommendationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.ApplyRecommendationResult").msgclass - DismissRecommendationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.DismissRecommendationRequest").msgclass - DismissRecommendationRequest::DismissRecommendationOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.DismissRecommendationRequest.DismissRecommendationOperation").msgclass - DismissRecommendationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.DismissRecommendationResponse").msgclass - DismissRecommendationResponse::DismissRecommendationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.DismissRecommendationResponse.DismissRecommendationResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/recommendation_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/recommendation_service_services_pb.rb deleted file mode 100644 index 26e4d6480..000000000 --- a/lib/google/ads/google_ads/v12/services/recommendation_service_services_pb.rb +++ /dev/null @@ -1,73 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/recommendation_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/recommendation_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module RecommendationService - # Proto file describing the Recommendation service. - # - # Service to manage recommendations. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.RecommendationService' - - # Applies given recommendations with corresponding apply parameters. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RecommendationError]() - # [RequestError]() - # [UrlFieldError]() - rpc :ApplyRecommendation, ::Google::Ads::GoogleAds::V12::Services::ApplyRecommendationRequest, ::Google::Ads::GoogleAds::V12::Services::ApplyRecommendationResponse - # Dismisses given recommendations. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RecommendationError]() - # [RequestError]() - rpc :DismissRecommendation, ::Google::Ads::GoogleAds::V12::Services::DismissRecommendationRequest, ::Google::Ads::GoogleAds::V12::Services::DismissRecommendationResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/remarketing_action_service.rb b/lib/google/ads/google_ads/v12/services/remarketing_action_service.rb deleted file mode 100644 index ec4fb3673..000000000 --- a/lib/google/ads/google_ads/v12/services/remarketing_action_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/remarketing_action_service/credentials" -require "google/ads/google_ads/v12/services/remarketing_action_service/paths" -require "google/ads/google_ads/v12/services/remarketing_action_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage remarketing actions. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/remarketing_action_service" - # client = ::Google::Ads::GoogleAds::V12::Services::RemarketingActionService::Client.new - # - module RemarketingActionService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "remarketing_action_service", "helpers.rb" -require "google/ads/google_ads/v12/services/remarketing_action_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/remarketing_action_service/client.rb b/lib/google/ads/google_ads/v12/services/remarketing_action_service/client.rb deleted file mode 100644 index 618b643d2..000000000 --- a/lib/google/ads/google_ads/v12/services/remarketing_action_service/client.rb +++ /dev/null @@ -1,409 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/remarketing_action_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module RemarketingActionService - ## - # Client for the RemarketingActionService service. - # - # Service to manage remarketing actions. - # - class Client - include Paths - - # @private - attr_reader :remarketing_action_service_stub - - ## - # Configure the RemarketingActionService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::RemarketingActionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all RemarketingActionService clients - # ::Google::Ads::GoogleAds::V12::Services::RemarketingActionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the RemarketingActionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::RemarketingActionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new RemarketingActionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::RemarketingActionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::RemarketingActionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the RemarketingActionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/remarketing_action_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @remarketing_action_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::RemarketingActionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates or updates remarketing actions. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ConversionActionError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_remarketing_actions(request, options = nil) - # Pass arguments to `mutate_remarketing_actions` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateRemarketingActionsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateRemarketingActionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_remarketing_actions(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_remarketing_actions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose remarketing actions are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::RemarketingActionOperation, ::Hash>] - # Required. The list of operations to perform on individual remarketing actions. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateRemarketingActionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateRemarketingActionsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::RemarketingActionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateRemarketingActionsRequest.new - # - # # Call the mutate_remarketing_actions method. - # result = client.mutate_remarketing_actions request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateRemarketingActionsResponse. - # p result - # - def mutate_remarketing_actions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateRemarketingActionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_remarketing_actions.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_remarketing_actions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_remarketing_actions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @remarketing_action_service_stub.call_rpc :mutate_remarketing_actions, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the RemarketingActionService API. - # - # This class represents the configuration for RemarketingActionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::RemarketingActionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_remarketing_actions to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::RemarketingActionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_remarketing_actions.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::RemarketingActionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_remarketing_actions.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the RemarketingActionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_remarketing_actions` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_remarketing_actions - - # @private - def initialize parent_rpcs = nil - mutate_remarketing_actions_config = parent_rpcs.mutate_remarketing_actions if parent_rpcs.respond_to? :mutate_remarketing_actions - @mutate_remarketing_actions = ::Gapic::Config::Method.new mutate_remarketing_actions_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/remarketing_action_service/credentials.rb b/lib/google/ads/google_ads/v12/services/remarketing_action_service/credentials.rb deleted file mode 100644 index b7fdff8de..000000000 --- a/lib/google/ads/google_ads/v12/services/remarketing_action_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module RemarketingActionService - # Credentials for the RemarketingActionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/remarketing_action_service/paths.rb b/lib/google/ads/google_ads/v12/services/remarketing_action_service/paths.rb deleted file mode 100644 index 3c7a68aef..000000000 --- a/lib/google/ads/google_ads/v12/services/remarketing_action_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module RemarketingActionService - # Path helper methods for the RemarketingActionService API. - module Paths - ## - # Create a fully-qualified RemarketingAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/remarketingActions/{remarketing_action_id}` - # - # @param customer_id [String] - # @param remarketing_action_id [String] - # - # @return [::String] - def remarketing_action_path customer_id:, remarketing_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/remarketingActions/#{remarketing_action_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/remarketing_action_service_pb.rb b/lib/google/ads/google_ads/v12/services/remarketing_action_service_pb.rb deleted file mode 100644 index 670dc07f8..000000000 --- a/lib/google/ads/google_ads/v12/services/remarketing_action_service_pb.rb +++ /dev/null @@ -1,52 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/remarketing_action_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/remarketing_action_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/remarketing_action_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateRemarketingActionsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.RemarketingActionOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.RemarketingActionOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.RemarketingAction" - optional :update, :message, 2, "google.ads.googleads.v12.resources.RemarketingAction" - end - end - add_message "google.ads.googleads.v12.services.MutateRemarketingActionsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateRemarketingActionResult" - end - add_message "google.ads.googleads.v12.services.MutateRemarketingActionResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateRemarketingActionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateRemarketingActionsRequest").msgclass - RemarketingActionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.RemarketingActionOperation").msgclass - MutateRemarketingActionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateRemarketingActionsResponse").msgclass - MutateRemarketingActionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateRemarketingActionResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/remarketing_action_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/remarketing_action_service_services_pb.rb deleted file mode 100644 index f74de08b8..000000000 --- a/lib/google/ads/google_ads/v12/services/remarketing_action_service_services_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/remarketing_action_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/remarketing_action_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module RemarketingActionService - # Proto file describing the Remarketing Action service. - # - # Service to manage remarketing actions. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.RemarketingActionService' - - # Creates or updates remarketing actions. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ConversionActionError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :MutateRemarketingActions, ::Google::Ads::GoogleAds::V12::Services::MutateRemarketingActionsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateRemarketingActionsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/shared_criterion_service.rb b/lib/google/ads/google_ads/v12/services/shared_criterion_service.rb deleted file mode 100644 index d3818649e..000000000 --- a/lib/google/ads/google_ads/v12/services/shared_criterion_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/shared_criterion_service/credentials" -require "google/ads/google_ads/v12/services/shared_criterion_service/paths" -require "google/ads/google_ads/v12/services/shared_criterion_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage shared criteria. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/shared_criterion_service" - # client = ::Google::Ads::GoogleAds::V12::Services::SharedCriterionService::Client.new - # - module SharedCriterionService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "shared_criterion_service", "helpers.rb" -require "google/ads/google_ads/v12/services/shared_criterion_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/shared_criterion_service/client.rb b/lib/google/ads/google_ads/v12/services/shared_criterion_service/client.rb deleted file mode 100644 index 3b711adb4..000000000 --- a/lib/google/ads/google_ads/v12/services/shared_criterion_service/client.rb +++ /dev/null @@ -1,425 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/shared_criterion_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module SharedCriterionService - ## - # Client for the SharedCriterionService service. - # - # Service to manage shared criteria. - # - class Client - include Paths - - # @private - attr_reader :shared_criterion_service_stub - - ## - # Configure the SharedCriterionService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::SharedCriterionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all SharedCriterionService clients - # ::Google::Ads::GoogleAds::V12::Services::SharedCriterionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the SharedCriterionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::SharedCriterionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new SharedCriterionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::SharedCriterionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::SharedCriterionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the SharedCriterionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/shared_criterion_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @shared_criterion_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::SharedCriterionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates or removes shared criteria. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CriterionError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_shared_criteria(request, options = nil) - # Pass arguments to `mutate_shared_criteria` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateSharedCriteriaRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateSharedCriteriaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_shared_criteria(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_shared_criteria` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose shared criteria are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::SharedCriterionOperation, ::Hash>] - # Required. The list of operations to perform on individual shared criteria. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateSharedCriteriaResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateSharedCriteriaResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::SharedCriterionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateSharedCriteriaRequest.new - # - # # Call the mutate_shared_criteria method. - # result = client.mutate_shared_criteria request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateSharedCriteriaResponse. - # p result - # - def mutate_shared_criteria request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateSharedCriteriaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_shared_criteria.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_shared_criteria.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_shared_criteria.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @shared_criterion_service_stub.call_rpc :mutate_shared_criteria, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the SharedCriterionService API. - # - # This class represents the configuration for SharedCriterionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::SharedCriterionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_shared_criteria to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::SharedCriterionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_shared_criteria.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::SharedCriterionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_shared_criteria.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the SharedCriterionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_shared_criteria` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_shared_criteria - - # @private - def initialize parent_rpcs = nil - mutate_shared_criteria_config = parent_rpcs.mutate_shared_criteria if parent_rpcs.respond_to? :mutate_shared_criteria - @mutate_shared_criteria = ::Gapic::Config::Method.new mutate_shared_criteria_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/shared_criterion_service/credentials.rb b/lib/google/ads/google_ads/v12/services/shared_criterion_service/credentials.rb deleted file mode 100644 index fcf8406ab..000000000 --- a/lib/google/ads/google_ads/v12/services/shared_criterion_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module SharedCriterionService - # Credentials for the SharedCriterionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/shared_criterion_service/paths.rb b/lib/google/ads/google_ads/v12/services/shared_criterion_service/paths.rb deleted file mode 100644 index 5080c9781..000000000 --- a/lib/google/ads/google_ads/v12/services/shared_criterion_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module SharedCriterionService - # Path helper methods for the SharedCriterionService API. - module Paths - ## - # Create a fully-qualified SharedCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}` - # - # @param customer_id [String] - # @param shared_set_id [String] - # @param criterion_id [String] - # - # @return [::String] - def shared_criterion_path customer_id:, shared_set_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "shared_set_id cannot contain /" if shared_set_id.to_s.include? "/" - - "customers/#{customer_id}/sharedCriteria/#{shared_set_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified SharedSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/sharedSets/{shared_set_id}` - # - # @param customer_id [String] - # @param shared_set_id [String] - # - # @return [::String] - def shared_set_path customer_id:, shared_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/sharedSets/#{shared_set_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/shared_criterion_service_pb.rb b/lib/google/ads/google_ads/v12/services/shared_criterion_service_pb.rb deleted file mode 100644 index efba5292e..000000000 --- a/lib/google/ads/google_ads/v12/services/shared_criterion_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/shared_criterion_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/shared_criterion_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/shared_criterion_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateSharedCriteriaRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.SharedCriterionOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.SharedCriterionOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.SharedCriterion" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateSharedCriteriaResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateSharedCriterionResult" - end - add_message "google.ads.googleads.v12.services.MutateSharedCriterionResult" do - optional :resource_name, :string, 1 - optional :shared_criterion, :message, 2, "google.ads.googleads.v12.resources.SharedCriterion" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateSharedCriteriaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateSharedCriteriaRequest").msgclass - SharedCriterionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SharedCriterionOperation").msgclass - MutateSharedCriteriaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateSharedCriteriaResponse").msgclass - MutateSharedCriterionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateSharedCriterionResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/shared_criterion_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/shared_criterion_service_services_pb.rb deleted file mode 100644 index e4ad9baa7..000000000 --- a/lib/google/ads/google_ads/v12/services/shared_criterion_service_services_pb.rb +++ /dev/null @@ -1,71 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/shared_criterion_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/shared_criterion_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module SharedCriterionService - # Proto file describing the Shared Criterion service. - # - # Service to manage shared criteria. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.SharedCriterionService' - - # Creates or removes shared criteria. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CriterionError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - rpc :MutateSharedCriteria, ::Google::Ads::GoogleAds::V12::Services::MutateSharedCriteriaRequest, ::Google::Ads::GoogleAds::V12::Services::MutateSharedCriteriaResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/shared_set_service.rb b/lib/google/ads/google_ads/v12/services/shared_set_service.rb deleted file mode 100644 index c373dd4c1..000000000 --- a/lib/google/ads/google_ads/v12/services/shared_set_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/shared_set_service/credentials" -require "google/ads/google_ads/v12/services/shared_set_service/paths" -require "google/ads/google_ads/v12/services/shared_set_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage shared sets. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/shared_set_service" - # client = ::Google::Ads::GoogleAds::V12::Services::SharedSetService::Client.new - # - module SharedSetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "shared_set_service", "helpers.rb" -require "google/ads/google_ads/v12/services/shared_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/shared_set_service/client.rb b/lib/google/ads/google_ads/v12/services/shared_set_service/client.rb deleted file mode 100644 index 4bf98be3c..000000000 --- a/lib/google/ads/google_ads/v12/services/shared_set_service/client.rb +++ /dev/null @@ -1,428 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/shared_set_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module SharedSetService - ## - # Client for the SharedSetService service. - # - # Service to manage shared sets. - # - class Client - include Paths - - # @private - attr_reader :shared_set_service_stub - - ## - # Configure the SharedSetService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::SharedSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all SharedSetService clients - # ::Google::Ads::GoogleAds::V12::Services::SharedSetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the SharedSetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::SharedSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new SharedSetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::SharedSetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::SharedSetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the SharedSetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/shared_set_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @shared_set_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::SharedSetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates, updates, or removes shared sets. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SharedSetError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_shared_sets(request, options = nil) - # Pass arguments to `mutate_shared_sets` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateSharedSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateSharedSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_shared_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_shared_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose shared sets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::SharedSetOperation, ::Hash>] - # Required. The list of operations to perform on individual shared sets. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateSharedSetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateSharedSetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::SharedSetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateSharedSetsRequest.new - # - # # Call the mutate_shared_sets method. - # result = client.mutate_shared_sets request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateSharedSetsResponse. - # p result - # - def mutate_shared_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateSharedSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_shared_sets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_shared_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_shared_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @shared_set_service_stub.call_rpc :mutate_shared_sets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the SharedSetService API. - # - # This class represents the configuration for SharedSetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::SharedSetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_shared_sets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::SharedSetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_shared_sets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::SharedSetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_shared_sets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the SharedSetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_shared_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_shared_sets - - # @private - def initialize parent_rpcs = nil - mutate_shared_sets_config = parent_rpcs.mutate_shared_sets if parent_rpcs.respond_to? :mutate_shared_sets - @mutate_shared_sets = ::Gapic::Config::Method.new mutate_shared_sets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/shared_set_service/credentials.rb b/lib/google/ads/google_ads/v12/services/shared_set_service/credentials.rb deleted file mode 100644 index df97d0f8f..000000000 --- a/lib/google/ads/google_ads/v12/services/shared_set_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module SharedSetService - # Credentials for the SharedSetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/shared_set_service/paths.rb b/lib/google/ads/google_ads/v12/services/shared_set_service/paths.rb deleted file mode 100644 index 1fe39b0fc..000000000 --- a/lib/google/ads/google_ads/v12/services/shared_set_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module SharedSetService - # Path helper methods for the SharedSetService API. - module Paths - ## - # Create a fully-qualified SharedSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/sharedSets/{shared_set_id}` - # - # @param customer_id [String] - # @param shared_set_id [String] - # - # @return [::String] - def shared_set_path customer_id:, shared_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/sharedSets/#{shared_set_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/shared_set_service_pb.rb b/lib/google/ads/google_ads/v12/services/shared_set_service_pb.rb deleted file mode 100644 index f421b403b..000000000 --- a/lib/google/ads/google_ads/v12/services/shared_set_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/shared_set_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/shared_set_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/shared_set_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateSharedSetsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.SharedSetOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.SharedSetOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.SharedSet" - optional :update, :message, 2, "google.ads.googleads.v12.resources.SharedSet" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateSharedSetsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateSharedSetResult" - end - add_message "google.ads.googleads.v12.services.MutateSharedSetResult" do - optional :resource_name, :string, 1 - optional :shared_set, :message, 2, "google.ads.googleads.v12.resources.SharedSet" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateSharedSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateSharedSetsRequest").msgclass - SharedSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SharedSetOperation").msgclass - MutateSharedSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateSharedSetsResponse").msgclass - MutateSharedSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateSharedSetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/shared_set_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/shared_set_service_services_pb.rb deleted file mode 100644 index 4d612c61e..000000000 --- a/lib/google/ads/google_ads/v12/services/shared_set_service_services_pb.rb +++ /dev/null @@ -1,74 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/shared_set_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/shared_set_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module SharedSetService - # Proto file describing the Shared Set service. - # - # Service to manage shared sets. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.SharedSetService' - - # Creates, updates, or removes shared sets. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SharedSetError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - rpc :MutateSharedSets, ::Google::Ads::GoogleAds::V12::Services::MutateSharedSetsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateSharedSetsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service.rb b/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service.rb deleted file mode 100644 index 4d93f6587..000000000 --- a/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/smart_campaign_setting_service/credentials" -require "google/ads/google_ads/v12/services/smart_campaign_setting_service/paths" -require "google/ads/google_ads/v12/services/smart_campaign_setting_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage Smart campaign settings. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/smart_campaign_setting_service" - # client = ::Google::Ads::GoogleAds::V12::Services::SmartCampaignSettingService::Client.new - # - module SmartCampaignSettingService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "smart_campaign_setting_service", "helpers.rb" -require "google/ads/google_ads/v12/services/smart_campaign_setting_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service/client.rb b/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service/client.rb deleted file mode 100644 index d90e2a9a4..000000000 --- a/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service/client.rb +++ /dev/null @@ -1,403 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/smart_campaign_setting_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module SmartCampaignSettingService - ## - # Client for the SmartCampaignSettingService service. - # - # Service to manage Smart campaign settings. - # - class Client - include Paths - - # @private - attr_reader :smart_campaign_setting_service_stub - - ## - # Configure the SmartCampaignSettingService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::SmartCampaignSettingService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all SmartCampaignSettingService clients - # ::Google::Ads::GoogleAds::V12::Services::SmartCampaignSettingService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the SmartCampaignSettingService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::SmartCampaignSettingService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new SmartCampaignSettingService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::SmartCampaignSettingService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::SmartCampaignSettingService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the SmartCampaignSettingService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/smart_campaign_setting_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @smart_campaign_setting_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::SmartCampaignSettingService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Updates Smart campaign settings for campaigns. - # - # @overload mutate_smart_campaign_settings(request, options = nil) - # Pass arguments to `mutate_smart_campaign_settings` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateSmartCampaignSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateSmartCampaignSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_smart_campaign_settings(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_smart_campaign_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose Smart campaign settings are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::SmartCampaignSettingOperation, ::Hash>] - # Required. The list of operations to perform on individual Smart campaign settings. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V12::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateSmartCampaignSettingsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateSmartCampaignSettingsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::SmartCampaignSettingService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateSmartCampaignSettingsRequest.new - # - # # Call the mutate_smart_campaign_settings method. - # result = client.mutate_smart_campaign_settings request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateSmartCampaignSettingsResponse. - # p result - # - def mutate_smart_campaign_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateSmartCampaignSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_smart_campaign_settings.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_smart_campaign_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_smart_campaign_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @smart_campaign_setting_service_stub.call_rpc :mutate_smart_campaign_settings, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the SmartCampaignSettingService API. - # - # This class represents the configuration for SmartCampaignSettingService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::SmartCampaignSettingService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_smart_campaign_settings to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::SmartCampaignSettingService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_smart_campaign_settings.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::SmartCampaignSettingService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_smart_campaign_settings.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the SmartCampaignSettingService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_smart_campaign_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_smart_campaign_settings - - # @private - def initialize parent_rpcs = nil - mutate_smart_campaign_settings_config = parent_rpcs.mutate_smart_campaign_settings if parent_rpcs.respond_to? :mutate_smart_campaign_settings - @mutate_smart_campaign_settings = ::Gapic::Config::Method.new mutate_smart_campaign_settings_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service/credentials.rb b/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service/credentials.rb deleted file mode 100644 index c71a783b1..000000000 --- a/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module SmartCampaignSettingService - # Credentials for the SmartCampaignSettingService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service/paths.rb b/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service/paths.rb deleted file mode 100644 index 1a7bdbd12..000000000 --- a/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module SmartCampaignSettingService - # Path helper methods for the SmartCampaignSettingService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified SmartCampaignSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/smartCampaignSettings/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def smart_campaign_setting_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/smartCampaignSettings/#{campaign_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service_pb.rb b/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service_pb.rb deleted file mode 100644 index a82236fb4..000000000 --- a/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service_pb.rb +++ /dev/null @@ -1,52 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/smart_campaign_setting_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/enums/response_content_type_pb' -require 'google/ads/google_ads/v12/resources/smart_campaign_setting_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/smart_campaign_setting_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateSmartCampaignSettingsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.SmartCampaignSettingOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - optional :response_content_type, :enum, 5, "google.ads.googleads.v12.enums.ResponseContentTypeEnum.ResponseContentType" - end - add_message "google.ads.googleads.v12.services.SmartCampaignSettingOperation" do - optional :update, :message, 1, "google.ads.googleads.v12.resources.SmartCampaignSetting" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.ads.googleads.v12.services.MutateSmartCampaignSettingsResponse" do - optional :partial_failure_error, :message, 1, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateSmartCampaignSettingResult" - end - add_message "google.ads.googleads.v12.services.MutateSmartCampaignSettingResult" do - optional :resource_name, :string, 1 - optional :smart_campaign_setting, :message, 2, "google.ads.googleads.v12.resources.SmartCampaignSetting" - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateSmartCampaignSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateSmartCampaignSettingsRequest").msgclass - SmartCampaignSettingOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SmartCampaignSettingOperation").msgclass - MutateSmartCampaignSettingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateSmartCampaignSettingsResponse").msgclass - MutateSmartCampaignSettingResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateSmartCampaignSettingResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service_services_pb.rb deleted file mode 100644 index 75f2cd270..000000000 --- a/lib/google/ads/google_ads/v12/services/smart_campaign_setting_service_services_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/smart_campaign_setting_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/smart_campaign_setting_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module SmartCampaignSettingService - # Proto file describing the Smart campaign setting service. - # - # Service to manage Smart campaign settings. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.SmartCampaignSettingService' - - # Updates Smart campaign settings for campaigns. - rpc :MutateSmartCampaignSettings, ::Google::Ads::GoogleAds::V12::Services::MutateSmartCampaignSettingsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateSmartCampaignSettingsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service.rb b/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service.rb deleted file mode 100644 index cd9a5eb6b..000000000 --- a/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/smart_campaign_suggest_service/credentials" -require "google/ads/google_ads/v12/services/smart_campaign_suggest_service/paths" -require "google/ads/google_ads/v12/services/smart_campaign_suggest_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to get suggestions for Smart Campaigns. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/smart_campaign_suggest_service" - # client = ::Google::Ads::GoogleAds::V12::Services::SmartCampaignSuggestService::Client.new - # - module SmartCampaignSuggestService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "smart_campaign_suggest_service", "helpers.rb" -require "google/ads/google_ads/v12/services/smart_campaign_suggest_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service/client.rb b/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service/client.rb deleted file mode 100644 index c9cb10c15..000000000 --- a/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service/client.rb +++ /dev/null @@ -1,599 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/smart_campaign_suggest_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module SmartCampaignSuggestService - ## - # Client for the SmartCampaignSuggestService service. - # - # Service to get suggestions for Smart Campaigns. - # - class Client - include Paths - - # @private - attr_reader :smart_campaign_suggest_service_stub - - ## - # Configure the SmartCampaignSuggestService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::SmartCampaignSuggestService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all SmartCampaignSuggestService clients - # ::Google::Ads::GoogleAds::V12::Services::SmartCampaignSuggestService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the SmartCampaignSuggestService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::SmartCampaignSuggestService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new SmartCampaignSuggestService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::SmartCampaignSuggestService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::SmartCampaignSuggestService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the SmartCampaignSuggestService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/smart_campaign_suggest_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @smart_campaign_suggest_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::SmartCampaignSuggestService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Returns BudgetOption suggestions. - # - # @overload suggest_smart_campaign_budget_options(request, options = nil) - # Pass arguments to `suggest_smart_campaign_budget_options` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignBudgetOptionsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignBudgetOptionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload suggest_smart_campaign_budget_options(customer_id: nil, campaign: nil, suggestion_info: nil) - # Pass arguments to `suggest_smart_campaign_budget_options` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose budget options are to be suggested. - # @param campaign [::String] - # Required. The resource name of the campaign to get suggestion for. - # @param suggestion_info [::Google::Ads::GoogleAds::V12::Services::SmartCampaignSuggestionInfo, ::Hash] - # Required. Information needed to get budget options - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignBudgetOptionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignBudgetOptionsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::SmartCampaignSuggestService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignBudgetOptionsRequest.new - # - # # Call the suggest_smart_campaign_budget_options method. - # result = client.suggest_smart_campaign_budget_options request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignBudgetOptionsResponse. - # p result - # - def suggest_smart_campaign_budget_options request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignBudgetOptionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.suggest_smart_campaign_budget_options.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.suggest_smart_campaign_budget_options.timeout, - metadata: metadata, - retry_policy: @config.rpcs.suggest_smart_campaign_budget_options.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @smart_campaign_suggest_service_stub.call_rpc :suggest_smart_campaign_budget_options, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Suggests a Smart campaign ad compatible with the Ad family of resources, - # based on data points such as targeting and the business to advertise. - # - # @overload suggest_smart_campaign_ad(request, options = nil) - # Pass arguments to `suggest_smart_campaign_ad` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignAdRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignAdRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload suggest_smart_campaign_ad(customer_id: nil, suggestion_info: nil) - # Pass arguments to `suggest_smart_campaign_ad` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param suggestion_info [::Google::Ads::GoogleAds::V12::Services::SmartCampaignSuggestionInfo, ::Hash] - # Required. Inputs used to suggest a Smart campaign ad. - # Required fields: final_url, language_code, keyword_themes. - # Optional but recommended fields to improve the quality of the suggestion: - # business_setting and geo_target. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignAdResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignAdResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::SmartCampaignSuggestService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignAdRequest.new - # - # # Call the suggest_smart_campaign_ad method. - # result = client.suggest_smart_campaign_ad request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignAdResponse. - # p result - # - def suggest_smart_campaign_ad request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignAdRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.suggest_smart_campaign_ad.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.suggest_smart_campaign_ad.timeout, - metadata: metadata, - retry_policy: @config.rpcs.suggest_smart_campaign_ad.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @smart_campaign_suggest_service_stub.call_rpc :suggest_smart_campaign_ad, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Suggests keyword themes to advertise on. - # - # @overload suggest_keyword_themes(request, options = nil) - # Pass arguments to `suggest_keyword_themes` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload suggest_keyword_themes(customer_id: nil, suggestion_info: nil) - # Pass arguments to `suggest_keyword_themes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param suggestion_info [::Google::Ads::GoogleAds::V12::Services::SmartCampaignSuggestionInfo, ::Hash] - # Required. Information to get keyword theme suggestions. - # Required fields: - # - # * suggestion_info.final_url - # * suggestion_info.language_code - # * suggestion_info.geo_target - # - # Recommended fields: - # - # * suggestion_info.business_setting - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::SmartCampaignSuggestService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemesRequest.new - # - # # Call the suggest_keyword_themes method. - # result = client.suggest_keyword_themes request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemesResponse. - # p result - # - def suggest_keyword_themes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.suggest_keyword_themes.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.suggest_keyword_themes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.suggest_keyword_themes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @smart_campaign_suggest_service_stub.call_rpc :suggest_keyword_themes, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the SmartCampaignSuggestService API. - # - # This class represents the configuration for SmartCampaignSuggestService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::SmartCampaignSuggestService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # suggest_smart_campaign_budget_options to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::SmartCampaignSuggestService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.suggest_smart_campaign_budget_options.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::SmartCampaignSuggestService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.suggest_smart_campaign_budget_options.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the SmartCampaignSuggestService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `suggest_smart_campaign_budget_options` - # @return [::Gapic::Config::Method] - # - attr_reader :suggest_smart_campaign_budget_options - ## - # RPC-specific configuration for `suggest_smart_campaign_ad` - # @return [::Gapic::Config::Method] - # - attr_reader :suggest_smart_campaign_ad - ## - # RPC-specific configuration for `suggest_keyword_themes` - # @return [::Gapic::Config::Method] - # - attr_reader :suggest_keyword_themes - - # @private - def initialize parent_rpcs = nil - suggest_smart_campaign_budget_options_config = parent_rpcs.suggest_smart_campaign_budget_options if parent_rpcs.respond_to? :suggest_smart_campaign_budget_options - @suggest_smart_campaign_budget_options = ::Gapic::Config::Method.new suggest_smart_campaign_budget_options_config - suggest_smart_campaign_ad_config = parent_rpcs.suggest_smart_campaign_ad if parent_rpcs.respond_to? :suggest_smart_campaign_ad - @suggest_smart_campaign_ad = ::Gapic::Config::Method.new suggest_smart_campaign_ad_config - suggest_keyword_themes_config = parent_rpcs.suggest_keyword_themes if parent_rpcs.respond_to? :suggest_keyword_themes - @suggest_keyword_themes = ::Gapic::Config::Method.new suggest_keyword_themes_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service/credentials.rb b/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service/credentials.rb deleted file mode 100644 index 0a5019607..000000000 --- a/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module SmartCampaignSuggestService - # Credentials for the SmartCampaignSuggestService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service/paths.rb b/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service/paths.rb deleted file mode 100644 index ed9c2db8e..000000000 --- a/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module SmartCampaignSuggestService - # Path helper methods for the SmartCampaignSuggestService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified KeywordThemeConstant resource string. - # - # The resource will be in the following format: - # - # `keywordThemeConstants/{express_category_id}~{express_sub_category_id}` - # - # @param express_category_id [String] - # @param express_sub_category_id [String] - # - # @return [::String] - def keyword_theme_constant_path express_category_id:, express_sub_category_id: - raise ::ArgumentError, "express_category_id cannot contain /" if express_category_id.to_s.include? "/" - - "keywordThemeConstants/#{express_category_id}~#{express_sub_category_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service_pb.rb b/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service_pb.rb deleted file mode 100644 index 2b4c942c7..000000000 --- a/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service_pb.rb +++ /dev/null @@ -1,100 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/smart_campaign_suggest_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/ad_type_infos_pb' -require 'google/ads/google_ads/v12/common/criteria_pb' -require 'google/ads/google_ads/v12/resources/keyword_theme_constant_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/smart_campaign_suggest_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.SuggestSmartCampaignBudgetOptionsRequest" do - optional :customer_id, :string, 1 - oneof :suggestion_data do - optional :campaign, :string, 2 - optional :suggestion_info, :message, 3, "google.ads.googleads.v12.services.SmartCampaignSuggestionInfo" - end - end - add_message "google.ads.googleads.v12.services.SmartCampaignSuggestionInfo" do - optional :final_url, :string, 1 - optional :language_code, :string, 3 - repeated :ad_schedules, :message, 6, "google.ads.googleads.v12.common.AdScheduleInfo" - repeated :keyword_themes, :message, 7, "google.ads.googleads.v12.common.KeywordThemeInfo" - oneof :business_setting do - optional :business_context, :message, 8, "google.ads.googleads.v12.services.SmartCampaignSuggestionInfo.BusinessContext" - optional :business_profile_location, :string, 9 - end - oneof :geo_target do - optional :location_list, :message, 4, "google.ads.googleads.v12.services.SmartCampaignSuggestionInfo.LocationList" - optional :proximity, :message, 5, "google.ads.googleads.v12.common.ProximityInfo" - end - end - add_message "google.ads.googleads.v12.services.SmartCampaignSuggestionInfo.LocationList" do - repeated :locations, :message, 1, "google.ads.googleads.v12.common.LocationInfo" - end - add_message "google.ads.googleads.v12.services.SmartCampaignSuggestionInfo.BusinessContext" do - optional :business_name, :string, 1 - end - add_message "google.ads.googleads.v12.services.SuggestSmartCampaignBudgetOptionsResponse" do - proto3_optional :low, :message, 1, "google.ads.googleads.v12.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption" - proto3_optional :recommended, :message, 2, "google.ads.googleads.v12.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption" - proto3_optional :high, :message, 3, "google.ads.googleads.v12.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption" - end - add_message "google.ads.googleads.v12.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics" do - optional :min_daily_clicks, :int64, 1 - optional :max_daily_clicks, :int64, 2 - end - add_message "google.ads.googleads.v12.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption" do - optional :daily_amount_micros, :int64, 1 - optional :metrics, :message, 2, "google.ads.googleads.v12.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics" - end - add_message "google.ads.googleads.v12.services.SuggestSmartCampaignAdRequest" do - optional :customer_id, :string, 1 - optional :suggestion_info, :message, 2, "google.ads.googleads.v12.services.SmartCampaignSuggestionInfo" - end - add_message "google.ads.googleads.v12.services.SuggestSmartCampaignAdResponse" do - optional :ad_info, :message, 1, "google.ads.googleads.v12.common.SmartCampaignAdInfo" - end - add_message "google.ads.googleads.v12.services.SuggestKeywordThemesRequest" do - optional :customer_id, :string, 1 - optional :suggestion_info, :message, 2, "google.ads.googleads.v12.services.SmartCampaignSuggestionInfo" - end - add_message "google.ads.googleads.v12.services.SuggestKeywordThemesResponse" do - repeated :keyword_themes, :message, 2, "google.ads.googleads.v12.services.SuggestKeywordThemesResponse.KeywordTheme" - end - add_message "google.ads.googleads.v12.services.SuggestKeywordThemesResponse.KeywordTheme" do - oneof :keyword_theme do - optional :keyword_theme_constant, :message, 1, "google.ads.googleads.v12.resources.KeywordThemeConstant" - optional :free_form_keyword_theme, :string, 2 - end - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - SuggestSmartCampaignBudgetOptionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SuggestSmartCampaignBudgetOptionsRequest").msgclass - SmartCampaignSuggestionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SmartCampaignSuggestionInfo").msgclass - SmartCampaignSuggestionInfo::LocationList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SmartCampaignSuggestionInfo.LocationList").msgclass - SmartCampaignSuggestionInfo::BusinessContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SmartCampaignSuggestionInfo.BusinessContext").msgclass - SuggestSmartCampaignBudgetOptionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SuggestSmartCampaignBudgetOptionsResponse").msgclass - SuggestSmartCampaignBudgetOptionsResponse::Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics").msgclass - SuggestSmartCampaignBudgetOptionsResponse::BudgetOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption").msgclass - SuggestSmartCampaignAdRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SuggestSmartCampaignAdRequest").msgclass - SuggestSmartCampaignAdResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SuggestSmartCampaignAdResponse").msgclass - SuggestKeywordThemesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SuggestKeywordThemesRequest").msgclass - SuggestKeywordThemesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SuggestKeywordThemesResponse").msgclass - SuggestKeywordThemesResponse::KeywordTheme = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.SuggestKeywordThemesResponse.KeywordTheme").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service_services_pb.rb deleted file mode 100644 index 01dc3dd78..000000000 --- a/lib/google/ads/google_ads/v12/services/smart_campaign_suggest_service_services_pb.rb +++ /dev/null @@ -1,52 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/smart_campaign_suggest_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/smart_campaign_suggest_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module SmartCampaignSuggestService - # Service to get suggestions for Smart Campaigns. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.SmartCampaignSuggestService' - - # Returns BudgetOption suggestions. - rpc :SuggestSmartCampaignBudgetOptions, ::Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignBudgetOptionsRequest, ::Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignBudgetOptionsResponse - # Suggests a Smart campaign ad compatible with the Ad family of resources, - # based on data points such as targeting and the business to advertise. - rpc :SuggestSmartCampaignAd, ::Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignAdRequest, ::Google::Ads::GoogleAds::V12::Services::SuggestSmartCampaignAdResponse - # Suggests keyword themes to advertise on. - rpc :SuggestKeywordThemes, ::Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemesRequest, ::Google::Ads::GoogleAds::V12::Services::SuggestKeywordThemesResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service.rb b/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service.rb deleted file mode 100644 index 46e50d173..000000000 --- a/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/third_party_app_analytics_link_service/credentials" -require "google/ads/google_ads/v12/services/third_party_app_analytics_link_service/paths" -require "google/ads/google_ads/v12/services/third_party_app_analytics_link_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # This service allows management of links between Google Ads and third party - # app analytics. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/third_party_app_analytics_link_service" - # client = ::Google::Ads::GoogleAds::V12::Services::ThirdPartyAppAnalyticsLinkService::Client.new - # - module ThirdPartyAppAnalyticsLinkService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "third_party_app_analytics_link_service", "helpers.rb" -require "google/ads/google_ads/v12/services/third_party_app_analytics_link_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service/client.rb b/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service/client.rb deleted file mode 100644 index e761cb1ef..000000000 --- a/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service/client.rb +++ /dev/null @@ -1,400 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/third_party_app_analytics_link_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ThirdPartyAppAnalyticsLinkService - ## - # Client for the ThirdPartyAppAnalyticsLinkService service. - # - # This service allows management of links between Google Ads and third party - # app analytics. - # - class Client - include Paths - - # @private - attr_reader :third_party_app_analytics_link_service_stub - - ## - # Configure the ThirdPartyAppAnalyticsLinkService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::ThirdPartyAppAnalyticsLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ThirdPartyAppAnalyticsLinkService clients - # ::Google::Ads::GoogleAds::V12::Services::ThirdPartyAppAnalyticsLinkService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ThirdPartyAppAnalyticsLinkService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::ThirdPartyAppAnalyticsLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ThirdPartyAppAnalyticsLinkService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ThirdPartyAppAnalyticsLinkService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::ThirdPartyAppAnalyticsLinkService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ThirdPartyAppAnalyticsLinkService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/third_party_app_analytics_link_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @third_party_app_analytics_link_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::ThirdPartyAppAnalyticsLinkService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Regenerate ThirdPartyAppAnalyticsLink.shareable_link_id that should be - # provided to the third party when setting up app analytics. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload regenerate_shareable_link_id(request, options = nil) - # Pass arguments to `regenerate_shareable_link_id` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::RegenerateShareableLinkIdRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::RegenerateShareableLinkIdRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload regenerate_shareable_link_id(resource_name: nil) - # Pass arguments to `regenerate_shareable_link_id` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Resource name of the third party app analytics link. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::RegenerateShareableLinkIdResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::RegenerateShareableLinkIdResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::ThirdPartyAppAnalyticsLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::RegenerateShareableLinkIdRequest.new - # - # # Call the regenerate_shareable_link_id method. - # result = client.regenerate_shareable_link_id request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::RegenerateShareableLinkIdResponse. - # p result - # - def regenerate_shareable_link_id request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::RegenerateShareableLinkIdRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.regenerate_shareable_link_id.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.regenerate_shareable_link_id.timeout, - metadata: metadata, - retry_policy: @config.rpcs.regenerate_shareable_link_id.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @third_party_app_analytics_link_service_stub.call_rpc :regenerate_shareable_link_id, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ThirdPartyAppAnalyticsLinkService API. - # - # This class represents the configuration for ThirdPartyAppAnalyticsLinkService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::ThirdPartyAppAnalyticsLinkService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # regenerate_shareable_link_id to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::ThirdPartyAppAnalyticsLinkService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.regenerate_shareable_link_id.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::ThirdPartyAppAnalyticsLinkService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.regenerate_shareable_link_id.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the ThirdPartyAppAnalyticsLinkService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `regenerate_shareable_link_id` - # @return [::Gapic::Config::Method] - # - attr_reader :regenerate_shareable_link_id - - # @private - def initialize parent_rpcs = nil - regenerate_shareable_link_id_config = parent_rpcs.regenerate_shareable_link_id if parent_rpcs.respond_to? :regenerate_shareable_link_id - @regenerate_shareable_link_id = ::Gapic::Config::Method.new regenerate_shareable_link_id_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service/credentials.rb b/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service/credentials.rb deleted file mode 100644 index 81f4313cf..000000000 --- a/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ThirdPartyAppAnalyticsLinkService - # Credentials for the ThirdPartyAppAnalyticsLinkService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service/paths.rb b/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service/paths.rb deleted file mode 100644 index db0a6d69e..000000000 --- a/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ThirdPartyAppAnalyticsLinkService - # Path helper methods for the ThirdPartyAppAnalyticsLinkService API. - module Paths - ## - # Create a fully-qualified ThirdPartyAppAnalyticsLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/thirdPartyAppAnalyticsLinks/{customer_link_id}` - # - # @param customer_id [String] - # @param customer_link_id [String] - # - # @return [::String] - def third_party_app_analytics_link_path customer_id:, customer_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/thirdPartyAppAnalyticsLinks/#{customer_link_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service_pb.rb b/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service_pb.rb deleted file mode 100644 index 26897aed8..000000000 --- a/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/third_party_app_analytics_link_service.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/resource_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/third_party_app_analytics_link_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.RegenerateShareableLinkIdRequest" do - optional :resource_name, :string, 1 - end - add_message "google.ads.googleads.v12.services.RegenerateShareableLinkIdResponse" do - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - RegenerateShareableLinkIdRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.RegenerateShareableLinkIdRequest").msgclass - RegenerateShareableLinkIdResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.RegenerateShareableLinkIdResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service_services_pb.rb deleted file mode 100644 index d57bbd646..000000000 --- a/lib/google/ads/google_ads/v12/services/third_party_app_analytics_link_service_services_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/third_party_app_analytics_link_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/third_party_app_analytics_link_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module ThirdPartyAppAnalyticsLinkService - # This service allows management of links between Google Ads and third party - # app analytics. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.ThirdPartyAppAnalyticsLinkService' - - # Regenerate ThirdPartyAppAnalyticsLink.shareable_link_id that should be - # provided to the third party when setting up app analytics. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :RegenerateShareableLinkId, ::Google::Ads::GoogleAds::V12::Services::RegenerateShareableLinkIdRequest, ::Google::Ads::GoogleAds::V12::Services::RegenerateShareableLinkIdResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/user_data_service.rb b/lib/google/ads/google_ads/v12/services/user_data_service.rb deleted file mode 100644 index 302c0b259..000000000 --- a/lib/google/ads/google_ads/v12/services/user_data_service.rb +++ /dev/null @@ -1,55 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/user_data_service/credentials" -require "google/ads/google_ads/v12/services/user_data_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage user data uploads. - # Any uploads made to a Customer Match list through this service will be - # eligible for matching as per the customer matching process. See - # https://support.google.com/google-ads/answer/7474263. However, the uploads - # made through this service will not be visible under the 'Segment members' - # section for the Customer Match List in the Google Ads UI. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/user_data_service" - # client = ::Google::Ads::GoogleAds::V12::Services::UserDataService::Client.new - # - module UserDataService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "user_data_service", "helpers.rb" -require "google/ads/google_ads/v12/services/user_data_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/user_data_service/client.rb b/lib/google/ads/google_ads/v12/services/user_data_service/client.rb deleted file mode 100644 index d24b394e5..000000000 --- a/lib/google/ads/google_ads/v12/services/user_data_service/client.rb +++ /dev/null @@ -1,409 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/user_data_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module UserDataService - ## - # Client for the UserDataService service. - # - # Service to manage user data uploads. - # Any uploads made to a Customer Match list through this service will be - # eligible for matching as per the customer matching process. See - # https://support.google.com/google-ads/answer/7474263. However, the uploads - # made through this service will not be visible under the 'Segment members' - # section for the Customer Match List in the Google Ads UI. - # - class Client - # @private - attr_reader :user_data_service_stub - - ## - # Configure the UserDataService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::UserDataService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all UserDataService clients - # ::Google::Ads::GoogleAds::V12::Services::UserDataService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the UserDataService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::UserDataService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new UserDataService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::UserDataService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::UserDataService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the UserDataService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/user_data_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @user_data_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::UserDataService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Uploads the given user data. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [OfflineUserDataJobError]() - # [QuotaError]() - # [RequestError]() - # [UserDataError]() - # - # @overload upload_user_data(request, options = nil) - # Pass arguments to `upload_user_data` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::UploadUserDataRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::UploadUserDataRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload upload_user_data(customer_id: nil, operations: nil, customer_match_user_list_metadata: nil) - # Pass arguments to `upload_user_data` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer for which to update the user data. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::UserDataOperation, ::Hash>] - # Required. The list of operations to be done. - # @param customer_match_user_list_metadata [::Google::Ads::GoogleAds::V12::Common::CustomerMatchUserListMetadata, ::Hash] - # Metadata for data updates to a Customer Match user list. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::UploadUserDataResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::UploadUserDataResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::UserDataService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::UploadUserDataRequest.new - # - # # Call the upload_user_data method. - # result = client.upload_user_data request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::UploadUserDataResponse. - # p result - # - def upload_user_data request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::UploadUserDataRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.upload_user_data.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.upload_user_data.timeout, - metadata: metadata, - retry_policy: @config.rpcs.upload_user_data.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @user_data_service_stub.call_rpc :upload_user_data, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the UserDataService API. - # - # This class represents the configuration for UserDataService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::UserDataService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # upload_user_data to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::UserDataService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.upload_user_data.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::UserDataService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.upload_user_data.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the UserDataService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `upload_user_data` - # @return [::Gapic::Config::Method] - # - attr_reader :upload_user_data - - # @private - def initialize parent_rpcs = nil - upload_user_data_config = parent_rpcs.upload_user_data if parent_rpcs.respond_to? :upload_user_data - @upload_user_data = ::Gapic::Config::Method.new upload_user_data_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/user_data_service/credentials.rb b/lib/google/ads/google_ads/v12/services/user_data_service/credentials.rb deleted file mode 100644 index f2cc81817..000000000 --- a/lib/google/ads/google_ads/v12/services/user_data_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module UserDataService - # Credentials for the UserDataService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/user_data_service_pb.rb b/lib/google/ads/google_ads/v12/services/user_data_service_pb.rb deleted file mode 100644 index 34fe852c1..000000000 --- a/lib/google/ads/google_ads/v12/services/user_data_service_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/user_data_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/common/offline_user_data_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/user_data_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.UploadUserDataRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 3, "google.ads.googleads.v12.services.UserDataOperation" - oneof :metadata do - optional :customer_match_user_list_metadata, :message, 2, "google.ads.googleads.v12.common.CustomerMatchUserListMetadata" - end - end - add_message "google.ads.googleads.v12.services.UserDataOperation" do - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.common.UserData" - optional :remove, :message, 2, "google.ads.googleads.v12.common.UserData" - end - end - add_message "google.ads.googleads.v12.services.UploadUserDataResponse" do - proto3_optional :upload_date_time, :string, 3 - proto3_optional :received_operations_count, :int32, 4 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - UploadUserDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.UploadUserDataRequest").msgclass - UserDataOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.UserDataOperation").msgclass - UploadUserDataResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.UploadUserDataResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/user_data_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/user_data_service_services_pb.rb deleted file mode 100644 index bdf626aa9..000000000 --- a/lib/google/ads/google_ads/v12/services/user_data_service_services_pb.rb +++ /dev/null @@ -1,67 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/user_data_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/user_data_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module UserDataService - # Proto file describing the UserDataService. - # - # Service to manage user data uploads. - # Any uploads made to a Customer Match list through this service will be - # eligible for matching as per the customer matching process. See - # https://support.google.com/google-ads/answer/7474263. However, the uploads - # made through this service will not be visible under the 'Segment members' - # section for the Customer Match List in the Google Ads UI. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.UserDataService' - - # Uploads the given user data. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [OfflineUserDataJobError]() - # [QuotaError]() - # [RequestError]() - # [UserDataError]() - rpc :UploadUserData, ::Google::Ads::GoogleAds::V12::Services::UploadUserDataRequest, ::Google::Ads::GoogleAds::V12::Services::UploadUserDataResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/user_list_service.rb b/lib/google/ads/google_ads/v12/services/user_list_service.rb deleted file mode 100644 index 0a1a56cf0..000000000 --- a/lib/google/ads/google_ads/v12/services/user_list_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v12/services/user_list_service/credentials" -require "google/ads/google_ads/v12/services/user_list_service/paths" -require "google/ads/google_ads/v12/services/user_list_service/client" - -module Google - module Ads - module GoogleAds - module V12 - module Services - ## - # Service to manage user lists. - # - # To load this service and instantiate a client: - # - # require "google/ads/google_ads/v12/services/user_list_service" - # client = ::Google::Ads::GoogleAds::V12::Services::UserListService::Client.new - # - module UserListService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "user_list_service", "helpers.rb" -require "google/ads/google_ads/v12/services/user_list_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v12/services/user_list_service/client.rb b/lib/google/ads/google_ads/v12/services/user_list_service/client.rb deleted file mode 100644 index 20b330d1d..000000000 --- a/lib/google/ads/google_ads/v12/services/user_list_service/client.rb +++ /dev/null @@ -1,421 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v12/services/user_list_service_pb" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module UserListService - ## - # Client for the UserListService service. - # - # Service to manage user lists. - # - class Client - include Paths - - # @private - attr_reader :user_list_service_stub - - ## - # Configure the UserListService Client class. - # - # See {::Google::Ads::GoogleAds::V12::Services::UserListService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all UserListService clients - # ::Google::Ads::GoogleAds::V12::Services::UserListService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the UserListService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V12::Services::UserListService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new UserListService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V12::Services::UserListService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V12::Services::UserListService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the UserListService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v12/services/user_list_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @user_list_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V12::Services::UserListService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors - ) - end - - # Service calls - - ## - # Creates or updates user lists. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotAllowlistedError]() - # [NotEmptyError]() - # [OperationAccessDeniedError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [StringFormatError]() - # [StringLengthError]() - # [UserListError]() - # - # @overload mutate_user_lists(request, options = nil) - # Pass arguments to `mutate_user_lists` via a request object, either of type - # {::Google::Ads::GoogleAds::V12::Services::MutateUserListsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V12::Services::MutateUserListsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_user_lists(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_user_lists` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose user lists are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V12::Services::UserListOperation, ::Hash>] - # Required. The list of operations to perform on individual user lists. - # @param partial_failure [::Boolean] - # If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # Default is false. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V12::Services::MutateUserListsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V12::Services::MutateUserListsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v12/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V12::Services::UserListService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V12::Services::MutateUserListsRequest.new - # - # # Call the mutate_user_lists method. - # result = client.mutate_user_lists request - # - # # The returned object is of type Google::Ads::GoogleAds::V12::Services::MutateUserListsResponse. - # p result - # - def mutate_user_lists request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V12::Services::MutateUserListsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_user_lists.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_user_lists.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_user_lists.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @user_list_service_stub.call_rpc :mutate_user_lists, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the UserListService API. - # - # This class represents the configuration for UserListService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V12::Services::UserListService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_user_lists to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V12::Services::UserListService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_user_lists.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V12::Services::UserListService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_user_lists.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - config_attr :endpoint, "googleads.googleapis.com", ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the UserListService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_user_lists` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_user_lists - - # @private - def initialize parent_rpcs = nil - mutate_user_lists_config = parent_rpcs.mutate_user_lists if parent_rpcs.respond_to? :mutate_user_lists - @mutate_user_lists = ::Gapic::Config::Method.new mutate_user_lists_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/user_list_service/credentials.rb b/lib/google/ads/google_ads/v12/services/user_list_service/credentials.rb deleted file mode 100644 index 01c228645..000000000 --- a/lib/google/ads/google_ads/v12/services/user_list_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V12 - module Services - module UserListService - # Credentials for the UserListService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/user_list_service/paths.rb b/lib/google/ads/google_ads/v12/services/user_list_service/paths.rb deleted file mode 100644 index e53236c9f..000000000 --- a/lib/google/ads/google_ads/v12/services/user_list_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V12 - module Services - module UserListService - # Path helper methods for the UserListService API. - module Paths - ## - # Create a fully-qualified UserList resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userLists/{user_list_id}` - # - # @param customer_id [String] - # @param user_list_id [String] - # - # @return [::String] - def user_list_path customer_id:, user_list_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/userLists/#{user_list_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/user_list_service_pb.rb b/lib/google/ads/google_ads/v12/services/user_list_service_pb.rb deleted file mode 100644 index 588b8973b..000000000 --- a/lib/google/ads/google_ads/v12/services/user_list_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v12/services/user_list_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v12/resources/user_list_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/ads/googleads/v12/services/user_list_service.proto", :syntax => :proto3) do - add_message "google.ads.googleads.v12.services.MutateUserListsRequest" do - optional :customer_id, :string, 1 - repeated :operations, :message, 2, "google.ads.googleads.v12.services.UserListOperation" - optional :partial_failure, :bool, 3 - optional :validate_only, :bool, 4 - end - add_message "google.ads.googleads.v12.services.UserListOperation" do - optional :update_mask, :message, 4, "google.protobuf.FieldMask" - oneof :operation do - optional :create, :message, 1, "google.ads.googleads.v12.resources.UserList" - optional :update, :message, 2, "google.ads.googleads.v12.resources.UserList" - optional :remove, :string, 3 - end - end - add_message "google.ads.googleads.v12.services.MutateUserListsResponse" do - optional :partial_failure_error, :message, 3, "google.rpc.Status" - repeated :results, :message, 2, "google.ads.googleads.v12.services.MutateUserListResult" - end - add_message "google.ads.googleads.v12.services.MutateUserListResult" do - optional :resource_name, :string, 1 - end - end -end - -module Google - module Ads - module GoogleAds - module V12 - module Services - MutateUserListsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateUserListsRequest").msgclass - UserListOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.UserListOperation").msgclass - MutateUserListsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateUserListsResponse").msgclass - MutateUserListResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v12.services.MutateUserListResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v12/services/user_list_service_services_pb.rb b/lib/google/ads/google_ads/v12/services/user_list_service_services_pb.rb deleted file mode 100644 index 0c209588b..000000000 --- a/lib/google/ads/google_ads/v12/services/user_list_service_services_pb.rb +++ /dev/null @@ -1,71 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v12/services/user_list_service.proto for package 'Google.Ads.GoogleAds.V12.Services' -# Original file comments: -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v12/services/user_list_service_pb' - -module Google - module Ads - module GoogleAds - module V12 - module Services - module UserListService - # Proto file describing the User List service. - # - # Service to manage user lists. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v12.services.UserListService' - - # Creates or updates user lists. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotAllowlistedError]() - # [NotEmptyError]() - # [OperationAccessDeniedError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [StringFormatError]() - # [StringLengthError]() - # [UserListError]() - rpc :MutateUserLists, ::Google::Ads::GoogleAds::V12::Services::MutateUserListsRequest, ::Google::Ads::GoogleAds::V12::Services::MutateUserListsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/version.rb b/lib/google/ads/google_ads/version.rb index ba3fd8014..253ba55ed 100644 --- a/lib/google/ads/google_ads/version.rb +++ b/lib/google/ads/google_ads/version.rb @@ -20,7 +20,7 @@ module Google module Ads module GoogleAds CLIENT_LIB_NAME = 'gccl'.freeze - CLIENT_LIB_VERSION = '23.1.0'.freeze + CLIENT_LIB_VERSION = '24.0.0'.freeze VERSION = CLIENT_LIB_VERSION end end diff --git a/test/test_path_lookup_util.rb b/test/test_path_lookup_util.rb index 675d3c1ec..f5f7197c5 100644 --- a/test/test_path_lookup_util.rb +++ b/test/test_path_lookup_util.rb @@ -20,12 +20,12 @@ require 'minitest/autorun' require 'google/ads/google_ads' -require 'google/ads/google_ads/utils/v12/path_lookup_util' +require 'google/ads/google_ads/utils/v13/path_lookup_util' require 'google/ads/google_ads/utils/v14/path_lookup_util' class TestPathLookupUtil < Minitest::Test - def test_path_generation_v12() - util = Google::Ads::GoogleAds::Utils::V12::PathLookupUtil.new + def test_path_generation_v13() + util = Google::Ads::GoogleAds::Utils::V13::PathLookupUtil.new expected = 'customers/1234/accessibleBiddingStrategies/5678' assert_equal(expected, util.accessible_bidding_strategy(1234, 5678))