lib/google/ads/google_ads/factories/v15/operations.rb in google-ads-googleads-29.0.0 vs lib/google/ads/google_ads/factories/v15/operations.rb in google-ads-googleads-30.0.0

- old
+ new

@@ -3614,11 +3614,11 @@ # # @overload #account_link(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::AccountLink] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::AccountLinkOperation] the operation instance to update the resource - def self.account_link(resource_or_path, &blk) + def self.account_link(resource_or_path, &) require "google/ads/google_ads/v15/services/account_link_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::AccountLink resource_or_path # got a resource path @@ -3627,19 +3627,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::AccountLink === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::AccountLinkOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an AdGroupAdOperation instance with @@ -3653,11 +3653,11 @@ # # @overload #ad_group_ad(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::AdGroupAd] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::AdGroupAdOperation] the operation instance to update the resource - def self.ad_group_ad(resource_or_path, &blk) + def self.ad_group_ad(resource_or_path, &) require "google/ads/google_ads/v15/services/ad_group_ad_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::AdGroupAd resource_or_path # got a resource path @@ -3666,19 +3666,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::AdGroupAd === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::AdGroupAdOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an AdGroupAssetOperation instance with @@ -3692,11 +3692,11 @@ # # @overload #ad_group_asset(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::AdGroupAsset] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::AdGroupAssetOperation] the operation instance to update the resource - def self.ad_group_asset(resource_or_path, &blk) + def self.ad_group_asset(resource_or_path, &) require "google/ads/google_ads/v15/services/ad_group_asset_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::AdGroupAsset resource_or_path # got a resource path @@ -3705,19 +3705,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::AdGroupAsset === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::AdGroupAssetOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an AdGroupBidModifierOperation instance with @@ -3731,11 +3731,11 @@ # # @overload #ad_group_bid_modifier(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::AdGroupBidModifier] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::AdGroupBidModifierOperation] the operation instance to update the resource - def self.ad_group_bid_modifier(resource_or_path, &blk) + def self.ad_group_bid_modifier(resource_or_path, &) require "google/ads/google_ads/v15/services/ad_group_bid_modifier_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::AdGroupBidModifier resource_or_path # got a resource path @@ -3744,19 +3744,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::AdGroupBidModifier === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::AdGroupBidModifierOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an AdGroupCriterionOperation instance with @@ -3770,11 +3770,11 @@ # # @overload #ad_group_criterion(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::AdGroupCriterion] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::AdGroupCriterionOperation] the operation instance to update the resource - def self.ad_group_criterion(resource_or_path, &blk) + def self.ad_group_criterion(resource_or_path, &) require "google/ads/google_ads/v15/services/ad_group_criterion_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::AdGroupCriterion resource_or_path # got a resource path @@ -3783,19 +3783,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::AdGroupCriterion === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::AdGroupCriterionOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an AdGroupExtensionSettingOperation instance with @@ -3809,11 +3809,11 @@ # # @overload #ad_group_extension_setting(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::AdGroupExtensionSetting] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::AdGroupExtensionSettingOperation] the operation instance to update the resource - def self.ad_group_extension_setting(resource_or_path, &blk) + def self.ad_group_extension_setting(resource_or_path, &) require "google/ads/google_ads/v15/services/ad_group_extension_setting_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::AdGroupExtensionSetting resource_or_path # got a resource path @@ -3822,19 +3822,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::AdGroupExtensionSetting === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::AdGroupExtensionSettingOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an AdGroupFeedOperation instance with @@ -3848,11 +3848,11 @@ # # @overload #ad_group_feed(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::AdGroupFeed] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::AdGroupFeedOperation] the operation instance to update the resource - def self.ad_group_feed(resource_or_path, &blk) + def self.ad_group_feed(resource_or_path, &) require "google/ads/google_ads/v15/services/ad_group_feed_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::AdGroupFeed resource_or_path # got a resource path @@ -3861,19 +3861,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::AdGroupFeed === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::AdGroupFeedOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an AdGroupOperation instance with @@ -3887,11 +3887,11 @@ # # @overload #ad_group(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::AdGroup] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::AdGroupOperation] the operation instance to update the resource - def self.ad_group(resource_or_path, &blk) + def self.ad_group(resource_or_path, &) require "google/ads/google_ads/v15/services/ad_group_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::AdGroup resource_or_path # got a resource path @@ -3900,19 +3900,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::AdGroup === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::AdGroupOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an AdParameterOperation instance with @@ -3926,11 +3926,11 @@ # # @overload #ad_parameter(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::AdParameter] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::AdParameterOperation] the operation instance to update the resource - def self.ad_parameter(resource_or_path, &blk) + def self.ad_parameter(resource_or_path, &) require "google/ads/google_ads/v15/services/ad_parameter_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::AdParameter resource_or_path # got a resource path @@ -3939,19 +3939,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::AdParameter === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::AdParameterOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an AdOperation instance with @@ -3965,11 +3965,11 @@ # # @overload #ad(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::Ad] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::AdOperation] the operation instance to update the resource - def self.ad(resource_or_path, &blk) + def self.ad(resource_or_path, &) require "google/ads/google_ads/v15/services/ad_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::Ad resource_or_path # got a resource path @@ -3978,19 +3978,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::Ad === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::AdOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an AssetGroupAssetOperation instance with @@ -4004,11 +4004,11 @@ # # @overload #asset_group_asset(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::AssetGroupAsset] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::AssetGroupAssetOperation] the operation instance to update the resource - def self.asset_group_asset(resource_or_path, &blk) + def self.asset_group_asset(resource_or_path, &) require "google/ads/google_ads/v15/services/asset_group_asset_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::AssetGroupAsset resource_or_path # got a resource path @@ -4017,19 +4017,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::AssetGroupAsset === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::AssetGroupAssetOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an AssetGroupListingGroupFilterOperation instance with @@ -4043,11 +4043,11 @@ # # @overload #asset_group_listing_group_filter(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::AssetGroupListingGroupFilter] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::AssetGroupListingGroupFilterOperation] the operation instance to update the resource - def self.asset_group_listing_group_filter(resource_or_path, &blk) + def self.asset_group_listing_group_filter(resource_or_path, &) require "google/ads/google_ads/v15/services/asset_group_listing_group_filter_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::AssetGroupListingGroupFilter resource_or_path # got a resource path @@ -4056,19 +4056,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::AssetGroupListingGroupFilter === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::AssetGroupListingGroupFilterOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an AssetGroupOperation instance with @@ -4082,11 +4082,11 @@ # # @overload #asset_group(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::AssetGroup] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::AssetGroupOperation] the operation instance to update the resource - def self.asset_group(resource_or_path, &blk) + def self.asset_group(resource_or_path, &) require "google/ads/google_ads/v15/services/asset_group_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::AssetGroup resource_or_path # got a resource path @@ -4095,19 +4095,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::AssetGroup === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::AssetGroupOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an AssetOperation instance with @@ -4121,11 +4121,11 @@ # # @overload #asset(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::Asset] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::AssetOperation] the operation instance to update the resource - def self.asset(resource_or_path, &blk) + def self.asset(resource_or_path, &) require "google/ads/google_ads/v15/services/asset_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::Asset resource_or_path # got a resource path @@ -4134,19 +4134,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::Asset === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::AssetOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an AssetSetOperation instance with @@ -4160,11 +4160,11 @@ # # @overload #asset_set(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::AssetSet] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::AssetSetOperation] the operation instance to update the resource - def self.asset_set(resource_or_path, &blk) + def self.asset_set(resource_or_path, &) require "google/ads/google_ads/v15/services/asset_set_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::AssetSet resource_or_path # got a resource path @@ -4173,19 +4173,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::AssetSet === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::AssetSetOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an AudienceOperation instance with @@ -4199,11 +4199,11 @@ # # @overload #audience(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::Audience] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::AudienceOperation] the operation instance to update the resource - def self.audience(resource_or_path, &blk) + def self.audience(resource_or_path, &) require "google/ads/google_ads/v15/services/audience_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::Audience resource_or_path # got a resource path @@ -4212,19 +4212,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::Audience === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::AudienceOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an BiddingDataExclusionOperation instance with @@ -4238,11 +4238,11 @@ # # @overload #bidding_data_exclusion(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::BiddingDataExclusion] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::BiddingDataExclusionOperation] the operation instance to update the resource - def self.bidding_data_exclusion(resource_or_path, &blk) + def self.bidding_data_exclusion(resource_or_path, &) require "google/ads/google_ads/v15/services/bidding_data_exclusion_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::BiddingDataExclusion resource_or_path # got a resource path @@ -4251,19 +4251,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::BiddingDataExclusion === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::BiddingDataExclusionOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an BiddingSeasonalityAdjustmentOperation instance with @@ -4277,11 +4277,11 @@ # # @overload #bidding_seasonality_adjustment(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::BiddingSeasonalityAdjustment] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::BiddingSeasonalityAdjustmentOperation] the operation instance to update the resource - def self.bidding_seasonality_adjustment(resource_or_path, &blk) + def self.bidding_seasonality_adjustment(resource_or_path, &) require "google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::BiddingSeasonalityAdjustment resource_or_path # got a resource path @@ -4290,19 +4290,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::BiddingSeasonalityAdjustment === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::BiddingSeasonalityAdjustmentOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an BiddingStrategyOperation instance with @@ -4316,11 +4316,11 @@ # # @overload #bidding_strategy(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::BiddingStrategy] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::BiddingStrategyOperation] the operation instance to update the resource - def self.bidding_strategy(resource_or_path, &blk) + def self.bidding_strategy(resource_or_path, &) require "google/ads/google_ads/v15/services/bidding_strategy_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::BiddingStrategy resource_or_path # got a resource path @@ -4329,19 +4329,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::BiddingStrategy === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::BiddingStrategyOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CampaignAssetOperation instance with @@ -4355,11 +4355,11 @@ # # @overload #campaign_asset(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CampaignAsset] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CampaignAssetOperation] the operation instance to update the resource - def self.campaign_asset(resource_or_path, &blk) + def self.campaign_asset(resource_or_path, &) require "google/ads/google_ads/v15/services/campaign_asset_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CampaignAsset resource_or_path # got a resource path @@ -4368,19 +4368,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CampaignAsset === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CampaignAssetOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CampaignBidModifierOperation instance with @@ -4394,11 +4394,11 @@ # # @overload #campaign_bid_modifier(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CampaignBidModifier] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CampaignBidModifierOperation] the operation instance to update the resource - def self.campaign_bid_modifier(resource_or_path, &blk) + def self.campaign_bid_modifier(resource_or_path, &) require "google/ads/google_ads/v15/services/campaign_bid_modifier_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CampaignBidModifier resource_or_path # got a resource path @@ -4407,19 +4407,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CampaignBidModifier === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CampaignBidModifierOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CampaignBudgetOperation instance with @@ -4433,11 +4433,11 @@ # # @overload #campaign_budget(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CampaignBudget] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CampaignBudgetOperation] the operation instance to update the resource - def self.campaign_budget(resource_or_path, &blk) + def self.campaign_budget(resource_or_path, &) require "google/ads/google_ads/v15/services/campaign_budget_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CampaignBudget resource_or_path # got a resource path @@ -4446,19 +4446,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CampaignBudget === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CampaignBudgetOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CampaignConversionGoalOperation instance with @@ -4472,11 +4472,11 @@ # # @overload #campaign_conversion_goal(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CampaignConversionGoal] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CampaignConversionGoalOperation] the operation instance to update the resource - def self.campaign_conversion_goal(resource_or_path, &blk) + def self.campaign_conversion_goal(resource_or_path, &) require "google/ads/google_ads/v15/services/campaign_conversion_goal_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CampaignConversionGoal resource_or_path # got a resource path @@ -4485,19 +4485,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CampaignConversionGoal === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CampaignConversionGoalOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CampaignCriterionOperation instance with @@ -4511,11 +4511,11 @@ # # @overload #campaign_criterion(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CampaignCriterion] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CampaignCriterionOperation] the operation instance to update the resource - def self.campaign_criterion(resource_or_path, &blk) + def self.campaign_criterion(resource_or_path, &) require "google/ads/google_ads/v15/services/campaign_criterion_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CampaignCriterion resource_or_path # got a resource path @@ -4524,19 +4524,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CampaignCriterion === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CampaignCriterionOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CampaignDraftOperation instance with @@ -4550,11 +4550,11 @@ # # @overload #campaign_draft(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CampaignDraft] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CampaignDraftOperation] the operation instance to update the resource - def self.campaign_draft(resource_or_path, &blk) + def self.campaign_draft(resource_or_path, &) require "google/ads/google_ads/v15/services/campaign_draft_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CampaignDraft resource_or_path # got a resource path @@ -4563,19 +4563,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CampaignDraft === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CampaignDraftOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CampaignExtensionSettingOperation instance with @@ -4589,11 +4589,11 @@ # # @overload #campaign_extension_setting(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CampaignExtensionSetting] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CampaignExtensionSettingOperation] the operation instance to update the resource - def self.campaign_extension_setting(resource_or_path, &blk) + def self.campaign_extension_setting(resource_or_path, &) require "google/ads/google_ads/v15/services/campaign_extension_setting_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CampaignExtensionSetting resource_or_path # got a resource path @@ -4602,19 +4602,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CampaignExtensionSetting === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CampaignExtensionSettingOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CampaignFeedOperation instance with @@ -4628,11 +4628,11 @@ # # @overload #campaign_feed(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CampaignFeed] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CampaignFeedOperation] the operation instance to update the resource - def self.campaign_feed(resource_or_path, &blk) + def self.campaign_feed(resource_or_path, &) require "google/ads/google_ads/v15/services/campaign_feed_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CampaignFeed resource_or_path # got a resource path @@ -4641,19 +4641,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CampaignFeed === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CampaignFeedOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CampaignGroupOperation instance with @@ -4667,11 +4667,11 @@ # # @overload #campaign_group(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CampaignGroup] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CampaignGroupOperation] the operation instance to update the resource - def self.campaign_group(resource_or_path, &blk) + def self.campaign_group(resource_or_path, &) require "google/ads/google_ads/v15/services/campaign_group_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CampaignGroup resource_or_path # got a resource path @@ -4680,19 +4680,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CampaignGroup === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CampaignGroupOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CampaignOperation instance with @@ -4706,11 +4706,11 @@ # # @overload #campaign(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::Campaign] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CampaignOperation] the operation instance to update the resource - def self.campaign(resource_or_path, &blk) + def self.campaign(resource_or_path, &) require "google/ads/google_ads/v15/services/campaign_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::Campaign resource_or_path # got a resource path @@ -4719,19 +4719,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::Campaign === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CampaignOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an ConversionActionOperation instance with @@ -4745,11 +4745,11 @@ # # @overload #conversion_action(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::ConversionAction] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::ConversionActionOperation] the operation instance to update the resource - def self.conversion_action(resource_or_path, &blk) + def self.conversion_action(resource_or_path, &) require "google/ads/google_ads/v15/services/conversion_action_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::ConversionAction resource_or_path # got a resource path @@ -4758,19 +4758,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::ConversionAction === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::ConversionActionOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an ConversionCustomVariableOperation instance with @@ -4784,11 +4784,11 @@ # # @overload #conversion_custom_variable(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::ConversionCustomVariable] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::ConversionCustomVariableOperation] the operation instance to update the resource - def self.conversion_custom_variable(resource_or_path, &blk) + def self.conversion_custom_variable(resource_or_path, &) require "google/ads/google_ads/v15/services/conversion_custom_variable_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::ConversionCustomVariable resource_or_path # got a resource path @@ -4797,19 +4797,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::ConversionCustomVariable === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::ConversionCustomVariableOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an ConversionGoalCampaignConfigOperation instance with @@ -4823,11 +4823,11 @@ # # @overload #conversion_goal_campaign_config(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::ConversionGoalCampaignConfig] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::ConversionGoalCampaignConfigOperation] the operation instance to update the resource - def self.conversion_goal_campaign_config(resource_or_path, &blk) + def self.conversion_goal_campaign_config(resource_or_path, &) require "google/ads/google_ads/v15/services/conversion_goal_campaign_config_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::ConversionGoalCampaignConfig resource_or_path # got a resource path @@ -4836,19 +4836,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::ConversionGoalCampaignConfig === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::ConversionGoalCampaignConfigOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an ConversionValueRuleOperation instance with @@ -4862,11 +4862,11 @@ # # @overload #conversion_value_rule(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::ConversionValueRule] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::ConversionValueRuleOperation] the operation instance to update the resource - def self.conversion_value_rule(resource_or_path, &blk) + def self.conversion_value_rule(resource_or_path, &) require "google/ads/google_ads/v15/services/conversion_value_rule_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::ConversionValueRule resource_or_path # got a resource path @@ -4875,19 +4875,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::ConversionValueRule === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::ConversionValueRuleOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an ConversionValueRuleSetOperation instance with @@ -4901,11 +4901,11 @@ # # @overload #conversion_value_rule_set(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::ConversionValueRuleSet] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::ConversionValueRuleSetOperation] the operation instance to update the resource - def self.conversion_value_rule_set(resource_or_path, &blk) + def self.conversion_value_rule_set(resource_or_path, &) require "google/ads/google_ads/v15/services/conversion_value_rule_set_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::ConversionValueRuleSet resource_or_path # got a resource path @@ -4914,19 +4914,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::ConversionValueRuleSet === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::ConversionValueRuleSetOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CustomConversionGoalOperation instance with @@ -4940,11 +4940,11 @@ # # @overload #custom_conversion_goal(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CustomConversionGoal] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CustomConversionGoalOperation] the operation instance to update the resource - def self.custom_conversion_goal(resource_or_path, &blk) + def self.custom_conversion_goal(resource_or_path, &) require "google/ads/google_ads/v15/services/custom_conversion_goal_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CustomConversionGoal resource_or_path # got a resource path @@ -4953,19 +4953,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CustomConversionGoal === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CustomConversionGoalOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CustomerAssetOperation instance with @@ -4979,11 +4979,11 @@ # # @overload #customer_asset(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CustomerAsset] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CustomerAssetOperation] the operation instance to update the resource - def self.customer_asset(resource_or_path, &blk) + def self.customer_asset(resource_or_path, &) require "google/ads/google_ads/v15/services/customer_asset_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CustomerAsset resource_or_path # got a resource path @@ -4992,19 +4992,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CustomerAsset === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CustomerAssetOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CustomerConversionGoalOperation instance with @@ -5018,11 +5018,11 @@ # # @overload #customer_conversion_goal(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CustomerConversionGoal] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CustomerConversionGoalOperation] the operation instance to update the resource - def self.customer_conversion_goal(resource_or_path, &blk) + def self.customer_conversion_goal(resource_or_path, &) require "google/ads/google_ads/v15/services/customer_conversion_goal_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CustomerConversionGoal resource_or_path # got a resource path @@ -5031,19 +5031,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CustomerConversionGoal === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CustomerConversionGoalOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CustomerExtensionSettingOperation instance with @@ -5057,11 +5057,11 @@ # # @overload #customer_extension_setting(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CustomerExtensionSetting] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CustomerExtensionSettingOperation] the operation instance to update the resource - def self.customer_extension_setting(resource_or_path, &blk) + def self.customer_extension_setting(resource_or_path, &) require "google/ads/google_ads/v15/services/customer_extension_setting_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CustomerExtensionSetting resource_or_path # got a resource path @@ -5070,19 +5070,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CustomerExtensionSetting === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CustomerExtensionSettingOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CustomerFeedOperation instance with @@ -5096,11 +5096,11 @@ # # @overload #customer_feed(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CustomerFeed] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CustomerFeedOperation] the operation instance to update the resource - def self.customer_feed(resource_or_path, &blk) + def self.customer_feed(resource_or_path, &) require "google/ads/google_ads/v15/services/customer_feed_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CustomerFeed resource_or_path # got a resource path @@ -5109,19 +5109,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CustomerFeed === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CustomerFeedOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CustomerOperation instance with @@ -5135,11 +5135,11 @@ # # @overload #customer(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::Customer] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CustomerOperation] the operation instance to update the resource - def self.customer(resource_or_path, &blk) + def self.customer(resource_or_path, &) require "google/ads/google_ads/v15/services/customer_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::Customer resource_or_path # got a resource path @@ -5148,19 +5148,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::Customer === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CustomerOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an ExperimentArmOperation instance with @@ -5174,11 +5174,11 @@ # # @overload #experiment_arm(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::ExperimentArm] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::ExperimentArmOperation] the operation instance to update the resource - def self.experiment_arm(resource_or_path, &blk) + def self.experiment_arm(resource_or_path, &) require "google/ads/google_ads/v15/services/experiment_arm_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::ExperimentArm resource_or_path # got a resource path @@ -5187,19 +5187,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::ExperimentArm === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::ExperimentArmOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an ExperimentOperation instance with @@ -5213,11 +5213,11 @@ # # @overload #experiment(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::Experiment] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::ExperimentOperation] the operation instance to update the resource - def self.experiment(resource_or_path, &blk) + def self.experiment(resource_or_path, &) require "google/ads/google_ads/v15/services/experiment_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::Experiment resource_or_path # got a resource path @@ -5226,19 +5226,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::Experiment === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::ExperimentOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an ExtensionFeedItemOperation instance with @@ -5252,11 +5252,11 @@ # # @overload #extension_feed_item(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::ExtensionFeedItem] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::ExtensionFeedItemOperation] the operation instance to update the resource - def self.extension_feed_item(resource_or_path, &blk) + def self.extension_feed_item(resource_or_path, &) require "google/ads/google_ads/v15/services/extension_feed_item_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::ExtensionFeedItem resource_or_path # got a resource path @@ -5265,19 +5265,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::ExtensionFeedItem === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::ExtensionFeedItemOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an FeedItemOperation instance with @@ -5291,11 +5291,11 @@ # # @overload #feed_item(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::FeedItem] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::FeedItemOperation] the operation instance to update the resource - def self.feed_item(resource_or_path, &blk) + def self.feed_item(resource_or_path, &) require "google/ads/google_ads/v15/services/feed_item_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::FeedItem resource_or_path # got a resource path @@ -5304,19 +5304,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::FeedItem === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::FeedItemOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an FeedItemSetOperation instance with @@ -5330,11 +5330,11 @@ # # @overload #feed_item_set(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::FeedItemSet] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::FeedItemSetOperation] the operation instance to update the resource - def self.feed_item_set(resource_or_path, &blk) + def self.feed_item_set(resource_or_path, &) require "google/ads/google_ads/v15/services/feed_item_set_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::FeedItemSet resource_or_path # got a resource path @@ -5343,19 +5343,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::FeedItemSet === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::FeedItemSetOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an FeedOperation instance with @@ -5369,11 +5369,11 @@ # # @overload #feed(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::Feed] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::FeedOperation] the operation instance to update the resource - def self.feed(resource_or_path, &blk) + def self.feed(resource_or_path, &) require "google/ads/google_ads/v15/services/feed_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::Feed resource_or_path # got a resource path @@ -5382,19 +5382,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::Feed === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::FeedOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with @@ -5408,11 +5408,11 @@ # # @overload #keyword_plan_ad_group_keyword(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::KeywordPlanAdGroupKeyword] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupKeywordOperation] the operation instance to update the resource - def self.keyword_plan_ad_group_keyword(resource_or_path, &blk) + def self.keyword_plan_ad_group_keyword(resource_or_path, &) require "google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::KeywordPlanAdGroupKeyword resource_or_path # got a resource path @@ -5421,19 +5421,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::KeywordPlanAdGroupKeyword === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupKeywordOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an KeywordPlanAdGroupOperation instance with @@ -5447,11 +5447,11 @@ # # @overload #keyword_plan_ad_group(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::KeywordPlanAdGroup] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupOperation] the operation instance to update the resource - def self.keyword_plan_ad_group(resource_or_path, &blk) + def self.keyword_plan_ad_group(resource_or_path, &) require "google/ads/google_ads/v15/services/keyword_plan_ad_group_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::KeywordPlanAdGroup resource_or_path # got a resource path @@ -5460,19 +5460,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::KeywordPlanAdGroup === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an KeywordPlanCampaignKeywordOperation instance with @@ -5486,11 +5486,11 @@ # # @overload #keyword_plan_campaign_keyword(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::KeywordPlanCampaignKeyword] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignKeywordOperation] the operation instance to update the resource - def self.keyword_plan_campaign_keyword(resource_or_path, &blk) + def self.keyword_plan_campaign_keyword(resource_or_path, &) require "google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::KeywordPlanCampaignKeyword resource_or_path # got a resource path @@ -5499,19 +5499,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::KeywordPlanCampaignKeyword === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignKeywordOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an KeywordPlanCampaignOperation instance with @@ -5525,11 +5525,11 @@ # # @overload #keyword_plan_campaign(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::KeywordPlanCampaign] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignOperation] the operation instance to update the resource - def self.keyword_plan_campaign(resource_or_path, &blk) + def self.keyword_plan_campaign(resource_or_path, &) require "google/ads/google_ads/v15/services/keyword_plan_campaign_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::KeywordPlanCampaign resource_or_path # got a resource path @@ -5538,19 +5538,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::KeywordPlanCampaign === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an KeywordPlanOperation instance with @@ -5564,11 +5564,11 @@ # # @overload #keyword_plan(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::KeywordPlan] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::KeywordPlanOperation] the operation instance to update the resource - def self.keyword_plan(resource_or_path, &blk) + def self.keyword_plan(resource_or_path, &) require "google/ads/google_ads/v15/services/keyword_plan_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::KeywordPlan resource_or_path # got a resource path @@ -5577,19 +5577,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::KeywordPlan === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::KeywordPlanOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an LabelOperation instance with @@ -5603,11 +5603,11 @@ # # @overload #label(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::Label] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::LabelOperation] the operation instance to update the resource - def self.label(resource_or_path, &blk) + def self.label(resource_or_path, &) require "google/ads/google_ads/v15/services/label_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::Label resource_or_path # got a resource path @@ -5616,19 +5616,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::Label === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::LabelOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an RecommendationSubscriptionOperation instance with @@ -5642,11 +5642,11 @@ # # @overload #recommendation_subscription(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::RecommendationSubscription] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::RecommendationSubscriptionOperation] the operation instance to update the resource - def self.recommendation_subscription(resource_or_path, &blk) + def self.recommendation_subscription(resource_or_path, &) require "google/ads/google_ads/v15/services/recommendation_subscription_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::RecommendationSubscription resource_or_path # got a resource path @@ -5655,19 +5655,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::RecommendationSubscription === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::RecommendationSubscriptionOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an RemarketingActionOperation instance with @@ -5681,11 +5681,11 @@ # # @overload #remarketing_action(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::RemarketingAction] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::RemarketingActionOperation] the operation instance to update the resource - def self.remarketing_action(resource_or_path, &blk) + def self.remarketing_action(resource_or_path, &) require "google/ads/google_ads/v15/services/remarketing_action_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::RemarketingAction resource_or_path # got a resource path @@ -5694,19 +5694,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::RemarketingAction === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::RemarketingActionOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an SharedSetOperation instance with @@ -5720,11 +5720,11 @@ # # @overload #shared_set(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::SharedSet] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::SharedSetOperation] the operation instance to update the resource - def self.shared_set(resource_or_path, &blk) + def self.shared_set(resource_or_path, &) require "google/ads/google_ads/v15/services/shared_set_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::SharedSet resource_or_path # got a resource path @@ -5733,19 +5733,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::SharedSet === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::SharedSetOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an SmartCampaignSettingOperation instance with @@ -5759,11 +5759,11 @@ # # @overload #smart_campaign_setting(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::SmartCampaignSetting] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::SmartCampaignSettingOperation] the operation instance to update the resource - def self.smart_campaign_setting(resource_or_path, &blk) + def self.smart_campaign_setting(resource_or_path, &) require "google/ads/google_ads/v15/services/smart_campaign_setting_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::SmartCampaignSetting resource_or_path # got a resource path @@ -5772,19 +5772,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::SmartCampaignSetting === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::SmartCampaignSettingOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an UserListOperation instance with @@ -5798,11 +5798,11 @@ # # @overload #user_list(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::UserList] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::UserListOperation] the operation instance to update the resource - def self.user_list(resource_or_path, &blk) + def self.user_list(resource_or_path, &) require "google/ads/google_ads/v15/services/user_list_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::UserList resource_or_path # got a resource path @@ -5811,19 +5811,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::UserList === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::UserListOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CustomAudienceOperation instance with @@ -5837,11 +5837,11 @@ # # @overload #custom_audience(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CustomAudience] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CustomAudienceOperation] the operation instance to update the resource - def self.custom_audience(resource_or_path, &blk) + def self.custom_audience(resource_or_path, &) require "google/ads/google_ads/v15/services/custom_audience_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CustomAudience resource_or_path # got a resource path @@ -5850,19 +5850,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CustomAudience === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CustomAudienceOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CustomInterestOperation instance with @@ -5876,11 +5876,11 @@ # # @overload #custom_interest(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CustomInterest] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CustomInterestOperation] the operation instance to update the resource - def self.custom_interest(resource_or_path, &blk) + def self.custom_interest(resource_or_path, &) require "google/ads/google_ads/v15/services/custom_interest_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CustomInterest resource_or_path # got a resource path @@ -5889,19 +5889,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CustomInterest === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CustomInterestOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CustomerClientLinkOperation instance with @@ -5915,11 +5915,11 @@ # # @overload #customer_client_link(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CustomerClientLink] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CustomerClientLinkOperation] the operation instance to update the resource - def self.customer_client_link(resource_or_path, &blk) + def self.customer_client_link(resource_or_path, &) require "google/ads/google_ads/v15/services/customer_client_link_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CustomerClientLink resource_or_path # got a resource path @@ -5928,19 +5928,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CustomerClientLink === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CustomerClientLinkOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CustomerManagerLinkOperation instance with @@ -5954,11 +5954,11 @@ # # @overload #customer_manager_link(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CustomerManagerLink] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CustomerManagerLinkOperation] the operation instance to update the resource - def self.customer_manager_link(resource_or_path, &blk) + def self.customer_manager_link(resource_or_path, &) require "google/ads/google_ads/v15/services/customer_manager_link_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CustomerManagerLink resource_or_path # got a resource path @@ -5967,19 +5967,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CustomerManagerLink === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CustomerManagerLinkOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CustomerSkAdNetworkConversionValueSchemaOperation instance with @@ -5993,11 +5993,11 @@ # # @overload #customer_sk_ad_network_conversion_value_schema(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CustomerSkAdNetworkConversionValueSchema] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CustomerSkAdNetworkConversionValueSchemaOperation] the operation instance to update the resource - def self.customer_sk_ad_network_conversion_value_schema(resource_or_path, &blk) + def self.customer_sk_ad_network_conversion_value_schema(resource_or_path, &) require "google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CustomerSkAdNetworkConversionValueSchema resource_or_path # got a resource path @@ -6006,19 +6006,19 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CustomerSkAdNetworkConversionValueSchema === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CustomerSkAdNetworkConversionValueSchemaOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end # A convenience method for creating an CustomerUserAccessOperation instance with @@ -6032,11 +6032,11 @@ # # @overload #customer_user_access(resource, &blk) # @param resource [Google::Ads::GoogleAds::V15::Resources::CustomerUserAccess] a resource instance to update # @yield the passed block is called and updates against `resource` are recordered in the update mask # @return [Google::Ads::GoogleAds::V15::Services::CustomerUserAccessOperation] the operation instance to update the resource - def self.customer_user_access(resource_or_path, &blk) + def self.customer_user_access(resource_or_path, &) require "google/ads/google_ads/v15/services/customer_user_access_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V15::Resources::CustomerUserAccess resource_or_path # got a resource path @@ -6045,18 +6045,18 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V15::Resources::CustomerUserAccess === res raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ + "Called #{__method__} with instance of wrong type:" \ + " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V15::Services::CustomerUserAccessOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &) op["update"] = res op end end