lib/google/ads/google_ads/factories/v14/operations.rb in google-ads-googleads-25.0.2 vs lib/google/ads/google_ads/factories/v14/operations.rb in google-ads-googleads-26.0.0

- old
+ new

@@ -3559,12 +3559,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -3598,12 +3598,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -3637,12 +3637,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -3676,12 +3676,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -3715,12 +3715,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -3754,12 +3754,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -3793,12 +3793,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -3832,12 +3832,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -3871,12 +3871,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -3910,12 +3910,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -3949,12 +3949,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -3988,12 +3988,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4027,12 +4027,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4066,12 +4066,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4105,12 +4105,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4144,12 +4144,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4183,12 +4183,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4222,12 +4222,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4261,12 +4261,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4300,12 +4300,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4339,12 +4339,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4378,12 +4378,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4417,12 +4417,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4456,12 +4456,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4495,12 +4495,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4534,12 +4534,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4573,12 +4573,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4612,12 +4612,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4651,12 +4651,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4690,12 +4690,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4729,12 +4729,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4768,12 +4768,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4807,12 +4807,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4846,12 +4846,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4885,12 +4885,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4924,12 +4924,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -4963,12 +4963,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5002,12 +5002,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5041,12 +5041,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5080,12 +5080,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5119,12 +5119,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5158,12 +5158,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5197,12 +5197,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5236,12 +5236,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5275,12 +5275,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5314,12 +5314,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5353,12 +5353,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5392,12 +5392,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5431,12 +5431,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5470,12 +5470,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5509,12 +5509,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5548,12 +5548,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5587,12 +5587,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5626,12 +5626,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5665,12 +5665,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5704,12 +5704,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5743,12 +5743,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5782,12 +5782,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5821,12 +5821,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5860,12 +5860,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5899,12 +5899,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5938,12 +5938,12 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::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 @@ -5977,11 +5977,11 @@ obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V14::Resources::MerchantCenterLink === 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